linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Add R8A7792/Blanche CAN support
@ 2016-07-14 20:18 Sergei Shtylyov
  2016-07-14 20:19 ` [PATCH 1/3] ARM: dts: r8a7792: add CAN clocks Sergei Shtylyov
                   ` (7 more replies)
  0 siblings, 8 replies; 19+ messages in thread
From: Sergei Shtylyov @ 2016-07-14 20:18 UTC (permalink / raw)
  To: linux-arm-kernel

Hello.

   Here's the set of 3 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-20160711-v4.7-rc7' tag plus the R8A7792 PFC/GPIO/EtherAVB/SDHI
patchsets. We're adding the R8A7792/Blanche CAN clocks and device nodes. The
board patch depends on the PFC driver CAN patch in order for the CAN pins to be
configured...

[1/3] ARM: dts: r8a7792: add CAN clocks
[2/3] ARM: dts: r8a7792: add CAN support
[3/3] ARM: dts: blanche: add CAN0 support

WBR, Sergei

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

* [PATCH 1/3] ARM: dts: r8a7792: add CAN clocks
  2016-07-14 20:18 [PATCH 0/3] Add R8A7792/Blanche CAN support Sergei Shtylyov
@ 2016-07-14 20:19 ` Sergei Shtylyov
  2016-07-15  3:19   ` Geert Uytterhoeven
  2016-07-14 20:20 ` [PATCH 2/3] ARM: dts: r8a7792: add CAN support Sergei Shtylyov
                   ` (6 subsequent siblings)
  7 siblings, 1 reply; 19+ messages in thread
From: Sergei Shtylyov @ 2016-07-14 20:19 UTC (permalink / raw)
  To: linux-arm-kernel

The R-Car CAN controllers can derive  the CAN  bus  clock not only from
their peripheral  clock input (clkp1) but also from the other internal
clock (clkp2) and the external clock fed on the CAN_CLK pin.  Describe
those  clocks in  the R8A7792 device tree.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
 arch/arm/boot/dts/r8a7792.dtsi |   22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)

Index: renesas/arch/arm/boot/dts/r8a7792.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7792.dtsi
+++ renesas/arch/arm/boot/dts/r8a7792.dtsi
@@ -530,6 +530,13 @@
 			clock-div = <8>;
 			clock-mult = <1>;
 		};
+		rcan_clk: rcan {
+			compatible = "fixed-factor-clock";
+			clocks = <&pll1_div2_clk>;
+			#clock-cells = <0>;
+			clock-div = <49>;
+			clock-mult = <1>;
+		};
 
 		/* Gate clocks */
 		mstp1_clks: mstp1_clks at e6150134 {
@@ -600,7 +607,8 @@
 			reg = <0 0xe6150994 0 4>, <0 0xe61509a4 0 4>;
 			clocks = <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>,
 				 <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>,
-				 <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>;
+				 <&cp_clk>, <&cp_clk>, <&p_clk>, <&p_clk>,
+				 <&cp_clk>, <&cp_clk>;
 			#clock-cells = <1>;
 			clock-indices = <
 				R8A7792_CLK_GPIO7 R8A7792_CLK_GPIO6
@@ -608,12 +616,14 @@
 				R8A7792_CLK_GPIO3 R8A7792_CLK_GPIO2
 				R8A7792_CLK_GPIO1 R8A7792_CLK_GPIO0
 				R8A7792_CLK_GPIO11 R8A7792_CLK_GPIO10
+				R8A7792_CLK_CAN1 R8A7792_CLK_CAN0
 				R8A7792_CLK_GPIO9 R8A7792_CLK_GPIO8
 			>;
 			clock-output-names =
 				"gpio7", "gpio6", "gpio5", "gpio4",
 				"gpio3", "gpio2", "gpio1", "gpio0",
-				"gpio11", "gpio10", "gpio9", "gpio8";
+				"gpio11", "gpio10", "can1", "can0",
+				"gpio9", "gpio8";
 		};
 	};
 
@@ -630,6 +640,14 @@
 		compatible = "fixed-clock";
 		#clock-cells = <0>;
 		/* This value must be overridden by the board. */
+		clock-frequency = <0>;
+	};
+
+	/* External CAN clock */
+	can_clk: can {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		/* This value must be overridden by the board. */
 		clock-frequency = <0>;
 	};
 };

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

