Skip to contentSkip to conversation

ARM: dts: aspeed: Enable ADC for wedge100 BMC

PATCH In review [email protected] 2 participants 7 messages Jul 19, 2021

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

cover ARM: dts: aspeed: Enable ADC for wedge100 BMC

From: Tao Ren <[email protected]>

The patch series enables ADC for Facebook Wedge100 BMC platform.

Patch #1 enables ADC in Facebook AST2400 common dtsi because ADC is used on all the Facebook AST2400 Network BMC platforms.

Patch #2 removes the redundant ADC entry from Wedge40 dts.

Patch #3 removes the redundant ADC entry from Galaxy100 dts.

Patch #4 enables the ADC voltage sensoring channels in Wedge100 dts.

Tao Ren (4):
ARM: dts: aspeed: Enable ADC in Facebook AST2400 common dtsi
ARM: dts: aspeed: wedge40: Remove redundant ADC device
ARM: dts: aspeed: galaxy100: Remove redundant ADC device
ARM: dts: aspeed: wedge100: Enable ADC channels

 arch/arm/boot/dts/aspeed-bmc-facebook-galaxy100.dts   | 4 ----
 arch/arm/boot/dts/aspeed-bmc-facebook-wedge100.dts    | 5 +++++
 arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts     | 4 ----
 arch/arm/boot/dts/ast2400-facebook-netbmc-common.dtsi | 4 ++++
 4 files changed, 9 insertions(+), 8 deletions(-)
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/4 ARM: dts: aspeed: Enable ADC in Facebook AST2400 common dtsi

From: Tao Ren <[email protected]>

Enable ADC controller in "ast2400-facebook-netbmc-common.dtsi" because the device is used on all the Facebook AST2400 BMC platforms.

---
 arch/arm/boot/dts/ast2400-facebook-netbmc-common.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/ast2400-facebook-netbmc-common.dtsi +4 -0
index 73a5503be78c..4e5e786e18b7 100644
@@ -115,3 +115,7 @@
 &vhub {
 	status = "okay";
 };
+
+&adc {
+	status = "okay";
+};
Signature · 1 line
2.17.1
#2 lore raw

PATCH 2/4 ARM: dts: aspeed: wedge40: Remove redundant ADC device

In reply to [email protected]

From: Tao Ren <[email protected]>

Remove ADC device from wedge40 device tree because the device is already enabled in "ast2400-facebook-netbmc-common.dtsi".

---
 arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts | 4 ----
 1 file changed, 4 deletions(-)
arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts +0 -4
index 2dcfeae3c92a..6624855d8ebd 100644
@@ -23,10 +23,6 @@
 	status = "disabled";
 };
 
-&adc {
-	status = "okay";
-};
-
 &pwm_tacho {
 	status = "okay";
 	pinctrl-names = "default";
Signature · 1 line
2.17.1
#3 lore raw

PATCH 3/4 ARM: dts: aspeed: galaxy100: Remove redundant ADC device

In reply to [email protected]

From: Tao Ren <[email protected]>

Remove ADC device from galaxy100 device tree because the device is already enabled in "ast2400-facebook-netbmc-common.dtsi".

---
 arch/arm/boot/dts/aspeed-bmc-facebook-galaxy100.dts | 4 ----
 1 file changed, 4 deletions(-)
arch/arm/boot/dts/aspeed-bmc-facebook-galaxy100.dts +0 -4
index dcf213472749..60e875ac2461 100644
@@ -51,7 +51,3 @@
 &vhub {
 	status = "okay";
 };
-
-&adc {
-	status = "okay";
-};
Signature · 1 line
2.17.1
#4 lore raw

PATCH 4/4 ARM: dts: aspeed: wedge100: Enable ADC channels

In reply to [email protected]

From: Tao Ren <[email protected]>

Enable the ADC voltage sensoring channels used by Wedge100.

---
 arch/arm/boot/dts/aspeed-bmc-facebook-wedge100.dts | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/boot/dts/aspeed-bmc-facebook-wedge100.dts +5 -0
index 39c6be91d53f..584efa528450 100644
@@ -12,6 +12,11 @@
 		stdout-path = &uart3;
 		bootargs = "console=ttyS2,9600n8 root=/dev/ram rw";
 	};
+
+	ast-adc-hwmon {
+		compatible = "iio-hwmon";
+		io-channels = <&adc 5>, <&adc 6>, <&adc 7>, <&adc 8>, <&adc 9>;
+	};
 };
 
 &wdt2 {
Signature · 1 line
2.17.1
maintainer Reviewed-by on the v1 series
#5 lore raw
In reply to [email protected]
Quoted 5 lines · On Mon, 19 Jul 2021 at 00:17, <[email protected]> wrote:

From: Tao Ren <[email protected]>

The patch series enables ADC for Facebook Wedge100 BMC platform.

Quoted 8 lines

Patch #1 enables ADC in Facebook AST2400 common dtsi because ADC is used on all the Facebook AST2400 Network BMC platforms.

Patch #2 removes the redundant ADC entry from Wedge40 dts.

Patch #3 removes the redundant ADC entry from Galaxy100 dts.

Patch #4 enables the ADC voltage sensoring channels in Wedge100 dts.

Thanks Tao, I will apply these for v5.15.

author
#6 lore raw
Quoted 11 lines · Joel Stanley
Quoted 10 lines · On Mon, 19 Jul 2021 at 00:17, <[email protected]> wrote:

From: Tao Ren <[email protected]>

The patch series enables ADC for Facebook Wedge100 BMC platform.

Patch #1 enables ADC in Facebook AST2400 common dtsi because ADC is used on all the Facebook AST2400 Network BMC platforms.

Patch #2 removes the redundant ADC entry from Wedge40 dts.

Quoted 7 lines
Quoted 3 lines

Patch #3 removes the redundant ADC entry from Galaxy100 dts.

Patch #4 enables the ADC voltage sensoring channels in Wedge100 dts.

Thanks Tao, I will apply these for v5.15.

Thanks Joel!

Cheers,

Tao