linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: dts: am335x: add rtc system-power-controller
@ 2021-10-18 22:00 Drew Fustini
  2021-10-18 22:00 ` [PATCH 1/2] ARM: dts: am335x-boneblack-common: move system-power-controller Drew Fustini
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Drew Fustini @ 2021-10-18 22:00 UTC (permalink / raw)
  To: Dave Gerlach, Keerthy, Johan Hovold, Jason Kridner,
	Benoit Cousson, Tony Lindgren, Rob Herring, linux-omap,
	devicetree, linux-kernel
  Cc: Drew Fustini

Johan pointed out when I submitted "ARM: dts: am335x: Add rtc node as
system-power-controller" [1] that mentioning am335x-evm and boneblack
in the commit message was incorrect. system-power-controller is already
present in am335x-boneblack-common.dtsi and am335x-evm would need the
property added directly to the dts file.

These are the dts files that currently include either
am335x-bone-common.dtsi or am335x-boneblack-common.dtsi:

    am335x-bone.dts
	am335x-bone-common.dtsi

    am335x-boneblack.dts
        am335x-bone-common.dtsi
	am335x-boneblack-common.dtsi

    am335x-boneblack-wireless.dts
	am335x-bone-common.dtsi
	am335x-boneblack-common.dtsi

    am335x-bonegreen.dts
	am335x-bone-common.dtsi

    am335x-bonegreen-wireless.dts
	am335x-bone-common.dtsi

    am335x-sancloud-bbe.dts
	am335x-bone-common.dtsi
	am335x-boneblack-common.dtsi

    am335x-sancloud-bbe-lite.dts
	am335x-bone-common.dtsi
	am335x-boneblack-common.dtsi

am335x-boneblack, am335x-boneblack-wireless, am335x-sancloud-bbe and
am335x-sancloud-bbe-lite currently get the system-power-controller
property from am335x-boneblack-common.dtsi. Moving that property to
am335x-bone-common.dtsi would have no change for these boards as they
include that dtsi file too.

This change would result in the addition of system-power-controller
to bone, bonegreen and bonegreen-wireless. These boards all have
PMIC_POWR_EN (ZCZ ball C6) connected to PWR_EN on the TPS65217B PMIC.
Thus system-power-controller is a valid property for them too.

In addition to BeagleBone, I have reviewed the TI AM335x eval boards:

am335x-evm.dts should _not_ have the system-power-controller property as
the PMIC_POWER_EN is not connected on the TMDXEVM3358 board [2]. The
ball would be connected to SLEEP (pin 37) on the TPS65910A3 PMIC but R65
is marked as do not populate.

am335x-evmsk.dts should _not_ have system-power-controller property as
PMIC_POWER_EN is not connected on the TMDSSK3358 board [3].

am335x-icev2.dts should have the system-power-controller property as the
PMIC_POWER_EN (ZCZ ball C6) is connected to PWRHOLD (pin 1) of the
TPS65910A3 PMIC on the TMDSICE3359 board [4].

Cc: Jason Kridner <jkridner@beagleboard.org>
Cc: Dave Gerlach <d-gerlach@ti.com>
Cc: Keerthy <j-keerthy@ti.com>
Cc: Johan Hovold <johan@kernel.org>

[1] https://lore.kernel.org/linux-omap/20211012191311.879838-1-dfustini@baylibre.com/
[2] https://www.ti.com/tool/TMDXEVM3358
[3] https://www.ti.com/tool/TMDSSK3358
[4] https://www.ti.com/tool/TMDSICE3359


Drew Fustini (2):
  ARM: dts: am335x-boneblack-common: move system-power-controller
  ARM: dts: am335x-icev2: Add system-power-controller to RTC node

 arch/arm/boot/dts/am335x-bone-common.dtsi      | 1 +
 arch/arm/boot/dts/am335x-boneblack-common.dtsi | 4 ----
 arch/arm/boot/dts/am335x-icev2.dts             | 4 ++++
 3 files changed, 5 insertions(+), 4 deletions(-)

-- 
2.27.0


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

* [PATCH 1/2] ARM: dts: am335x-boneblack-common: move system-power-controller
  2021-10-18 22:00 [PATCH 0/2] ARM: dts: am335x: add rtc system-power-controller Drew Fustini
@ 2021-10-18 22:00 ` Drew Fustini
  2021-10-18 22:00 ` [PATCH 2/2] ARM: dts: am335x-icev2: Add system-power-controller to RTC node Drew Fustini
  2021-10-19 12:57 ` [PATCH 0/2] ARM: dts: am335x: add rtc system-power-controller Johan Hovold
  2 siblings, 0 replies; 6+ messages in thread
