Linux-Aspeed Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4
@ 2024-03-12  6:15 Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 01/22] ARM: dts: aspeed: yosemite4: Revise i2c-mux devices Delphine CC Chiu
                   ` (23 more replies)
  0 siblings, 24 replies; 25+ messages in thread
From: Delphine CC Chiu @ 2024-03-12  6:15 UTC (permalink / raw)
  To: linux-aspeed

Changelog:
  - v6
    - Revise i2c duty-cycle for meeting 400khz spec
  - v5
    - Support medusa board adc sensors
    - support NIC eeprom
  - v4
    - Re-format gpio linename
    - Revise i2c device node names
    - Split patches by logic changes
  - 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 (22):
  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: Remove space for adm1272 compatible
  ARM: dts: aspeed: yosemite4: Enable interrupt setting for pca9555
  ARM: dts: aspeed: yosemite4: Add power sensor for power module reading
  ARM: dts: aspeed: yosemite4: Add eeprom for yosemite4 use
  ARM: dts: aspeed: yosemite4: Remove temperature sensor for yosemite4
    schematic change
  ARM: dts: aspeed: yosemite4: Revise adc128d818 adc mode for yosemite4
    schematic change
  ARM: dts: aspeed: yosemite4: Revise ina233 config for yosemite4
    schematic change
  ARM: dts: aspeed: yosemite4: Remove idle state setting for yosemite4
    NIC connection
  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: support medusa board adc sensors
  ARM: dts: aspeed: yosemite4: support NIC eeprom
  ARM: dts: aspeed: yosemite4: Revise i2c duty-cycle

 .../aspeed/aspeed-bmc-facebook-yosemite4.dts  | 1258 +++++++++++++++--
 1 file changed, 1151 insertions(+), 107 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 25+ messages in thread

* [PATCH v6 01/22] ARM: dts: aspeed: yosemite4: Revise i2c-mux devices
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
@ 2024-03-12  6:15 ` Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 02/22] ARM: dts: aspeed: yosemite4: Enable adc15 Delphine CC Chiu
                   ` (22 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Delphine CC Chiu @ 2024-03-12  6:15 UTC (permalink / raw)
  To: linux-aspeed

Revise Yosemite 4 devicetree for devices behind i2c-mux
- Add gpio and eeprom behind i2c-mux
- Remove redundant idle-state setting for i2c-mux

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
 .../aspeed/aspeed-bmc-facebook-yosemite4.dts  | 381 ++++++++++++++++--
 1 file changed, 347 insertions(+), 34 deletions(-)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
index 64075cc41d92..dac58d3ea63c 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
@@ -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>;
+			};
+		};
 	};
 };
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH v6 02/22] ARM: dts: aspeed: yosemite4: Enable adc15
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 01/22] ARM: dts: aspeed: yosemite4: Revise i2c-mux devices Delphine CC Chiu
@ 2024-03-12  6:15 ` Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 03/22] ARM: dts: aspeed: yosemite4: Enable spi-gpio setting Delphine CC Chiu
                   ` (21 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Delphine CC Chiu @ 2024-03-12  6:15 UTC (permalink / raw)
  To: linux-aspeed

Enable Yosemite 4 adc15 config

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
index dac58d3ea63c..6846aab893ad 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
@@ -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";
 };
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH v6 03/22] ARM: dts: aspeed: yosemite4: Enable spi-gpio setting
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 01/22] ARM: dts: aspeed: yosemite4: Revise i2c-mux devices Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 02/22] ARM: dts: aspeed: yosemite4: Enable adc15 Delphine CC Chiu
@ 2024-03-12  6:15 ` Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 04/22] ARM: dts: aspeed: yosemite4: Enable watchdog2 Delphine CC Chiu
                   ` (20 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Delphine CC Chiu @ 2024-03-12  6:15 UTC (permalink / raw)
  To: linux-aspeed

enable spi-gpio setting for spi flash

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
 .../aspeed/aspeed-bmc-facebook-yosemite4.dts   | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
index 6846aab893ad..ea8fd3ec0982 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
@@ -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 {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH v6 04/22] ARM: dts: aspeed: yosemite4: Enable watchdog2
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
                   ` (2 preceding siblings ...)
  2024-03-12  6:15 ` [PATCH v6 03/22] ARM: dts: aspeed: yosemite4: Enable spi-gpio setting Delphine CC Chiu
@ 2024-03-12  6:15 ` Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 05/22] ARM: dts: aspeed: yosemite4: Revise quad mode to dual mode Delphine CC Chiu
                   ` (19 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Delphine CC Chiu @ 2024-03-12  6:15 UTC (permalink / raw)
  To: linux-aspeed

enable watchdog2 setting

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
index ea8fd3ec0982..f8bfdefbefc6 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
@@ -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";
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH v6 05/22] ARM: dts: aspeed: yosemite4: Revise quad mode to dual mode
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
                   ` (3 preceding siblings ...)
  2024-03-12  6:15 ` [PATCH v6 04/22] ARM: dts: aspeed: yosemite4: Enable watchdog2 Delphine CC Chiu
@ 2024-03-12  6:15 ` Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 06/22] ARM: dts: aspeed: yosemite4: Revise power sensor adm1281 for schematic change Delphine CC Chiu
                   ` (18 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Delphine CC Chiu @ 2024-03-12  6:15 UTC (permalink / raw)
  To: linux-aspeed

Revise quad mode to dual mode to avoid WP pin influnece the SPI

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
 .../arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
index f8bfdefbefc6..23006dca5f26 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
@@ -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>;
 	};
 };
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH v6 06/22] ARM: dts: aspeed: yosemite4: Revise power sensor adm1281 for schematic change
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
                   ` (4 preceding siblings ...)
  2024-03-12  6:15 ` [PATCH v6 05/22] ARM: dts: aspeed: yosemite4: Revise quad mode to dual mode Delphine CC Chiu
@ 2024-03-12  6:15 ` Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 07/22] ARM: dts: aspeed: yosemite4: Add gpio pca9506 Delphine CC Chiu
                   ` (17 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Delphine CC Chiu @ 2024-03-12  6:15 UTC (permalink / raw)
  To: linux-aspeed

Revise power sensor adm1281 for yosemite4 schematic change

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
 .../aspeed/aspeed-bmc-facebook-yosemite4.dts  | 24 ++++++++++++-------
 1 file changed, 16 insertions(+), 8 deletions(-)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
index 23006dca5f26..af9f7067c57c 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
@@ -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>;
 	};
 };
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH v6 07/22] ARM: dts: aspeed: yosemite4: Add gpio pca9506
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
                   ` (5 preceding siblings ...)
  2024-03-12  6:15 ` [PATCH v6 06/22] ARM: dts: aspeed: yosemite4: Revise power sensor adm1281 for schematic change Delphine CC Chiu
@ 2024-03-12  6:15 ` Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 08/22] ARM: dts: aspeed: yosemite4: Remove space for adm1272 compatible Delphine CC Chiu
                   ` (16 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Delphine CC Chiu @ 2024-03-12  6:15 UTC (permalink / raw)
  To: linux-aspeed

Add gpio pca9506 I/O expander for yv4 use

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
 .../aspeed/aspeed-bmc-facebook-yosemite4.dts  | 251 ++++++++++++++++++
 1 file changed, 251 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
index af9f7067c57c..b1775b5a6782 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
@@ -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 {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH v6 08/22] ARM: dts: aspeed: yosemite4: Remove space for adm1272 compatible
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
                   ` (6 preceding siblings ...)
  2024-03-12  6:15 ` [PATCH v6 07/22] ARM: dts: aspeed: yosemite4: Add gpio pca9506 Delphine CC Chiu
@ 2024-03-12  6:15 ` Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 09/22] ARM: dts: aspeed: yosemite4: Enable interrupt setting for pca9555 Delphine CC Chiu
                   ` (15 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Delphine CC Chiu @ 2024-03-12  6:15 UTC (permalink / raw)
  To: linux-aspeed

Remove space for adm1272 compatible

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
index b1775b5a6782..cbf385e72e57 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
@@ -821,12 +821,12 @@ 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>;
 	};
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH v6 09/22] ARM: dts: aspeed: yosemite4: Enable interrupt setting for pca9555
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
                   ` (7 preceding siblings ...)
  2024-03-12  6:15 ` [PATCH v6 08/22] ARM: dts: aspeed: yosemite4: Remove space for adm1272 compatible Delphine CC Chiu
@ 2024-03-12  6:15 ` Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 10/22] ARM: dts: aspeed: yosemite4: Add power sensor for power module reading Delphine CC Chiu
                   ` (14 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Delphine CC Chiu @ 2024-03-12  6:15 UTC (permalink / raw)
  To: linux-aspeed

Enable interrupt setting for pca9555

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
Changelog:
  - v4
    - Revise device node name
  - v1
    - enable interrupt setting for pca9555
---
 .../aspeed/aspeed-bmc-facebook-yosemite4.dts  | 56 +++++++++++++++++--
 1 file changed, 52 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
index cbf385e72e57..4b23e467690f 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
@@ -832,30 +832,78 @@ power-sensor at 12 {
 
 	gpio at 20 {
 		compatible = "nxp,pca9555";
-		reg = <0x20>;
+		pinctrl-names = "default";
 		gpio-controller;
 		#gpio-cells = <2>;
+		reg = <0x20>;
+		interrupt-parent = <&gpio0>;
+		interrupts = <98 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 at 21 {
 		compatible = "nxp,pca9555";
-		reg = <0x21>;
+		pinctrl-names = "default";
 		gpio-controller;
 		#gpio-cells = <2>;
+		reg = <0x21>;
+		interrupt-parent = <&gpio0>;
+		interrupts = <98 IRQ_TYPE_LEVEL_LOW>;
+		gpio-line-names =
+		"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",
+		"MEDUSA-BOARD-REV-0","MEDUSA-BOARD-REV-1",
+		"MEDUSA-BOARD-REV-2","MEDUSA-BOARD-TYPE",
+		"DELTA-MODULE-TYPE","P12V-HSC-TYPE",
+		"","";
 	};
 
 	gpio at 22 {
 		compatible = "nxp,pca9555";
-		reg = <0x22>;
+		pinctrl-names = "default";
 		gpio-controller;
 		#gpio-cells = <2>;
+		reg = <0x22>;
+		interrupt-parent = <&gpio0>;
+		interrupts = <98 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",
+		"OC-P48V-HSC-1-N","FLT-P48V-HSC-1-N",
+		"EN-P48V-AUX-0","EN-P48V-AUX-1",
+		"PWRGD-P12V-AUX-0","PWRGD-P12V-AUX-1";
 	};
 
 	gpio at 23 {
 		compatible = "nxp,pca9555";
-		reg = <0x23>;
+		pinctrl-names = "default";
 		gpio-controller;
 		#gpio-cells = <2>;
+		reg = <0x23>;
+		interrupt-parent = <&gpio0>;
+		interrupts = <98 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";
 	};
 
 	temperature-sensor at 48 {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH v6 10/22] ARM: dts: aspeed: yosemite4: Add power sensor for power module reading
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
                   ` (8 preceding siblings ...)
  2024-03-12  6:15 ` [PATCH v6 09/22] ARM: dts: aspeed: yosemite4: Enable interrupt setting for pca9555 Delphine CC Chiu
@ 2024-03-12  6:15 ` Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 11/22] ARM: dts: aspeed: yosemite4: Add eeprom for yosemite4 use Delphine CC Chiu
                   ` (13 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Delphine CC Chiu @ 2024-03-12  6:15 UTC (permalink / raw)
  To: linux-aspeed

Add power sensor for power module reading

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
 .../aspeed/aspeed-bmc-facebook-yosemite4.dts  | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
index 4b23e467690f..e8d7eb7ff568 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
@@ -906,6 +906,11 @@ gpio at 23 {
 		"HSC7-ALERT2-R-N","HSC8-ALERT2-R-N";
 	};
 
+	power-sensor at 40 {
+		compatible = "mps,mp5023";
+		reg = <0x40>;
+	};
+
 	temperature-sensor at 48 {
 		compatible = "ti,tmp75";
 		reg = <0x48>;
@@ -930,6 +935,26 @@ eeprom at 54 {
 		compatible = "atmel,24c256";
 		reg = <0x54>;
 	};
+
+	power-sensor at 62 {
+		compatible = "pmbus";
+		reg = <0x62>;
+	};
+
+	power-sensor at 64 {
+		compatible = "pmbus";
+		reg = <0x64>;
+	};
+
+	power-sensor at 65 {
+		compatible = "pmbus";
+		reg = <0x65>;
+	};
+
+	power-sensor at 68 {
+		compatible = "pmbus";
+		reg = <0x68>;
+	};
 };
 
 &i2c12 {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH v6 11/22] ARM: dts: aspeed: yosemite4: Add eeprom for yosemite4 use
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
                   ` (9 preceding siblings ...)
  2024-03-12  6:15 ` [PATCH v6 10/22] ARM: dts: aspeed: yosemite4: Add power sensor for power module reading Delphine CC Chiu
@ 2024-03-12  6:15 ` Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 12/22] ARM: dts: aspeed: yosemite4: Remove temperature sensor for yosemite4 schematic change Delphine CC Chiu
                   ` (12 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Delphine CC Chiu @ 2024-03-12  6:15 UTC (permalink / raw)
  To: linux-aspeed

Add eeprom for yosemite4 use

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
index e8d7eb7ff568..f00df378a371 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
@@ -932,7 +932,7 @@ temperature-sensor at 4b {
 	};
 
 	eeprom at 54 {
-		compatible = "atmel,24c256";
+		compatible = "atmel,24c128";
 		reg = <0x54>;
 	};
 
@@ -971,6 +971,11 @@ eeprom at 50 {
 		reg = <0x50>;
 	};
 
+	eeprom at 54 {
+		compatible = "atmel,24c64";
+		reg = <0x54>;
+	};
+
 	rtc at 6f {
 		compatible = "nuvoton,nct3018y";
 		reg = <0x6f>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH v6 12/22] ARM: dts: aspeed: yosemite4: Remove temperature sensor for yosemite4 schematic change
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
                   ` (10 preceding siblings ...)
  2024-03-12  6:15 ` [PATCH v6 11/22] ARM: dts: aspeed: yosemite4: Add eeprom for yosemite4 use Delphine CC Chiu
@ 2024-03-12  6:15 ` Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 13/22] ARM: dts: aspeed: yosemite4: Revise adc128d818 adc mode " Delphine CC Chiu
                   ` (11 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Delphine CC Chiu @ 2024-03-12  6:15 UTC (permalink / raw)
  To: linux-aspeed

Remove temperature sensor for yosemite4 schematic change

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
 .../boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts  | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
index f00df378a371..bb4cba8f057e 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
@@ -921,16 +921,6 @@ temperature-sensor at 49 {
 		reg = <0x49>;
 	};
 
-	temperature-sensor at 4a {
-		compatible = "ti,tmp75";
-		reg = <0x4a>;
-	};
-
-	temperature-sensor at 4b {
-		compatible = "ti,tmp75";
-		reg = <0x4b>;
-	};
-
 	eeprom at 54 {
 		compatible = "atmel,24c128";
 		reg = <0x54>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH v6 13/22] ARM: dts: aspeed: yosemite4: Revise adc128d818 adc mode for yosemite4 schematic change
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
                   ` (11 preceding siblings ...)
  2024-03-12  6:15 ` [PATCH v6 12/22] ARM: dts: aspeed: yosemite4: Remove temperature sensor for yosemite4 schematic change Delphine CC Chiu
@ 2024-03-12  6:15 ` Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 14/22] ARM: dts: aspeed: yosemite4: Revise ina233 config " Delphine CC Chiu
                   ` (10 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Delphine CC Chiu @ 2024-03-12  6:15 UTC (permalink / raw)
  To: linux-aspeed

Revise adc128d818 adc mode for yosemite4 schematic change

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
 .../boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts  | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
index bb4cba8f057e..4cf4b0ca1024 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
@@ -1010,19 +1010,19 @@ &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 {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH v6 14/22] ARM: dts: aspeed: yosemite4: Revise ina233 config for yosemite4 schematic change
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
                   ` (12 preceding siblings ...)
  2024-03-12  6:15 ` [PATCH v6 13/22] ARM: dts: aspeed: yosemite4: Revise adc128d818 adc mode " Delphine CC Chiu
@ 2024-03-12  6:15 ` Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 15/22] ARM: dts: aspeed: yosemite4: Remove idle state setting for yosemite4 NIC connection Delphine CC Chiu
                   ` (9 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Delphine CC Chiu @ 2024-03-12  6:15 UTC (permalink / raw)
  To: linux-aspeed

Revise ina233 config for yosemite4 schematic change

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
 .../aspeed/aspeed-bmc-facebook-yosemite4.dts  | 20 ++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
index 4cf4b0ca1024..f0e93c74003a 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
@@ -1026,28 +1026,38 @@ adc at 37 {
 	};
 
 	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 {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH v6 15/22] ARM: dts: aspeed: yosemite4: Remove idle state setting for yosemite4 NIC connection
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
                   ` (13 preceding siblings ...)
  2024-03-12  6:15 ` [PATCH v6 14/22] ARM: dts: aspeed: yosemite4: Revise ina233 config " Delphine CC Chiu
@ 2024-03-12  6:15 ` Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 16/22] ARM: dts: aspeed: yosemite4: Initialize bmc gpio state Delphine CC Chiu
                   ` (8 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Delphine CC Chiu @ 2024-03-12  6:15 UTC (permalink / raw)
  To: linux-aspeed

Remove idle state setting for yosemite4 NIC connection

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
index f0e93c74003a..6d5710e5753c 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
@@ -1227,7 +1227,6 @@ mctp at 10 {
 
 	i2c-mux at 72 {
 		compatible = "nxp,pca9544";
-		i2c-mux-idle-disconnect;
 		reg = <0x72>;
 
 		imux24: i2c at 0 {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH v6 16/22] ARM: dts: aspeed: yosemite4: Initialize bmc gpio state
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
                   ` (14 preceding siblings ...)
  2024-03-12  6:15 ` [PATCH v6 15/22] ARM: dts: aspeed: yosemite4: Remove idle state setting for yosemite4 NIC connection Delphine CC Chiu
@ 2024-03-12  6:15 ` Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 17/22] ARM: dts: aspeed: yosemite4: Revise mx31790 fan tach config Delphine CC Chiu
                   ` (7 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Delphine CC Chiu @ 2024-03-12  6:15 UTC (permalink / raw)
  To: linux-aspeed

Initialize bmc gpio state

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
Changelog:
  - v4
    - Rename gpio-line-names
  - v3
    - Add patch for revising gpio name
---
 .../aspeed/aspeed-bmc-facebook-yosemite4.dts  | 235 ++++++++++++++++++
 1 file changed, 235 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
index 6d5710e5753c..1b91821b019d 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
@@ -1271,6 +1271,7 @@ temperature-sensor at 1f {
 	};
 };
 
+
 &adc0 {
 	ref_voltage = <2500>;
 	status = "okay";
@@ -1298,3 +1299,237 @@ &ehci1 {
 &uhci {
 	status = "okay";
 };
+
+&sgpiom0 {
+	status = "okay";
+	ngpios = <128>;
+	bus-frequency = <48000>;
+};
+
+&pinctrl {
+	pinctrl_gpio0_unbiased: gpio0_unbiased {
+		/* GPIOB0, GPIOB1 */
+		pins = "J26", "K23";
+		bias-disable;
+	};
+	pinctrl_gpio2_unbiased: gpio2_unbiased {
+		/* GPIOI5, GPIOI6, GPIOI7,
+		   GPIOL6 */
+		pins = "E16", "B16", "A15", "B14";
+		bias-disable;
+	};
+	pinctrl_gpio3_unbiased: gpio3_unbiased {
+		/* GPIOM2, GPIOM3, GPIOM4, GPIOM5,
+		   GPION0, GPION1, GPION2, GPION3, GPION5,
+		   GPIOO0, GPIOO1, GPIOO2, GPIOO3,
+		   GPIOP0, GPIOP1, GPIOP2, GPIOP3, GPIOP4, GPIOP5, GPIOP6 */
+		pins = "A12", "E14", "B12", "C12", "P25", "N23", "N25", "N24", "M23", "AD26", "AD22", "AD23", "AD24", "AB22", "W24", "AA23", "AA24", "W23", "AB23", "AB24";
+		bias-disable;
+	};
+	pinctrl_gpio4_unbiased: gpio4_unbiased {
+		/* GPIOR0, GPIOR1, GPIOR2, GPIOR3, GPIOR4, GPIOR5, GPIOR6, GPIOR7
+		   GPIOS0, GPIOS1, GPIOS2, GPIOS3, GPIOS5, GPIOS6, GPIOS7 */
+		pins = "V25", "U24", "V24", "V26", "U25", "T23", "W26", "U26", "R23", "T25", "T26", "R24", "P24", "P23", "T24";
+		bias-disable;
+	};
+	pinctrl_gpio5_unbiased: gpio5_unbiased {
+		/* GPIOV0, GPIOV1, GPIOV2, GPIOV3, GPIOV4, GPIOV5, GPIOV6, GPIOV7
+		   GPIOX1, GPIOX2 */
+		pins = "AB15", "AF14", "AD14", "AC15", "AE15", "AE14", "AD15", "AF15", "AA9", "AC9";
+		bias-disable;
+	};
+	pinctrl_gpio6_unbiased: gpio6_unbiased {
+		/* GPIOY2, GPIOY5, GPIOY6
+		   GPIOZ0, GPIOZ1, GPIOZ3, GPIOZ4 */
+		pins = "AE11", "AF12", "AC12", "AC10", "AD10", "AB11", "AC11";
+		bias-disable;
+	};
+};
+
+&gpio0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_gpiu2_default &pinctrl_gpiu3_default
+		     &pinctrl_gpiu4_default &pinctrl_gpiu6_default
+		     &pinctrl_gpio0_unbiased &pinctrl_gpio2_unbiased
+		     &pinctrl_gpio3_unbiased &pinctrl_gpio4_unbiased
+		     &pinctrl_gpio5_unbiased &pinctrl_gpio6_unbiased>;
+	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*/       "","","","","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","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","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",
+			"","","","",
+	/*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*/       "","","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",
+			"","","","",
+	/*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;
+	};
+};
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH v6 17/22] ARM: dts: aspeed: yosemite4: Revise mx31790 fan tach config
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
                   ` (15 preceding siblings ...)
  2024-03-12  6:15 ` [PATCH v6 16/22] ARM: dts: aspeed: yosemite4: Initialize bmc gpio state Delphine CC Chiu
@ 2024-03-12  6:15 ` Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 18/22] ARM: dts: aspeed: yosemite4: add mctp config for NIC Delphine CC Chiu
                   ` (6 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Delphine CC Chiu @ 2024-03-12  6:15 UTC (permalink / raw)
  To: linux-aspeed

Revise fan tach config for max31790 driver change

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
 .../aspeed/aspeed-bmc-facebook-yosemite4.dts  | 48 +++++++++++++++++--
 1 file changed, 44 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
index 1b91821b019d..ba7db2693277 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
@@ -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 {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH v6 18/22] ARM: dts: aspeed: yosemite4: add mctp config for NIC
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
                   ` (16 preceding siblings ...)
  2024-03-12  6:15 ` [PATCH v6 17/22] ARM: dts: aspeed: yosemite4: Revise mx31790 fan tach config Delphine CC Chiu
@ 2024-03-12  6:15 ` Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 19/22] ARM: dts: aspeed: yosemite4: support mux to cpld Delphine CC Chiu
                   ` (5 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Delphine CC Chiu @ 2024-03-12  6:15 UTC (permalink / raw)
  To: linux-aspeed

add mctp config for NIC

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
Changelog:
  - v4
    - Revise device node name
  - v2
    - Add patch for NIC mctp config
---
 .../aspeed/aspeed-bmc-facebook-yosemite4.dts  | 24 +++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
index ba7db2693277..06f22562b381 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
@@ -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>;
 			};
+
+			temperature-sensor 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>;
 			};
+
+			temperature-sensor 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>;
 			};
+
+			temperature-sensor 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>;
 			};
+
+			temperature-sensor at 3c {
+				compatible = "smsc,emc1403";
+				reg = <0x3c>;
+			};
 		};
 	};
 };
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH v6 19/22] ARM: dts: aspeed: yosemite4: support mux to cpld
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
                   ` (17 preceding siblings ...)
  2024-03-12  6:15 ` [PATCH v6 18/22] ARM: dts: aspeed: yosemite4: add mctp config for NIC Delphine CC Chiu
@ 2024-03-12  6:15 ` Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 20/22] ARM: dts: aspeed: yosemite4: support medusa board adc sensors Delphine CC Chiu
                   ` (4 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Delphine CC Chiu @ 2024-03-12  6:15 UTC (permalink / raw)
  To: linux-aspeed

Mux pca9544 to cpld was added on EVT HW schematic design,
so add dts setting for devices behind mux pca9544 to cpld

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
 .../aspeed/aspeed-bmc-facebook-yosemite4.dts  | 64 ++++++++++++++-----
 1 file changed, 49 insertions(+), 15 deletions(-)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
index 06f22562b381..d85c29cbb286 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
@@ -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>;
+		};
 	};
 };
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH v6 20/22] ARM: dts: aspeed: yosemite4: support medusa board adc sensors
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
                   ` (18 preceding siblings ...)
  2024-03-12  6:15 ` [PATCH v6 19/22] ARM: dts: aspeed: yosemite4: support mux to cpld Delphine CC Chiu
@ 2024-03-12  6:15 ` Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 21/22] ARM: dts: aspeed: yosemite4: support NIC eeprom Delphine CC Chiu
                   ` (3 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Delphine CC Chiu @ 2024-03-12  6:15 UTC (permalink / raw)
  To: linux-aspeed

Add ina233/ina28 support for medusa board adc sensors

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
 .../dts/aspeed/aspeed-bmc-facebook-yosemite4.dts    | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
index d85c29cbb286..db195213a848 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
@@ -915,6 +915,19 @@ power-sensor at 40 {
 		reg = <0x40>;
 	};
 
+	power-sensor at 41 {
+			compatible = "ti,ina233";
+			resistor-calibration = /bits/ 16 <0x0a00>;
+			current-lsb= /bits/ 16 <0x0001>;
+			reg = <0x41>;
+	};
+
+	power-sensor at 44 {
+			compatible = "ti,ina238";
+			shunt-resistor = <1000>;
+			reg = <0x44>;
+	};
+
 	temperature-sensor at 48 {
 		compatible = "ti,tmp75";
 		reg = <0x48>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH v6 21/22] ARM: dts: aspeed: yosemite4: support NIC eeprom
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
                   ` (19 preceding siblings ...)
  2024-03-12  6:15 ` [PATCH v6 20/22] ARM: dts: aspeed: yosemite4: support medusa board adc sensors Delphine CC Chiu
@ 2024-03-12  6:15 ` Delphine CC Chiu
  2024-03-12  6:15 ` [PATCH v6 22/22] ARM: dts: aspeed: yosemite4: Revise i2c duty-cycle Delphine CC Chiu
                   ` (2 subsequent siblings)
  23 siblings, 0 replies; 25+ messages in thread