* [PATCH 2/3] ARM: dts: r8a7792: add CAN support
  2016-07-14 20:18 [PATCH 0/3] Add R8A7792/Blanche CAN support Sergei Shtylyov
  2016-07-14 20:19 ` [PATCH 1/3] ARM: dts: r8a7792: add CAN clocks Sergei Shtylyov
@ 2016-07-14 20:20 ` Sergei Shtylyov
  2016-07-15  3:21   ` Geert Uytterhoeven
  2016-07-14 20:21 ` [PATCH 3/3] ARM: dts: blanche: add CAN0 support Sergei Shtylyov
                   ` (5 subsequent siblings)
  7 siblings, 1 reply; 19+ messages in thread
From: Sergei Shtylyov @ 2016-07-14 20:20 UTC (permalink / raw)
  To: linux-arm-kernel

Define the generic R8A7792 parts of the CAN0/1 device nodes.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
 arch/arm/boot/dts/r8a7792.dtsi |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

Index: renesas/arch/arm/boot/dts/r8a7792.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7792.dtsi
+++ renesas/arch/arm/boot/dts/r8a7792.dtsi
@@ -468,6 +468,30 @@
 			status = "disabled";
 		};
 
+		can0: can at e6e80000 {
+			compatible = "renesas,can-r8a7792",
+				     "renesas,rcar-gen2-can";
+			reg = <0 0xe6e80000 0 0x1000>;
+			interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&mstp9_clks R8A7792_CLK_CAN0>,
+				 <&rcan_clk>, <&can_clk>;
+			clock-names = "clkp1", "clkp2", "can_clk";
+			power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+			status = "disabled";
+		};
+
+		can1: can at e6e88000 {
+			compatible = "renesas,can-r8a7792",
+				     "renesas,rcar-gen2-can";
+			reg = <0 0xe6e88000 0 0x1000>;
+			interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&mstp9_clks R8A7792_CLK_CAN1>,
+				 <&rcan_clk>, <&can_clk>;
+			clock-names = "clkp1", "clkp2", "can_clk";
+			power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+			status = "disabled";
+		};
+
 		/* Special CPG clocks */
 		cpg_clocks: cpg_clocks at e6150000 {
 			compatible = "renesas,r8a7792-cpg-clocks",

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

* [PATCH 3/3] ARM: dts: blanche: add CAN0 support
  2016-07-14 20:18 [PATCH 0/3] Add R8A7792/Blanche CAN support Sergei Shtylyov
  2016-07-14 20:19 ` [PATCH 1/3] ARM: dts: r8a7792: add CAN clocks Sergei Shtylyov
  2016-07-14 20:20 ` [PATCH 2/3] ARM: dts: r8a7792: add CAN support Sergei Shtylyov
@ 2016-07-14 20:21 ` Sergei Shtylyov
  2016-07-18  2:10 ` [PATCH 0/3] Add R8A7792/Blanche CAN support Simon Horman
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 19+ messages in thread
From: Sergei Shtylyov @ 2016-07-14 20:21 UTC (permalink / raw)
  To: linux-arm-kernel

Define the Blanche board dependent part of the CAN0 device node along with
the CAN_CLK crystal...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
 arch/arm/boot/dts/r8a7792-blanche.dts |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)

Index: renesas/arch/arm/boot/dts/r8a7792-blanche.dts
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7792-blanche.dts
+++ renesas/arch/arm/boot/dts/r8a7792-blanche.dts
@@ -60,6 +60,10 @@
 	clock-frequency = <20000000>;
 };
 
+&can_clk {
+	clock-frequency = <48000000>;
+};
+
 &pfc {
 	scif0_pins: scif0 {
 		groups = "scif0_data";
@@ -81,6 +85,11 @@
 			function = "lbsc";
 		};
 	};
+
+	can0_pins: can0 {
+		groups = "can0_data", "can_clk";
+		function = "can0";
+	};
 };
 
 &scif0 {
@@ -95,4 +104,11 @@
 	pinctrl-names = "default";
 
 	status = "okay";
+};
+
+&can0 {
+	pinctrl-0 = <&can0_pins>;
+	pinctrl-names = "default";
+
+	status = "okay";
 };

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

* [PATCH 1/3] ARM: dts: r8a7792: add CAN clocks
  2016-07-14 20:19 ` [PATCH 1/3] ARM: dts: r8a7792: add CAN clocks Sergei Shtylyov
@ 2016-07-15  3:19   ` Geert Uytterhoeven
  0 siblings, 0 replies; 19+ messages in thread
From: Geert Uytterhoeven @ 2016-07-15  3:19 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Jul 14, 2016 at 10:19 PM, Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:
> The R-Car CAN controllers can derive  the CAN  bus  clock not only from
> their peripheral  clock input (clkp1) but also from the other internal
> clock (clkp2) and the external clock fed on the CAN_CLK pin.  Describe
> those  clocks in  the R8A7792 device tree.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* [PATCH 2/3] ARM: dts: r8a7792: add CAN support
  2016-07-14 20:20 ` [PATCH 2/3] ARM: dts: r8a7792: add CAN support Sergei Shtylyov
