linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] ARM: dts: aspeed: Enable ADC for wedge100 BMC
@ 2021-07-19  0:17 rentao.bupt
  2021-07-19  0:17 ` [PATCH 1/4] ARM: dts: aspeed: Enable ADC in Facebook AST2400 common dtsi rentao.bupt
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: rentao.bupt @ 2021-07-19  0:17 UTC (permalink / raw)
  To: Rob Herring, Joel Stanley, Andrew Jeffery, devicetree,
	linux-arm-kernel, linux-aspeed, linux-kernel, openbmc, taoren
  Cc: Tao Ren

From: Tao Ren <rentao.bupt@gmail.com>

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(-)

-- 
2.17.1


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

* [PATCH 1/4] ARM: dts: aspeed: Enable ADC in Facebook AST2400 common dtsi
  2021-07-19  0:17 [PATCH 0/4] ARM: dts: aspeed: Enable ADC for wedge100 BMC rentao.bupt
@ 2021-07-19  0:17 ` rentao.bupt
  2021-07-19  0:17 ` [PATCH 2/4] ARM: dts: aspeed: wedge40: Remove redundant ADC device rentao.bupt
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: rentao.bupt @ 2021-07-19  0:17 UTC (permalink / raw)
  To: Rob Herring, Joel Stanley, Andrew Jeffery, devicetree,
	linux-arm-kernel, linux-aspeed, linux-kernel, openbmc, taoren
  Cc: Tao Ren

From: Tao Ren <rentao.bupt@gmail.com>

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

Signed-off-by: Tao Ren <rentao.bupt@gmail.com>
---
 arch/arm/boot/dts/ast2400-facebook-netbmc-common.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boot/dts/ast2400-facebook-netbmc-common.dtsi b/arch/arm/boot/dts/ast2400-facebook-netbmc-common.dtsi
index 73a5503be78c..4e5e786e18b7 100644
--- a/arch/arm/boot/dts/ast2400-facebook-netbmc-common.dtsi
+++ b/arch/arm/boot/dts/ast2400-facebook-netbmc-common.dtsi
@@ -115,3 +115,7 @@
 &vhub {
 	status = "okay";
 };
+
+&adc {
+	status = "okay";
+};
-- 
2.17.1


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

* [PATCH 2/4] ARM: dts: aspeed: wedge40: Remove redundant ADC device
  2021-07-19  0:17 [PATCH 0/4] ARM: dts: aspeed: Enable ADC for wedge100 BMC rentao.bupt
  2021-07-19  0:17 ` [PATCH 1/4] ARM: dts: aspeed: Enable ADC in Facebook AST2400 common dtsi rentao.bupt
@ 2021-07-19  0:17 ` rentao.bupt
  2021-07-19  0:17 ` [PATCH 3/4] ARM: dts: aspeed: galaxy100: " rentao.bupt
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: rentao.bupt @ 2021-07-19  0:17 UTC (permalink / raw)
  To: Rob Herring, Joel Stanley, Andrew Jeffery, devicetree,
	linux-arm-kernel, linux-aspeed, linux-kernel, openbmc, taoren
  Cc: Tao Ren

From: Tao Ren <rentao.bupt@gmail.com>

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

Signed-off-by: Tao Ren <rentao.bupt@gmail.com>
---
 arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts
index 2dcfeae3c92a..6624855d8ebd 100644
--- a/arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts
@@ -23,10 +23,6 @@
 	status = "disabled";
 };
 