From: Drew Fustini @ 2021-10-18 22:00 UTC (permalink / raw)
  To: Dave Gerlach, Keerthy, Johan Hovold, Jason Kridner,
	Benoit Cousson, Tony Lindgren, Rob Herring, linux-omap,
	devicetree, linux-kernel
  Cc: Drew Fustini

Move the rtc node system-power-controller property from
am335x-boneblack-common.dtsi to am335x-bone-common.dtsi.

am335x-boneblack-common.dtsi is included by am335x-boneblack.dts,
am335x-boneblack-wireless.dts, am335x-sancloud-bbe.dts and
am335x-sancloud-bbe-lite.dts. All of these dts files also include
am335x-bone-common.dtsi and thus will retain the rtc node
system-power-controller property.

am335x-bone-common.dtsi is also included by am335x-bone.dts [1],
am335x-bonegreen.dts [2] and am335x-bonegreen-wireless.dts [3]. These
boards will now have the rtc node system-power-controller property too.
This is valid as they also have PMIC_POWR_EN (ZCZ C6) connected to
PWR_EN on the TPS65217B PMIC.

Based on 15c7be47fb7c ("ARM: dts: am335x: Add rtc node as
system-power-controller") by Keerthy in ti-linux-5.4.y branch [4].

[1] https://beagleboard.org/static/beaglebone/BEAGLEBONE_SCHEM_A3.pdf
[2] https://github.com/SeeedDocument/BeagleBone_Green/blob/master/resources/BEAGLEBONE_GREEN_V1.pdf
[3] https://github.com/SeeedDocument/BeagleBone_Green_Wireless/blob/master/resources/BeagleBone_Green%20Wireless_V1.0_SCH_20160314.pdf
[4] git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

Cc: Jason Kridner <jkridner@beagleboard.org>
Cc: Dave Gerlach <d-gerlach@ti.com>
Cc: Keerthy <j-keerthy@ti.com>
Link: https://lore.kernel.org/linux-omap/20211012191311.879838-1-dfustini@baylibre.com/
Suggested-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Drew Fustini <dfustini@baylibre.com>
---
 arch/arm/boot/dts/am335x-bone-common.dtsi      | 1 +
 arch/arm/boot/dts/am335x-boneblack-common.dtsi | 4 ----
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi
index 0ccdc7cd463b..56ae5095a5b8 100644
--- a/arch/arm/boot/dts/am335x-bone-common.dtsi
+++ b/arch/arm/boot/dts/am335x-bone-common.dtsi
@@ -399,6 +399,7 @@ &sham {
 &rtc {
 	clocks = <&clk_32768_ck>, <&clk_24mhz_clkctrl AM3_CLK_24MHZ_CLKDIV32K_CLKCTRL 0>;
 	clock-names = "ext-clk", "int-clk";
+	system-power-controller;
 };
 
 &pruss_tm {
diff --git a/arch/arm/boot/dts/am335x-boneblack-common.dtsi b/arch/arm/boot/dts/am335x-boneblack-common.dtsi
index 10494c4431b9..a7a8c61ef9b2 100644
--- a/arch/arm/boot/dts/am335x-boneblack-common.dtsi
+++ b/arch/arm/boot/dts/am335x-boneblack-common.dtsi
@@ -22,10 +22,6 @@ &mmc2 {
 	non-removable;
 };
 
-&rtc {
-	system-power-controller;
-};
-
 / {
 	memory@80000000 {
 		device_type = "memory";
-- 
2.27.0


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

* [PATCH 2/2] ARM: dts: am335x-icev2: Add system-power-controller to RTC node
  2021-10-18 22:00 [PATCH 0/2] ARM: dts: am335x: add rtc system-power-controller Drew Fustini
  2021-10-18 22:00 ` [PATCH 1/2] ARM: dts: am335x-boneblack-common: move system-power-controller Drew Fustini
@ 2021-10-18 22:00 ` Drew Fustini
  2021-10-19 12:57 ` [PATCH 0/2] ARM: dts: am335x: add rtc system-power-controller Johan Hovold
  2 siblings, 0 replies; 6+ messages in thread
From: Drew Fustini @ 2021-10-18 22:00 UTC (permalink / raw)
  To: Dave Gerlach, Keerthy, Johan Hovold, Jason Kridner,
	Benoit Cousson, Tony Lindgren, Rob Herring, linux-omap,
	devicetree, linux-kernel
  Cc: Drew Fustini

On the am335x-icev2 board [1], AM3359 PMIC_PWR_EN (ZCZ ball C6) is
connected to PWRHOLD (pin 1) on the TPS65910A3 PMIC. The addition of
system-power-controller to the rtc node will enable the capability of
the RTC driver to poweroff the board.

Based on 15c7be47fb7c ("ARM: dts: am335x: Add rtc node as
system-power-controller") by Keerthy in ti-linux-5.4.y branch [2].

[1] https://www.ti.com/tool/TMDSICE3359
[2] git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

Cc: Dave Gerlach <d-gerlach@ti.com>
Cc: Keerthy <j-keerthy@ti.com>
Link: https://lore.kernel.org/linux-omap/20211012191311.879838-1-dfustini@baylibre.com/
Suggested-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Drew Fustini <dfustini@baylibre.com>
---
 arch/arm/boot/dts/am335x-icev2.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boot/dts/am335x-icev2.dts b/arch/arm/boot/dts/am335x-icev2.dts
index e5ce89c8f54d..5835c0cdda50 100644
--- a/arch/arm/boot/dts/am335x-icev2.dts
+++ b/arch/arm/boot/dts/am335x-icev2.dts
@@ -512,3 +512,7 @@ ethphy1: ethernet-phy@3 {
 &pruss_tm {
 	status = "okay";
 };
+
+&rtc {
+	system-power-controller;
+};
-- 
2.27.0


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

* Re: [PATCH 0/2] ARM: dts: am335x: add rtc system-power-controller
  2021-10-18 22:00 [PATCH 0/2] ARM: dts: am335x: add rtc system-power-controller Drew Fustini
  2021-10-18 22:00 ` [PATCH 1/2] ARM: dts: am335x-boneblack-common: move system-power-controller Drew Fustini
  2021-10-18 22:00 ` [PATCH 2/2] ARM: dts: am335x-icev2: Add system-power-controller to RTC node Drew Fustini
@ 2021-10-19 12:57 ` Johan Hovold
  2021-12-09  7:40   ` Tony Lindgren
  2 siblings, 1 reply; 6+ messages in thread
From: Johan Hovold @ 2021-10-19 12:57 UTC (permalink / raw)
  To: Drew Fustini
  Cc: Dave Gerlach, Keerthy, Jason Kridner, Benoit Cousson,
	Tony Lindgren, Rob Herring, linux-omap, devicetree, linux-kernel

On Mon, Oct 18, 2021 at 03:00:18PM -0700, Drew Fustini wrote:
> Johan pointed out when I submitted "ARM: dts: am335x: Add rtc node as
> system-power-controller" [1] that mentioning am335x-evm and boneblack
> in the commit message was incorrect. system-power-controller is already
> present in am335x-boneblack-common.dtsi and am335x-evm would need the
> property added directly to the dts file.
> 
> These are the dts files that currently include either
> am335x-bone-common.dtsi or am335x-boneblack-common.dtsi:
> 
>     am335x-bone.dts
> 	am335x-bone-common.dtsi
> 
>     am335x-boneblack.dts
>         am335x-bone-common.dtsi
> 	am335x-boneblack-common.dtsi
> 
>     am335x-boneblack-wireless.dts
> 	am335x-bone-common.dtsi
> 	am335x-boneblack-common.dtsi
> 
>     am335x-bonegreen.dts
> 	am335x-bone-common.dtsi
> 
>     am335x-bonegreen-wireless.dts
> 	am335x-bone-common.dtsi
> 
>     am335x-sancloud-bbe.dts
> 	am335x-bone-common.dtsi
> 	am335x-boneblack-common.dtsi
> 
>     am335x-sancloud-bbe-lite.dts
> 	am335x-bone-common.dtsi
> 	am335x-boneblack-common.dtsi
> 
> am335x-boneblack, am335x-boneblack-wireless, am335x-sancloud-bbe and
> am335x-sancloud-bbe-lite currently get the system-power-controller
> property from am335x-boneblack-common.dtsi. Moving that property to
> am335x-bone-common.dtsi would have no change for these boards as they
> include that dtsi file too.
> 
> This change would result in the addition of system-power-controller
> to bone, bonegreen and bonegreen-wireless. These boards all have
> PMIC_POWR_EN (ZCZ ball C6) connected to PWR_EN on the TPS65217B PMIC.
> Thus system-power-controller is a valid property for them too.
> 
> In addition to BeagleBone, I have reviewed the TI AM335x eval boards:
> 
> am335x-evm.dts should _not_ have the system-power-controller property as
> the PMIC_POWER_EN is not connected on the TMDXEVM3358 board [2]. The
> ball would be connected to SLEEP (pin 37) on the TPS65910A3 PMIC but R65
> is marked as do not populate.
> 
> am335x-evmsk.dts should _not_ have system-power-controller property as
> PMIC_POWER_EN is not connected on the TMDSSK3358 board [3].
> 
> am335x-icev2.dts should have the system-power-controller property as the
> PMIC_POWER_EN (ZCZ ball C6) is connected to PWRHOLD (pin 1) of the
> TPS65910A3 PMIC on the TMDSICE3359 board [4].
>
> Cc: Jason Kridner <jkridner@beagleboard.org>
> Cc: Dave Gerlach <d-gerlach@ti.com>
> Cc: Keerthy <j-keerthy@ti.com>
> Cc: Johan Hovold <johan@kernel.org>
> 
> [1] https://lore.kernel.org/linux-omap/20211012191311.879838-1-dfustini@baylibre.com/
> [2] https://www.ti.com/tool/TMDXEVM3358
> [3] https://www.ti.com/tool/TMDSSK3358
> [4] https://www.ti.com/tool/TMDSICE3359
> 
> 
> Drew Fustini (2):
>   ARM: dts: am335x-boneblack-common: move system-power-controller
>   ARM: dts: am335x-icev2: Add system-power-controller to RTC node

Nice work. I trust your review of the schematics, and only
double-checked sancloud-bbe. The patches look good.

For the series:

Reviewed-by: Johan Hovold <johan@kernel.org>

Johan

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

* Re: [PATCH 0/2] ARM: dts: am335x: add rtc system-power-controller
  2021-10-19 12:57 ` [PATCH 0/2] ARM: dts: am335x: add rtc system-power-controller Johan Hovold
@ 2021-12-09  7:40   ` Tony Lindgren
  0 siblings, 0 replies; 6+ messages in thread
From: Tony Lindgren @ 2021-12-09  7:40 UTC (permalink / raw)
  To: Johan Hovold
  Cc: Drew Fustini, Dave Gerlach, Keerthy, Jason Kridner,
	Benoit Cousson, Rob Herring, linux-omap, devicetree,
	linux-kernel

* Johan Hovold <johan@kernel.org> [211019 12:57]:
> On Mon, Oct 18, 2021 at 03:00:18PM -0700, Drew Fustini wrote:
> > Johan pointed out when I submitted "ARM: dts: am335x: Add rtc node as
> > system-power-controller" [1] that mentioning am335x-evm and boneblack
> > in the commit message was incorrect. system-power-controller is already
> > present in am335x-boneblack-common.dtsi and am335x-evm would need the
> > property added directly to the dts file.
...
> > Drew Fustini (2):
> >   ARM: dts: am335x-boneblack-common: move system-power-controller
> >   ARM: dts: am335x-icev2: Add system-power-controller to RTC node
> 
> Nice work. I trust your review of the schematics, and only
> double-checked sancloud-bbe. The patches look good.
> 
> For the series:
> 
> Reviewed-by: Johan Hovold <johan@kernel.org>

Thanks applying both into omap-for-v5.17/dt.

Regards,

Tony

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

* [PATCH 0/2] ARM: dts: am335x: add rtc system-power-controller
@ 2021-10-18 21:50 Drew Fustini
  0 siblings, 0 replies; 6+ messages in thread
From: Drew Fustini @ 2021-10-18 21:50 UTC (permalink / raw)
  To: Benoit Cousson, Tony Lindgren, Rob Herring, linux-omap,
	devicetree, linux-kernel
  Cc: Drew Fustini, Jason Kridner, Dave Gerlach, Keerthy, Johan Hovold

Johan pointed out when I submitted "ARM: dts: am335x: Add rtc node as
system-power-controller" [1] that mentioning am335x-evm and boneblack
in the commit message was incorrect. system-power-controller is already
present in am335x-boneblack-common.dtsi and am335x-evm would need the
property added directly to the dts file.

These are the dts files that currently include either
am335x-bone-common.dtsi or am335x-boneblack-common.dtsi:

    am335x-bone.dts
	am335x-bone-common.dtsi

    am335x-boneblack.dts
        am335x-bone-common.dtsi
	am335x-boneblack-common.dtsi

    am335x-boneblack-wireless.dts
	am335x-bone-common.dtsi
	am335x-boneblack-common.dtsi

    am335x-bonegreen.dts
	am335x-bone-common.dtsi

    am335x-bonegreen-wireless.dts
	am335x-bone-common.dtsi

    am335x-sancloud-bbe.dts
	am335x-bone-common.dtsi
	am335x-boneblack-common.dtsi

    am335x-sancloud-bbe-lite.dts
	am335x-bone-common.dtsi
	am335x-boneblack-common.dtsi

am335x-boneblack, am335x-boneblack-wireless, am335x-sancloud-bbe and
am335x-sancloud-bbe-lite currently get the system-power-controller
property from am335x-boneblack-common.dtsi. Moving that property to
am335x-bone-common.dtsi would have no change for these boards as they
include that dtsi file too.

This change would result in the addition of system-power-controller
to bone, bonegreen and bonegreen-wireless. These boards all have
PMIC_POWR_EN (ZCZ ball C6) connected to PWR_EN on the TPS65217B PMIC.
Thus system-power-controller is a valid property for them too.

In addition to BeagleBone, I have reviewed the TI AM335x eval boards:

am335x-evm.dts should _not_ have the system-power-controller property as
the PMIC_POWER_EN is not connected on the TMDXEVM3358 board [2]. The
ball would be connected to SLEEP (pin 37) on the TPS65910A3 PMIC but R65
is marked as do not populate.

am335x-evmsk.dts should _not_ have system-power-controller property as
PMIC_POWER_EN is not connected on the TMDSSK3358 board [3].

am335x-icev2.dts should have the system-power-controller property as the
PMIC_POWER_EN (ZCZ ball C6) is connected to PWRHOLD (pin 1) of the
TPS65910A3 PMIC on the TMDSICE3359 board [4].

Cc: Jason Kridner <jkridner@beagleboard.org>
Cc: Dave Gerlach <d-gerlach@ti.com>
Cc: Keerthy <j-keerthy@ti.com>
Cc: Johan Hovold <johan@kernel.org>

[1] https://lore.kernel.org/linux-omap/20211012191311.879838-1-dfustini@baylibre.com/
[2] https://www.ti.com/tool/TMDXEVM3358
[3] https://www.ti.com/tool/TMDSSK3358
[4] https://www.ti.com/tool/TMDSICE3359


Drew Fustini (2):
  ARM: dts: am335x-boneblack-common: move system-power-controller
  ARM: dts: am335x-icev2: Add system-power-controller to RTC node

 arch/arm/boot/dts/am335x-bone-common.dtsi      | 1 +
 arch/arm/boot/dts/am335x-boneblack-common.dtsi | 4 ----
 arch/arm/boot/dts/am335x-icev2.dts             | 4 ++++
 3 files changed, 5 insertions(+), 4 deletions(-)

-- 
2.27.0


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

end of thread, other threads:[~2021-12-09  7:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-18 22:00 [PATCH 0/2] ARM: dts: am335x: add rtc system-power-controller Drew Fustini
2021-10-18 22:00 ` [PATCH 1/2] ARM: dts: am335x-boneblack-common: move system-power-controller Drew Fustini
2021-10-18 22:00 ` [PATCH 2/2] ARM: dts: am335x-icev2: Add system-power-controller to RTC node Drew Fustini
2021-10-19 12:57 ` [PATCH 0/2] ARM: dts: am335x: add rtc system-power-controller Johan Hovold
2021-12-09  7:40   ` Tony Lindgren
  -- strict thread matches above, loose matches on Subject: below --
2021-10-18 21:50 Drew Fustini

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