From: Delphine CC Chiu @ 2024-03-12  6:15 UTC (permalink / raw)
  To: linux-aspeed

Add NIC eeprom devicetree config

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
 .../aspeed/aspeed-bmc-facebook-yosemite4.dts  | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
index db195213a848..c2d184b21567 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
@@ -1330,6 +1330,11 @@ temperature-sensor at 3c {
 				compatible = "smsc,emc1403";
 				reg = <0x3c>;
 			};
+
+			eeprom at 50 {
+				compatible = "atmel,24c64";
+				reg = <0x50>;
+			};
 		};
 
 		imux25: i2c at 1 {
@@ -1346,6 +1351,11 @@ temperature-sensor at 3c {
 				compatible = "smsc,emc1403";
 				reg = <0x3c>;
 			};
+
+			eeprom at 50 {
+				compatible = "atmel,24c64";
+				reg = <0x50>;
+			};
 		};
 
 		imux26: i2c at 2 {
@@ -1362,6 +1372,11 @@ temperature-sensor at 3c {
 				compatible = "smsc,emc1403";
 				reg = <0x3c>;
 			};
+
+			eeprom at 50 {
+				compatible = "atmel,24c64";
+				reg = <0x50>;
+			};
 		};
 
 		imux27: i2c at 3 {
@@ -1378,6 +1393,11 @@ temperature-sensor at 3c {
 				compatible = "smsc,emc1403";
 				reg = <0x3c>;
 			};
+
+			eeprom at 50 {
+				compatible = "atmel,24c64";
+				reg = <0x50>;
+			};
 		};
 	};
 };
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH v6 22/22] ARM: dts: aspeed: yosemite4: Revise i2c duty-cycle
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
                   ` (20 preceding siblings ...)
  2024-03-12  6:15 ` [PATCH v6 21/22] ARM: dts: aspeed: yosemite4: support NIC eeprom Delphine CC Chiu
