[PATCH v2 1/4] ARM: dts: aspeed: bletchley: Sort i2c device nodes by address
Cosmo Chou <[email protected]> Wed, 29 Jul 2026 19:43:09 +0800
| Newsgroups | org.ozlabs.lists.linux-aspeed,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Reorder child nodes in i2c0-i2c6 to follow ascending unit address ordering as required by scripts/dtc/dt-check-style. No functional changes. Signed-off-by: Cosmo Chou <[email protected]> --- .../aspeed/aspeed-bmc-facebook-bletchley.dts | 430 +++++++++--------- 1 file changed, 218 insertions(+), 212 deletions(-) diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-bletchley.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-bletchley.dts index d1a04b63df9e..b022bdd02c1e 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-bletchley.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-bletchley.dts @@ -343,10 +343,25 @@ flash@0 { &i2c0 { status = "okay"; - ina230@45 { - compatible = "ti,ina230"; - reg = <0x45>; - shunt-resistor = <2000>; + + sled1_fusb302: typec-portc@22 { + compatible = "fcs,fusb302"; + reg = <0x22>; + + interrupt-parent = <&gpio0>; + interrupts = <ASPEED_GPIO(B, 0) IRQ_TYPE_LEVEL_LOW>; + vbus-supply = <&vbus_sled1>; + + connector { + compatible = "usb-c-connector"; + label = "USB-C"; + pd-revision = /bits/ 8 <0x2 0x0 0x1 0x20>; + power-role = "dual"; + data-role = "dual"; + source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>; + sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>; + op-sink-microwatt = <10000000>; + }; }; mp5023@40 { @@ -354,11 +369,6 @@ mp5023@40 { reg = <0x40>; }; - tmp421@4f { - compatible = "ti,tmp421"; - reg = <0x4f>; - }; - sled1_ioexp41: pca9536@41 { compatible = "nxp,pca9536"; reg = <0x41>; @@ -370,20 +380,20 @@ sled1_ioexp41: pca9536@41 { "SLED1_CLKREQ_N", "SLED1_PCIE_PWR_EN"; }; - sled1_ioexp: pca9539@76 { - compatible = "nxp,pca9539"; - reg = <0x76>; - gpio-controller; - #gpio-cells = <2>; + ina230@45 { + compatible = "ti,ina230"; + reg = <0x45>; + shunt-resistor = <2000>; + }; - interrupt-parent = <&gpio0>; - interrupts = <ASPEED_GPIO(M, 0) IRQ_TYPE_LEVEL_LOW>; + tmp421@4f { + compatible = "ti,tmp421"; + reg = <0x4f>; + }; - gpio-line-names = - "SLED1_MS_DETECT1","SLED1_VBUS_BMC_EN","SLED1_INA230_ALERT","SLED1_P12V_STBY_ALERT", - "SLED1_SSD_ALERT","SLED1_MS_DETECT0","SLED1_RST_CCG5","SLED1_FUSB302_INT", - "SLED1_MD_STBY_RESET","SLED1_MD_IOEXP_EN_FAULT","SLED1_MD_DIR","SLED1_MD_DECAY", - "SLED1_MD_MODE1","SLED1_MD_MODE2","SLED1_MD_MODE3","power-host1"; + eeprom@54 { + compatible = "atmel,24c64"; + reg = <0x54>; }; sled1_leds: pca9552@67 { @@ -401,13 +411,33 @@ sled1_leds: pca9552@67 { "","","",""; }; - sled1_fusb302: typec-portc@22 { + sled1_ioexp: pca9539@76 { + compatible = "nxp,pca9539"; + reg = <0x76>; + gpio-controller; + #gpio-cells = <2>; + + interrupt-parent = <&gpio0>; + interrupts = <ASPEED_GPIO(M, 0) IRQ_TYPE_LEVEL_LOW>; + + gpio-line-names = + "SLED1_MS_DETECT1","SLED1_VBUS_BMC_EN","SLED1_INA230_ALERT","SLED1_P12V_STBY_ALERT", + "SLED1_SSD_ALERT","SLED1_MS_DETECT0","SLED1_RST_CCG5","SLED1_FUSB302_INT", + "SLED1_MD_STBY_RESET","SLED1_MD_IOEXP_EN_FAULT","SLED1_MD_DIR","SLED1_MD_DECAY", + "SLED1_MD_MODE1","SLED1_MD_MODE2","SLED1_MD_MODE3","power-host1"; + }; +}; + +&i2c1 { + status = "okay"; + + sled2_fusb302: typec-portc@22 { compatible = "fcs,fusb302"; reg = <0x22>; interrupt-parent = <&gpio0>; - interrupts = <ASPEED_GPIO(B, 0) IRQ_TYPE_LEVEL_LOW>; - vbus-supply = <&vbus_sled1>; + interrupts = <ASPEED_GPIO(B, 1) IRQ_TYPE_LEVEL_LOW>; + vbus-supply = <&vbus_sled2>; connector { compatible = "usb-c-connector"; @@ -421,39 +451,51 @@ connector { }; }; - eeprom@54 { - compatible = "atmel,24c64"; - reg = <0x54>; + mp5023@40 { + compatible = "mps,mp5023"; + reg = <0x40>; + }; + + sled2_ioexp41: pca9536@41 { + compatible = "nxp,pca9536"; + reg = <0x41>; + gpio-controller; + #gpio-cells = <2>; + + gpio-line-names = + "SLED2_SWD_MUX", "SLED2_XRES_SWD_N", + "SLED2_CLKREQ_N", "SLED2_PCIE_PWR_EN"; }; -}; -&i2c1 { - status = "okay"; ina230@45 { compatible = "ti,ina230"; reg = <0x45>; shunt-resistor = <2000>; }; - mp5023@40 { - compatible = "mps,mp5023"; - reg = <0x40>; - }; - tmp421@4f { compatible = "ti,tmp421"; reg = <0x4f>; }; - sled2_ioexp41: pca9536@41 { - compatible = "nxp,pca9536"; - reg = <0x41>; + eeprom@54 { + compatible = "atmel,24c64"; + reg = <0x54>; + }; + + sled2_leds: pca9552@67 { + compatible = "nxp,pca9552"; + reg = <0x67>; + #address-cells = <1>; + #size-cells = <0>; gpio-controller; #gpio-cells = <2>; gpio-line-names = - "SLED2_SWD_MUX", "SLED2_XRES_SWD_N", - "SLED2_CLKREQ_N", "SLED2_PCIE_PWR_EN"; + "led-sled2-amber","led-sled2-blue","SLED2_RST_IOEXP","SLED2_MD_REF_PWM", + "","","","", + "","","","", + "","","",""; }; sled2_ioexp: pca9539@76 { @@ -471,29 +513,18 @@ sled2_ioexp: pca9539@76 { "SLED2_MD_STBY_RESET","SLED2_MD_IOEXP_EN_FAULT","SLED2_MD_DIR","SLED2_MD_DECAY", "SLED2_MD_MODE1","SLED2_MD_MODE2","SLED2_MD_MODE3","power-host2"; }; +}; - sled2_leds: pca9552@67 { - compatible = "nxp,pca9552"; - reg = <0x67>; - #address-cells = <1>; - #size-cells = <0>; - gpio-controller; - #gpio-cells = <2>; - - gpio-line-names = - "led-sled2-amber","led-sled2-blue","SLED2_RST_IOEXP","SLED2_MD_REF_PWM", - "","","","", - "","","","", - "","","",""; - }; +&i2c2 { + status = "okay"; - sled2_fusb302: typec-portc@22 { + sled3_fusb302: typec-portc@22 { compatible = "fcs,fusb302"; reg = <0x22>; interrupt-parent = <&gpio0>; - interrupts = <ASPEED_GPIO(B, 1) IRQ_TYPE_LEVEL_LOW>; - vbus-supply = <&vbus_sled2>; + interrupts = <ASPEED_GPIO(B, 7) IRQ_TYPE_LEVEL_LOW>; + vbus-supply = <&vbus_sled3>; connector { compatible = "usb-c-connector"; @@ -507,39 +538,51 @@ connector { }; }; - eeprom@54 { - compatible = "atmel,24c64"; - reg = <0x54>; + mp5023@40 { + compatible = "mps,mp5023"; + reg = <0x40>; + }; + + sled3_ioexp41: pca9536@41 { + compatible = "nxp,pca9536"; + reg = <0x41>; + gpio-controller; + #gpio-cells = <2>; + + gpio-line-names = + "SLED3_SWD_MUX", "SLED3_XRES_SWD_N", + "SLED3_CLKREQ_N", "SLED3_PCIE_PWR_EN"; }; -}; -&i2c2 { - status = "okay"; ina230@45 { compatible = "ti,ina230"; reg = <0x45>; shunt-resistor = <2000>; }; - mp5023@40 { - compatible = "mps,mp5023"; - reg = <0x40>; - }; - tmp421@4f { compatible = "ti,tmp421"; reg = <0x4f>; }; - sled3_ioexp41: pca9536@41 { - compatible = "nxp,pca9536"; - reg = <0x41>; + eeprom@54 { + compatible = "atmel,24c64"; + reg = <0x54>; + }; + + sled3_leds: pca9552@67 { + compatible = "nxp,pca9552"; + reg = <0x67>; + #address-cells = <1>; + #size-cells = <0>; gpio-controller; #gpio-cells = <2>; gpio-line-names = - "SLED3_SWD_MUX", "SLED3_XRES_SWD_N", - "SLED3_CLKREQ_N", "SLED3_PCIE_PWR_EN"; + "led-sled3-amber","led-sled3-blue","SLED3_RST_IOEXP","SLED3_MD_REF_PWM", + "","","","", + "","","","", + "","","",""; }; sled3_ioexp: pca9539@76 { @@ -557,29 +600,18 @@ sled3_ioexp: pca9539@76 { "SLED3_MD_STBY_RESET","SLED3_MD_IOEXP_EN_FAULT","SLED3_MD_DIR","SLED3_MD_DECAY", "SLED3_MD_MODE1","SLED3_MD_MODE2","SLED3_MD_MODE3","power-host3"; }; +}; - sled3_leds: pca9552@67 { - compatible = "nxp,pca9552"; - reg = <0x67>; - #address-cells = <1>; - #size-cells = <0>; - gpio-controller; - #gpio-cells = <2>; - - gpio-line-names = - "led-sled3-amber","led-sled3-blue","SLED3_RST_IOEXP","SLED3_MD_REF_PWM", - "","","","", - "","","","", - "","","",""; - }; +&i2c3 { + status = "okay"; - sled3_fusb302: typec-portc@22 { + sled4_fusb302: typec-portc@22 { compatible = "fcs,fusb302"; reg = <0x22>; interrupt-parent = <&gpio0>; - interrupts = <ASPEED_GPIO(B, 7) IRQ_TYPE_LEVEL_LOW>; - vbus-supply = <&vbus_sled3>; + interrupts = <ASPEED_GPIO(S, 7) IRQ_TYPE_LEVEL_LOW>; + vbus-supply = <&vbus_sled4>; connector { compatible = "usb-c-connector"; @@ -593,39 +625,51 @@ connector { }; }; - eeprom@54 { - compatible = "atmel,24c64"; - reg = <0x54>; + mp5023@40 { + compatible = "mps,mp5023"; + reg = <0x40>; + }; + + sled4_ioexp41: pca9536@41 { + compatible = "nxp,pca9536"; + reg = <0x41>; + gpio-controller; + #gpio-cells = <2>; + + gpio-line-names = + "SLED4_SWD_MUX", "SLED4_XRES_SWD_N", + "SLED4_CLKREQ_N", "SLED4_PCIE_PWR_EN"; }; -}; -&i2c3 { - status = "okay"; ina230@45 { compatible = "ti,ina230"; reg = <0x45>; shunt-resistor = <2000>; }; - mp5023@40 { - compatible = "mps,mp5023"; - reg = <0x40>; - }; - tmp421@4f { compatible = "ti,tmp421"; reg = <0x4f>; }; - sled4_ioexp41: pca9536@41 { - compatible = "nxp,pca9536"; - reg = <0x41>; + eeprom@54 { + compatible = "atmel,24c64"; + reg = <0x54>; + }; + + sled4_leds: pca9552@67 { + compatible = "nxp,pca9552"; + reg = <0x67>; + #address-cells = <1>; + #size-cells = <0>; gpio-controller; #gpio-cells = <2>; gpio-line-names = - "SLED4_SWD_MUX", "SLED4_XRES_SWD_N", - "SLED4_CLKREQ_N", "SLED4_PCIE_PWR_EN"; + "led-sled4-amber","led-sled4-blue","SLED4_RST_IOEXP","SLED4_MD_REF_PWM", + "","","","", + "","","","", + "","","",""; }; sled4_ioexp: pca9539@76 { @@ -643,29 +687,18 @@ sled4_ioexp: pca9539@76 { "SLED4_MD_STBY_RESET","SLED4_MD_IOEXP_EN_FAULT","SLED4_MD_DIR","SLED4_MD_DECAY", "SLED4_MD_MODE1","SLED4_MD_MODE2","SLED4_MD_MODE3","power-host4"; }; +}; - sled4_leds: pca9552@67 { - compatible = "nxp,pca9552"; - reg = <0x67>; - #address-cells = <1>; - #size-cells = <0>; - gpio-controller; - #gpio-cells = <2>; - - gpio-line-names = - "led-sled4-amber","led-sled4-blue","SLED4_RST_IOEXP","SLED4_MD_REF_PWM", - "","","","", - "","","","", - "","","",""; - }; +&i2c4 { + status = "okay"; - sled4_fusb302: typec-portc@22 { + sled5_fusb302: typec-portc@22 { compatible = "fcs,fusb302"; reg = <0x22>; interrupt-parent = <&gpio0>; - interrupts = <ASPEED_GPIO(S, 7) IRQ_TYPE_LEVEL_LOW>; - vbus-supply = <&vbus_sled4>; + interrupts = <ASPEED_GPIO(Y, 3) IRQ_TYPE_LEVEL_LOW>; + vbus-supply = <&vbus_sled5>; connector { compatible = "usb-c-connector"; @@ -679,39 +712,51 @@ connector { }; }; - eeprom@54 { - compatible = "atmel,24c64"; - reg = <0x54>; + mp5023@40 { + compatible = "mps,mp5023"; + reg = <0x40>; + }; + + sled5_ioexp41: pca9536@41 { + compatible = "nxp,pca9536"; + reg = <0x41>; + gpio-controller; + #gpio-cells = <2>; + + gpio-line-names = + "SLED5_SWD_MUX", "SLED5_XRES_SWD_N", + "SLED5_CLKREQ_N", "SLED5_PCIE_PWR_EN"; }; -}; -&i2c4 { - status = "okay"; ina230@45 { compatible = "ti,ina230"; reg = <0x45>; shunt-resistor = <2000>; }; - mp5023@40 { - compatible = "mps,mp5023"; - reg = <0x40>; - }; - tmp421@4f { compatible = "ti,tmp421"; reg = <0x4f>; }; - sled5_ioexp41: pca9536@41 { - compatible = "nxp,pca9536"; - reg = <0x41>; + eeprom@54 { + compatible = "atmel,24c64"; + reg = <0x54>; + }; + + sled5_leds: pca9552@67 { + compatible = "nxp,pca9552"; + reg = <0x67>; + #address-cells = <1>; + #size-cells = <0>; gpio-controller; #gpio-cells = <2>; gpio-line-names = - "SLED5_SWD_MUX", "SLED5_XRES_SWD_N", - "SLED5_CLKREQ_N", "SLED5_PCIE_PWR_EN"; + "led-sled5-amber","led-sled5-blue","SLED5_RST_IOEXP","SLED5_MD_REF_PWM", + "","","","", + "","","","", + "","","",""; }; sled5_ioexp: pca9539@76 { @@ -729,29 +774,18 @@ sled5_ioexp: pca9539@76 { "SLED5_MD_STBY_RESET","SLED5_MD_IOEXP_EN_FAULT","SLED5_MD_DIR","SLED5_MD_DECAY", "SLED5_MD_MODE1","SLED5_MD_MODE2","SLED5_MD_MODE3","power-host5"; }; +}; - sled5_leds: pca9552@67 { - compatible = "nxp,pca9552"; - reg = <0x67>; - #address-cells = <1>; - #size-cells = <0>; - gpio-controller; - #gpio-cells = <2>; - - gpio-line-names = - "led-sled5-amber","led-sled5-blue","SLED5_RST_IOEXP","SLED5_MD_REF_PWM", - "","","","", - "","","","", - "","","",""; - }; +&i2c5 { + status = "okay"; - sled5_fusb302: typec-portc@22 { + sled6_fusb302: typec-portc@22 { compatible = "fcs,fusb302"; reg = <0x22>; interrupt-parent = <&gpio0>; - interrupts = <ASPEED_GPIO(Y, 3) IRQ_TYPE_LEVEL_LOW>; - vbus-supply = <&vbus_sled5>; + interrupts = <ASPEED_GPIO(I, 7) IRQ_TYPE_LEVEL_LOW>; + vbus-supply = <&vbus_sled6>; connector { compatible = "usb-c-connector"; @@ -765,30 +799,11 @@ connector { }; }; - eeprom@54 { - compatible = "atmel,24c64"; - reg = <0x54>; - }; -}; - -&i2c5 { - status = "okay"; - ina230@45 { - compatible = "ti,ina230"; - reg = <0x45>; - shunt-resistor = <2000>; - }; - mp5023@40 { compatible = "mps,mp5023"; reg = <0x40>; }; - tmp421@4f { - compatible = "ti,tmp421"; - reg = <0x4f>; - }; - sled6_ioexp41: pca9536@41 { compatible = "nxp,pca9536"; reg = <0x41>; @@ -800,20 +815,20 @@ sled6_ioexp41: pca9536@41 { "SLED6_CLKREQ_N", "SLED6_PCIE_PWR_EN"; }; - sled6_ioexp: pca9539@76 { - compatible = "nxp,pca9539"; - reg = <0x76>; - gpio-controller; - #gpio-cells = <2>; + ina230@45 { + compatible = "ti,ina230"; + reg = <0x45>; + shunt-resistor = <2000>; + }; - interrupt-parent = <&gpio0>; - interrupts = <ASPEED_GPIO(M, 5) IRQ_TYPE_LEVEL_LOW>; + tmp421@4f { + compatible = "ti,tmp421"; + reg = <0x4f>; + }; - gpio-line-names = - "SLED6_MS_DETECT1","SLED6_VBUS_BMC_EN","SLED6_INA230_ALERT","SLED6_P12V_STBY_ALERT", - "SLED6_SSD_ALERT","SLED6_MS_DETECT0","SLED6_RST_CCG5","SLED6_FUSB302_INT", - "SLED6_MD_STBY_RESET","SLED6_MD_IOEXP_EN_FAULT","SLED6_MD_DIR","SLED6_MD_DECAY", - "SLED6_MD_MODE1","SLED6_MD_MODE2","SLED6_MD_MODE3","power-host6"; + eeprom@54 { + compatible = "atmel,24c64"; + reg = <0x54>; }; sled6_leds: pca9552@67 { @@ -831,45 +846,36 @@ sled6_leds: pca9552@67 { "","","",""; }; - sled6_fusb302: typec-portc@22 { - compatible = "fcs,fusb302"; - reg = <0x22>; + sled6_ioexp: pca9539@76 { + compatible = "nxp,pca9539"; + reg = <0x76>; + gpio-controller; + #gpio-cells = <2>; interrupt-parent = <&gpio0>; - interrupts = <ASPEED_GPIO(I, 7) IRQ_TYPE_LEVEL_LOW>; - vbus-supply = <&vbus_sled6>; - - connector { - compatible = "usb-c-connector"; - label = "USB-C"; - pd-revision = /bits/ 8 <0x2 0x0 0x1 0x20>; - power-role = "dual"; - data-role = "dual"; - source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>; - sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>; - op-sink-microwatt = <10000000>; - }; - }; + interrupts = <ASPEED_GPIO(M, 5) IRQ_TYPE_LEVEL_LOW>; - eeprom@54 { - compatible = "atmel,24c64"; - reg = <0x54>; + gpio-line-names = + "SLED6_MS_DETECT1","SLED6_VBUS_BMC_EN","SLED6_INA230_ALERT","SLED6_P12V_STBY_ALERT", + "SLED6_SSD_ALERT","SLED6_MS_DETECT0","SLED6_RST_CCG5","SLED6_FUSB302_INT", + "SLED6_MD_STBY_RESET","SLED6_MD_IOEXP_EN_FAULT","SLED6_MD_DIR","SLED6_MD_DECAY", + "SLED6_MD_MODE1","SLED6_MD_MODE2","SLED6_MD_MODE3","power-host6"; }; }; &i2c6 { status = "okay"; - eeprom@56 { - compatible = "atmel,24c64"; - reg = <0x56>; - }; - rtc@51 { /* in-chip rtc disabled, use external rtc (battery-backed) */ compatible = "nxp,pcf85263"; reg = <0x51>; }; + + eeprom@56 { + compatible = "atmel,24c64"; + reg = <0x56>; + }; }; &i2c7 { -- 2.43.0