devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] Update the device tree for Ampere's BMC platform
@ 2024-08-01  9:12 Chanh Nguyen
  2024-08-01  9:12 ` [PATCH 1/6] ARM: dts: aspeed: mtjade, mtmitchell: Add OCP temperature sensors Chanh Nguyen
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Chanh Nguyen @ 2024-08-01  9:12 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley,
	Andrew Jeffery, devicetree, linux-arm-kernel, linux-aspeed,
	linux-kernel, OpenBMC Maillist, Open Source Submission
  Cc: Phong Vo, Thang Nguyen, Quan Nguyen, Chanh Nguyen

Updates the device tree to support some features on Ampere's
Mt.Mitchell BMC and Ampere's Mt.Jade BMC.

Chanh Nguyen (6):
  ARM: dts: aspeed: mtjade, mtmitchell: Add OCP temperature sensors
  ARM: dts: aspeed: mtmitchell: Add I2C temperature sensor alias ports
  ARM: dts: aspeed: mtmitchell: Add I2C Riser card alias ports
  ARM: dts: aspeed: mtmitchell: Enable i2c10 and i2c15
  ARM: dts: aspeed: mtmitchell: Add LEDs
  ARM: dts: aspeed: mtmitchell: Add I2C FAN controllers

 .../dts/aspeed/aspeed-bmc-ampere-mtjade.dts   |  16 ++
 .../aspeed/aspeed-bmc-ampere-mtmitchell.dts   | 152 ++++++++++++++++++
 2 files changed, 168 insertions(+)

-- 
2.43.0


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

* [PATCH 1/6] ARM: dts: aspeed: mtjade, mtmitchell: Add OCP temperature sensors
  2024-08-01  9:12 [PATCH 0/6] Update the device tree for Ampere's BMC platform Chanh Nguyen
@ 2024-08-01  9:12 ` Chanh Nguyen
  2024-08-01  9:12 ` [PATCH 2/6] ARM: dts: aspeed: mtmitchell: Add I2C temperature sensor alias ports Chanh Nguyen
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 11+ messages in thread
From: Chanh Nguyen @ 2024-08-01  9:12 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley,
	Andrew Jeffery, devicetree, linux-arm-kernel, linux-aspeed,
	linux-kernel, OpenBMC Maillist, Open Source Submission
  Cc: Phong Vo, Thang Nguyen, Quan Nguyen, Chanh Nguyen

Define I2C alias ports from I2C Switch 0x70 at BMC I2C5.

Add the tmp421 sensors via the I2C alias ports as OCP device
temperature sensors.

Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>
---
 .../dts/aspeed/aspeed-bmc-ampere-mtjade.dts   | 16 +++++++++++
 .../aspeed/aspeed-bmc-ampere-mtmitchell.dts   | 28 +++++++++++++++++++
 2 files changed, 44 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtjade.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtjade.dts
index 8ab5f301f926..8102f41d1d15 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtjade.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtjade.dts
@@ -49,6 +49,11 @@ aliases {
 		 */
 		i2c80 = &nvme_m2_0;
 		i2c81 = &nvme_m2_1;
+
+		/*
+		 *  i2c bus 82 assigned to OCP slot
+		 */
+		i2c82 = &ocpslot;
 	};
 
 	chosen {
@@ -420,6 +425,17 @@ i2c-mux@70 {
 		reg = <0x70>;
 		i2c-mux-idle-disconnect;
 
+		ocpslot: i2c@0 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x0>;
+
+			ocpslot_temp: temperature-sensor@1f {
+				compatible = "ti,tmp421";
+				reg = <0x1f>;
+			};
+		};
+
 		nvmeslot_0_7: i2c@3 {
 			#address-cells = <1>;
 			#size-cells = <0>;
diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts
index 3c8925034a8c..3a97e88278d5 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts
@@ -15,6 +15,12 @@ aliases {
 		serial7 = &uart8;
 		serial8 = &uart9;
 
+		/*
+		 *  i2c bus 30-31 assigned to OCP slot 0-1
+		 */
+		i2c30 = &ocpslot_0;
+		i2c31 = &ocpslot_1;
+
 		/*
 		 *  I2C NVMe alias port
 		 */
@@ -515,6 +521,28 @@ i2c-mux@70 {
 		#size-cells = <0>;
 		reg = <0x70>;
 		i2c-mux-idle-disconnect;
+
+		ocpslot_0: i2c@0 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x0>;
+
+			ocpslot_0_temp: temperature-sensor@1f {
+				compatible = "ti,tmp421";
+				reg = <0x1f>;
+			};
+		};
+
+		ocpslot_1: i2c@1 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x1>;
+
+			ocpslot_1_temp: temperature-sensor@1f {
+				compatible = "ti,tmp421";
+				reg = <0x1f>;
+			};
+		};
 	};
 };
 
-- 
2.43.0


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

* [PATCH 2/6] ARM: dts: aspeed: mtmitchell: Add I2C temperature sensor alias ports
  2024-08-01  9:12 [PATCH 0/6] Update the device tree for Ampere's BMC platform Chanh Nguyen
  2024-08-01  9:12 ` [PATCH 1/6] ARM: dts: aspeed: mtjade, mtmitchell: Add OCP temperature sensors Chanh Nguyen
@ 2024-08-01  9:12 ` Chanh Nguyen
  2024-08-01  9:12 ` [PATCH 3/6] ARM: dts: aspeed: mtmitchell: Add I2C Riser card " Chanh Nguyen
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 11+ messages in thread
From: Chanh Nguyen @ 2024-08-01  9:12 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley,
	Andrew Jeffery, devicetree, linux-arm-kernel, linux-aspeed,
	linux-kernel, OpenBMC Maillist, Open Source Submission
  Cc: Phong Vo, Thang Nguyen, Quan Nguyen, Chanh Nguyen

Add the I2C alias ports to read temperature sensors via channels
of the I2C muxes.

Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>
---
 arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts
index 3a97e88278d5..1679911e4fd8 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts
@@ -15,6 +15,14 @@ aliases {
 		serial7 = &uart8;
 		serial8 = &uart9;
 
+		/*
+		 * I2C temperature alias port
+		 */
+		i2c20 = &i2c4_bus70_chn0;
+		i2c21 = &i2c4_bus70_chn1;
+		i2c22 = &i2c4_bus70_chn2;
+		i2c23 = &i2c4_bus70_chn3;
+
 		/*
 		 *  i2c bus 30-31 assigned to OCP slot 0-1
 		 */
-- 
2.43.0


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

* [PATCH 3/6] ARM: dts: aspeed: mtmitchell: Add I2C Riser card alias ports
  2024-08-01  9:12 [PATCH 0/6] Update the device tree for Ampere's BMC platform Chanh Nguyen
  2024-08-01  9:12 ` [PATCH 1/6] ARM: dts: aspeed: mtjade, mtmitchell: Add OCP temperature sensors Chanh Nguyen
  2024-08-01  9:12 ` [PATCH 2/6] ARM: dts: aspeed: mtmitchell: Add I2C temperature sensor alias ports Chanh Nguyen
@ 2024-08-01  9:12 ` Chanh Nguyen
  2024-08-01  9:12 ` [PATCH 4/6] ARM: dts: aspeed: mtmitchell: Enable i2c10 and i2c15 Chanh Nguyen
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 11+ messages in thread
From: Chanh Nguyen @ 2024-08-01  9:12 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley,
	Andrew Jeffery, devicetree, linux-arm-kernel, linux-aspeed,
	linux-kernel, OpenBMC Maillist, Open Source Submission
  Cc: Phong Vo, Thang Nguyen, Quan Nguyen, Chanh Nguyen

Define the I2C alias ports for the riser cards.

Besides that, it also adds the i2c muxes to switch to the i2c alias
ports.

Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>
---
 .../aspeed/aspeed-bmc-ampere-mtmitchell.dts   | 52 +++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts
index 1679911e4fd8..0703b77e438b 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts
@@ -29,6 +29,18 @@ aliases {
 		i2c30 = &ocpslot_0;
 		i2c31 = &ocpslot_1;
 
+		/*
+		 *  i2c bus 32-33 assigned to Riser slot 0-1
+		 */
+		i2c32 = &i2c_riser0;
+		i2c33 = &i2c_riser1;
+
+		/*
+		 *  i2c bus 38-39 assigned to FRU on Riser slot 0-1
+		 */
+		i2c38 = &i2c_riser0_chn_0;
+		i2c39 = &i2c_riser1_chn_0;
+
 		/*
 		 *  I2C NVMe alias port
 		 */
@@ -551,6 +563,46 @@ ocpslot_1_temp: temperature-sensor@1f {
 				reg = <0x1f>;
 			};
 		};
+
+		i2c_riser0: i2c@2 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x2>;
+
+			i2c-mux@72 {
+				compatible = "nxp,pca9546";
+				#address-cells = <1>;
+				#size-cells = <0>;
+				reg = <0x72>;
+				i2c-mux-idle-disconnect;
+
+				i2c_riser0_chn_0: i2c@0 {
+					#address-cells = <1>;
+					#size-cells = <0>;
+					reg = <0x0>;
+				};
+			};
+		};
+
+		i2c_riser1: i2c@3 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x3>;
+
+			i2c-mux@72 {
+				compatible = "nxp,pca9546";
+				#address-cells = <1>;
+				#size-cells = <0>;
+				reg = <0x72>;
+				i2c-mux-idle-disconnect;
+
+				i2c_riser1_chn_0: i2c@0 {
+					#address-cells = <1>;
+					#size-cells = <0>;
+					reg = <0x0>;
+				};
+			};
+		};
 	};
 };
 
-- 
2.43.0


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

* [PATCH 4/6] ARM: dts: aspeed: mtmitchell: Enable i2c10 and i2c15
  2024-08-01  9:12 [PATCH 0/6] Update the device tree for Ampere's BMC platform Chanh Nguyen
                   ` (2 preceding siblings ...)
  2024-08-01  9:12 ` [PATCH 3/6] ARM: dts: aspeed: mtmitchell: Add I2C Riser card " Chanh Nguyen
@ 2024-08-01  9:12 ` Chanh Nguyen
  2024-08-01  9:12 ` [PATCH 5/6] ARM: dts: aspeed: mtmitchell: Add LEDs Chanh Nguyen
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 11+ messages in thread
From: Chanh Nguyen @ 2024-08-01  9:12 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley,
	Andrew Jeffery, devicetree, linux-arm-kernel, linux-aspeed,
	linux-kernel, OpenBMC Maillist, Open Source Submission
  Cc: Phong Vo, Thang Nguyen, Quan Nguyen, Chanh Nguyen

Enable the BMC I2C10.
Enable the BMC I2C15 and add the GPIO Expander as a child node.

Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>
---
 .../aspeed/aspeed-bmc-ampere-mtmitchell.dts   | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts
index 0703b77e438b..119e82637023 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts
@@ -878,6 +878,10 @@ nvme_m2_1: i2c@1 {
 	};
 };
 
+&i2c10 {
+	status = "okay";
+};
+
 &i2c11 {
 	status = "okay";
 	ssif-bmc@10 {
@@ -900,6 +904,25 @@ bmc_ast2600_cpu: temperature-sensor@35 {
 	};
 };
 
+&i2c15 {
+	status = "okay";
+	gpio_expander1: gpio-expander@22 {
+		compatible = "nxp,pca9535";
+		reg = <0x22>;
+		gpio-controller;
+		#gpio-cells = <2>;
+		gpio-line-names =
+			"fan-fault","psu-fault",
+			"","",
+			"","",
+			"","",
+			"","",
+			"","",
+			"","",
+			"","";
+	};
+};
+
 &adc0 {
 	status = "okay";
 
-- 
2.43.0


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

* [PATCH 5/6] ARM: dts: aspeed: mtmitchell: Add LEDs
  2024-08-01  9:12 [PATCH 0/6] Update the device tree for Ampere's BMC platform Chanh Nguyen
                   ` (3 preceding siblings ...)
  2024-08-01  9:12 ` [PATCH 4/6] ARM: dts: aspeed: mtmitchell: Enable i2c10 and i2c15 Chanh Nguyen
@ 2024-08-01  9:12 ` Chanh Nguyen
  2024-08-01  9:12 ` [PATCH 6/6] ARM: dts: aspeed: mtmitchell: Add I2C FAN controllers Chanh Nguyen
  2024-08-01 15:29 ` [PATCH 0/6] Update the device tree for Ampere's BMC platform Rob Herring (Arm)
  6 siblings, 0 replies; 11+ messages in thread
From: Chanh Nguyen @ 2024-08-01  9:12 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley,
	Andrew Jeffery, devicetree, linux-arm-kernel, linux-aspeed,
	linux-kernel, OpenBMC Maillist, Open Source Submission
  Cc: Phong Vo, Thang Nguyen, Quan Nguyen, Chanh Nguyen

Add LED nodes as the gpio-leds devices. They are led-bmc-ready,
led-sw-heartbeat, led-identify, led-fault, led-fan-fault, led-psu-fault

Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>
---
 .../aspeed/aspeed-bmc-ampere-mtmitchell.dts   | 31 +++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts
index 119e82637023..093b746c010f 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts
@@ -113,6 +113,37 @@ vga_memory: region@bf000000 {
 		};
 	};
 
+	leds {
+		compatible = "gpio-leds";
+		/*
+		 * Use gpio-leds to configure GPIOW5 (bmc-ready) pin to be reseted when
+		 * watchdog timeout.
+		 */
+		led-bmc-ready {
+			gpios = <&gpio0 ASPEED_GPIO(W, 5) (GPIO_ACTIVE_HIGH | GPIO_TRANSITORY)>;
+		};
+
+		led-sw-heartbeat {
+			gpios = <&gpio0 ASPEED_GPIO(N, 3) GPIO_ACTIVE_HIGH>;
+		};
+
+		led-identify {
+			gpios = <&gpio0 ASPEED_GPIO(S, 3) GPIO_ACTIVE_HIGH>;
+		};
+
+		led-fault {
+			gpios = <&gpio0 ASPEED_GPIO(P, 4) GPIO_ACTIVE_HIGH>;
+		};
+
+		led-fan-fault {
+			gpios = <&gpio_expander1 0 GPIO_ACTIVE_HIGH>;
+		};
+
+		led-psu-fault {
+			gpios = <&gpio_expander1 1 GPIO_ACTIVE_HIGH>;
+		};
+	};
+
 	voltage_mon_reg: voltage-mon-regulator {
 		compatible = "regulator-fixed";
 		regulator-name = "ltc2497_reg";
-- 
2.43.0


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

* [PATCH 6/6] ARM: dts: aspeed: mtmitchell: Add I2C FAN controllers
  2024-08-01  9:12 [PATCH 0/6] Update the device tree for Ampere's BMC platform Chanh Nguyen
                   ` (4 preceding siblings ...)
  2024-08-01  9:12 ` [PATCH 5/6] ARM: dts: aspeed: mtmitchell: Add LEDs Chanh Nguyen
@ 2024-08-01  9:12 ` Chanh Nguyen
  2024-08-01 15:29 ` [PATCH 0/6] Update the device tree for Ampere's BMC platform Rob Herring (Arm)
  6 siblings, 0 replies; 11+ messages in thread
From: Chanh Nguyen @ 2024-08-01  9:12 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley,
	Andrew Jeffery, devicetree, linux-arm-kernel, linux-aspeed,
	linux-kernel, OpenBMC Maillist, Open Source Submission
  Cc: Phong Vo, Thang Nguyen, Quan Nguyen, Chanh Nguyen

Add the MAX31790 nodes as fan I2C controllers.

Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>
---
 .../boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts   | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts
index 093b746c010f..b3e7a306901b 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts
@@ -672,6 +672,16 @@ bmc-ocp0-en-hog {
 			line-name = "bmc-ocp0-en-n";
 		};
 	};
+
+	fan-controller0@20 {
+		compatible = "maxim,max31790";
+		reg = <0x20>;
+	};
+
+	fan-controller1@2f {
+		compatible = "maxim,max31790";
+		reg = <0x2f>;
+	};
 };
 
 &i2c9 {
-- 
2.43.0


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

* Re: [PATCH 0/6] Update the device tree for Ampere's BMC platform
  2024-08-01  9:12 [PATCH 0/6] Update the device tree for Ampere's BMC platform Chanh Nguyen
                   ` (5 preceding siblings ...)
  2024-08-01  9:12 ` [PATCH 6/6] ARM: dts: aspeed: mtmitchell: Add I2C FAN controllers Chanh Nguyen
@ 2024-08-01 15:29 ` Rob Herring (Arm)
  2024-08-03  3:49   ` Chanh Nguyen
  6 siblings, 1 reply; 11+ messages in thread
From: Rob Herring (Arm) @ 2024-08-01 15:29 UTC (permalink / raw)
  To: Chanh Nguyen
  Cc: Joel Stanley, Conor Dooley, devicetree, linux-arm-kernel,
	Open Source Submission, linux-aspeed, Andrew Jeffery,
	linux-kernel, Thang Nguyen, Phong Vo, Quan Nguyen,
	OpenBMC Maillist, Rob Herring, Krzysztof Kozlowski


On Thu, 01 Aug 2024 09:12:10 +0000, Chanh Nguyen wrote:
> Updates the device tree to support some features on Ampere's
> Mt.Mitchell BMC and Ampere's Mt.Jade BMC.
> 
> Chanh Nguyen (6):
>   ARM: dts: aspeed: mtjade, mtmitchell: Add OCP temperature sensors
>   ARM: dts: aspeed: mtmitchell: Add I2C temperature sensor alias ports
>   ARM: dts: aspeed: mtmitchell: Add I2C Riser card alias ports
>   ARM: dts: aspeed: mtmitchell: Enable i2c10 and i2c15
>   ARM: dts: aspeed: mtmitchell: Add LEDs
>   ARM: dts: aspeed: mtmitchell: Add I2C FAN controllers
> 
>  .../dts/aspeed/aspeed-bmc-ampere-mtjade.dts   |  16 ++
>  .../aspeed/aspeed-bmc-ampere-mtmitchell.dts   | 152 ++++++++++++++++++
>  2 files changed, 168 insertions(+)
> 
> --
> 2.43.0
> 
> 
> 


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-ampere-mtjade.dtb aspeed/aspeed-bmc-ampere-mtmitchell.dtb' for 20240801091217.1408809-1-chanh@os.amperecomputing.com:

arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dtb: /ahb/apb/bus@1e78a000/i2c@480/fan-controller0@20: failed to match any schema with compatible: ['maxim,max31790']
arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dtb: /ahb/apb/bus@1e78a000/i2c@480/fan-controller1@2f: failed to match any schema with compatible: ['maxim,max31790']






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

* Re: [PATCH 0/6] Update the device tree for Ampere's BMC platform
  2024-08-01 15:29 ` [PATCH 0/6] Update the device tree for Ampere's BMC platform Rob Herring (Arm)
@ 2024-08-03  3:49   ` Chanh Nguyen
  2024-08-05  3:59     ` Andrew Jeffery
  0 siblings, 1 reply; 11+ messages in thread
From: Chanh Nguyen @ 2024-08-03  3:49 UTC (permalink / raw)
  To: Rob Herring (Arm), Chanh Nguyen
  Cc: Joel Stanley, Conor Dooley, devicetree, linux-arm-kernel,
	Open Source Submission, linux-aspeed, Andrew Jeffery,
	linux-kernel, Thang Nguyen, Phong Vo, Quan Nguyen,
	OpenBMC Maillist, Rob Herring, Krzysztof Kozlowski



On 01/08/2024 22:29, Rob Herring (Arm) wrote:
> 
> On Thu, 01 Aug 2024 09:12:10 +0000, Chanh Nguyen wrote:
>> Updates the device tree to support some features on Ampere's
>> Mt.Mitchell BMC and Ampere's Mt.Jade BMC.
>>
>> Chanh Nguyen (6):
>>    ARM: dts: aspeed: mtjade, mtmitchell: Add OCP temperature sensors
>>    ARM: dts: aspeed: mtmitchell: Add I2C temperature sensor alias ports
>>    ARM: dts: aspeed: mtmitchell: Add I2C Riser card alias ports
>>    ARM: dts: aspeed: mtmitchell: Enable i2c10 and i2c15
>>    ARM: dts: aspeed: mtmitchell: Add LEDs
>>    ARM: dts: aspeed: mtmitchell: Add I2C FAN controllers
>>
>>   .../dts/aspeed/aspeed-bmc-ampere-mtjade.dts   |  16 ++
>>   .../aspeed/aspeed-bmc-ampere-mtmitchell.dts   | 152 ++++++++++++++++++
>>   2 files changed, 168 insertions(+)
>>
>> --
>> 2.43.0
>>
>>
>>
> 
> 
> 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-ampere-mtjade.dtb aspeed/aspeed-bmc-ampere-mtmitchell.dtb' for 20240801091217.1408809-1-chanh@os.amperecomputing.com:
> 
> arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dtb: /ahb/apb/bus@1e78a000/i2c@480/fan-controller0@20: failed to match any schema with compatible: ['maxim,max31790']
> arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dtb: /ahb/apb/bus@1e78a000/i2c@480/fan-controller1@2f: failed to match any schema with compatible: ['maxim,max31790']
> 
> 

Thank Rob for your review!

I am aware of the new warnings you mentioned. For more information, the 
schema binding of "maxim,max31790" is being progressed by other series  
https://lore.kernel.org/lkml/20240414042246.8681-2-chanh@os.amperecomputing.com/ 


Best regards,
Chanh

> 
> 
> 

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

* Re: [PATCH 0/6] Update the device tree for Ampere's BMC platform
  2024-08-03  3:49   ` Chanh Nguyen
@ 2024-08-05  3:59     ` Andrew Jeffery
  2024-08-06  6:55       ` Chanh Nguyen
  0 siblings, 1 reply; 11+ messages in thread
From: Andrew Jeffery @ 2024-08-05  3:59 UTC (permalink / raw)
  To: Chanh Nguyen, Rob Herring (Arm), Chanh Nguyen
  Cc: devicetree, Conor Dooley, linux-aspeed, Andrew Jeffery,
	OpenBMC Maillist, Thang Nguyen, linux-kernel, Phong Vo,
	Rob Herring, Joel Stanley, Krzysztof Kozlowski,
	Open Source Submission, linux-arm-kernel, Quan Nguyen

On Sat, 2024-08-03 at 10:49 +0700, Chanh Nguyen wrote:
> 
> On 01/08/2024 22:29, Rob Herring (Arm) wrote:
> > 
> > On Thu, 01 Aug 2024 09:12:10 +0000, Chanh Nguyen wrote:
> > > Updates the device tree to support some features on Ampere's
> > > Mt.Mitchell BMC and Ampere's Mt.Jade BMC.
> > > 
> > > Chanh Nguyen (6):
> > >    ARM: dts: aspeed: mtjade, mtmitchell: Add OCP temperature sensors
> > >    ARM: dts: aspeed: mtmitchell: Add I2C temperature sensor alias ports
> > >    ARM: dts: aspeed: mtmitchell: Add I2C Riser card alias ports
> > >    ARM: dts: aspeed: mtmitchell: Enable i2c10 and i2c15
> > >    ARM: dts: aspeed: mtmitchell: Add LEDs
> > >    ARM: dts: aspeed: mtmitchell: Add I2C FAN controllers
> > > 
> > >   .../dts/aspeed/aspeed-bmc-ampere-mtjade.dts   |  16 ++
> > >   .../aspeed/aspeed-bmc-ampere-mtmitchell.dts   | 152 ++++++++++++++++++
> > >   2 files changed, 168 insertions(+)
> > > 
> > > --
> > > 2.43.0
> > > 
> > > 
> > > 
> > 
> > 
> > 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-ampere-mtjade.dtb aspeed/aspeed-bmc-ampere-mtmitchell.dtb' for 20240801091217.1408809-1-chanh@os.amperecomputing.com:
> > 
> > arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dtb: /ahb/apb/bus@1e78a000/i2c@480/fan-controller0@20: failed to match any schema with compatible: ['maxim,max31790']
> > arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dtb: /ahb/apb/bus@1e78a000/i2c@480/fan-controller1@2f: failed to match any schema with compatible: ['maxim,max31790']
> > 
> > 
> 
> Thank Rob for your review!
> 
> I am aware of the new warnings you mentioned. For more information, the 
> schema binding of "maxim,max31790" is being progressed by other series  
> https://lore.kernel.org/lkml/20240414042246.8681-2-chanh@os.amperecomputing.com/ 
> 

For now can you please remove the `maxim,max31790` nodes from your
devicetree and re-send? As it stands you've been asked to rework what
you proposed in the thread that you linked, and a quick look at the
hwmon trees suggests support for the max31790 hasn't been merged.

You can send a follow-up patch adding the nodes to your devicetree once
the binding has been merged.

Andrew

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

* Re: [PATCH 0/6] Update the device tree for Ampere's BMC platform
  2024-08-05  3:59     ` Andrew Jeffery
@ 2024-08-06  6:55       ` Chanh Nguyen
  0 siblings, 0 replies; 11+ messages in thread
From: Chanh Nguyen @ 2024-08-06  6:55 UTC (permalink / raw)
  To: Andrew Jeffery, Rob Herring (Arm), Chanh Nguyen
  Cc: devicetree, Conor Dooley, linux-aspeed, Andrew Jeffery,
	OpenBMC Maillist, Thang Nguyen, linux-kernel, Phong Vo,
	Rob Herring, Joel Stanley, Krzysztof Kozlowski,
	Open Source Submission, linux-arm-kernel, Quan Nguyen



On 05/08/2024 10:59, Andrew Jeffery wrote:
> [EXTERNAL EMAIL NOTICE: This email originated from an external sender. Please be mindful of safe email handling and proprietary information protection practices.]
> 
> 
> On Sat, 2024-08-03 at 10:49 +0700, Chanh Nguyen wrote:
>>
>> On 01/08/2024 22:29, Rob Herring (Arm) wrote:
>>>
>>> On Thu, 01 Aug 2024 09:12:10 +0000, Chanh Nguyen wrote:
>>>> Updates the device tree to support some features on Ampere's
>>>> Mt.Mitchell BMC and Ampere's Mt.Jade BMC.
>>>>
>>>> Chanh Nguyen (6):
>>>>     ARM: dts: aspeed: mtjade, mtmitchell: Add OCP temperature sensors
>>>>     ARM: dts: aspeed: mtmitchell: Add I2C temperature sensor alias ports
>>>>     ARM: dts: aspeed: mtmitchell: Add I2C Riser card alias ports
>>>>     ARM: dts: aspeed: mtmitchell: Enable i2c10 and i2c15
>>>>     ARM: dts: aspeed: mtmitchell: Add LEDs
>>>>     ARM: dts: aspeed: mtmitchell: Add I2C FAN controllers
>>>>
>>>>    .../dts/aspeed/aspeed-bmc-ampere-mtjade.dts   |  16 ++
>>>>    .../aspeed/aspeed-bmc-ampere-mtmitchell.dts   | 152 ++++++++++++++++++
>>>>    2 files changed, 168 insertions(+)
>>>>
>>>> --
>>>> 2.43.0
>>>>
>>>>
>>>>
>>>
>>>
>>> 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-ampere-mtjade.dtb aspeed/aspeed-bmc-ampere-mtmitchell.dtb' for 20240801091217.1408809-1-chanh@os.amperecomputing.com:
>>>
>>> arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dtb: /ahb/apb/bus@1e78a000/i2c@480/fan-controller0@20: failed to match any schema with compatible: ['maxim,max31790']
>>> arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dtb: /ahb/apb/bus@1e78a000/i2c@480/fan-controller1@2f: failed to match any schema with compatible: ['maxim,max31790']
>>>
>>>
>>
>> Thank Rob for your review!
>>
>> I am aware of the new warnings you mentioned. For more information, the
>> schema binding of "maxim,max31790" is being progressed by other series
>> https://lore.kernel.org/lkml/20240414042246.8681-2-chanh@os.amperecomputing.com/
>>
> 
> For now can you please remove the `maxim,max31790` nodes from your
> devicetree and re-send? As it stands you've been asked to rework what
> you proposed in the thread that you linked, and a quick look at the
> hwmon trees suggests support for the max31790 hasn't been merged.
> 
> You can send a follow-up patch adding the nodes to your devicetree once
> the binding has been merged.
> 
> Andrew

Thank Andrew for your comment!

I'll remove the `maxim,max31790` nodes and send the patch v2

Chanh

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

end of thread, other threads:[~2024-08-06  6:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-01  9:12 [PATCH 0/6] Update the device tree for Ampere's BMC platform Chanh Nguyen
2024-08-01  9:12 ` [PATCH 1/6] ARM: dts: aspeed: mtjade, mtmitchell: Add OCP temperature sensors Chanh Nguyen
2024-08-01  9:12 ` [PATCH 2/6] ARM: dts: aspeed: mtmitchell: Add I2C temperature sensor alias ports Chanh Nguyen
2024-08-01  9:12 ` [PATCH 3/6] ARM: dts: aspeed: mtmitchell: Add I2C Riser card " Chanh Nguyen
2024-08-01  9:12 ` [PATCH 4/6] ARM: dts: aspeed: mtmitchell: Enable i2c10 and i2c15 Chanh Nguyen
2024-08-01  9:12 ` [PATCH 5/6] ARM: dts: aspeed: mtmitchell: Add LEDs Chanh Nguyen
2024-08-01  9:12 ` [PATCH 6/6] ARM: dts: aspeed: mtmitchell: Add I2C FAN controllers Chanh Nguyen
2024-08-01 15:29 ` [PATCH 0/6] Update the device tree for Ampere's BMC platform Rob Herring (Arm)
2024-08-03  3:49   ` Chanh Nguyen
2024-08-05  3:59     ` Andrew Jeffery
2024-08-06  6:55       ` Chanh Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).