@ 2016-07-15  3:21   ` Geert Uytterhoeven
  0 siblings, 0 replies; 19+ messages in thread
From: Geert Uytterhoeven @ 2016-07-15  3:21 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Jul 14, 2016 at 10:20 PM, Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:
> Define the generic R8A7792 parts of the CAN0/1 device nodes.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* [PATCH 0/3] Add R8A7792/Blanche CAN support
  2016-07-14 20:18 [PATCH 0/3] Add R8A7792/Blanche CAN support Sergei Shtylyov
                   ` (2 preceding siblings ...)
  2016-07-14 20:21 ` [PATCH 3/3] ARM: dts: blanche: add CAN0 support Sergei Shtylyov
@ 2016-07-18  2:10 ` Simon Horman
  2016-08-29 20:11 ` [PATCH] ARM: dts: wheat: add " Sergei Shtylyov
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 19+ messages in thread
From: Simon Horman @ 2016-07-18  2:10 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Jul 14, 2016 at 11:18:53PM +0300, Sergei Shtylyov wrote:
> Hello.
> 
>    Here's the set of 3 patches against Simon Horman's 'renesas.git' repo,
> 'renesas-devel-20160711-v4.7-rc7' tag plus the R8A7792 PFC/GPIO/EtherAVB/SDHI
> patchsets. We're adding the R8A7792/Blanche CAN clocks and device nodes. The
> board patch depends on the PFC driver CAN patch in order for the CAN pins to be
> configured...

Thanks, I have queue this up.

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

* [PATCH] ARM: dts: wheat: add CAN support
  2016-07-14 20:18 [PATCH 0/3] Add R8A7792/Blanche CAN support Sergei Shtylyov
                   ` (3 preceding siblings ...)
  2016-07-18  2:10 ` [PATCH 0/3] Add R8A7792/Blanche CAN support Simon Horman
@ 2016-08-29 20:11 ` Sergei Shtylyov
  2016-09-03 21:50   ` Sergei Shtylyov
  2016-08-30 22:24 ` [PATCH] ARM: dts: wheat: add SDHI0 support Sergei Shtylyov
                   ` (2 subsequent siblings)
  7 siblings, 1 reply; 19+ messages in thread
From: Sergei Shtylyov @ 2016-08-29 20:11 UTC (permalink / raw)
  To: linux-arm-kernel

Define the Wheat board dependent part of the CAN0/1 device nodes...

Based  on the original (and large) patch by Vladimir Barinov 
<vladimir.barinov@cogentembedded.com>.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
This patch is against the 'renesas-devel-20160829-v4.8-rc4' of Simon Horman's
'renesas.git' repo.

 arch/arm/boot/dts/r8a7792-wheat.dts |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

Index: renesas/arch/arm/boot/dts/r8a7792-wheat.dts
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7792-wheat.dts
+++ renesas/arch/arm/boot/dts/r8a7792-wheat.dts
@@ -76,6 +76,16 @@
 			function = "lbsc";
 		};
 	};
+
+	can0_pins: can0 {
+		groups = "can0_data";
+		function = "can0";
+	};
+
+	can1_pins: can1 {
+		groups = "can1_data";
+		function = "can1";
+	};
 };
 
 &scif0 {
@@ -83,4 +93,18 @@
 	pinctrl-names = "default";
 
 	status = "okay";
+};
+
+&can0 {
+	pinctrl-0 = <&can0_pins>;
+	pinctrl-names = "default";
+
+	status = "okay";
+};
+
+&can1 {
+	pinctrl-0 = <&can1_pins>;
+	pinctrl-names = "default";
+
+	status = "okay";
 };

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

* [PATCH] ARM: dts: wheat: add SDHI0 support
  2016-07-14 20:18 [PATCH 0/3] Add R8A7792/Blanche CAN support Sergei Shtylyov
                   ` (4 preceding siblings ...)
  2016-08-29 20:11 ` [PATCH] ARM: dts: wheat: add " Sergei Shtylyov
@ 2016-08-30 22:24 ` Sergei Shtylyov
  2016-08-31  7:06   ` Geert Uytterhoeven
  2016-09-03 21:49   ` Sergei Shtylyov
  2016-09-01 21:29 ` [PATCH] ARM: dts: wheat: add DU support Sergei Shtylyov
  2016-09-22 21:06 ` [PATCH v2] " Sergei Shtylyov
  7 siblings, 2 replies; 19+ messages in thread
From: Sergei Shtylyov @ 2016-08-30 22:24 UTC (permalink / raw)
  To: linux-arm-kernel

Define the Wheat board dependent  part of  the SDHI0 (connected to the
micro-SD slot)  device node along with the necessary voltage regulator.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
This patch is against the 'renesas-devel-20160830-v4.8-rc4' of Simon Horman's
'renesas.git' repo plus the CAN patch posted yesterday.
Starting with this patch, SMSC LAN89218 Ethernet chip starts to misbehave on my
board...

 arch/arm/boot/dts/r8a7792-wheat.dts |   26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

