devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: dts: A couple of mmp devicetree updates
@ 2020-09-25 23:48 Lubomir Rintel
  2020-09-25 23:48 ` [PATCH 1/2] ARM: dts: mmp3: Add power domain for the camera Lubomir Rintel
  2020-09-25 23:48 ` [PATCH 2/2] ARM: dts: mmp2-olpc-xo-1-75: Use plural form of "-gpios" Lubomir Rintel
  0 siblings, 2 replies; 3+ messages in thread
From: Lubomir Rintel @ 2020-09-25 23:48 UTC (permalink / raw)
  To: Arnd Bergmann, Olof Johansson
  Cc: Rob Herring, SoC Team, linux-arm-kernel, devicetree, linux-kernel

Hi,

please take a look at two patches chaned to this message and consider
applying them to arm/dt.

Thank you
Lubo



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

* [PATCH 1/2] ARM: dts: mmp3: Add power domain for the camera
  2020-09-25 23:48 [PATCH 0/2] ARM: dts: A couple of mmp devicetree updates Lubomir Rintel
@ 2020-09-25 23:48 ` Lubomir Rintel
  2020-09-25 23:48 ` [PATCH 2/2] ARM: dts: mmp2-olpc-xo-1-75: Use plural form of "-gpios" Lubomir Rintel
  1 sibling, 0 replies; 3+ messages in thread
From: Lubomir Rintel @ 2020-09-25 23:48 UTC (permalink / raw)
  To: Arnd Bergmann, Olof Johansson
  Cc: Rob Herring, SoC Team, linux-arm-kernel, devicetree,
	linux-kernel, Lubomir Rintel

The camera interfaces on MMP3 are on a separate power island that needs
to be turned on for them to operate and, ideally, turned off when the
cameras are not in use.

This hooks the power island with the camera interfaces in the device
tree.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
---
 arch/arm/boot/dts/mmp3.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/mmp3.dtsi b/arch/arm/boot/dts/mmp3.dtsi
index cc4efd0efabd2..4ae630d37d094 100644
--- a/arch/arm/boot/dts/mmp3.dtsi
+++ b/arch/arm/boot/dts/mmp3.dtsi
@@ -296,6 +296,7 @@ camera0: camera@d420a000 {
 				interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
 				clocks = <&soc_clocks MMP2_CLK_CCIC0>;
 				clock-names = "axi";
+				power-domains = <&soc_clocks MMP3_POWER_DOMAIN_CAMERA>;
 				#clock-cells = <0>;
 				clock-output-names = "mclk";
 				status = "disabled";
@@ -307,6 +308,7 @@ camera1: camera@d420a800 {
 				interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
 				clocks = <&soc_clocks MMP2_CLK_CCIC1>;
 				clock-names = "axi";
+				power-domains = <&soc_clocks MMP3_POWER_DOMAIN_CAMERA>;
 				#clock-cells = <0>;
 				clock-output-names = "mclk";
 				status = "disabled";
-- 
2.26.2


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

* [PATCH 2/2] ARM: dts: mmp2-olpc-xo-1-75: Use plural form of "-gpios"
  2020-09-25 23:48 [PATCH 0/2] ARM: dts: A couple of mmp devicetree updates Lubomir Rintel
  2020-09-25 23:48 ` [PATCH 1/2] ARM: dts: mmp3: Add power domain for the camera Lubomir Rintel
@ 2020-09-25 23:48 ` Lubomir Rintel
  1 sibling, 0 replies; 3+ messages in thread
From: Lubomir Rintel @ 2020-09-25 23:48 UTC (permalink / raw)
  To: Arnd Bergmann, Olof Johansson
  Cc: Rob Herring, SoC Team, linux-arm-kernel, devicetree,
	linux-kernel, Lubomir Rintel

This makes validation happier.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
---
 arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts b/arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts
index f1a41152e9dd7..adde62d6fce73 100644
--- a/arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts
+++ b/arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts
@@ -227,12 +227,12 @@ &ssp3 {
 	/delete-property/ #size-cells;
 	spi-slave;
 	status = "okay";
-	ready-gpio = <&gpio 125 GPIO_ACTIVE_HIGH>;
+	ready-gpios = <&gpio 125 GPIO_ACTIVE_HIGH>;
 
 	slave {
 		compatible = "olpc,xo1.75-ec";
 		spi-cpha;
-		cmd-gpio = <&gpio 155 GPIO_ACTIVE_HIGH>;
+		cmd-gpios = <&gpio 155 GPIO_ACTIVE_HIGH>;
 	};
 };
 
-- 
2.26.2


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

end of thread, other threads:[~2020-09-25 23:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-25 23:48 [PATCH 0/2] ARM: dts: A couple of mmp devicetree updates Lubomir Rintel
2020-09-25 23:48 ` [PATCH 1/2] ARM: dts: mmp3: Add power domain for the camera Lubomir Rintel
2020-09-25 23:48 ` [PATCH 2/2] ARM: dts: mmp2-olpc-xo-1-75: Use plural form of "-gpios" Lubomir Rintel

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