Skip to contentSkip to conversation

ARM: dts: Add the CLCD controller to Cygnus.

PATCH Applied Eric Anholt 3 participants 8 messages Aug 31, 2017 – Sep 2, 2017 1 message not in the archive

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

PATCH 1/2 ARM: dts: Add the CLCD controller to Cygnus.

This doesn't yet enable it on any particular platform, as we still need a panel driver for bcm911360_entphn.

---

These bits are just carving off a little bit of my 911360_entphn panel series, to reduce conflicts when rebasing (which I just did for testing pl111 changes for cygnus regressions). I'm waiting to get my current RPi panel driver in before working on the 911360 panel again.

 arch/arm/boot/dts/bcm-cygnus.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm/boot/dts/bcm-cygnus.dtsi +10 -0
index 7c957ea06c66..74f73ff24aec 100644
@@ -575,6 +575,16 @@
 			status = "disabled";
 		};
 
+		clcd: clcd at 180a0000 {
+			compatible = "arm,pl111", "arm,primecell";
+			reg = <0x180a0000 0x1000>;
+			interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "combined";
+			clocks = <&axi41_clk>, <&apb_clk>;
+			clock-names = "clcdclk", "apb_pclk";
+			status = "disabled";
+		};
+
 		keypad: keypad at 180ac000 {
 			compatible = "brcm,bcm-keypad";
 			reg = <0x180ac000 0x14c>;
Signature · 1 line
2.14.1
#1 lore raw

PATCH 2/2 ARM: dts: Add the PWM node to Cygnus

This is connected up to the backlight on 911360_entphn, which we'll need for a panel driver. For now, leave the node disabled in the shared dtsi.

---
 arch/arm/boot/dts/bcm-cygnus.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm/boot/dts/bcm-cygnus.dtsi +8 -0
index 74f73ff24aec..b9a654d733ae 100644
@@ -585,6 +585,14 @@
 			status = "disabled";
 		};
 
+		pwm: pwm at 180aa500 {
+			compatible = "brcm,kona-pwm";
+			reg = <0x180aa500 0xc4>;
+			#pwm-cells = <3>;
+			clocks = <&asiu_clks BCM_CYGNUS_ASIU_PWM_CLK>;
+			status = "disabled";
+		};
+
 		keypad: keypad at 180ac000 {
 			compatible = "brcm,bcm-keypad";
 			reg = <0x180ac000 0x14c>;
Signature · 1 line
2.14.1
Acked-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] ARM: dts: Add the PWM node to Cygnus

pwm node is correct.

Quoted 5 lines · Eric Anholt

This is connected up to the backlight on 911360_entphn, which we'll need for a panel driver. For now, leave the node disabled in the shared dtsi.

Quoted 23 lines
---
  arch/arm/boot/dts/bcm-cygnus.dtsi | 8 ++++++++
  1 file changed, 8 insertions(+)
arch/arm/boot/dts/bcm-cygnus.dtsi +8 -0
index 74f73ff24aec..b9a654d733ae 100644
@@ -585,6 +585,14 @@
  			status = "disabled";
  		};
 
