Add i2c-mux and eeprom devices for Meta Yosemite 4
Subsystems (2)
v3 cover Add i2c-mux and eeprom devices for Meta Yosemite 4
Changelog:
- v3
- Correct patch for revising gpio name
- v2
- Revise mx31790 fan tach config
- Add mctp config for NIC
- Support mux to cpld
- Revise gpio name
- v1
- Add gpio and eeprom behind i2c-mux
- Remove redundant idle-state setting for i2c-mux
- Enable adc 15, wdt2,spi gpio for yosemite4 use
- Revise quad mode to dual mode to avoid WP pin influnece the SPI
- Revise power sensor adm1281 for yosemite4 schematic change
- Add gpio pca9506 I/O expander for yosemite4 use
- remove space for adm1272 compatible
- enable interrupt setting for pca9555
- add eeprom for yosemite4 medusa board/BSM use
- remove temperature sensor for yosemite4 schematic change
- add power sensor for power module reading
- Revise adc128d818 adc mode for yosemite4 schematic change
- Revise ina233 for yosemite4 schematic change
- Remove idle state setting for yosemite4 NIC connection
- Initialize bmc gpio state
- Revise mx31790 fan tach config
- Add mctp config for NIC
- Support mux to cpld
- Revise gpio name
Delphine CC Chiu (14):
ARM: dts: aspeed: yosemite4: Revise i2c-mux devices
ARM: dts: aspeed: yosemite4: Enable adc15
ARM: dts: aspeed: yosemite4: Enable spi-gpio setting
ARM: dts: aspeed: yosemite4: Enable watchdog2
ARM: dts: aspeed: yosemite4: Revise quad mode to dual mode
ARM: dts: aspeed: yosemite4: Revise power sensor adm1281 for schematic
change
ARM: dts: aspeed: yosemite4: Add gpio pca9506
ARM: dts: aspeed: yosemite4: Revise i2c11 and i2c12 schematic change
ARM: dts: aspeed: yosemite4: Revise i2c14 and i2c15 schematic change
ARM: dts: aspeed: yosemite4: Initialize bmc gpio state
ARM: dts: aspeed: yosemite4: Revise mx31790 fan tach config
ARM: dts: aspeed: yosemite4: add mctp config for NIC
ARM: dts: aspeed: yosemite4: support mux to cpld
ARM: dts: aspeed: yosemite4: Revise gpio name
.../aspeed/aspeed-bmc-facebook-yosemite4.dts | 1215 +++++++++++++++-- 1 file changed, 1091 insertions(+), 124 deletions(-)
Signature · 1 line
2.25.1
PATCH v3 1/14 ARM: dts: aspeed: yosemite4: Revise i2c-mux devices
Revise Yosemite 4 devicetree for devices behind i2c-mux
- Add gpio and eeprom behind i2c-mux
- Remove redundant idle-state setting for i2c-mux
--- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 381 ++++++++++++++++-- 1 file changed, 347 insertions(+), 34 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +347 -34
@@ -17,6 +17,25 @@ aliases { serial6 = &uart7; serial7 = &uart8; serial8 = &uart9; + + i2c16 = &imux16; + i2c17 = &imux17; + i2c18 = &imux18; + i2c19 = &imux19; + i2c20 = &imux20; + i2c21 = &imux21; + i2c22 = &imux22; + i2c23 = &imux23; + i2c24 = &imux24; + i2c25 = &imux25; + i2c26 = &imux26; + i2c27 = &imux27; + i2c28 = &imux28; + i2c29 = &imux29; + i2c30 = &imux30; + i2c31 = &imux31; + i2c32 = &imux32; + i2c33 = &imux33; }; chosen {
@@ -259,9 +278,109 @@ &i2c8 { bus-frequency = <400000>; i2c-mux at 70 { compatible = "nxp,pca9544"; - idle-state = <0>; i2c-mux-idle-disconnect; reg = <0x70>; + + imux16: i2c at 0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + gpio at 49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + }; + + eeprom at 50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom at 51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom at 54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux17: i2c at 1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + gpio at 49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + }; + + eeprom at 50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom at 51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom at 54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux18: i2c at 2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + gpio at 49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + }; + + eeprom at 50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom at 51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom at 54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux19: i2c at 3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + gpio at 49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + }; + + eeprom at 50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom at 51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom at 54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; }; };
@@ -270,15 +389,174 @@ &i2c9 { bus-frequency = <400000>; i2c-mux at 71 { compatible = "nxp,pca9544"; - idle-state = <0>; i2c-mux-idle-disconnect; reg = <0x71>; + + imux20: i2c at 0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + gpio at 49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + }; + + eeprom at 50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom at 51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom at 54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux21: i2c at 1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + gpio at 49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + }; + + eeprom at 50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom at 51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom at 54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux22: i2c at 2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + gpio at 49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + }; + + eeprom at 50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom at 51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom at 54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux23: i2c at 3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + + gpio at 49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + }; + + eeprom at 50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom at 51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom at 54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; }; }; &i2c10 { status = "okay"; bus-frequency = <400000>; + i2c-mux at 74 { + compatible = "nxp,pca9544"; + i2c-mux-idle-disconnect; + reg = <0x74>; + + imux28: i2c at 0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + gpio at 20 { + compatible = "nxp,pca9506"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 21 { + compatible = "nxp,pca9506"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 22 { + compatible = "nxp,pca9506"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 23 { + compatible = "nxp,pca9506"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 24 { + compatible = "nxp,pca9506"; + reg = <0x24>; + gpio-controller; + #gpio-cells = <2>; + gpio-line-names = + "","","","", + "NIC0_MAIN_PWR_EN","NIC1_MAIN_PWR_EN", + "NIC2_MAIN_PWR_EN","NIC3_MAIN_PWR_EN", + "","","","","","","","", + "","","","","","","","", + "","","","","","","",""; + }; + }; + + imux29: i2c at 1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + }; }; &i2c11 {
@@ -433,16 +711,14 @@ eeprom at 51 { reg = <0x51>; }; - i2c-mux at 71 { - compatible = "nxp,pca9846"; + i2c-mux at 74 { + compatible = "nxp,pca9546"; #address-cells = <1>; #size-cells = <0>; - - idle-state = <0>; i2c-mux-idle-disconnect; - reg = <0x71>; + reg = <0x74>; - i2c at 0 { + imux30: i2c at 0 { #address-cells = <1>; #size-cells = <0>; reg = <0>;
@@ -450,26 +726,26 @@ i2c at 0 { adc at 1f { compatible = "ti,adc128d818"; reg = <0x1f>; - ti,mode = /bits/ 8 <2>; + ti,mode = /bits/ 8 <1>; }; pwm at 20{ - compatible = "max31790"; + compatible = "maxim,max31790"; + pwm-as-tach = <4 5>; reg = <0x20>; - #address-cells = <1>; - #size-cells = <0>; }; gpio at 22{ compatible = "ti,tca6424"; reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; }; - pwm at 23{ - compatible = "max31790"; - reg = <0x23>; - #address-cells = <1>; - #size-cells = <0>; + pwm at 2f{ + compatible = "maxim,max31790"; + pwm-as-tach = <4 5>; + reg = <0x2f>; }; adc at 33 {
@@ -492,34 +768,34 @@ gpio at 61 { }; }; - i2c at 1 { + imux31: i2c at 1 { #address-cells = <1>; #size-cells = <0>; - reg = <0>; + reg = <1>; adc at 1f { compatible = "ti,adc128d818"; reg = <0x1f>; - ti,mode = /bits/ 8 <2>; + ti,mode = /bits/ 8 <1>; }; pwm at 20{ - compatible = "max31790"; + compatible = "maxim,max31790"; + pwm-as-tach = <4 5>; reg = <0x20>; - #address-cells = <1>; - #size-cells = <0>; }; gpio at 22{ compatible = "ti,tca6424"; reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; }; - pwm at 23{ - compatible = "max31790"; - reg = <0x23>; - #address-cells = <1>; - #size-cells = <0>; + pwm at 2f{ + compatible = "maxim,max31790"; + pwm-as-tach = <4 5>; + reg = <0x2f>; }; adc at 33 {
@@ -547,12 +823,10 @@ i2c-mux at 73 { compatible = "nxp,pca9544"; #address-cells = <1>; #size-cells = <0>; - - idle-state = <0>; i2c-mux-idle-disconnect; reg = <0x73>; - i2c at 0 { + imux32: i2c at 0 { #address-cells = <1>; #size-cells = <0>; reg = <0>;
@@ -563,10 +837,10 @@ adc at 35 { }; }; - i2c at 1 { + imux33: i2c at 1 { #address-cells = <1>; #size-cells = <0>; - reg = <0>; + reg = <1>; adc at 35 { compatible = "maxim,max11617";
@@ -589,9 +863,48 @@ mctp at 10 { i2c-mux at 72 { compatible = "nxp,pca9544"; - idle-state = <0>; i2c-mux-idle-disconnect; reg = <0x72>; + + imux24: i2c at 0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + temperature-sensor at 1f { + compatible = "ti,tmp421"; + reg = <0x1f>; + }; + }; + + imux25: i2c at 1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + temperature-sensor at 1f { + compatible = "ti,tmp421"; + reg = <0x1f>; + }; + }; + + imux26: i2c at 2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + temperature-sensor at 1f { + compatible = "ti,tmp421"; + reg = <0x1f>; + }; + }; + + imux27: i2c at 3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + temperature-sensor at 1f { + compatible = "ti,tmp421"; + reg = <0x1f>; + }; + }; }; };
Signature · 1 line
2.25.1
PATCH v3 2/14 ARM: dts: aspeed: yosemite4: Enable adc15
In reply to Delphine CC ChiuEnable Yosemite 4 adc15 config
--- arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +3 -3
@@ -51,7 +51,7 @@ iio-hwmon { compatible = "iio-hwmon"; io-channels = <&adc0 0>, <&adc0 1>, <&adc0 2>, <&adc0 3>, <&adc0 4>, <&adc0 5>, <&adc0 6>, <&adc0 7>, - <&adc1 0>, <&adc1 1>; + <&adc1 0>, <&adc1 1>, <&adc1 7>; }; };
@@ -920,10 +920,10 @@ &pinctrl_adc4_default &pinctrl_adc5_default &adc1 { ref_voltage = <2500>; status = "okay"; - pinctrl-0 = <&pinctrl_adc8_default &pinctrl_adc9_default>; + pinctrl-0 = <&pinctrl_adc8_default &pinctrl_adc9_default + &pinctrl_adc15_default>; }; - &ehci0 { status = "okay"; };
Signature · 1 line
2.25.1
PATCH v3 3/14 ARM: dts: aspeed: yosemite4: Enable spi-gpio setting
In reply to Delphine CC Chiuenable spi-gpio setting for spi flash
--- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +18 -0
@@ -53,6 +53,24 @@ iio-hwmon { <&adc0 4>, <&adc0 5>, <&adc0 6>, <&adc0 7>, <&adc1 0>, <&adc1 1>, <&adc1 7>; }; + + spi_gpio: spi-gpio { + compatible = "spi-gpio"; + #address-cells = <1>; + #size-cells = <0>; + + gpio-sck = <&gpio0 ASPEED_GPIO(X, 3) GPIO_ACTIVE_HIGH>; + gpio-mosi = <&gpio0 ASPEED_GPIO(X, 4) GPIO_ACTIVE_HIGH>; + gpio-miso = <&gpio0 ASPEED_GPIO(X, 5) GPIO_ACTIVE_HIGH>; + num-chipselects = <1>; + cs-gpios = <&gpio0 ASPEED_GPIO(X, 0) GPIO_ACTIVE_LOW>; + + tpmdev at 0 { + compatible = "tcg,tpm_tis-spi"; + spi-max-frequency = <33000000>; + reg = <0>; + }; + }; }; &uart1 {
Signature · 1 line
2.25.1
PATCH v3 4/14 ARM: dts: aspeed: yosemite4: Enable watchdog2
In reply to Delphine CC Chiuenable watchdog2 setting
--- arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts | 7 +++++++ 1 file changed, 7 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +7 -0
@@ -120,6 +120,13 @@ &wdt1 { aspeed,ext-pulse-duration = <256>; }; +&wdt2 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wdtrst2_default>; + aspeed,reset-type = "system"; +}; + &mac2 { status = "okay"; pinctrl-names = "default";
Signature · 1 line
2.25.1
PATCH v3 5/14 ARM: dts: aspeed: yosemite4: Revise quad mode to dual mode
In reply to Delphine CC ChiuRevise quad mode to dual mode to avoid WP pin influnece the SPI
--- .../arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +5 -3
@@ -149,15 +149,17 @@ flash at 0 { status = "okay"; m25p,fast-read; label = "bmc"; - spi-rx-bus-width = <4>; + spi-tx-bus-width = <2>; + spi-rx-bus-width = <2>; spi-max-frequency = <50000000>; -#include "openbmc-flash-layout-64.dtsi" +#include "openbmc-flash-layout-128.dtsi" }; flash at 1 { status = "okay"; m25p,fast-read; label = "bmc2"; - spi-rx-bus-width = <4>; + spi-tx-bus-width = <2>; + spi-rx-bus-width = <2>; spi-max-frequency = <50000000>; }; };
Signature · 1 line
2.25.1
PATCH v3 6/14 ARM: dts: aspeed: yosemite4: Revise power sensor adm1281 for schematic change
In reply to Delphine CC ChiuRevise power sensor adm1281 for yosemite4 schematic change
--- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +16 -8
@@ -176,8 +176,9 @@ mctp at 10 { }; power-sensor at 40 { - compatible = "adi,adm1278"; + compatible = "adi,adm1281"; reg = <0x40>; + shunt-resistor-micro-ohms = <500>; }; };
@@ -193,8 +194,9 @@ mctp at 10 { }; power-sensor at 40 { - compatible = "adi,adm1278"; + compatible = "adi,adm1281"; reg = <0x40>; + shunt-resistor-micro-ohms = <500>; }; };
@@ -210,8 +212,9 @@ mctp at 10 { }; power-sensor at 40 { - compatible = "adi,adm1278"; + compatible = "adi,adm1281"; reg = <0x40>; + shunt-resistor-micro-ohms = <500>; }; };
@@ -227,8 +230,9 @@ mctp at 10 { }; power-sensor at 40 { - compatible = "adi,adm1278"; + compatible = "adi,adm1281"; reg = <0x40>; + shunt-resistor-micro-ohms = <500>; }; };
@@ -244,8 +248,9 @@ mctp at 10 { }; power-sensor at 40 { - compatible = "adi,adm1278"; + compatible = "adi,adm1281"; reg = <0x40>; + shunt-resistor-micro-ohms = <500>; }; };
@@ -261,8 +266,9 @@ mctp at 10 { }; power-sensor at 40 { - compatible = "adi,adm1278"; + compatible = "adi,adm1281"; reg = <0x40>; + shunt-resistor-micro-ohms = <500>; }; };
@@ -278,8 +284,9 @@ mctp at 10 { }; power-sensor at 40 { - compatible = "adi,adm1278"; + compatible = "adi,adm1281"; reg = <0x40>; + shunt-resistor-micro-ohms = <500>; }; };
@@ -295,8 +302,9 @@ mctp at 10 { }; power-sensor at 40 { - compatible = "adi,adm1278"; + compatible = "adi,adm1281"; reg = <0x40>; + shunt-resistor-micro-ohms = <500>; }; };
Signature · 1 line
2.25.1
PATCH v3 7/14 ARM: dts: aspeed: yosemite4: Add gpio pca9506
In reply to Delphine CC ChiuAdd gpio pca9506 I/O expander for yv4 use
--- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 251 ++++++++++++++++++ 1 file changed, 251 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +251 -0
@@ -175,6 +175,34 @@ mctp at 10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + gpio at 20 { + compatible = "nxp,pca9506"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 21 { + compatible = "nxp,pca9506"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 22 { + compatible = "nxp,pca9506"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 23 { + compatible = "nxp,pca9506"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + }; + power-sensor at 40 { compatible = "adi,adm1281"; reg = <0x40>;
@@ -193,6 +221,34 @@ mctp at 10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + gpio at 20 { + compatible = "nxp,pca9506"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 21 { + compatible = "nxp,pca9506"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 22 { + compatible = "nxp,pca9506"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 23 { + compatible = "nxp,pca9506"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + }; + power-sensor at 40 { compatible = "adi,adm1281"; reg = <0x40>;
@@ -211,6 +267,34 @@ mctp at 10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + gpio at 20 { + compatible = "nxp,pca9506"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 21 { + compatible = "nxp,pca9506"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 22 { + compatible = "nxp,pca9506"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 23 { + compatible = "nxp,pca9506"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + }; + power-sensor at 40 { compatible = "adi,adm1281"; reg = <0x40>;
@@ -229,6 +313,34 @@ mctp at 10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + gpio at 20 { + compatible = "nxp,pca9506"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 21 { + compatible = "nxp,pca9506"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 22 { + compatible = "nxp,pca9506"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 23 { + compatible = "nxp,pca9506"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + }; + power-sensor at 40 { compatible = "adi,adm1281"; reg = <0x40>;
@@ -247,6 +359,34 @@ mctp at 10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + gpio at 20 { + compatible = "nxp,pca9506"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 21 { + compatible = "nxp,pca9506"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 22 { + compatible = "nxp,pca9506"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 23 { + compatible = "nxp,pca9506"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + }; + power-sensor at 40 { compatible = "adi,adm1281"; reg = <0x40>;
@@ -265,6 +405,34 @@ mctp at 10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + gpio at 20 { + compatible = "nxp,pca9506"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 21 { + compatible = "nxp,pca9506"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 22 { + compatible = "nxp,pca9506"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 23 { + compatible = "nxp,pca9506"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + }; + power-sensor at 40 { compatible = "adi,adm1281"; reg = <0x40>;
@@ -283,6 +451,34 @@ mctp at 10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + gpio at 20 { + compatible = "nxp,pca9506"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 21 { + compatible = "nxp,pca9506"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 22 { + compatible = "nxp,pca9506"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 23 { + compatible = "nxp,pca9506"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + }; + power-sensor at 40 { compatible = "adi,adm1281"; reg = <0x40>;
@@ -301,6 +497,34 @@ mctp at 10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + gpio at 20 { + compatible = "nxp,pca9506"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 21 { + compatible = "nxp,pca9506"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 22 { + compatible = "nxp,pca9506"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 23 { + compatible = "nxp,pca9506"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + }; + power-sensor at 40 { compatible = "adi,adm1281"; reg = <0x40>;
@@ -683,6 +907,33 @@ rtc at 6f { &i2c13 { status = "okay"; bus-frequency = <400000>; + gpio at 20 { + compatible = "nxp,pca9506"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 21 { + compatible = "nxp,pca9506"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 22 { + compatible = "nxp,pca9506"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio at 23 { + compatible = "nxp,pca9506"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + }; }; &i2c14 {
Signature · 1 line
2.25.1
PATCH v3 8/14 ARM: dts: aspeed: yosemite4: Revise i2c11 and i2c12 schematic change
In reply to Delphine CC ChiuRevise i2c11 and i2c12 schematic change:
- remove space for adm1272 compatible
- enable interrupt setting for pca9555
- add eeprom for yosemite4 medusa board/BSM use
- remove temperature sensor for yosemite4 schematic change
- add power sensor for power module reading
--- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 118 ++++++++++++++---- 1 file changed, 93 insertions(+), 25 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +93 -25
@@ -821,41 +821,94 @@ imux29: i2c at 1 { &i2c11 { status = "okay"; power-sensor at 10 { - compatible = "adi, adm1272"; + compatible = "adi,adm1272"; reg = <0x10>; }; power-sensor at 12 { - compatible = "adi, adm1272"; + compatible = "adi,adm1272"; reg = <0x12>; }; - gpio at 20 { + gpio_ext1: pca9555 at 20 { compatible = "nxp,pca9555"; - reg = <0x20>; + pinctrl-names = "default"; gpio-controller; #gpio-cells = <2>; - }; - - gpio at 21 { + reg = <0x20>; + interrupt-parent = <&gpio0>; + interrupts = <94 IRQ_TYPE_LEVEL_LOW>; + gpio-line-names = + "P48V_OCP_GPIO1","P48V_OCP_GPIO2", + "P48V_OCP_GPIO3","FAN_BOARD_0_REVISION_0_R", + "FAN_BOARD_0_REVISION_1_R","FAN_BOARD_1_REVISION_0_R", + "FAN_BOARD_1_REVISION_1_R","RST_MUX_R_N", + "RST_LED_CONTROL_FAN_BOARD_0_N","RST_LED_CONTROL_FAN_BOARD_1_N", + "RST_IOEXP_FAN_BOARD_0_N","RST_IOEXP_FAN_BOARD_1_N", + "PWRGD_LOAD_SWITCH_FAN_BOARD_0_R","PWRGD_LOAD_SWITCH_FAN_BOARD_1_R", + "",""; + }; + + gpio_ext2: pca9555 at 21 { compatible = "nxp,pca9555"; - reg = <0x21>; + pinctrl-names = "default"; gpio-controller; #gpio-cells = <2>; - }; - - gpio at 22 { + reg = <0x21>; + interrupt-parent = <&gpio0>; + interrupts = <94 IRQ_TYPE_LEVEL_LOW>; + gpio-line-names = + "DELTA_MODULE_TYPE","VSENSE_ERR_VDROP_R", + "EN_P48V_AUX_0","EN_P48V_AUX_1", + "MEDUSA_BOARD_REV_0","MEDUSA_BOARD_REV_1", + "MEDUSA_BOARD_REV_2","MEDUSA_BOARD_TYPE", + "HSC_OCP_SLOT_ODD_GPIO1","HSC_OCP_SLOT_ODD_GPIO2", + "HSC_OCP_SLOT_ODD_GPIO3","HSC_OCP_SLOT_EVEN_GPIO1", + "HSC_OCP_SLOT_EVEN_GPIO2","HSC_OCP_SLOT_EVEN_GPIO3", + "ADC_TYPE_0_R","ADC_TYPE_1_R"; + }; + + gpio_ext3: pca9555 at 22 { compatible = "nxp,pca9555"; - reg = <0x22>; + pinctrl-names = "default"; gpio-controller; #gpio-cells = <2>; - }; - - gpio at 23 { + reg = <0x22>; + interrupt-parent = <&gpio0>; + interrupts = <94 IRQ_TYPE_LEVEL_LOW>; + gpio-line-names = + "CARD_TYPE_SLOT1","CARD_TYPE_SLOT2", + "CARD_TYPE_SLOT3","CARD_TYPE_SLOT4", + "CARD_TYPE_SLOT5","CARD_TYPE_SLOT6", + "CARD_TYPE_SLOT7","CARD_TYPE_SLOT8", + "OC_P48V_HSC_0_N","FLT_P48V_HSC_0_N", + "PWRGD_P12V_AUX_1","OC_P48V_HSC_1_N", + "FLT_P48V_HSC_1_N","PWRGD_P12V_AUX_1", + "MEDUSA_ADC_EFUSE_TYPE_R","P12V_HSC_TYPE"; + }; + + gpio_ext4: pca9555 at 23 { compatible = "nxp,pca9555"; - reg = <0x23>; + pinctrl-names = "default"; gpio-controller; #gpio-cells = <2>; + reg = <0x23>; + interrupt-parent = <&gpio0>; + interrupts = <94 IRQ_TYPE_LEVEL_LOW>; + gpio-line-names = + "HSC1_ALERT1_R_N","HSC2_ALERT1_R_N", + "HSC3_ALERT1_R_N","HSC4_ALERT1_R_N", + "HSC5_ALERT1_R_N","HSC6_ALERT1_R_N", + "HSC7_ALERT1_R_N","HSC8_ALERT1_R_N", + "HSC1_ALERT2_R_N","HSC2_ALERT2_R_N", + "HSC3_ALERT2_R_N","HSC4_ALERT2_R_N", + "HSC5_ALERT2_R_N","HSC6_ALERT2_R_N", + "HSC7_ALERT2_R_N","HSC8_ALERT2_R_N"; + }; + + power-sensor at 40 { + compatible = "mps,mp5023"; + reg = <0x40>; }; temperature-sensor at 48 {
@@ -868,19 +921,29 @@ temperature-sensor at 49 { reg = <0x49>; }; - temperature-sensor at 4a { - compatible = "ti,tmp75"; - reg = <0x4a>; + eeprom at 54 { + compatible = "atmel,24c128"; + reg = <0x54>; }; - temperature-sensor at 4b { - compatible = "ti,tmp75"; - reg = <0x4b>; + power-sensor at 62 { + compatible = "pmbus"; + reg = <0x62>; }; - eeprom at 54 { - compatible = "atmel,24c256"; - reg = <0x54>; + power-sensor at 64 { + compatible = "pmbus"; + reg = <0x64>; + }; + + power-sensor at 65 { + compatible = "pmbus"; + reg = <0x65>; + }; + + power-sensor at 68 { + compatible = "pmbus"; + reg = <0x68>; }; };
@@ -898,6 +961,11 @@ eeprom at 50 { reg = <0x50>; }; + eeprom at 54 { + compatible = "atmel,24c64"; + reg = <0x54>; + }; + rtc at 6f { compatible = "nuvoton,nct3018y"; reg = <0x6f>;
Signature · 1 line
2.25.1
Re: [PATCH v3 08/14] ARM: dts: aspeed: yosemite4: Revise i2c11 and i2c12 schematic change
Quoted 6 lines · Delphine CC Chiu
Revise i2c11 and i2c12 schematic change:
- remove space for adm1272 compatible
- enable interrupt setting for pca9555
- add eeprom for yosemite4 medusa board/BSM use
- remove temperature sensor for yosemite4 schematic change
- add power sensor for power module reading
Way too many changes in one patch. Especially mixing fixes and new features is bad. Please don't.
Quoted 17 lines
Signed-off-by Delphine CC Chiu <[email protected]>--- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 118 ++++++++++++++---- 1 file changed, 93 insertions(+), 25 deletions(-)arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +1
-1@@ -821,41 +821,94 @@ imux29: i2c at 1 { &i2c11 { status = "okay"; power-sensor at 10 { - compatible = "adi, adm1272"; + compatible = "adi,adm1272"; reg = <0x10>;
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts imux29: i2c at 1 { · line 833
Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +2
-2}; power-sensor at 12 { - compatible = "adi, adm1272"; + compatible = "adi,adm1272"; reg = <0x12>; }; - gpio at 20 { + gpio_ext1: pca9555 at 20 {
That's wrong name.
Quoted 13 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +6
-4compatible = "nxp,pca9555"; - reg = <0x20>; + pinctrl-names = "default"; gpio-controller; #gpio-cells = <2>; - }; - - gpio at 21 { + reg = <0x20>; + interrupt-parent = <&gpio0>; + interrupts = <94 IRQ_TYPE_LEVEL_LOW>; + gpio-line-names = + "P48V_OCP_GPIO1","P48V_OCP_GPIO2",
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts imux29: i2c at 1 { · line 852
Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +10
-0+ "P48V_OCP_GPIO3","FAN_BOARD_0_REVISION_0_R", + "FAN_BOARD_0_REVISION_1_R","FAN_BOARD_1_REVISION_0_R", + "FAN_BOARD_1_REVISION_1_R","RST_MUX_R_N", + "RST_LED_CONTROL_FAN_BOARD_0_N","RST_LED_CONTROL_FAN_BOARD_1_N", + "RST_IOEXP_FAN_BOARD_0_N","RST_IOEXP_FAN_BOARD_1_N", + "PWRGD_LOAD_SWITCH_FAN_BOARD_0_R","PWRGD_LOAD_SWITCH_FAN_BOARD_1_R", + "",""; + }; + + gpio_ext2: pca9555 at 21 {
Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
Quoted 13 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +6
-4compatible = "nxp,pca9555"; - reg = <0x21>; + pinctrl-names = "default"; gpio-controller; #gpio-cells = <2>; - }; - - gpio at 22 { + reg = <0x21>; + interrupt-parent = <&gpio0>; + interrupts = <94 IRQ_TYPE_LEVEL_LOW>; + gpio-line-names = + "DELTA_MODULE_TYPE","VSENSE_ERR_VDROP_R",
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts imux29: i2c at 1 { · line 871
Quoted 10 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +10
-0+ "EN_P48V_AUX_0","EN_P48V_AUX_1", + "MEDUSA_BOARD_REV_0","MEDUSA_BOARD_REV_1", + "MEDUSA_BOARD_REV_2","MEDUSA_BOARD_TYPE", + "HSC_OCP_SLOT_ODD_GPIO1","HSC_OCP_SLOT_ODD_GPIO2", + "HSC_OCP_SLOT_ODD_GPIO3","HSC_OCP_SLOT_EVEN_GPIO1", + "HSC_OCP_SLOT_EVEN_GPIO2","HSC_OCP_SLOT_EVEN_GPIO3", + "ADC_TYPE_0_R","ADC_TYPE_1_R"; + }; + + gpio_ext3: pca9555 at 22 {
Please fix it everywhere.
In this patch and all your future patches. I keep repeating the same feedback...
Best regards,
Krzysztof
PATCH v3 9/14 ARM: dts: aspeed: yosemite4: Revise i2c14 and i2c15 schematic change
In reply to Delphine CC ChiuRevise i2c14 and i2c15 schematic change:
- Revise adc128d818 adc mode for yosemite4 schematic change
- Revise ina233 for yosemite4 schematic change
- Remove idle state setting for yosemite4 NIC connection
--- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 31 ++++++++++++------- 1 file changed, 20 insertions(+), 11 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +20 -11
@@ -1010,44 +1010,54 @@ &i2c14 { adc at 1d { compatible = "ti,adc128d818"; reg = <0x1d>; - ti,mode = /bits/ 8 <2>; + ti,mode = /bits/ 8 <1>; }; - adc at 35 { + adc at 36 { compatible = "ti,adc128d818"; - reg = <0x35>; - ti,mode = /bits/ 8 <2>; + reg = <0x36>; + ti,mode = /bits/ 8 <1>; }; adc at 37 { compatible = "ti,adc128d818"; reg = <0x37>; - ti,mode = /bits/ 8 <2>; + ti,mode = /bits/ 8 <1>; }; power-sensor at 40 { - compatible = "ti,ina230"; + compatible = "ti,ina233"; reg = <0x40>; + resistor-calibration = /bits/ 16 <0x0a00>; + current-lsb= /bits/ 16 <0x0001>; }; power-sensor at 41 { - compatible = "ti,ina230"; + compatible = "ti,ina233"; reg = <0x41>; + resistor-calibration = /bits/ 16 <0x0a00>; + current-lsb= /bits/ 16 <0x0001>; }; power-sensor at 42 { - compatible = "ti,ina230"; + compatible = "ti,ina233"; reg = <0x42>; + resistor-calibration = /bits/ 16 <0x0a00>; + current-lsb= /bits/ 16 <0x0001>; }; power-sensor at 43 { - compatible = "ti,ina230"; + compatible = "ti,ina233"; reg = <0x43>; + resistor-calibration = /bits/ 16 <0x0a00>; + current-lsb= /bits/ 16 <0x0001>; }; power-sensor at 44 { - compatible = "ti,ina230"; + compatible = "ti,ina233"; reg = <0x44>; + resistor-calibration = /bits/ 16 <0x0a00>; + current-lsb= /bits/ 16 <0x0001>; }; temperature-sensor at 4e {
@@ -1217,7 +1227,6 @@ mctp at 10 { i2c-mux at 72 { compatible = "nxp,pca9544"; - i2c-mux-idle-disconnect; reg = <0x72>; imux24: i2c at 0 {
Signature · 1 line
2.25.1
PATCH v3 10/14 ARM: dts: aspeed: yosemite4: Initialize bmc gpio state
In reply to Delphine CC ChiuInitialize bmc gpio state
--- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 195 ++++++++++++++++++ 1 file changed, 195 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +195 -0
@@ -1271,6 +1271,7 @@ temperature-sensor at 1f { }; }; + &adc0 { ref_voltage = <2500>; status = "okay";
@@ -1298,3 +1299,197 @@ &ehci1 { &uhci { status = "okay"; }; + +&sgpiom0 { + status = "okay"; + ngpios = <128>; + bus-frequency = <48000>; +}; + +&gpio0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpiu2_default &pinctrl_gpiu3_default + &pinctrl_gpiu4_default &pinctrl_gpiu5_default + &pinctrl_gpiu6_default>; + gpio-line-names = + /*A0-A7*/ "","","","","","","","", + /*B0-B7*/ "FLT_HSC_SERVER_SLOT8_N","AC_ON_OFF_BTN_CPLD_SLOT5_N", + "PWRGD_SLOT1_STBY","PWRGD_SLOT2_STBY", + "PWRGD_SLOT3_STBY","PWRGD_SLOT4_STBY","","", + /*C0-C7*/ "PRSNT_NIC3_N","","","","FM_NIC0_WAKE_N", + "FM_NIC1_WAKE_N","","RST_PCIE_SLOT2_N", + /*D0-D7*/ "","","","","","","","", + /*E0-E7*/ "PRSNT_NIC1_N","PRSNT_NIC2_N","","RST_PCIE_SLOT1_N", + "","","","", + /*F0-F7*/ "FM_RESBTN_SLOT1_BMC_N","FM_RESBTN_SLOT2_BMC_N", + "FM_RESBTN_SLOT3_BMC_N","FM_RESBTN_SLOT4_BMC_N", + "PRSNT_SB_SLOT1_N","PRSNT_SB_SLOT2_N", + "PRSNT_SB_SLOT3_N","PRSNT_SB_SLOT4_N", + /*G0-G7*/ "","","","","","","","", + /*H0-H7*/ "","","","","","","","", + /*I0-I7*/ "","","","","","ALT_MEDUSA_ADC_N", + "ALT_SMB_BMC_CPLD2_N", + "INT_SPIDER_ADC_R_N", + /*J0-J7*/ "","","","","","","","", + /*K0-K7*/ "","","","","","","","", + /*L0-L7*/ "","","","","","","ALT_MEDUSA_P12V_EFUSE_N","", + /*M0-M7*/ "EN_NIC0_POWER_BMC_R","EN_NIC1_POWER_BMC_R", + "INT_MEDUSA_IOEXP_TEMP_N","FLT_P12V_NIC0_N", + "INT_SMB_BMC_SLOT1_4_BMC_N", + "AC_ON_OFF_BTN_CPLD_SLOT6_N","","", + /*N0-N7*/ "FLT_HSC_SERVER_SLOT1_N","FLT_HSC_SERVER_SLOT2_N", + "FLT_HSC_SERVER_SLOT3_N","FLT_HSC_SERVER_SLOT4_N", + "FM_BMC_READY_R2","FLT_P12V_STBY_BMC_N","","", + /*O0-O7*/ "AC_ON_OFF_BTN_CPLD_SLOT8_N","RST_SMB_NIC1_R_N", + "RST_SMB_NIC2_R_N","RST_SMB_NIC3_R_N", + "FLT_P3V3_NIC2_N","FLT_P3V3_NIC3_N", + "","", + /*P0-P7*/ "ALT_SMB_BMC_CPLD1_N","'BTN_BMC_R2_N", + "EN_P3V_BAT_SCALED_R","PWRGD_P5V_USB_BMC", + "FM_BMC_RTCRST_R","RST_USB_HUB_R_N", + "FLAG_P5V_USB_BMC_N","", + /*Q0-Q7*/ "AC_ON_OFF_BTN_CPLD_SLOT1_N","AC_ON_OFF_BTN_CPLD_SLOT2_N", + "AC_ON_OFF_BTN_CPLD_SLOT3_N","AC_ON_OFF_BTN_CPLD_SLOT4_N", + "PRSNT_SB_SLOT5_N","PRSNT_SB_SLOT6_N", + "PRSNT_SB_SLOT7_N","PRSNT_SB_SLOT8_N", + /*R0-R7*/ "AC_ON_OFF_BTN_CPLD_SLOT7_N","INT_SMB_BMC_SLOT5_8_BMC_N", + "FM_PWRBRK_NIC_BMC_R2","RST_PCIE_SLOT4_N", + "RST_PCIE_SLOT5_N","RST_PCIE_SLOT6_N", + "RST_PCIE_SLOT7_N","RST_PCIE_SLOT8_N", + /*S0-S7*/ "FM_NIC2_WAKE_N","FM_NIC3_WAKE_N", + "EN_NIC3_POWER_BMC_R","SEL_BMC_JTAG_MUX_R", + "","ALT_P12V_AUX_N","FAST_PROCHOT_N", + "SPI_WP_DISABLE_STATUS_R_N", + /*T0-T7*/ "","","","","","","","", + /*U0-U7*/ "","","FLT_P3V3_NIC1_N","FLT_P12V_NIC1_N", + "FLT_P12V_NIC2_N","FLT_P12V_NIC3_N", + "FLT_P3V3_NIC0_N","", + /*V0-V7*/ "FM_RESBTN_SLOT5_BMC_N","FM_RESBTN_SLOT6_BMC_N", + "FM_RESBTN_SLOT7_BMC_N","FM_RESBTN_SLOT8_BMC_N", + "","","","", + /*W0-W7*/ "PRSNT_TPM_BMC_N","PRSNT_OCP_DEBUG_BMC_N","ALT_TEMP_BMC_N","ALT_RTC_BMC_N", + "","","","", + /*X0-X7*/ "","LT_HSC_SERVER_SLOT6_N","FLT_HSC_SERVER_SLOT7_N","","","", + "PWRGD_SLOT5_STBY","PWRGD_SLOT6_STBY", + /*Y0-Y7*/ "","","SPI_LOCK_REQ_BMC_N","PWRGD_SLOT7_STBY", + "","","EN_NIC2_POWER_BMC_R","", + /*Z0-Z7*/ "EN_P5V_USB_CPLD_R","'FLT_HSC_SERVER_SLOT5_N", + "PWRGD_SLOT8_STBY","","","","",""; + + pin_gpio_b4 { + gpios = <ASPEED_GPIO(B, 4) GPIO_ACTIVE_HIGH>; + input; + }; + pin_gpio_b5 { + gpios = <ASPEED_GPIO(B, 5) GPIO_ACTIVE_HIGH>; + input; + }; + pin_gpio_f0 { + gpios = <ASPEED_GPIO(F, 0) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_f1 { + gpios = <ASPEED_GPIO(F, 1) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_f2 { + gpios = <ASPEED_GPIO(F, 2) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_f3 { + gpios = <ASPEED_GPIO(F, 3) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_f4 { + gpios = <ASPEED_GPIO(F, 4) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_f5 { + gpios = <ASPEED_GPIO(F, 5) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_f6 { + gpios = <ASPEED_GPIO(F, 6) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_f7 { + gpios = <ASPEED_GPIO(F, 7) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_l6 { + gpios = <ASPEED_GPIO(L, 6) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_l7 { + gpios = <ASPEED_GPIO(L, 7) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_s0 { + gpios = <ASPEED_GPIO(S, 0) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_s1 { + gpios = <ASPEED_GPIO(S, 1) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_v0 { + gpios = <ASPEED_GPIO(V, 0) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_v1 { + gpios = <ASPEED_GPIO(V, 1) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_v2 { + gpios = <ASPEED_GPIO(V, 2) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_v3 { + gpios = <ASPEED_GPIO(V, 3) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_w0 { + gpios = <ASPEED_GPIO(W, 0) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_w1 { + gpios = <ASPEED_GPIO(W, 1) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_w2 { + gpios = <ASPEED_GPIO(W, 2) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_w3 { + gpios = <ASPEED_GPIO(W, 3) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_w4 { + gpios = <ASPEED_GPIO(W, 4) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_w5 { + gpios = <ASPEED_GPIO(W, 5) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_w6 { + gpios = <ASPEED_GPIO(W, 6) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_w7 { + gpios = <ASPEED_GPIO(W, 7) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_z3 { + gpios = <ASPEED_GPIO(Z, 3) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_z4 { + gpios = <ASPEED_GPIO(Z, 4) GPIO_ACTIVE_LOW>; + input; + }; + pin_gpio_z5 { + gpios = <ASPEED_GPIO(Z, 5) GPIO_ACTIVE_LOW>; + input; + }; +};
Signature · 1 line
2.25.1
PATCH v3 11/14 ARM: dts: aspeed: yosemite4: Revise mx31790 fan tach config
In reply to Delphine CC ChiuRevise fan tach config for max31790 driver change
--- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 48 +++++++++++++++++-- 1 file changed, 44 insertions(+), 4 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +44 -4
@@ -1095,8 +1095,18 @@ adc at 1f { pwm at 20{ compatible = "maxim,max31790"; - pwm-as-tach = <4 5>; + #address-cells = <1>; + #size-cells = <0>; reg = <0x20>; + channel at 4 { + reg = <4>; + sensor-type = "TACH"; + }; + + channel at 5 { + reg = <5>; + sensor-type = "TACH"; + }; }; gpio at 22{
@@ -1108,8 +1118,18 @@ gpio at 22{ pwm at 2f{ compatible = "maxim,max31790"; - pwm-as-tach = <4 5>; + #address-cells = <1>; + #size-cells = <0>; reg = <0x2f>; + channel at 4 { + reg = <4>; + sensor-type = "TACH"; + }; + + channel at 5 { + reg = <5>; + sensor-type = "TACH"; + }; }; adc at 33 {
@@ -1145,8 +1165,18 @@ adc at 1f { pwm at 20{ compatible = "maxim,max31790"; - pwm-as-tach = <4 5>; + #address-cells = <1>; + #size-cells = <0>; reg = <0x20>; + channel at 4 { + reg = <4>; + sensor-type = "TACH"; + }; + + channel at 5 { + reg = <5>; + sensor-type = "TACH"; + }; }; gpio at 22{
@@ -1158,8 +1188,18 @@ gpio at 22{ pwm at 2f{ compatible = "maxim,max31790"; - pwm-as-tach = <4 5>; + #address-cells = <1>; + #size-cells = <0>; reg = <0x2f>; + channel at 4 { + reg = <4>; + sensor-type = "TACH"; + }; + + channel at 5 { + reg = <5>; + sensor-type = "TACH"; + }; }; adc at 33 {
Signature · 1 line
2.25.1
PATCH v3 12/14 ARM: dts: aspeed: yosemite4: add mctp config for NIC
In reply to Delphine CC Chiuadd mctp config for NIC
--- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +24 -0
@@ -1273,40 +1273,64 @@ imux24: i2c at 0 { #address-cells = <1>; #size-cells = <0>; reg = <0>; + mctp-controller; temperature-sensor at 1f { compatible = "ti,tmp421"; reg = <0x1f>; }; + + emc1403 at 3c { + compatible = "smsc,emc1403"; + reg = <0x3c>; + }; }; imux25: i2c at 1 { #address-cells = <1>; #size-cells = <0>; reg = <1>; + mctp-controller; temperature-sensor at 1f { compatible = "ti,tmp421"; reg = <0x1f>; }; + + emc1403 at 3c { + compatible = "smsc,emc1403"; + reg = <0x3c>; + }; }; imux26: i2c at 2 { #address-cells = <1>; #size-cells = <0>; reg = <2>; + mctp-controller; temperature-sensor at 1f { compatible = "ti,tmp421"; reg = <0x1f>; }; + + emc1403 at 3c { + compatible = "smsc,emc1403"; + reg = <0x3c>; + }; }; imux27: i2c at 3 { #address-cells = <1>; #size-cells = <0>; reg = <3>; + mctp-controller; temperature-sensor at 1f { compatible = "ti,tmp421"; reg = <0x1f>; }; + + emc1403 at 3c { + compatible = "smsc,emc1403"; + reg = <0x3c>; + }; }; }; };
Signature · 1 line
2.25.1
PATCH v3 13/14 ARM: dts: aspeed: yosemite4: support mux to cpld
In reply to Delphine CC ChiuMux pca9544 to cpld was added on EVT HW schematic design, so add dts setting for devices behind mux pca9544 to cpld
--- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 64 ++++++++++++++----- 1 file changed, 49 insertions(+), 15 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +49 -15
@@ -36,6 +36,10 @@ aliases { i2c31 = &imux31; i2c32 = &imux32; i2c33 = &imux33; + i2c34 = &imux34; + i2c35 = &imux35; + i2c36 = &imux36; + i2c37 = &imux37; }; chosen {
@@ -951,24 +955,54 @@ &i2c12 { status = "okay"; bus-frequency = <400000>; - temperature-sensor at 48 { - compatible = "ti,tmp75"; - reg = <0x48>; - }; + i2c-mux at 70 { + compatible = "nxp,pca9544"; + i2c-mux-idle-disconnect; + reg = <0x70>; - eeprom at 50 { - compatible = "atmel,24c128"; - reg = <0x50>; - }; + imux34: i2c at 0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; - eeprom at 54 { - compatible = "atmel,24c64"; - reg = <0x54>; - }; + temperature-sensor at 48 { + compatible = "ti,tmp75"; + reg = <0x48>; + }; + + eeprom at 50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; - rtc at 6f { - compatible = "nuvoton,nct3018y"; - reg = <0x6f>; + eeprom at 54 { + compatible = "atmel,24c64"; + reg = <0x54>; + }; + + rtc at 6f { + compatible = "nuvoton,nct3018y"; + reg = <0x6f>; + }; + }; + + imux35: i2c at 1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + + imux36: i2c at 2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + }; + + imux37: i2c at 3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + }; }; };
Signature · 1 line
2.25.1
PATCH v3 14/14 ARM: dts: aspeed: yosemite4: Revise gpio name
In reply to Delphine CC ChiuRevise gpio name for EVT schematic changes
---
Changelog:
- v3
- Correct patch for revising gpio name
- v2
- Add patch for revising gpio name
--- .../dts/aspeed/aspeed-bmc-facebook-yosemite4.dts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +6 -8
@@ -1414,7 +1414,7 @@ &pinctrl_gpiu4_default &pinctrl_gpiu5_default /*B0-B7*/ "FLT_HSC_SERVER_SLOT8_N","AC_ON_OFF_BTN_CPLD_SLOT5_N", "PWRGD_SLOT1_STBY","PWRGD_SLOT2_STBY", "PWRGD_SLOT3_STBY","PWRGD_SLOT4_STBY","","", - /*C0-C7*/ "PRSNT_NIC3_N","","","","FM_NIC0_WAKE_N", + /*C0-C7*/ "","","","","FM_NIC0_WAKE_N", "FM_NIC1_WAKE_N","","RST_PCIE_SLOT2_N", /*D0-D7*/ "","","","","","","","", /*E0-E7*/ "PRSNT_NIC1_N","PRSNT_NIC2_N","","RST_PCIE_SLOT1_N",
@@ -1432,16 +1432,15 @@ &pinctrl_gpiu4_default &pinctrl_gpiu5_default /*K0-K7*/ "","","","","","","","", /*L0-L7*/ "","","","","","","ALT_MEDUSA_P12V_EFUSE_N","", /*M0-M7*/ "EN_NIC0_POWER_BMC_R","EN_NIC1_POWER_BMC_R", - "INT_MEDUSA_IOEXP_TEMP_N","FLT_P12V_NIC0_N", + "INT_MEDUSA_IOEXP_TEMP_N","PRSNT_NIC3_N", "INT_SMB_BMC_SLOT1_4_BMC_N", "AC_ON_OFF_BTN_CPLD_SLOT6_N","","", /*N0-N7*/ "FLT_HSC_SERVER_SLOT1_N","FLT_HSC_SERVER_SLOT2_N", "FLT_HSC_SERVER_SLOT3_N","FLT_HSC_SERVER_SLOT4_N", - "FM_BMC_READY_R2","FLT_P12V_STBY_BMC_N","","", + "FM_BMC_READY_R2","RST_SMB_NIC0_R_N","","", /*O0-O7*/ "AC_ON_OFF_BTN_CPLD_SLOT8_N","RST_SMB_NIC1_R_N", "RST_SMB_NIC2_R_N","RST_SMB_NIC3_R_N", - "FLT_P3V3_NIC2_N","FLT_P3V3_NIC3_N", - "","", + "","","","", /*P0-P7*/ "ALT_SMB_BMC_CPLD1_N","'BTN_BMC_R2_N", "EN_P3V_BAT_SCALED_R","PWRGD_P5V_USB_BMC", "FM_BMC_RTCRST_R","RST_USB_HUB_R_N",
@@ -1459,9 +1458,8 @@ &pinctrl_gpiu4_default &pinctrl_gpiu5_default "","ALT_P12V_AUX_N","FAST_PROCHOT_N", "SPI_WP_DISABLE_STATUS_R_N", /*T0-T7*/ "","","","","","","","", - /*U0-U7*/ "","","FLT_P3V3_NIC1_N","FLT_P12V_NIC1_N", - "FLT_P12V_NIC2_N","FLT_P12V_NIC3_N", - "FLT_P3V3_NIC0_N","", + /*U0-U7*/ "","","RST_PCIE_SLOT3_N","", + "","PRSNT_NIC0_N","","", /*V0-V7*/ "FM_RESBTN_SLOT5_BMC_N","FM_RESBTN_SLOT6_BMC_N", "FM_RESBTN_SLOT7_BMC_N","FM_RESBTN_SLOT8_BMC_N", "","","","",
Signature · 1 line
2.25.1