Index: renesas/arch/arm/boot/dts/r8a7792-wheat.dts
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7792-wheat.dts
+++ renesas/arch/arm/boot/dts/r8a7792-wheat.dts
@@ -11,6 +11,7 @@
 
 /dts-v1/;
 #include "r8a7792.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
 	model = "Wheat";
@@ -54,6 +55,17 @@
 		pinctrl-0 = <&lan89218_pins>;
 		pinctrl-names = "default";
 	};
+
+	vcc_sdhi0: regulator-vcc-sdhi0 {
+		compatible = "regulator-fixed";
+
+		regulator-name = "SDHI0 Vcc";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+
+		gpio = <&gpio11 12 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+	};
 };
 
 &extal_clk {
@@ -86,6 +98,11 @@
 		groups = "can1_data";
 		function = "can1";
 	};
+
+	sdhi0_pins: sdhi0 {
+		groups = "sdhi0_data4", "sdhi0_ctrl";
+		function = "sdhi0";
+	};
 };
 
 &scif0 {
@@ -108,3 +125,12 @@
 
 	status = "okay";
 };
+
+&sdhi0 {
+	pinctrl-0 = <&sdhi0_pins>;
+	pinctrl-names = "default";
+
+	vmmc-supply = <&vcc_sdhi0>;
+	cd-gpios = <&gpio11 11 GPIO_ACTIVE_LOW>;
+	status = "okay";
+};

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

* [PATCH] ARM: dts: wheat: add SDHI0 support
  2016-08-30 22:24 ` [PATCH] ARM: dts: wheat: add SDHI0 support Sergei Shtylyov
@ 2016-08-31  7:06   ` Geert Uytterhoeven
  2016-09-03 21:49   ` Sergei Shtylyov
  1 sibling, 0 replies; 19+ messages in thread
From: Geert Uytterhoeven @ 2016-08-31  7:06 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Sergei,

On Wed, Aug 31, 2016 at 12:24 AM, Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:
> Define the Wheat board dependent  part of  the SDHI0 (connected to the
> micro-SD slot)  device node along with the necessary voltage regulator.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>
> ---
> This patch is against the 'renesas-devel-20160830-v4.8-rc4' of Simon Horman's
> 'renesas.git' repo plus the CAN patch posted yesterday.
> Starting with this patch, SMSC LAN89218 Ethernet chip starts to misbehave on my
> board...

Are GP11_11 or GP11_12 connected to the Ethernet chip?
Does the misbehaving go away if you drop
  - cd-gpios?
  - The regulator?
  - sdhi0-pins (there may be a bug in the pfc register bit definitions)?

>  arch/arm/boot/dts/r8a7792-wheat.dts |   26 ++++++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
>
> Index: renesas/arch/arm/boot/dts/r8a7792-wheat.dts
> ===================================================================
> --- renesas.orig/arch/arm/boot/dts/r8a7792-wheat.dts
> +++ renesas/arch/arm/boot/dts/r8a7792-wheat.dts
> @@ -11,6 +11,7 @@
>
>  /dts-v1/;
>  #include "r8a7792.dtsi"
> +#include <dt-bindings/gpio/gpio.h>
>
>  / {
>         model = "Wheat";
> @@ -54,6 +55,17 @@
>                 pinctrl-0 = <&lan89218_pins>;
>                 pinctrl-names = "default";
>         };
> +
> +       vcc_sdhi0: regulator-vcc-sdhi0 {
> +               compatible = "regulator-fixed";
> +
> +               regulator-name = "SDHI0 Vcc";
> +               regulator-min-microvolt = <3300000>;
> +               regulator-max-microvolt = <3300000>;
> +
> +               gpio = <&gpio11 12 GPIO_ACTIVE_HIGH>;
> +               enable-active-high;
> +       };
>  };
>
>  &extal_clk {
> @@ -86,6 +98,11 @@
>                 groups = "can1_data";
>                 function = "can1";
>         };
> +
> +       sdhi0_pins: sdhi0 {
> +               groups = "sdhi0_data4", "sdhi0_ctrl";
> +               function = "sdhi0";
> +       };
>  };
>
>  &scif0 {
> @@ -108,3 +125,12 @@
>
>         status = "okay";
>  };
> +
> +&sdhi0 {
> +       pinctrl-0 = <&sdhi0_pins>;
> +       pinctrl-names = "default";
> +
> +       vmmc-supply = <&vcc_sdhi0>;
> +       cd-gpios = <&gpio11 11 GPIO_ACTIVE_LOW>;
> +       status = "okay";
> +};

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* [PATCH] ARM: dts: wheat: add DU support
  2016-07-14 20:18 [PATCH 0/3] Add R8A7792/Blanche CAN support Sergei Shtylyov
                   ` (5 preceding siblings ...)
  2016-08-30 22:24 ` [PATCH] ARM: dts: wheat: add SDHI0 support Sergei Shtylyov
@ 2016-09-01 21:29 ` Sergei Shtylyov
  2016-09-12 17:52   ` Sergei Shtylyov
  2016-09-22 21:06 ` [PATCH v2] " Sergei Shtylyov
  7 siblings, 1 reply; 19+ messages in thread
From: Sergei Shtylyov @ 2016-09-01 21:29 UTC (permalink / raw)
  To: linux-arm-kernel

Define  the  Wheat board dependent  part of the DU device node.
Add the device nodes for the Analog Devices ADV7513 HDMI transmitters
connected to DU0/1.  Add the necessary subnodes to interconnect DU with
HDMI transmitters/connectors.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
This patch is against the 'renesas-devel-20160901-v4.8-rc4' of Simon Horman's
'renesas.git' repo plus the Wheat CAN and SDHI patches posted earlier...
The path depends on the 2 DRM patches just posted in order to work correctly!

 arch/arm/boot/dts/r8a7792-wheat.dts |  126 ++++++++++++++++++++++++++++++++++++
 1 file changed, 126 insertions(+)

Index: renesas/arch/arm/boot/dts/r8a7792-wheat.dts
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7792-wheat.dts
+++ renesas/arch/arm/boot/dts/r8a7792-wheat.dts
@@ -66,6 +66,34 @@
 		gpio = <&gpio11 12 GPIO_ACTIVE_HIGH>;
 		enable-active-high;
 	};
+
+	hdmi-out0 {
+		compatible = "hdmi-connector";
+		type = "a";
+
+		port {
+			hdmi_con0: endpoint {
+				remote-endpoint = <&adv7513_0_out>;
+			};
+		};
+	};
+
+	hdmi-out1 {
+		compatible = "hdmi-connector";
+		type = "a";
+
+		port {
+			hdmi_con1: endpoint {
+				remote-endpoint = <&adv7513_1_out>;
+			};
+		};
+	};
+
+	osc2_clk: osc2 {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <74250000>;
+	};
 };
 
 &extal_clk {
@@ -103,6 +131,16 @@
 		groups = "sdhi0_data4", "sdhi0_ctrl";
 		function = "sdhi0";
 	};
+
+	du0_pins: du0 {
+		groups = "du0_rgb888", "du0_sync", "du0_disp";
+		function = "du0";
+	};
+
+	du1_pins: du1 {
+		groups = "du1_rgb666", "du1_sync", "du1_disp";
+		function = "du1";
+	};
 };
 
 &scif0 {
@@ -134,3 +172,91 @@
 	cd-gpios = <&gpio11 11 GPIO_ACTIVE_LOW>;
 	status = "okay";
 };
+
+&i2c4 {
+	status = "okay";
+	clock-frequency = <400000>;
+
+	hdmi at 3d {
+		compatible = "adi,adv7513";
+		reg = <0x3d>;
+
+		adi,input-depth = <8>;
+		adi,input-colorspace = "rgb";
+		adi,input-clock = "1x";
+		adi,input-style = <1>;
+		adi,input-justification = "evenly";
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port at 0 {
+				reg = <0>;
+				adv7513_0_in: endpoint {
+					remote-endpoint = <&du_out_rgb0>;
+				};
+			};
+
+			port at 1 {
+				reg = <1>;
+				adv7513_0_out: endpoint {
+					remote-endpoint = <&hdmi_con0>;
+				};
+			};
+		};
+	};
+
+	hdmi at 39 {
+		compatible = "adi,adv7513";
+		reg = <0x39>;
+
+		adi,input-depth = <8>;
+		adi,input-colorspace = "rgb";
+		adi,input-clock = "1x";
+		adi,input-style = <1>;
+		adi,input-justification = "evenly";
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port at 0 {
+				reg = <0>;
+				adv7513_1_in: endpoint {
+					remote-endpoint = <&du_out_rgb1>;
+				};
+			};
+
+			port at 1 {
+				reg = <1>;
+				adv7513_1_out: endpoint {
+					remote-endpoint = <&hdmi_con1>;
+				};
+			};
+		};
+	};
+};
+
+&du {
+	pinctrl-0 = <&du0_pins &du1_pins>;
+	pinctrl-names = "default";
+
+	clocks = <&mstp7_clks R8A7792_CLK_DU0>, <&mstp7_clks R8A7792_CLK_DU1>,
+		 <&osc2_clk>;
+	clock-names = "du.0", "du.1", "dclkin.0";
+	status = "okay";
+
+	ports {
+		port at 0 {
+			endpoint {
+				remote-endpoint = <&adv7513_0_in>;
+			};
+		};
+		port at 1 {
+			endpoint {
+				remote-endpoint = <&adv7513_1_in>;
+			};
+		};
+	};
+};

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

* [PATCH] ARM: dts: wheat: add SDHI0 support
  2016-08-30 22:24 ` [PATCH] ARM: dts: wheat: add SDHI0 support Sergei Shtylyov
  2016-08-31  7:06   ` Geert Uytterhoeven
@ 2016-09-03 21:49   ` Sergei Shtylyov
  2016-09-05 12:07     ` Simon Horman
  1 sibling, 1 reply; 19+ messages in thread
From: Sergei Shtylyov @ 2016-09-03 21:49 UTC (permalink / raw)
  To: linux-arm-kernel

Hello.

On 08/31/2016 01:24 AM, Sergei Shtylyov wrote:

> Define the Wheat board dependent  part of  the SDHI0 (connected to the
> micro-SD slot)  device node along with the necessary voltage regulator.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>
> ---
> This patch is against the 'renesas-devel-20160830-v4.8-rc4' of Simon Horman's
> 'renesas.git' repo plus the CAN patch posted yesterday.
> Starting with this patch, SMSC LAN89218 Ethernet chip starts to misbehave on my
> board...

    Fortunately, this ill effect has been fixed by Jeremy Lintion's smsc911x 
driver patches that should hit Linus' tree soon (they're alredy in DaveM's 
net.git)...

MBR, Sergei

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

* [PATCH] ARM: dts: wheat: add CAN support
  2016-08-29 20:11 ` [PATCH] ARM: dts: wheat: add " Sergei Shtylyov
@ 2016-09-03 21:50   ` Sergei Shtylyov
  2016-09-05 12:03     ` Simon Horman
  0 siblings, 1 reply; 19+ messages in thread
From: Sergei Shtylyov @ 2016-09-03 21:50 UTC (permalink / raw)
  To: linux-arm-kernel

On 08/29/2016 11:11 PM, Sergei Shtylyov wrote:

> Define the Wheat board dependent part of the CAN0/1 device nodes...
>
> Based  on the original (and large) patch by Vladimir Barinov
> <vladimir.barinov@cogentembedded.com>.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
[...]

    This patch seems stuck for no apparent reason...

MBR, Sergei

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

* [PATCH] ARM: dts: wheat: add CAN support
  2016-09-03 21:50   ` Sergei Shtylyov
@ 2016-09-05 12:03     ` Simon Horman
  0 siblings, 0 replies; 19+ messages in thread
From: Simon Horman @ 2016-09-05 12:03 UTC (permalink / raw)
  To: linux-arm-kernel

On Sun, Sep 04, 2016 at 12:50:00AM +0300, Sergei Shtylyov wrote:
> On 08/29/2016 11:11 PM, Sergei Shtylyov wrote:
> 
> >Define the Wheat board dependent part of the CAN0/1 device nodes...
> >
> >Based  on the original (and large) patch by Vladimir Barinov
> ><vladimir.barinov@cogentembedded.com>.
> >
> >Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> [...]
> 
>    This patch seems stuck for no apparent reason...

Thanks, I have queued this up.

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

* [PATCH] ARM: dts: wheat: add SDHI0 support
  2016-09-03 21:49   ` Sergei Shtylyov
@ 2016-09-05 12:07     ` Simon Horman
  0 siblings, 0 replies; 19+ messages in thread
From: Simon Horman @ 2016-09-05 12:07 UTC (permalink / raw)
  To: linux-arm-kernel

On Sun, Sep 04, 2016 at 12:49:12AM +0300, Sergei Shtylyov wrote:
> Hello.
> 
> On 08/31/2016 01:24 AM, Sergei Shtylyov wrote:
> 
> >Define the Wheat board dependent  part of  the SDHI0 (connected to the
> >micro-SD slot)  device node along with the necessary voltage regulator.
> >
> >Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

Thanks, I have queued this up.

> >---
> >This patch is against the 'renesas-devel-20160830-v4.8-rc4' of Simon Horman's
> >'renesas.git' repo plus the CAN patch posted yesterday.
> >Starting with this patch, SMSC LAN89218 Ethernet chip starts to misbehave on my
> >board...
> 
>    Fortunately, this ill effect has been fixed by Jeremy Lintion's smsc911x
> driver patches that should hit Linus' tree soon (they're alredy in DaveM's
> net.git)...

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

* [PATCH] ARM: dts: wheat: add DU support
  2016-09-01 21:29 ` [PATCH] ARM: dts: wheat: add DU support Sergei Shtylyov
@ 2016-09-12 17:52   ` Sergei Shtylyov
  2016-09-16 10:11     ` Simon Horman
  0 siblings, 1 reply; 19+ messages in thread