+		pwm: pwm at 180aa500 {
+			compatible = "brcm,kona-pwm";
+			reg = <0x180aa500 0xc4>;
+			#pwm-cells = <3>;
+			clocks = <&asiu_clks BCM_CYGNUS_ASIU_PWM_CLK>;
+			status = "disabled";
+		};
+
  		keypad: keypad at 180ac000 {
  			compatible = "brcm,bcm-keypad";
  			reg = <0x180ac000 0x14c>;
#3 lore raw

Re: [PATCH 2/2] ARM: dts: Add the PWM node to Cygnus

Quoted 10 lines · Scott Branden

pwm node is correct.

Quoted 5 lines · Eric Anholt

This is connected up to the backlight on 911360_entphn, which we'll need for a panel driver. For now, leave the node disabled in the shared dtsi.

Applied to devicetree/next:

https://github.com/Broadcom/stblinux/commit/31807d46f85c4d86ef3b6df9c5a4e69d35f75bc0

Quoted 24 lines
Quoted 23 lines
---
  arch/arm/boot/dts/bcm-cygnus.dtsi | 8 ++++++++
  1 file changed, 8 insertions(+)
arch/arm/boot/dts/bcm-cygnus.dtsi +7 -0
index 74f73ff24aec..b9a654d733ae 100644
@@ -585,6 +585,14 @@
              status = "disabled";
          };
  +        pwm: pwm at 180aa500 {
+            compatible = "brcm,kona-pwm";
+            reg = <0x180aa500 0xc4>;
+            #pwm-cells = <3>;
+            clocks = <&asiu_clks BCM_CYGNUS_ASIU_PWM_CLK>;
+            status = "disabled";
+        };
+
          keypad: keypad at 180ac000 {
              compatible = "brcm,bcm-keypad";
              reg = <0x180ac000 0x14c>;
Signature · 1 line
Florian
#4 lore raw
In reply to Eric Anholt

Hi Eric,

mode is correct, location in file needs to be moved.

Quoted 19 lines · Eric Anholt

This doesn't yet enable it on any particular platform, as we still need a panel driver for bcm911360_entphn.

---

These bits are just carving off a little bit of my 911360_entphn panel series, to reduce conflicts when rebasing (which I just did for testing pl111 changes for cygnus regressions). I'm waiting to get my current RPi panel driver in before working on the 911360 panel again.

  arch/arm/boot/dts/bcm-cygnus.dtsi | 10 ++++++++++
  1 file changed, 10 insertions(+)
arch/arm/boot/dts/bcm-cygnus.dtsi +0 -0
index 7c957ea06c66..74f73ff24aec 100644

arch/arm/boot/dts/bcm-cygnus.dtsi line 578

Quoted 4 lines
arch/arm/boot/dts/bcm-cygnus.dtsi +1 -0
@@ -575,6 +575,16 @@
  			status = "disabled";
  		};
 
