[PATCH v2] aspeed: qcom: add block backed FRU devices

2022-07-18 Thread Jae Hyun Yoo
From: Graeme Gregory The FRU devices for dc-scm-v1 and firework on bus IF_NONE. -drive file=$DC_SCM_FRU,format=raw,if=none,unit=0 -drive file=$FIREWORK_FRU,format=raw,if=none,unit=1 file must match FRU size of 128k Signed-off-by: Graeme Gregory Signed-off-by: Jae Hyun Yoo Reviewed-by: C

[PATCH v2 2/7] hw/arm/aspeed: add Qualcomm Firework BMC machine

2022-06-27 Thread Jae Hyun Yoo
From: Graeme Gregory Add base for Qualcomm Firework BMC machine. Signed-off-by: Graeme Gregory Signed-off-by: Jae Hyun Yoo --- Changes in v2: * Changed machine name to 'qcom-firework-bmc'. (Cedric) * Dropped FRU eeprom initialization part. (Patrick) hw/arm/aspeed.c | 34

[PATCH v2 0/7] Add Qualcomm BMC machines

2022-06-27 Thread Jae Hyun Yoo
) * Refined code to avoid retouching by the next patch. (Joel) Graeme Gregory (1): hw/arm/aspeed: add Qualcomm Firework BMC machine Jae Hyun Yoo (2): hw/arm/aspeed: add support for the Qualcomm DC-SCM v1 board hw/arm/aspeed: firework: add I2C MUXes for VR channels Maheswara Kurapati (4): hw

[PATCH v2 7/7] hw/arm/aspeed: firework: add I2C MUXes for VR channels

2022-06-27 Thread Jae Hyun Yoo
Add 2-level cascaded I2C MUXes for SOC VR channels into the Firework machine. Signed-off-by: Jae Hyun Yoo --- Changes in v2: * None hw/arm/aspeed.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index cfc322ee30e9..1708a8f3408d

[PATCH v2 1/7] hw/arm/aspeed: add support for the Qualcomm DC-SCM v1 board

2022-06-27 Thread Jae Hyun Yoo
Add qcom-dc-scm-v1 board support. Signed-off-by: Jae Hyun Yoo --- Changes in v2: * Fixed a typo in HW strap value comment. (Rebecca) * Removed a useless change which is reverted by the next patch. (Joel) hw/arm/aspeed.c | 35 +++ 1 file changed, 35 insertions

[PATCH v2 4/7] hw/sensor: add Maxim MAX31785 device

2022-06-27 Thread Jae Hyun Yoo
Hyun Yoo Reviewed-by: Joel Stanley --- Changes in v2: * Fixed a typo in copyright. (Rebecca) * Fixed indentation issues. (Titus) * Fixed license identifier style and refined indentation of defines. (Jae) hw/sensor/Kconfig | 4 + hw/sensor/max31785.c | 573

[PATCH v2 6/7] hw/arm/aspeed: firework: Add Thermal Diodes

2022-06-27 Thread Jae Hyun Yoo
From: Maheswara Kurapati Add Thermal Diodes for Firework machine. Signed-off-by: Maheswara Kurapati Signed-off-by: Jae Hyun Yoo --- Changes in v2: * Refined code to avoid retouching by the next patch. (Joel) hw/arm/aspeed.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/hw

[PATCH v2 3/7] hw/i2c: pmbus: Page #255 is valid page for read requests.

2022-06-27 Thread Jae Hyun Yoo
on page 14 in the datasheet. https://datasheets.maximintegrated.com/en/ds/MAX31785.pdf Fixes: 38870253f1d1 ("hw/i2c: pmbus: fix error returns and guard against out of range accesses") Signed-off-by: Maheswara Kurapati Signed-off-by: Jae Hyun Yoo Reviewed-by: Titus Rwantare --- Ch

[PATCH v2 5/7] hw/arm/aspeed: Add MAX31785 Fan controllers

2022-06-27 Thread Jae Hyun Yoo
Kurapati Signed-off-by: Jae Hyun Yoo --- Changes in v2: * Added PMBUS and MAX31785 config selection under ASPEED_SOC. (Titus) * Moved machine updating part from the previous patch. (Cedric) hw/arm/Kconfig | 2 ++ hw/arm/aspeed.c | 8 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff

Re: [PATCH 3/9] hw/arm/aspeed: qcom-dc-scm-v1: add block backed FRU device

2022-06-27 Thread Jae Hyun Yoo
On 6/23/2022 10:37 AM, Patrick Venture wrote: On Thu, Jun 23, 2022 at 10:16 AM Cédric Le Goater <mailto:c...@kaod.org>> wrote: On 6/23/22 17:28, Patrick Venture wrote: > > > On Wed, Jun 22, 2022 at 10:48 AM Jae Hyun Yoo mailto:quic_j

Re: [PATCH 4/9] hw/arm/aspeed: add Qualcomm Firework machine and FRU device

2022-06-27 Thread Jae Hyun Yoo
On 6/24/2022 12:32 AM, Cédric Le Goater wrote: On 6/23/22 16:11, Jae Hyun Yoo wrote: On 6/22/2022 11:43 PM, Cédric Le Goater wrote: On 6/22/22 19:28, Jae Hyun Yoo wrote: From: Graeme Gregory Add base for Qualcomm Firework machine and add its FRU device which is defined by DC-SCM to be fixed

Re: [PATCH 3/9] hw/arm/aspeed: qcom-dc-scm-v1: add block backed FRU device

2022-06-23 Thread Jae Hyun Yoo
Hello Patrick, On 6/23/2022 8:28 AM, Patrick Venture wrote: On Wed, Jun 22, 2022 at 10:48 AM Jae Hyun Yoo <mailto:quic_jaeh...@quicinc.com>> wrote: From: Graeme Gregory mailto:quic_ggreg...@quicinc.com>> The FRU device uses the index 0 device on bus IF_NONE. -

Re: [PATCH 0/9] Add Qualcomm BMC machines

2022-06-23 Thread Jae Hyun Yoo
On 6/23/2022 3:24 AM, Graeme Gregory wrote: On Thu, Jun 23, 2022 at 08:48:49AM +0200, Cédric Le Goater wrote: On 6/23/22 07:25, Joel Stanley wrote: On Wed, 22 Jun 2022 at 17:29, Jae Hyun Yoo wrote: Hello, I'm sending a series to add Qualcomm BMC machines that are equipped with Aspeed

Re: [PATCH 4/9] hw/arm/aspeed: add Qualcomm Firework machine and FRU device

2022-06-23 Thread Jae Hyun Yoo
On 6/22/2022 11:43 PM, Cédric Le Goater wrote: On 6/22/22 19:28, Jae Hyun Yoo wrote: From: Graeme Gregory Add base for Qualcomm Firework machine and add its FRU device which is defined by DC-SCM to be fixed address 0x50. Signed-off-by: Graeme Gregory ---   hw/arm/aspeed.c | 53

Re: [PATCH 6/9] hw/sensor: add Maxim MAX31785 device

2022-06-23 Thread Jae Hyun Yoo
Hello Cedric, On 6/22/2022 10:40 PM, Cédric Le Goater wrote: On 6/23/22 07:17, Joel Stanley wrote: On Wed, 22 Jun 2022 at 17:29, Jae Hyun Yoo wrote: From: Maheswara Kurapati MAX31785 is a PMBus compliant 6-Channel fan controller. It supports 6 fan channels, 11 temperature sensors, and 6

Re: [PATCH 3/9] hw/arm/aspeed: qcom-dc-scm-v1: add block backed FRU device

2022-06-23 Thread Jae Hyun Yoo
On 6/22/2022 10:28 PM, Joel Stanley wrote: On Wed, 22 Jun 2022 at 17:29, Jae Hyun Yoo wrote: From: Graeme Gregory The FRU device uses the index 0 device on bus IF_NONE. -drive file=$FRU,format=raw,if=none file must match FRU size of 128k Signed-off-by: Graeme Gregory --- hw/arm

Re: [PATCH 9/9] hw/arm/aspeed: firework: add I2C MUXes for VR channels

