ARM: dts: aspeed: Enable ADC for wedge100 BMC
Subsystems (2)
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
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
@@ -115,3 +115,7 @@ &vhub { status = "okay"; }; + +&adc { + status = "okay"; +};
Signature · 1 line
2.17.1
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
@@ -23,10 +23,6 @@ status = "disabled"; }; -&adc { - status = "okay"; -}; - &pwm_tacho { status = "okay"; pinctrl-names = "default";
Signature · 1 line
2.17.1
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
@@ -51,7 +51,3 @@ &vhub { status = "okay"; }; - -&adc { - status = "okay"; -};
Signature · 1 line
2.17.1
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
@@ -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
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.
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.
Reviewed-by Joel Stanley <[email protected]>Thanks Tao, I will apply these for v5.15.
Thanks Joel!
Cheers,
Tao