+		clcd: clcd at 180a0000 {

please place in correct address ordered location in file

Quoted 12 lines
arch/arm/boot/dts/bcm-cygnus.dtsi +9 -0
+			compatible = "arm,pl111", "arm,primecell";
+			reg = <0x180a0000 0x1000>;
+			interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "combined";
+			clocks = <&axi41_clk>, <&apb_clk>;
+			clock-names = "clcdclk", "apb_pclk";
+			status = "disabled";
+		};
+
  		keypad: keypad at 180ac000 {
  			compatible = "brcm,bcm-keypad";
  			reg = <0x180ac000 0x14c>;
#5 lore raw
Quoted 20 lines · Scott Branden

Hi Eric,

mode is correct, location in file needs to be moved.

Quoted 14 lines · Eric Anholt

This doesn't yet enable it on any particular platform, as we still need a panel driver for bcm911360_entphn.

---

These bits are just carving off a little bit of my 911360_entphn panel series, to reduce conflicts when rebasing (which I just did for testing pl111 changes for cygnus regressions). I'm waiting to get my current RPi panel driver in before working on the 911360 panel again.

  arch/arm/boot/dts/bcm-cygnus.dtsi | 10 ++++++++++
  1 file changed, 10 insertions(+)
Quoted 10 lines

arch/arm/boot/dts/bcm-cygnus.dtsi line 577

Quoted 9 lines
arch/arm/boot/dts/bcm-cygnus.dtsi +0 -0
index 7c957ea06c66..74f73ff24aec 100644
@@ -575,6 +575,16 @@
              status = "disabled";
          };
  +        clcd: clcd at 180a0000 {

please place in correct address ordered location in file

I moved it right above the v3d node to keep the nodes ordered by unit address, please check the result here:

https://github.com/Broadcom/stblinux/commit/4d1e42c6b9d28ce7b74d92258435f9d16834ae75

Quoted 13 lines
Quoted 12 lines
arch/arm/boot/dts/bcm-cygnus.dtsi +9 -0
+            compatible = "arm,pl111", "arm,primecell";
+            reg = <0x180a0000 0x1000>;
+            interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
+            interrupt-names = "combined";
+            clocks = <&axi41_clk>, <&apb_clk>;
+            clock-names = "clcdclk", "apb_pclk";
+            status = "disabled";
+        };
+
          keypad: keypad at 180ac000 {
              compatible = "brcm,bcm-keypad";
              reg = <0x180ac000 0x14c>;
Signature · 1 line
Florian

A message that is not in the archive (sent off-list or not yet received): CA+Jzhd+cX6MW9O+BzSU0NDTEgBet=wbgMdwW9A+fi7HVvxAArA@mail.gmail.com

Acked-by
#7 lore raw

Looks good

On Sep 1, 2017 7:10 PM, "Florian Fainelli" <[email protected]> wrote:

Quoted 20 lines · Scott Branden

Hi Eric,

mode is correct, location in file needs to be moved.

Quoted 14 lines · Eric Anholt

This doesn't yet enable it on any particular platform, as we still need a panel driver for bcm911360_entphn.

---

These bits are just carving off a little bit of my 911360_entphn panel series, to reduce conflicts when rebasing (which I just did for testing pl111 changes for cygnus regressions). I'm waiting to get my current RPi panel driver in before working on the 911360 panel again.

  arch/arm/boot/dts/bcm-cygnus.dtsi | 10 ++++++++++
  1 file changed, 10 insertions(+)
Quoted 10 lines

arch/arm/boot/dts/bcm-cygnus.dtsi line 577

Quoted 9 lines
arch/arm/boot/dts/bcm-cygnus.dtsi +0 -0
index 7c957ea06c66..74f73ff24aec 100644
@@ -575,6 +575,16 @@
              status = "disabled";
          };
  +        clcd: clcd@180a0000 {

please place in correct address ordered location in file

I moved it right above the v3d node to keep the nodes ordered by unit address, please check the result here:

https://github.com/Broadcom/stblinux/commit/4d1e42c6b9d28ce7b74d92258435f9
d16834ae75

With Moved location

Quoted 4 lines
Quoted 4 lines
arch/arm/boot/dts/bcm-cygnus.dtsi +4 -0
+            compatible = "arm,pl111", "arm,primecell";
+            reg = <0x180a0000 0x1000>;
+            interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
+            interrupt-names = "combined";
Quoted 9 lines

arch/arm/boot/dts/bcm-cygnus.dtsi line 590

Quoted 8 lines
arch/arm/boot/dts/bcm-cygnus.dtsi +5 -0
+            clocks = <&axi41_clk>, <&apb_clk>;
+            clock-names = "clcdclk", "apb_pclk";
+            status = "disabled";
+        };
+
          keypad: keypad@180ac000 {
              compatible = "brcm,bcm-keypad";
              reg = <0x180ac000 0x14c>;

--
Florian

#8 lore raw
Quoted 47 lines · Scott Branden

Looks good

On Sep 1, 2017 7:10 PM, "Florian Fainelli" <[email protected] <mailto:[email protected]>> wrote:

    On 08/31/2017 01:16 PM, Scott Branden wrote:
    > Hi Eric,
    >
    > mode is correct, location in file needs to be moved.
    >
    >
    > On 17-08-31 11:54 AM, Eric Anholt wrote:
    >> This doesn't yet enable it on any particular platform, as we still
    >> need a panel driver for bcm911360_entphn.
    >>
    >> Signed-off-by: Eric Anholt <eric at anholt.net <mailto:[email protected]>>
    >> ---
    >>
    >> These bits are just carving off a little bit of my 911360_entphn
    panel
    >> series, to reduce conflicts when rebasing (which I just did for
    >> testing pl111 changes for cygnus regressions).  I'm waiting to get my
    >> current RPi panel driver in before working on the 911360 panel again.
    >>
    >>   arch/arm/boot/dts/bcm-cygnus.dtsi | 10 ++++++++++
    >>   1 file changed, 10 insertions(+)
    >>
    >> diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi
    >> b/arch/arm/boot/dts/bcm-cygnus.dtsi
    >> index 7c957ea06c66..74f73ff24aec 100644
    >> --- a/arch/arm/boot/dts/bcm-cygnus.dtsi
    >> +++ b/arch/arm/boot/dts/bcm-cygnus.dtsi
    >> @@ -575,6 +575,16 @@
    >>               status = "disabled";
    >>           };
    >>   +        clcd: clcd at 180a0000 {
    > please place in correct address ordered location in file

    I moved it right above the v3d node to keep the nodes ordered by unit
    address, please check the result here:

    https://github.com/Broadcom/stblinux/commit/4d1e42c6b9d28ce7b74d92258435f9d16834ae75
    <https://github.com/Broadcom/stblinux/commit/4d1e42c6b9d28ce7b74d92258435f9d16834ae75>
Quoted 3 lines

With Moved location

<mailto:[email protected]>>

Pushed in place with your tag added, thanks!

Signature · 1 line
Florian