2022-06-23 Thread Jae Hyun Yoo
Hello Joel, On 6/22/2022 10:27 PM, Joel Stanley wrote: On Wed, 22 Jun 2022 at 17:29, Jae Hyun Yoo wrote: Add 2-level cascaded I2C MUXes for SOC VR channels into the Firework machine. Signed-off-by: Jae Hyun Yoo --- hw/arm/aspeed.c | 30 +++--- 1 file changed, 19

Re: [PATCH 6/9] hw/sensor: add Maxim MAX31785 device

2022-06-22 Thread Jae Hyun Yoo
Hello Titus, On 6/22/2022 1:49 PM, Titus Rwantare wrote: On Wed, 22 Jun 2022 at 10:29, Jae Hyun Yoo wrote: From: Maheswara Kurapati MAX31785 is a PMBus compliant 6-Channel fan controller. It supports 6 fan channels, 11 temperature sensors, and 6-Channel ADC to measure the remote voltages

Re: [PATCH 5/9] hw/i2c: pmbus: Page #255 is valid page for read requests.

2022-06-22 Thread Jae Hyun Yoo
Hello Titus, On 6/22/2022 1:49 PM, Titus Rwantare wrote: On Wed, 22 Jun 2022 at 10:29, Jae Hyun Yoo wrote: From: Maheswara Kurapati Current implementation of the pmbus core driver treats the read request for page 255 as invalid request and sets the invalid command bit (bit 7

[PATCH 3/9] hw/arm/aspeed: qcom-dc-scm-v1: add block backed FRU device

2022-06-22 Thread Jae Hyun Yoo
From: Graeme Gregory The FRU device uses the index 0 device on bus IF_NONE. -drive file=$FRU,format=raw,if=none file must match FRU size of 128k Signed-off-by: Graeme Gregory --- hw/arm/aspeed.c | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git

[PATCH 6/9] hw/sensor: add Maxim MAX31785 device

2022-06-22 Thread Jae Hyun Yoo
From: Maheswara Kurapati MAX31785 is a PMBus compliant 6-Channel fan controller. It supports 6 fan channels, 11 temperature sensors, and 6-Channel ADC to measure the remote voltages. Datasheet can be found here: https://datasheets.maximintegrated.com/en/ds/MAX31785.pdf This initial version of

[PATCH 8/9] hw/arm/aspeed: firework: Add Thermal Diodes

2022-06-22 Thread Jae Hyun Yoo
From: Maheswara Kurapati Add Thermal Diodes for Firework machine. Signed-off-by: Maheswara Kurapati --- hw/arm/aspeed.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index 08e5fc178a94..526f3b651a9f 100644 --- a/hw/arm/aspeed.c +++

[PATCH 0/9] Add Qualcomm BMC machines

2022-06-22 Thread Jae Hyun Yoo
/aspeed: add Qualcomm Firework machine and FRU device Jae Hyun Yoo (3): hw/arm/aspeed: add support for the Qualcomm EVB proto board hw/arm/aspeed: add support for the Qualcomm DC-SCM v1 board hw/arm/aspeed: firework: add I2C MUXes for VR channels Maheswara Kurapati (4): hw/i2c: pmbus: Page #255

[PATCH 9/9] hw/arm/aspeed: firework: add I2C MUXes for VR channels

2022-06-22 Thread Jae Hyun Yoo
Add 2-level cascaded I2C MUXes for SOC VR channels into the Firework machine. Signed-off-by: Jae Hyun Yoo --- hw/arm/aspeed.c | 30 +++--- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index 526f3b651a9f..866a60cf7b4e

[PATCH 7/9] hw/arm/aspeed: firework: Add MAX31785 Fan controllers

2022-06-22 Thread Jae Hyun Yoo
From: Maheswara Kurapati Firework has two MAX31785 Fan controllers at 0x52, and 0x54. Include them in the model so that the Linux driver populates the sysfs interface. Signed-off-by: Maheswara Kurapati --- hw/arm/aspeed.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/arm/aspeed.c

[PATCH 1/9] hw/arm/aspeed: add support for the Qualcomm EVB proto board

2022-06-22 Thread Jae Hyun Yoo
Add qcom-evb-proto board support. Signed-off-by: Jae Hyun Yoo --- hw/arm/aspeed.c | 24 1 file changed, 24 insertions(+) diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index 98dc185acd9a..4f54721e5f1f 100644 --- a/hw/arm/aspeed.c +++ b/hw/arm/aspeed.c @@ -1420,6

[PATCH 2/9] hw/arm/aspeed: add support for the Qualcomm DC-SCM v1 board

2022-06-22 Thread Jae Hyun Yoo
Add qcom-dc-scm-v1 board support. Signed-off-by: Jae Hyun Yoo --- hw/arm/aspeed.c | 41 + 1 file changed, 41 insertions(+) diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index 4f54721e5f1f..785cc543d046 100644 --- a/hw/arm/aspeed.c +++ b/hw/arm/aspeed.c

[PATCH 5/9] hw/i2c: pmbus: Page #255 is valid page for read requests.

2022-06-22 Thread Jae Hyun Yoo
From: Maheswara Kurapati Current implementation of the pmbus core driver treats the read request for page 255 as invalid request and sets the invalid command bit (bit 7) in the STATUS_CML register. As per the PMBus specification it is a valid request. Refer to the PMBus specification, revision

[PATCH 4/9] hw/arm/aspeed: add Qualcomm Firework machine and FRU device

2022-06-22 Thread Jae Hyun Yoo
From: Graeme Gregory Add base for Qualcomm Firework machine and add its FRU device which is defined by DC-SCM to be fixed address 0x50. Signed-off-by: Graeme Gregory --- hw/arm/aspeed.c | 53 + 1 file changed, 53 insertions(+) diff --git

Re: [RFC PATCH v2 0/6] hw/i2c: i2c slave mode support

2022-06-02 Thread Jae Hyun Yoo
Hi Klaus, On 6/2/2022 6:50 AM, Cédric Le Goater wrote: On 6/2/22 10:21, Klaus Jensen wrote: On Jun  2 09:52, Cédric Le Goater wrote: On 6/1/22 23:08, Klaus Jensen wrote: From: Klaus Jensen Hi all, This RFC series adds I2C "slave mode" support for the Aspeed I2C I think you can remove

[PATCH] hw/arm/aspeed: fix AST2500/AST2600 EVB fmc model

2022-04-02 Thread Jae Hyun Yoo
Current fmc model of AST2500 EVB and AST2600 EVB can't emulate quad mode properly so fix them using equivalent mx25l25635e and mx66u51235f respectively. These default settings still can be overridden using the 'fmc-model' command line option. Reported-by: Graeme Gregory Signed-off-by: Jae Hyun

Re: [PATCH 5/5] aspeed/i2c: Add trace events

2019-10-16 Thread Jae Hyun Yoo
On 10/16/2019 1:50 AM, Cédric Le Goater wrote: Signed-off-by: Cédric Le Goater Tested-by: Jae Hyun Yoo Thanks for the implementation! -Jae

Re: [PATCH 4/5] aspeed/i2c: Add support for DMA transfers

2019-10-16 Thread Jae Hyun Yoo
should not exceed 4K. The receive or transmit DMA transfer can then be initiated with specific bits in the Command/Status register of the controller. Signed-off-by: Cédric Le Goater Tested-by: Jae Hyun Yoo

Re: [PATCH 2/5] aspeed/i2c: Check SRAM enablement on A2500

2019-10-16 Thread Jae Hyun Yoo
On 10/16/2019 1:50 AM, Cédric Le Goater wrote: The SRAM must be enabled before using the Buffer Pool mode or the DMA mode. This is not required on other SoCs. Signed-off-by: Cédric Le Goater Tested-by: Jae Hyun Yoo

Re: [PATCH 1/5] aspeed/i2c: Add support for pool buffer transfers

2019-10-16 Thread Jae Hyun Yoo
Hyun Yoo

Re: [PATCH 3/5] aspeed: Add a DRAM memory region at the SoC level

2019-10-16 Thread Jae Hyun Yoo
-by: Cédric Le Goater Tested-by: Jae Hyun Yoo