[PATCH 2/2] ARM: dts: aspeed: clemente: add Meta Clemente BMC
Andrew Jeffery
andrew at codeconstruct.com.au
Thu Jun 19 23:39:11 PDT 2025
Hi Leo,
On Wed, 2025-06-18 at 17:40 +0800, Leo Wang wrote:
> Add linux device tree entry for Meta Clemente compute-tray
> BMC using AST2600 SoC.
>
> Signed-off-by: Leo Wang <leo.jt.wang at fii-foxconn.com>
> ---
> arch/arm/boot/dts/aspeed/Makefile | 1 +
> .../dts/aspeed/aspeed-bmc-facebook-clemente.dts | 1254 ++++++++++++++++++++
> 2 files changed, 1255 insertions(+)
>
> diff --git a/arch/arm/boot/dts/aspeed/Makefile b/arch/arm/boot/dts/aspeed/Makefile
> index 2e5f4833a073b6c25190fd4b6e89a11f9636fc84..904503f78f960d7bc14cad7cb455bb8bb3138ccd 100644
> --- a/arch/arm/boot/dts/aspeed/Makefile
> +++ b/arch/arm/boot/dts/aspeed/Makefile
> @@ -19,6 +19,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
> aspeed-bmc-delta-ahe50dc.dtb \
> aspeed-bmc-facebook-bletchley.dtb \
> aspeed-bmc-facebook-catalina.dtb \
> + aspeed-bmc-facebook-clemente.dtb \
> aspeed-bmc-facebook-cmm.dtb \
> aspeed-bmc-facebook-elbert.dtb \
> aspeed-bmc-facebook-fuji.dtb \
> diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-clemente.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-clemente.dts
> new file mode 100644
> index 0000000000000000000000000000000000000000..ab5b37369d19a1e31fe74201fc5dc0011da2722f
> --- /dev/null
> +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-clemente.dts
> @@ -0,0 +1,1254 @@
>
*snip*
> + // Interposer
> + i2c-mux at 70 {
> + compatible = "nxp,pca9548";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0x70>;
> + i2c-mux-idle-disconnect;
> +
> + i2c1mux0ch0: i2c at 0 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0x0>;
> + };
> + i2c1mux0ch1: i2c at 1 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0x1>;
> + };
> + i2c1mux0ch2: i2c at 2 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0x2>;
> + };
> + i2c1mux0ch3: i2c at 3 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0x3>;
> + };
> + i2c1mux0ch4: i2c at 4 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0x4>;
> + };
> + i2c1mux0ch5: i2c at 5 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0x5>;
> +
> + // Interposer FRU EEPROM
> + eeprom at 54 {
> + compatible = "atmel,24c64";
> + reg = <0x54>;
> + };
> +
> + // Interposer TEMP SENSOR
> + temperature-sensor at 4f {
> + compatible = "ti,tmp75";
> + reg = <0x4f>;
> + };
The nodes up to here have been ordered nicely, but these two are
backwards :)
See:
https://docs.kernel.org/devicetree/bindings/dts-coding-style.html#order-of-nodes
> + };
> + i2c1mux0ch6: i2c at 6 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0x6>;
> +
> + // Interposer IOEXP
> + io_expander5: gpio at 27 {
> + compatible = "nxp,pca9554";
> + reg = <0x27>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + };
> + };
> + i2c1mux0ch7: i2c at 7 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <0x7>;
> +
> + // FIO FRU EEPROM
> + eeprom at 51 {
> + compatible = "atmel,24c64";
> + reg = <0x51>;
> + };
> +
> + // FIO TEMP SENSOR
> + temperature-sensor at 4b {
> + compatible = "ti,tmp75";
> + reg = <0x4b>;
> + };
Again here.
> + };
> + };
> +};
> +
> +&i2c2 {
> + status = "okay";
> + // Module 0, Expander @0x20
> + io_expander0: gpio at 20 {
> + compatible = "nxp,pca9555";
> + reg = <0x20>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + };
> +
> + // Module 1, Expander @0x21
> + io_expander1: gpio at 21 {
> + compatible = "nxp,pca9555";
> + reg = <0x21>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + };
> +
> + // HMC Expander @0x27
> + io_expander2: gpio at 27 {
> + compatible = "nxp,pca9555";
> + reg = <0x27>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + };
> +
> + // Module 0 Aux EEPROM
> + eeprom at 50 {
> + compatible = "atmel,24c64";
> + reg = <0x50>;
> + };
> +
> + // Module 1 Aux EEPROM
> + eeprom at 51 {
> + compatible = "atmel,24c64";
> + reg = <0x51>;
> + };
> +};
> +
> +&i2c3 {
> + status = "okay";
> +};
> +
> +&i2c4 {
> + status = "okay";
> +};
> +
> +&i2c5 {
> + status = "okay";
> +};
> +
> +&i2c6 {
> + status = "okay";
> + rtc at 6f {
> + compatible = "nuvoton,nct3018y";
> + reg = <0x6f>;
> + };
> +
> + io_expander3: gpio at 21 {
> + compatible = "nxp,pca9555";
> + reg = <0x21>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + };
Node ordering again.
> +};
> +
> +&i2c7 {
> + status = "okay";
> +};
> +
> +&i2c8 {
> + status = "okay";
> +};
> +
> +&i2c9 {
> + status = "okay";
> + // SCM CPLD IOEXP
> + io_expander4: gpio at 4f {
> + compatible = "nxp,pca9555";
> + reg = <0x4f>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + };
> +
> + // SCM TEMP SENSOR BOARD
> + temperature-sensor at 4b {
> + compatible = "national,lm75b";
> + reg = <0x4b>;
> + };
Node order
> +
> + // SCM FRU EEPROM
> + eeprom at 50 {
> + compatible = "atmel,24c64";
> + reg = <0x50>;
> + };
> +
> + // BSM FRU EEPROM
> + eeprom at 56 {
> + compatible = "atmel,24c64";
> + reg = <0x56>;
> + };
> +};
> +
> +&i2c10 {
> + status = "okay";
> + // OCP NIC0 TEMP
> + temperature-sensor at 1f {
> + compatible = "ti,tmp421";
> + reg = <0x1f>;
> + };
> +
> + // OCP NIC0 FRU EEPROM
> + eeprom at 50 {
> + compatible = "atmel,24c64";
> + reg = <0x50>;
> + };
> +};
> +
> +&i2c11 {
> + status = "okay";
> + ssif-bmc at 10 {
> + compatible = "ssif-bmc";
> + reg = <0x10>;
> + };
> +};
> +
> +&i2c12 {
> + status = "okay";
> + multi-master;
> +};
> +
> +&i2c13 {
> + status = "okay";
> + multi-master;
> +
> + // HPM FRU EEPROM
> + eeprom at 50 {
> + compatible = "atmel,24c64";
> + reg = <0x50>;
> + };
> + // CBC 0 FRU
> + eeprom at 54 {
> + compatible = "atmel,24c02";
> + reg = <0x54>;
> + };
> + // CBC 1 FRU
> + eeprom at 55 {
> + compatible = "atmel,24c02";
> + reg = <0x55>;
> + };
> + // CBC 2 FRU
> + eeprom at 56 {
> + compatible = "atmel,24c02";
> + reg = <0x56>;
> + };
> + // CBC 3 FRU
> + eeprom at 58 {
> + compatible = "atmel,24c02";
> + reg = <0x58>;
> + };
> + // HMC FRU EEPROM
> + eeprom at 57 {
> + compatible = "atmel,24c02";
> + reg = <0x57>;
> + };
Hah, here too.
> +};
> +
> +&i2c14 {
> + status = "okay";
> +
> + // PDB CPLD IOEXP 0x10
> + io_expander9: gpio at 10 {
> + compatible = "nxp,pca9555";
> + interrupt-parent = <&gpio0>;
> + interrupts = <ASPEED_GPIO(I, 6) IRQ_TYPE_LEVEL_LOW>;
> + reg = <0x10>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + };
> +
> + // PDB CPLD IOEXP 0x11
> + io_expander10: gpio at 11 {
> + compatible = "nxp,pca9555";
> + interrupt-parent = <&gpio0>;
> + interrupts = <ASPEED_GPIO(I, 6) IRQ_TYPE_LEVEL_LOW>;
> + reg = <0x11>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + };
> +
> + // PDB CPLD IOEXP 0x12
> + io_expander11: gpio at 12 {
> + compatible = "nxp,pca9555";
> + interrupt-parent = <&gpio0>;
> + interrupts = <ASPEED_GPIO(I, 6) IRQ_TYPE_LEVEL_LOW>;
> + reg = <0x12>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + };
> +
> + // PDB CPLD IOEXP 0x13
> + io_expander12: gpio at 13 {
> + compatible = "nxp,pca9555";
> + interrupt-parent = <&gpio0>;
> + interrupts = <ASPEED_GPIO(I, 6) IRQ_TYPE_LEVEL_LOW>;
> + reg = <0x13>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + };
> +
> + // PDB CPLD IOEXP 0x14
> + io_expander13: gpio at 14 {
> + compatible = "nxp,pca9555";
> + reg = <0x14>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + };
> +};
> +
> +&i2c15 {
> + status = "okay";
> +
> + // OCP NIC1 TEMP
> + temperature-sensor at 1f {
> + compatible = "ti,tmp421";
> + reg = <0x1f>;
> + };
> +
> + // OCP NIC1 FRU EEPROM
> + eeprom at 52 {
> + compatible = "atmel,24c64";
> + reg = <0x52>;
> + };
> +};
> +
Can you order these top-level references alphabetically as per the dts
coding style (e.g. the i2c nodes above should be ordered (well) after
the adc nodes below)?
> +&adc0 {
> + vref-supply = <&p1v8_bmc_aux>;
> + status = "okay";
> +
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_adc0_default &pinctrl_adc1_default
> + &pinctrl_adc2_default &pinctrl_adc3_default
> + &pinctrl_adc4_default &pinctrl_adc5_default
> + &pinctrl_adc6_default &pinctrl_adc7_default>;
> +};
> +
*snip*
Andrew
More information about the linux-arm-kernel
mailing list