From: "Cédric Le Goater" <clg@kaod.org>
To: Jae Hyun Yoo <quic_jaehyoo@quicinc.com>,
Peter Maydell <peter.maydell@linaro.org>,
Titus Rwantare <titusr@google.com>,
Andrew Jeffery <andrew@aj.id.au>, Joel Stanley <joel@jms.id.au>,
Patrick Venture <venture@google.com>,
Hao Wu <wuhaotsh@google.com>
Cc: Graeme Gregory <quic_ggregory@quicinc.com>,
Maheswara Kurapati <quic_mkurapat@quicinc.com>,
<qemu-arm@nongnu.org>, <qemu-devel@nongnu.org>
Subject: Re: [PATCH v2 7/7] hw/arm/aspeed: firework: add I2C MUXes for VR channels
Date: Mon, 27 Jun 2022 18:03:36 +0200 [thread overview]
Message-ID: <f1248260-b12c-e43f-906c-b4f5f38732d1@kaod.org> (raw)
In-Reply-To: <20220627154703.148943-8-quic_jaehyoo@quicinc.com>
On 6/27/22 17:47, Jae Hyun Yoo wrote:
> Add 2-level cascaded I2C MUXes for SOC VR channels into the Firework
> machine.
>
> Signed-off-by: Jae Hyun Yoo <quic_jaehyoo@quicinc.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Thanks,
C.
> ---
> 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 100644
> --- a/hw/arm/aspeed.c
> +++ b/hw/arm/aspeed.c
> @@ -1002,13 +1002,21 @@ static void qcom_dc_scm_bmc_i2c_init(AspeedMachineState *bmc)
> static void qcom_dc_scm_firework_i2c_init(AspeedMachineState *bmc)
> {
> AspeedSoCState *soc = &bmc->soc;
> - I2CSlave *therm_mux;
> + I2CSlave *therm_mux, *cpuvr_mux;
>
> /* Create the generic DC-SCM hardware */
> qcom_dc_scm_bmc_i2c_init(bmc);
>
> /* Now create the Firework specific hardware */
>
> + /* I2C7 CPUVR MUX */
> + cpuvr_mux = i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 7),
> + "pca9546", 0x70);
> + i2c_slave_create_simple(pca954x_i2c_get_bus(cpuvr_mux, 0), "pca9548", 0x72);
> + i2c_slave_create_simple(pca954x_i2c_get_bus(cpuvr_mux, 1), "pca9548", 0x72);
> + i2c_slave_create_simple(pca954x_i2c_get_bus(cpuvr_mux, 2), "pca9548", 0x72);
> + i2c_slave_create_simple(pca954x_i2c_get_bus(cpuvr_mux, 3), "pca9548", 0x72);
> +
> /* I2C8 Thermal Diodes*/
> therm_mux = i2c_slave_create_simple(aspeed_i2c_get_bus(&soc->i2c, 8),
> "pca9548", 0x70);
next prev parent reply other threads:[~2022-06-27 16:28 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-27 15:46 [PATCH v2 0/7] Add Qualcomm BMC machines Jae Hyun Yoo
2022-06-27 15:46 ` [PATCH v2 1/7] hw/arm/aspeed: add support for the Qualcomm DC-SCM v1 board Jae Hyun Yoo
2022-06-27 15:56 ` Cédric Le Goater
2022-06-27 15:46 ` [PATCH v2 2/7] hw/arm/aspeed: add Qualcomm Firework BMC machine Jae Hyun Yoo
2022-06-27 16:00 ` Cédric Le Goater
2022-06-27 15:46 ` [PATCH v2 3/7] hw/i2c: pmbus: Page #255 is valid page for read requests Jae Hyun Yoo
2022-06-27 16:01 ` Cédric Le Goater
2022-06-27 15:47 ` [PATCH v2 4/7] hw/sensor: add Maxim MAX31785 device Jae Hyun Yoo
2022-06-27 16:01 ` Cédric Le Goater
2022-06-27 15:47 ` [PATCH v2 5/7] hw/arm/aspeed: Add MAX31785 Fan controllers Jae Hyun Yoo
2022-06-27 16:03 ` Cédric Le Goater
2022-06-27 15:47 ` [PATCH v2 6/7] hw/arm/aspeed: firework: Add Thermal Diodes Jae Hyun Yoo
2022-06-27 16:03 ` Cédric Le Goater
2022-06-27 15:47 ` [PATCH v2 7/7] hw/arm/aspeed: firework: add I2C MUXes for VR channels Jae Hyun Yoo
2022-06-27 16:03 ` Cédric Le Goater [this message]
2022-06-27 16:33 ` [PATCH v2 0/7] Add Qualcomm BMC machines Cédric Le Goater
2022-06-27 16:50 ` Titus Rwantare
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f1248260-b12c-e43f-906c-b4f5f38732d1@kaod.org \
--to=clg@kaod.org \
--cc=andrew@aj.id.au \
--cc=joel@jms.id.au \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=quic_ggregory@quicinc.com \
--cc=quic_jaehyoo@quicinc.com \
--cc=quic_mkurapat@quicinc.com \
--cc=titusr@google.com \
--cc=venture@google.com \
--cc=wuhaotsh@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).