@ 2024-03-12  6:15 ` Delphine CC Chiu
  2024-03-12 14:33 ` [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Rob Herring
  2024-03-18  5:22 ` Andrew Jeffery
  23 siblings, 0 replies; 25+ messages in thread
From: Delphine CC Chiu @ 2024-03-12  6:15 UTC (permalink / raw)
  To: linux-aspeed

Revise duty cycle SMB11 and SMB16 to high: 40%, low: 60%,
to meet 400kHz-i2c clock low time spec (> 1.3 us) from EE request

Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
index c2d184b21567..c86e4a5397c4 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
@@ -761,6 +761,7 @@ eeprom at 54 {
 &i2c10 {
 	status = "okay";
 	bus-frequency = <400000>;
+	i2c-clk-high-min-percent = <40>;
 	i2c-mux at 74 {
 		compatible = "nxp,pca9544";
 		i2c-mux-idle-disconnect;
@@ -1306,6 +1307,7 @@ &i2c15 {
 	mctp-controller;
 	multi-master;
 	bus-frequency = <400000>;
+	i2c-clk-high-min-percent = <40>;
 
 	mctp at 10 {
 		compatible = "mctp-i2c-controller";
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
                   ` (21 preceding siblings ...)
  2024-03-12  6:15 ` [PATCH v6 22/22] ARM: dts: aspeed: yosemite4: Revise i2c duty-cycle Delphine CC Chiu
@ 2024-03-12 14:33 ` Rob Herring
  2024-03-18  5:22 ` Andrew Jeffery
  23 siblings, 0 replies; 25+ messages in thread
From: Rob Herring @ 2024-03-12 14:33 UTC (permalink / raw)
  To: linux-aspeed


On Tue, 12 Mar 2024 14:15:32 +0800, Delphine CC Chiu wrote:
> Changelog:
>   - v6
>     - Revise i2c duty-cycle for meeting 400khz spec
>   - v5
>     - Support medusa board adc sensors
>     - support NIC eeprom
>   - v4
>     - Re-format gpio linename
>     - Revise i2c device node names
>     - Split patches by logic changes
>   - 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 (22):
>   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: Remove space for adm1272 compatible
>   ARM: dts: aspeed: yosemite4: Enable interrupt setting for pca9555
>   ARM: dts: aspeed: yosemite4: Add power sensor for power module reading
>   ARM: dts: aspeed: yosemite4: Add eeprom for yosemite4 use
>   ARM: dts: aspeed: yosemite4: Remove temperature sensor for yosemite4
>     schematic change
>   ARM: dts: aspeed: yosemite4: Revise adc128d818 adc mode for yosemite4
>     schematic change
>   ARM: dts: aspeed: yosemite4: Revise ina233 config for yosemite4
>     schematic change
>   ARM: dts: aspeed: yosemite4: Remove idle state setting for yosemite4
>     NIC connection
>   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: support medusa board adc sensors
>   ARM: dts: aspeed: yosemite4: support NIC eeprom
>   ARM: dts: aspeed: yosemite4: Revise i2c duty-cycle
> 
>  .../aspeed/aspeed-bmc-facebook-yosemite4.dts  | 1258 +++++++++++++++--
>  1 file changed, 1151 insertions(+), 107 deletions(-)
> 
> --
> 2.25.1
> 
> 
> 


My bot found new DTB warnings on the .dts files added or changed in this
series.

Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.

If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:

  pip3 install dtschema --upgrade


New warnings running 'make CHECK_DTBS=y aspeed/aspeed-bmc-facebook-yosemite4.dtb' for 20240312061556.496605-1-Delphine_CC_Chiu at wiwynn.com:

arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:550.4-14: Warning (reg_format): /ahb/apb/bus at 1e78a000/i2c-bus at 480/i2c-mux at 70/i2c at 0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:576.4-14: Warning (reg_format): /ahb/apb/bus at 1e78a000/i2c-bus at 480/i2c-mux at 70/i2c at 1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:601.4-14: Warning (reg_format): /ahb/apb/bus at 1e78a000/i2c-bus at 480/i2c-mux at 70/i2c at 2:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:626.4-14: Warning (reg_format): /ahb/apb/bus at 1e78a000/i2c-bus at 480/i2c-mux at 70/i2c at 3:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:661.4-14: Warning (reg_format): /ahb/apb/bus at 1e78a000/i2c-bus at 500/i2c-mux at 71/i2c at 0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:686.4-14: Warning (reg_format): /ahb/apb/bus at 1e78a000/i2c-bus at 500/i2c-mux at 71/i2c at 1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:711.4-14: Warning (reg_format): /ahb/apb/bus at 1e78a000/i2c-bus at 500/i2c-mux at 71/i2c at 2:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:736.4-14: Warning (reg_format): /ahb/apb/bus at 1e78a000/i2c-bus at 500/i2c-mux at 71/i2c at 3:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:773.4-14: Warning (reg_format): /ahb/apb/bus at 1e78a000/i2c-bus at 580/i2c-mux at 74/i2c at 0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:821.4-14: Warning (reg_format): /ahb/apb/bus at 1e78a000/i2c-bus at 580/i2c-mux at 74/i2c at 1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:980.4-14: Warning (reg_format): /ahb/apb/bus at 1e78a000/i2c-bus at 680/i2c-mux at 70/i2c at 0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1006.4-14: Warning (reg_format): /ahb/apb/bus at 1e78a000/i2c-bus at 680/i2c-mux at 70/i2c at 1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1012.4-14: Warning (reg_format): /ahb/apb/bus at 1e78a000/i2c-bus at 680/i2c-mux at 70/i2c at 2:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1018.4-14: Warning (reg_format): /ahb/apb/bus at 1e78a000/i2c-bus at 680/i2c-mux at 70/i2c at 3:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1324.4-14: Warning (reg_format): /ahb/apb/bus at 1e78a000/i2c-bus at 800/i2c-mux at 72/i2c at 0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1345.4-14: Warning (reg_format): /ahb/apb/bus at 1e78a000/i2c-bus at 800/i2c-mux at 72/i2c at 1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1366.4-14: Warning (reg_format): /ahb/apb/bus at 1e78a000/i2c-bus at 800/i2c-mux at 72/i2c at 2:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1387.4-14: Warning (reg_format): /ahb/apb/bus at 1e78a000/i2c-bus at 800/i2c-mux at 72/i2c at 3:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dtb: Warning (pci_device_reg): Failed prerequisite 'reg_format'
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dtb: Warning (pci_device_bus_num): Failed prerequisite 'reg_format'
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dtb: Warning (i2c_bus_reg): Failed prerequisite 'reg_format'
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dtb: Warning (spi_bus_reg): Failed prerequisite 'reg_format'
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:547.17-571.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 480/i2c-mux at 70/i2c at 0: Relying on default #address-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:547.17-571.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 480/i2c-mux at 70/i2c at 0: Relying on default #size-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:573.17-596.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 480/i2c-mux at 70/i2c at 1: Relying on default #address-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:573.17-596.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 480/i2c-mux at 70/i2c at 1: Relying on default #size-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:598.17-621.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 480/i2c-mux at 70/i2c at 2: Relying on default #address-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:598.17-621.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 480/i2c-mux at 70/i2c at 2: Relying on default #size-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:623.17-646.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 480/i2c-mux at 70/i2c at 3: Relying on default #address-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:623.17-646.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 480/i2c-mux at 70/i2c at 3: Relying on default #size-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:658.17-681.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 500/i2c-mux at 71/i2c at 0: Relying on default #address-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:658.17-681.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 500/i2c-mux at 71/i2c at 0: Relying on default #size-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:683.17-706.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 500/i2c-mux at 71/i2c at 1: Relying on default #address-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:683.17-706.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 500/i2c-mux at 71/i2c at 1: Relying on default #size-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:708.17-731.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 500/i2c-mux at 71/i2c at 2: Relying on default #address-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:708.17-731.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 500/i2c-mux at 71/i2c at 2: Relying on default #size-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:733.17-757.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 500/i2c-mux at 71/i2c at 3: Relying on default #address-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:733.17-757.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 500/i2c-mux at 71/i2c at 3: Relying on default #size-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:770.17-816.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 580/i2c-mux at 74/i2c at 0: Relying on default #address-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:770.17-816.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 580/i2c-mux at 74/i2c at 0: Relying on default #size-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:818.17-822.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 580/i2c-mux at 74/i2c at 1: Relying on default #address-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:818.17-822.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 580/i2c-mux at 74/i2c at 1: Relying on default #size-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:977.17-1001.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 680/i2c-mux at 70/i2c at 0: Relying on default #address-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:977.17-1001.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 680/i2c-mux at 70/i2c at 0: Relying on default #size-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1003.17-1007.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 680/i2c-mux at 70/i2c at 1: Relying on default #address-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1003.17-1007.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 680/i2c-mux at 70/i2c at 1: Relying on default #size-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1009.17-1013.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 680/i2c-mux at 70/i2c at 2: Relying on default #address-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1009.17-1013.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 680/i2c-mux at 70/i2c at 2: Relying on default #size-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1015.17-1019.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 680/i2c-mux at 70/i2c at 3: Relying on default #address-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1015.17-1019.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 680/i2c-mux at 70/i2c at 3: Relying on default #size-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1321.17-1340.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 800/i2c-mux at 72/i2c at 0: Relying on default #address-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1321.17-1340.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 800/i2c-mux at 72/i2c at 0: Relying on default #size-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1342.17-1361.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 800/i2c-mux at 72/i2c at 1: Relying on default #address-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1342.17-1361.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 800/i2c-mux at 72/i2c at 1: Relying on default #size-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1363.17-1382.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 800/i2c-mux at 72/i2c at 2: Relying on default #address-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1363.17-1382.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 800/i2c-mux at 72/i2c at 2: Relying on default #size-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1384.17-1403.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 800/i2c-mux at 72/i2c at 3: Relying on default #address-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1384.17-1403.5: Warning (avoid_default_addr_size): /ahb/apb/bus at 1e78a000/i2c-bus at 800/i2c-mux at 72/i2c at 3: Relying on default #size-cells value
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1553.3-29: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_b4:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1552.14-1555.4: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_b4: Missing property '#gpio-cells' in node /ahb/apb/syscon at 1e6e2000/pinctrl/usb2bd_default or bad phandle (referred from gpios[0])
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1557.3-29: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_b5:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1556.14-1559.4: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_b5: Missing property '#gpio-cells' in node /ahb/apb/syscon at 1e6e2000/interrupt-controller at 560 or bad phandle (referred from gpios[0])
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1561.3-29: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_f0:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1560.14-1563.4: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_f0: Missing property '#gpio-cells' in node /ahb/apb/syscon at 1e6e2000/pinctrl/txd1_default or bad phandle (referred from gpios[0])
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1565.3-29: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_f1:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1564.14-1567.4: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_f1: Missing property '#gpio-cells' in node /ahb/apb/syscon at 1e6e2000/pinctrl/rxd1_default or bad phandle (referred from gpios[0])
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1569.3-29: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_f2:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1568.14-1571.5: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_f2: Missing property '#gpio-cells' in node /ahb/apb/syscon at 1e6e2000/pinctrl/wdtrst1_default or bad phandle (referred from gpios[0])
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1573.3-29: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_f3:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1572.14-1575.4: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_f3: Missing property '#gpio-cells' in node /ahb/apb/syscon at 1e6e2000/pinctrl/wdtrst2_default or bad phandle (referred from gpios[0])
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1577.3-29: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_f4:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1576.14-1579.4: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_f4: Missing property '#gpio-cells' in node /ahb/apb/syscon at 1e6e2000/pinctrl/emmc_default or bad phandle (referred from gpios[0])
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1581.3-29: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_f5:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1580.14-1583.4: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_f5: Missing property '#gpio-cells' in node /ahb/apb/syscon at 1e6e2000/pinctrl/txd2_default or bad phandle (referred from gpios[0])
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1585.3-29: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_f6:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1584.14-1587.4: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_f6: Missing property '#gpio-cells' in node /ahb/apb/syscon at 1e6e2000/pinctrl/rxd2_default or bad phandle (referred from gpios[0])
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1589.3-29: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_f7:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1588.14-1591.4: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_f7: Missing property '#gpio-cells' in node /ahb/apb/syscon at 1e6e2000/pinctrl/txd3_default or bad phandle (referred from gpios[0])
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1593.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_l6:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1593.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_l6:gpios: Could not get phandle node for (cell 0)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1597.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_l7:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1597.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_l7:gpios: Could not get phandle node for (cell 0)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1601.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_s0:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1601.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_s0:gpios: Could not get phandle node for (cell 0)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1605.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_s1:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1605.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_s1:gpios: Could not get phandle node for (cell 0)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1609.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_v0:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1609.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_v0:gpios: Could not get phandle node for (cell 0)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1613.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_v1:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1613.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_v1:gpios: Could not get phandle node for (cell 0)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1617.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_v2:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1617.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_v2:gpios: Could not get phandle node for (cell 0)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1621.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_v3:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1621.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_v3:gpios: Could not get phandle node for (cell 0)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1625.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_w0:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1625.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_w0:gpios: Could not get phandle node for (cell 0)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1629.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_w1:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1629.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_w1:gpios: Could not get phandle node for (cell 0)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1633.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_w2:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1633.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_w2:gpios: Could not get phandle node for (cell 0)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1637.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_w3:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1637.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_w3:gpios: Could not get phandle node for (cell 0)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1641.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_w4:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1641.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_w4:gpios: Could not get phandle node for (cell 0)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1645.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_w5:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1645.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_w5:gpios: Could not get phandle node for (cell 0)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1649.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_w6:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1649.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_w6:gpios: Could not get phandle node for (cell 0)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1653.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_w7:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1653.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_w7:gpios: Could not get phandle node for (cell 0)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1657.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_z3:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1657.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_z3:gpios: Could not get phandle node for (cell 0)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1661.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_z4:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1661.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_z4:gpios: Could not get phandle node for (cell 0)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1665.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_z5:gpios: cell 0 is not a phandle reference
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts:1665.3-30: Warning (gpios_property): /ahb/apb/gpio at 1e780000/pin_gpio_z5:gpios: Could not get phandle node for (cell 0)
Traceback (most recent call last):
  File "/home/rob/.local/bin/dt-validate", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/rob/proj/dt-schema/dtschema/dtb_validate.py", line 144, in main
    sg.check_dtb(filename)
  File "/home/rob/proj/dt-schema/dtschema/dtb_validate.py", line 87, in check_dtb
    dt = self.validator.decode_dtb(f.read())
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/rob/proj/dt-schema/dtschema/validator.py", line 518, in decode_dtb
    return [dtschema.dtb.fdt_unflatten(self, dtb)]
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/rob/proj/dt-schema/dtschema/dtb.py", line 492, in fdt_unflatten
    fixup_gpios(dt)
  File "/home/rob/proj/dt-schema/dtschema/dtb.py", line 381, in fixup_gpios
    fixup_gpios(v)
  File "/home/rob/proj/dt-schema/dtschema/dtb.py", line 381, in fixup_gpios
    fixup_gpios(v)
  File "/home/rob/proj/dt-schema/dtschema/dtb.py", line 381, in fixup_gpios
    fixup_gpios(v)
  [Previous line repeated 1 more time]
  File "/home/rob/proj/dt-schema/dtschema/dtb.py", line 402, in fixup_gpios
    node = phandles[phandle]
           ~~~~~~~~^^^^^^^^^
KeyError: 94






^ permalink raw reply	[flat|nested] 25+ messages in thread

* [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4
  2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
                   ` (22 preceding siblings ...)
  2024-03-12 14:33 ` [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Rob Herring
@ 2024-03-18  5:22 ` Andrew Jeffery
  23 siblings, 0 replies; 25+ messages in thread
From: Andrew Jeffery @ 2024-03-18  5:22 UTC (permalink / raw)
  To: linux-aspeed

Hello,

On Tue, 2024-03-12 at 14:15 +0800, Delphine CC Chiu wrote:
> Changelog:
>   - v6
>     - Revise i2c duty-cycle for meeting 400khz spec

A quick spot-check suggests that my comments on v5 haven't been
addressed. I didn't receive any replies to those comments either.

Can you please either discuss or implement the suggestions before
sending the series again?

Andrew

>   - v5
>     - Support medusa board adc sensors
>     - support NIC eeprom

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2024-03-18  5:22 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-12  6:15 [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Delphine CC Chiu
2024-03-12  6:15 ` [PATCH v6 01/22] ARM: dts: aspeed: yosemite4: Revise i2c-mux devices Delphine CC Chiu
2024-03-12  6:15 ` [PATCH v6 02/22] ARM: dts: aspeed: yosemite4: Enable adc15 Delphine CC Chiu
2024-03-12  6:15 ` [PATCH v6 03/22] ARM: dts: aspeed: yosemite4: Enable spi-gpio setting Delphine CC Chiu
2024-03-12  6:15 ` [PATCH v6 04/22] ARM: dts: aspeed: yosemite4: Enable watchdog2 Delphine CC Chiu
2024-03-12  6:15 ` [PATCH v6 05/22] ARM: dts: aspeed: yosemite4: Revise quad mode to dual mode Delphine CC Chiu
2024-03-12  6:15 ` [PATCH v6 06/22] ARM: dts: aspeed: yosemite4: Revise power sensor adm1281 for schematic change Delphine CC Chiu
2024-03-12  6:15 ` [PATCH v6 07/22] ARM: dts: aspeed: yosemite4: Add gpio pca9506 Delphine CC Chiu
2024-03-12  6:15 ` [PATCH v6 08/22] ARM: dts: aspeed: yosemite4: Remove space for adm1272 compatible Delphine CC Chiu
2024-03-12  6:15 ` [PATCH v6 09/22] ARM: dts: aspeed: yosemite4: Enable interrupt setting for pca9555 Delphine CC Chiu
2024-03-12  6:15 ` [PATCH v6 10/22] ARM: dts: aspeed: yosemite4: Add power sensor for power module reading Delphine CC Chiu
2024-03-12  6:15 ` [PATCH v6 11/22] ARM: dts: aspeed: yosemite4: Add eeprom for yosemite4 use Delphine CC Chiu
2024-03-12  6:15 ` [PATCH v6 12/22] ARM: dts: aspeed: yosemite4: Remove temperature sensor for yosemite4 schematic change Delphine CC Chiu
2024-03-12  6:15 ` [PATCH v6 13/22] ARM: dts: aspeed: yosemite4: Revise adc128d818 adc mode " Delphine CC Chiu
2024-03-12  6:15 ` [PATCH v6 14/22] ARM: dts: aspeed: yosemite4: Revise ina233 config " Delphine CC Chiu
2024-03-12  6:15 ` [PATCH v6 15/22] ARM: dts: aspeed: yosemite4: Remove idle state setting for yosemite4 NIC connection Delphine CC Chiu
2024-03-12  6:15 ` [PATCH v6 16/22] ARM: dts: aspeed: yosemite4: Initialize bmc gpio state Delphine CC Chiu
2024-03-12  6:15 ` [PATCH v6 17/22] ARM: dts: aspeed: yosemite4: Revise mx31790 fan tach config Delphine CC Chiu
2024-03-12  6:15 ` [PATCH v6 18/22] ARM: dts: aspeed: yosemite4: add mctp config for NIC Delphine CC Chiu
2024-03-12  6:15 ` [PATCH v6 19/22] ARM: dts: aspeed: yosemite4: support mux to cpld Delphine CC Chiu
2024-03-12  6:15 ` [PATCH v6 20/22] ARM: dts: aspeed: yosemite4: support medusa board adc sensors Delphine CC Chiu
2024-03-12  6:15 ` [PATCH v6 21/22] ARM: dts: aspeed: yosemite4: support NIC eeprom Delphine CC Chiu
2024-03-12  6:15 ` [PATCH v6 22/22] ARM: dts: aspeed: yosemite4: Revise i2c duty-cycle Delphine CC Chiu
2024-03-12 14:33 ` [PATCH v6 00/22] Add i2c-mux and eeprom devices for Meta Yosemite 4 Rob Herring
2024-03-18  5:22 ` Andrew Jeffery

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox