Skip to contentSkip to conversation

ARM: dts: aspeed: fixup wedge40 device tree

PATCH In review [email protected] 2 participants 6 messages Jul 23, 2020 – Jul 24, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover ARM: dts: aspeed: fixup wedge40 device tree

From: Tao Ren <[email protected]>

The patch series update several devices' settings in Facebook Wedge40 device tree.

Patch #1 disables a few i2c controllers as they are not being used at present.

Patch #2 enables adc device for voltage monitoring.

Patch #3 enables pwm_tacho device for fan control and monitoring.

Tao Ren (3):
ARM: dts: aspeed: wedge40: disable a few i2c controllers
ARM: dts: aspeed: wedge40: enable adc device
ARM: dts: aspeed: wedge40: enable pwm_tacho device

 .../boot/dts/aspeed-bmc-facebook-wedge40.dts  | 42 +++++++++++++++----
 1 file changed, 34 insertions(+), 8 deletions(-)
Signature · 1 line
2.17.1
#1 lore raw

PATCH v2 1/3 ARM: dts: aspeed: wedge40: disable a few i2c controllers

From: Tao Ren <[email protected]>

Disable i2c bus #9, #10 and #13 as these i2c controllers are not used on Wedge40.

---
Changes in v2:
- Nothing changed. Resending the patch just in case the previous email was not delivered.

 arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts | 12 ------------
 1 file changed, 12 deletions(-)
arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts +0 -12
index 54e508530dce..aea23c313088 100644
@@ -115,14 +115,6 @@
 	status = "okay";
 };
 
-&i2c9 {
-	status = "okay";
-};
-
-&i2c10 {
-	status = "okay";
-};
-
 &i2c11 {
 	status = "okay";
 };
@@ -131,10 +123,6 @@
 	status = "okay";
 };
 
-&i2c13 {
-	status = "okay";
-};
-
 &vhub {
 	status = "okay";
 };
Signature · 1 line
2.17.1
#2 lore raw

PATCH v2 2/3 ARM: dts: aspeed: wedge40: enable adc device

In reply to [email protected]

From: Tao Ren <[email protected]>

Enable adc controller and corresponding voltage sensoring channels for Wedge40.

---
Changes in v2:
- Nothing changed. Resending the patch just in case the previous email was not delivered.

 arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts +9 -0
index aea23c313088..1049cfa80ac2 100644
@@ -27,6 +27,11 @@
 	memory at 40000000 {
 		reg = <0x40000000 0x20000000>;
 	};
+
+	ast-adc-hwmon {
+		compatible = "iio-hwmon";
+		io-channels = <&adc 5>, <&adc 6>, <&adc 7>, <&adc 8>, <&adc 9>;
+	};
 };
 
 &wdt1 {
@@ -126,3 +131,7 @@
 &vhub {
 	status = "okay";
 };
+
+&adc {
+	status = "okay";
+};
Signature · 1 line
2.17.1
#3 lore raw

PATCH v2 3/3 ARM: dts: aspeed: wedge40: enable pwm_tacho device

In reply to [email protected]

From: Tao Ren <[email protected]>

Enable pwm_tacho device for fan control and monitoring in Wedge40.

---
Changes in v2:
- Nothing changed. Resending the patch just in case the previous email was not delivered.

 .../boot/dts/aspeed-bmc-facebook-wedge40.dts  | 29 +++++++++++++++++++
 1 file changed, 29 insertions(+)
arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts +29 -0
index 1049cfa80ac2..8ac23ff6b09e 100644
@@ -135,3 +135,32 @@
 &adc {
 	status = "okay";
 };
+
+&pwm_tacho {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_pwm0_default
+		     &pinctrl_pwm1_default
+		     &pinctrl_pwm6_default
+		     &pinctrl_pwm7_default>;
+
+	fan at 0 {
+		reg = <0x00>;
+		aspeed,fan-tach-ch = /bits/ 8 <0x00 0x01>;
+	};
+
+	fan at 1 {
+		reg = <0x01>;
+		aspeed,fan-tach-ch = /bits/ 8 <0x02 0x03>;
+	};
+
+	fan at 6 {
+		reg = <0x06>;
+		aspeed,fan-tach-ch = /bits/ 8 <0x04 0x05>;
+	};
+
+	fan at 7 {
+		reg = <0x07>;
+		aspeed,fan-tach-ch = /bits/ 8 <0x06 0x07>;
+	};
+};
Signature · 1 line
2.17.1
maintainer
#4 lore raw
In reply to [email protected]
Quoted 9 lines · On Thu, 23 Jul 2020 at 23:05, <[email protected]> wrote:

From: Tao Ren <[email protected]>

The patch series update several devices' settings in Facebook Wedge40 device tree.

Patch #1 disables a few i2c controllers as they are not being used at present.

Quoted 8 lines

Patch #2 enables adc device for voltage monitoring.

Patch #3 enables pwm_tacho device for fan control and monitoring.

Tao Ren (3):
ARM: dts: aspeed: wedge40: disable a few i2c controllers
ARM: dts: aspeed: wedge40: enable adc device
ARM: dts: aspeed: wedge40: enable pwm_tacho device

I have merged this series into the aspeed dt-for-5.9 branch.

Cheers,

Joel

Quoted 7 lines
 .../boot/dts/aspeed-bmc-facebook-wedge40.dts  | 42 +++++++++++++++----
 1 file changed, 34 insertions(+), 8 deletions(-)

--
2.17.1

author
#5 lore raw
Quoted 19 lines · Joel Stanley
Quoted 9 lines · On Thu, 23 Jul 2020 at 23:05, <[email protected]> wrote:

From: Tao Ren <[email protected]>

The patch series update several devices' settings in Facebook Wedge40 device tree.

Patch #1 disables a few i2c controllers as they are not being used at present.

Quoted 8 lines

Patch #2 enables adc device for voltage monitoring.

Patch #3 enables pwm_tacho device for fan control and monitoring.

Tao Ren (3):
ARM: dts: aspeed: wedge40: disable a few i2c controllers
ARM: dts: aspeed: wedge40: enable adc device
ARM: dts: aspeed: wedge40: enable pwm_tacho device

Quoted 5 lines

I have merged this series into the aspeed dt-for-5.9 branch.

Cheers,

Joel

Thanks a lot Joel. Have a great weekend.

Cheers,

Tao