-&adc {
-	status = "okay";
-};
-
 &pwm_tacho {
 	status = "okay";
 	pinctrl-names = "default";
-- 
2.17.1


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

* [PATCH 3/4] ARM: dts: aspeed: galaxy100: Remove redundant ADC device
  2021-07-19  0:17 [PATCH 0/4] ARM: dts: aspeed: Enable ADC for wedge100 BMC rentao.bupt
  2021-07-19  0:17 ` [PATCH 1/4] ARM: dts: aspeed: Enable ADC in Facebook AST2400 common dtsi rentao.bupt
  2021-07-19  0:17 ` [PATCH 2/4] ARM: dts: aspeed: wedge40: Remove redundant ADC device rentao.bupt
@ 2021-07-19  0:17 ` rentao.bupt
  2021-07-19  0:17 ` [PATCH 4/4] ARM: dts: aspeed: wedge100: Enable ADC channels rentao.bupt
  2021-07-19  0:21 ` [PATCH 0/4] ARM: dts: aspeed: Enable ADC for wedge100 BMC Joel Stanley
  4 siblings, 0 replies; 7+ messages in thread
From: rentao.bupt @ 2021-07-19  0:17 UTC (permalink / raw)
  To: Rob Herring, Joel Stanley, Andrew Jeffery, devicetree,
	linux-arm-kernel, linux-aspeed, linux-kernel, openbmc, taoren
  Cc: Tao Ren

From: Tao Ren <rentao.bupt@gmail.com>

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

Signed-off-by: Tao Ren <rentao.bupt@gmail.com>
---
 arch/arm/boot/dts/aspeed-bmc-facebook-galaxy100.dts | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-galaxy100.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-galaxy100.dts
index dcf213472749..60e875ac2461 100644
--- a/arch/arm/boot/dts/aspeed-bmc-facebook-galaxy100.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-facebook-galaxy100.dts
@@ -51,7 +51,3 @@
 &vhub {
 	status = "okay";
 };
-
-&adc {
-	status = "okay";
-};
-- 
2.17.1


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

* [PATCH 4/4] ARM: dts: aspeed: wedge100: Enable ADC channels
  2021-07-19  0:17 [PATCH 0/4] ARM: dts: aspeed: Enable ADC for wedge100 BMC rentao.bupt
                   ` (2 preceding siblings ...)
  2021-07-19  0:17 ` [PATCH 3/4] ARM: dts: aspeed: galaxy100: " rentao.bupt
@ 2021-07-19  0:17 ` rentao.bupt
  2021-07-19  0:21 ` [PATCH 0/4] ARM: dts: aspeed: Enable ADC for wedge100 BMC Joel Stanley
  4 siblings, 0 replies; 7+ messages in thread
From: rentao.bupt @ 2021-07-19  0:17 UTC (permalink / raw)
  To: Rob Herring, Joel Stanley, Andrew Jeffery, devicetree,
	linux-arm-kernel, linux-aspeed, linux-kernel, openbmc, taoren
  Cc: Tao Ren

From: Tao Ren <rentao.bupt@gmail.com>

Enable the ADC voltage sensoring channels used by Wedge100.

Signed-off-by: Tao Ren <rentao.bupt@gmail.com>
---
 arch/arm/boot/dts/aspeed-bmc-facebook-wedge100.dts | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-wedge100.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-wedge100.dts
index 39c6be91d53f..584efa528450 100644
--- a/arch/arm/boot/dts/aspeed-bmc-facebook-wedge100.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-facebook-wedge100.dts
@@ -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 {
-- 
2.17.1


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

* Re: [PATCH 0/4] ARM: dts: aspeed: Enable ADC for wedge100 BMC
  2021-07-19  0:17 [PATCH 0/4] ARM: dts: aspeed: Enable ADC for wedge100 BMC rentao.bupt
                   ` (3 preceding siblings ...)
  2021-07-19  0:17 ` [PATCH 4/4] ARM: dts: aspeed: wedge100: Enable ADC channels rentao.bupt
@ 2021-07-19  0:21 ` Joel Stanley
  2021-07-19  1:03   ` Tao Ren
  4 siblings, 1 reply; 7+ messages in thread
From: Joel Stanley @ 2021-07-19  0:21 UTC (permalink / raw)
  To: Tao Ren
  Cc: Rob Herring, Andrew Jeffery, devicetree, Linux ARM, linux-aspeed,
	Linux Kernel Mailing List, OpenBMC Maillist, Tao Ren

On Mon, 19 Jul 2021 at 00:17, <rentao.bupt@gmail.com> wrote:
>
> From: Tao Ren <rentao.bupt@gmail.com>
>
> 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.

Reviewed-by: Joel Stanley <joel@jms.id.au>

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

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

* Re: [PATCH 0/4] ARM: dts: aspeed: Enable ADC for wedge100 BMC
  2021-07-19  0:21 ` [PATCH 0/4] ARM: dts: aspeed: Enable ADC for wedge100 BMC Joel Stanley
@ 2021-07-19  1:03   ` Tao Ren
  0 siblings, 0 replies; 7+ messages in thread
From: Tao Ren @ 2021-07-19  1:03 UTC (permalink / raw)
  To: Joel Stanley
  Cc: Rob Herring, Andrew Jeffery, devicetree, Linux ARM, linux-aspeed,
	Linux Kernel Mailing List, OpenBMC Maillist, Tao Ren

On Mon, Jul 19, 2021 at 12:21:20AM +0000, Joel Stanley wrote:
> On Mon, 19 Jul 2021 at 00:17, <rentao.bupt@gmail.com> wrote:
> >
> > From: Tao Ren <rentao.bupt@gmail.com>
> >
> > 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.
> 
> Reviewed-by: Joel Stanley <joel@jms.id.au>
> 
> Thanks Tao, I will apply these for v5.15.

Thanks Joel!


Cheers,

Tao

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

end of thread, other threads:[~2021-07-19  1:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-19  0:17 [PATCH 0/4] ARM: dts: aspeed: Enable ADC for wedge100 BMC rentao.bupt
2021-07-19  0:17 ` [PATCH 1/4] ARM: dts: aspeed: Enable ADC in Facebook AST2400 common dtsi rentao.bupt
2021-07-19  0:17 ` [PATCH 2/4] ARM: dts: aspeed: wedge40: Remove redundant ADC device rentao.bupt
2021-07-19  0:17 ` [PATCH 3/4] ARM: dts: aspeed: galaxy100: " rentao.bupt
2021-07-19  0:17 ` [PATCH 4/4] ARM: dts: aspeed: wedge100: Enable ADC channels rentao.bupt
2021-07-19  0:21 ` [PATCH 0/4] ARM: dts: aspeed: Enable ADC for wedge100 BMC Joel Stanley
2021-07-19  1:03   ` Tao Ren

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).