From: Sergei Shtylyov @ 2016-09-12 17:52 UTC (permalink / raw)
  To: linux-arm-kernel

On 09/02/2016 12:29 AM, Sergei Shtylyov wrote:

> Define  the  Wheat board dependent  part of the DU device node.
> Add the device nodes for the Analog Devices ADV7513 HDMI transmitters
> connected to DU0/1.  Add the necessary subnodes to interconnect DU with
> HDMI transmitters/connectors.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>
> ---
> This patch is against the 'renesas-devel-20160901-v4.8-rc4' of Simon Horman's
> 'renesas.git' repo plus the Wheat CAN and SDHI patches posted earlier...
> The path depends on the 2 DRM patches just posted in order to work correctly!

    In principle, both these patches have been queued by the maintainers... 
Simon, are you going to wait till they hit media_tree.git? Linus' tree?

MBR, Sergei

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

* [PATCH] ARM: dts: wheat: add DU support
  2016-09-12 17:52   ` Sergei Shtylyov
@ 2016-09-16 10:11     ` Simon Horman
  0 siblings, 0 replies; 19+ messages in thread
From: Simon Horman @ 2016-09-16 10:11 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Sep 12, 2016 at 08:52:40PM +0300, Sergei Shtylyov wrote:
> On 09/02/2016 12:29 AM, Sergei Shtylyov wrote:
> 
> >Define  the  Wheat board dependent  part of the DU device node.
> >Add the device nodes for the Analog Devices ADV7513 HDMI transmitters
> >connected to DU0/1.  Add the necessary subnodes to interconnect DU with
> >HDMI transmitters/connectors.
> >
> >Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> >
> >---
> >This patch is against the 'renesas-devel-20160901-v4.8-rc4' of Simon Horman's
> >'renesas.git' repo plus the Wheat CAN and SDHI patches posted earlier...
> >The path depends on the 2 DRM patches just posted in order to work correctly!
> 
>    In principle, both these patches have been queued by the maintainers...
> Simon, are you going to wait till they hit media_tree.git? Linus' tree?

I don't think that is necessary. I was waiting for some review.
But in any case it looks like this patch no longer applies cleanly.
Could you rebase?

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

* [PATCH v2] ARM: dts: wheat: add DU support
  2016-07-14 20:18 [PATCH 0/3] Add R8A7792/Blanche CAN support Sergei Shtylyov
                   ` (6 preceding siblings ...)
  2016-09-01 21:29 ` [PATCH] ARM: dts: wheat: add DU support Sergei Shtylyov
@ 2016-09-22 21:06 ` Sergei Shtylyov
  2016-09-23  7:37   ` Simon Horman
  7 siblings, 1 reply; 19+ messages in thread
From: Sergei Shtylyov @ 2016-09-22 21:06 UTC (permalink / raw)
  To: linux-arm-kernel

Define  the  Wheat board dependent  part of the DU device node.
Add the device nodes for the Analog Devices ADV7513 HDMI transmitters
connected to DU0/1.  Add the necessary subnodes to interconnect DU with
HDMI transmitters/connectors.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
The patch is against the 'renesas-devel-20160919-v4.8-rc7' of Simon Horman's
'renesas.git' repo...
The patch depends on the 2 DRM patches (already merged by the maintainers) in
order to work correctly.

Changes in version 2:
- refreshed the patch.

 arch/arm/boot/dts/r8a7792-wheat.dts |  126 ++++++++++++++++++++++++++++++++++++
 1 file changed, 126 insertions(+)

Index: renesas/arch/arm/boot/dts/r8a7792-wheat.dts
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7792-wheat.dts
+++ renesas/arch/arm/boot/dts/r8a7792-wheat.dts
@@ -86,6 +86,34 @@
 		gpio = <&gpio11 12 GPIO_ACTIVE_HIGH>;
 		enable-active-high;
 	};
+
+	hdmi-out0 {
+		compatible = "hdmi-connector";
+		type = "a";
+
+		port {
+			hdmi_con0: endpoint {
+				remote-endpoint = <&adv7513_0_out>;
+			};
+		};
+	};
+
+	hdmi-out1 {
+		compatible = "hdmi-connector";
+		type = "a";
+
+		port {
+			hdmi_con1: endpoint {
+				remote-endpoint = <&adv7513_1_out>;
+			};
+		};
+	};
+
+	osc2_clk: osc2 {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <74250000>;
+	};
 };
 
 &extal_clk {
@@ -128,6 +156,16 @@
 		groups = "qspi_ctrl", "qspi_data4";
 		function = "qspi";
 	};
+
+	du0_pins: du0 {
+		groups = "du0_rgb888", "du0_sync", "du0_disp";
+		function = "du0";
+	};
+
+	du1_pins: du1 {
+		groups = "du1_rgb666", "du1_sync", "du1_disp";
+		function = "du1";
+	};
 };
 
 &scif0 {
@@ -196,4 +234,92 @@
 			};
 		};
 	};
+};
+
+&i2c4 {
+	status = "okay";
+	clock-frequency = <400000>;
+
+	hdmi at 3d {
+		compatible = "adi,adv7513";
+		reg = <0x3d>;
+
+		adi,input-depth = <8>;
+		adi,input-colorspace = "rgb";
+		adi,input-clock = "1x";
+		adi,input-style = <1>;
+		adi,input-justification = "evenly";
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port at 0 {
+				reg = <0>;
+				adv7513_0_in: endpoint {
+					remote-endpoint = <&du_out_rgb0>;
+				};
+			};
+
+			port at 1 {
+				reg = <1>;
+				adv7513_0_out: endpoint {
+					remote-endpoint = <&hdmi_con0>;
+				};
+			};
+		};
+	};
+
+	hdmi at 39 {
+		compatible = "adi,adv7513";
+		reg = <0x39>;
+
+		adi,input-depth = <8>;
+		adi,input-colorspace = "rgb";
+		adi,input-clock = "1x";
+		adi,input-style = <1>;
+		adi,input-justification = "evenly";
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port at 0 {
+				reg = <0>;
+				adv7513_1_in: endpoint {
+					remote-endpoint = <&du_out_rgb1>;
+				};
+			};
+
+			port at 1 {
+				reg = <1>;
+				adv7513_1_out: endpoint {
+					remote-endpoint = <&hdmi_con1>;
+				};
+			};
+		};
+	};
+};
+
+&du {
+	pinctrl-0 = <&du0_pins &du1_pins>;
+	pinctrl-names = "default";
+
+	clocks = <&mstp7_clks R8A7792_CLK_DU0>, <&mstp7_clks R8A7792_CLK_DU1>,
+		 <&osc2_clk>;
+	clock-names = "du.0", "du.1", "dclkin.0";
+	status = "okay";
+
+	ports {
+		port at 0 {
+			endpoint {
+				remote-endpoint = <&adv7513_0_in>;
+			};
+		};
+		port at 1 {
+			endpoint {
+				remote-endpoint = <&adv7513_1_in>;
+			};
+		};
+	};
 };

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

* [PATCH v2] ARM: dts: wheat: add DU support
  2016-09-22 21:06 ` [PATCH v2] " Sergei Shtylyov
@ 2016-09-23  7:37   ` Simon Horman
  0 siblings, 0 replies; 19+ messages in thread
From: Simon Horman @ 2016-09-23  7:37 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Sep 23, 2016 at 12:06:43AM +0300, Sergei Shtylyov wrote:
> Define  the  Wheat board dependent  part of the DU device node.
> Add the device nodes for the Analog Devices ADV7513 HDMI transmitters
> connected to DU0/1.  Add the necessary subnodes to interconnect DU with
> HDMI transmitters/connectors.
> 
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

Thanks, I have queued this up.

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

end of thread, other threads:[~2016-09-23  7:37 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-14 20:18 [PATCH 0/3] Add R8A7792/Blanche CAN support Sergei Shtylyov
2016-07-14 20:19 ` [PATCH 1/3] ARM: dts: r8a7792: add CAN clocks Sergei Shtylyov
2016-07-15  3:19   ` Geert Uytterhoeven
2016-07-14 20:20 ` [PATCH 2/3] ARM: dts: r8a7792: add CAN support Sergei Shtylyov
2016-07-15  3:21   ` Geert Uytterhoeven
2016-07-14 20:21 ` [PATCH 3/3] ARM: dts: blanche: add CAN0 support Sergei Shtylyov
2016-07-18  2:10 ` [PATCH 0/3] Add R8A7792/Blanche CAN support Simon Horman
2016-08-29 20:11 ` [PATCH] ARM: dts: wheat: add " Sergei Shtylyov
2016-09-03 21:50   ` Sergei Shtylyov
2016-09-05 12:03     ` Simon Horman
2016-08-30 22:24 ` [PATCH] ARM: dts: wheat: add SDHI0 support Sergei Shtylyov
2016-08-31  7:06   ` Geert Uytterhoeven
2016-09-03 21:49   ` Sergei Shtylyov
2016-09-05 12:07     ` Simon Horman
2016-09-01 21:29 ` [PATCH] ARM: dts: wheat: add DU support Sergei Shtylyov
2016-09-12 17:52   ` Sergei Shtylyov
2016-09-16 10:11     ` Simon Horman
2016-09-22 21:06 ` [PATCH v2] " Sergei Shtylyov
2016-09-23  7:37   ` Simon Horman

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