Add R8A7792/Blanche PFC support
cover Add R8A7792/Blanche PFC support
Hello.
Here's the set of 3 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-20160630-v4.7-rc5' tag. We're adding the R8A7792 PFC node and the describe the pins for the SCIFs and SMSC LAN89218 Ethernet chip found on the Blanche board). These patches depend on the R8A7792 PFC driver patchset in order to work properly.
[1/3] ARM: dts: r8a7792: add PFC support
[2/3] ARM: dts: blanche: add SCIF pins
[3/3] ARM: dts: blanche: add Ethernet pins
WBR, Sergei
PATCH 1/3 ARM: dts: r8a7792: add PFC support
Define the generic R8A7792 part of the PFC device node.
--- arch/arm/boot/dts/r8a7792.dtsi | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm/boot/dts/r8a7792.dtsi +6 -0
@@ -108,6 +108,12 @@ #power-domain-cells = <1>; }; + + pfc: pin-controller at e6060000 { + compatible = "renesas,pfc-r8a7792"; + reg = <0 0xe6060000 0 0x144>; + }; + dmac0: dma-controller at e6700000 { compatible = "renesas,dmac-r8a7792", "renesas,rcar-dmac";
PATCH 1/3 ARM: dts: r8a7792: add PFC support
Quoted 3 lines · Sergei Shtylyov
Define the generic R8A7792 part of the PFC device node.
Signed-off-by Sergei Shtylyov <[email protected]>
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
PATCH 1/3 ARM: dts: r8a7792: add PFC support
In reply to Sergei ShtylyovHello.
Quoted 13 lines · Sergei Shtylyov
Define the generic R8A7792 part of the PFC device node.
Signed-off-by Sergei Shtylyov <[email protected]>--- arch/arm/boot/dts/r8a7792.dtsi | 6 ++++++ 1 file changed, 6 insertions(+)Index:
renesas/arch/arm/boot/dts/r8a7792.dtsi
===================================================================
arch/arm/boot/dts/r8a7792.dtsi line 111
Quoted 4 lines
arch/arm/boot/dts/r8a7792.dtsi +1
-0@@ -108,6 +108,12 @@ #power-domain-cells = <1>; }; +
Just noticed this extra empty line... :-/
arch/arm/boot/dts/r8a7792.dtsi line 119
Quoted 8 lines
arch/arm/boot/dts/r8a7792.dtsi +5
-0+ pfc: pin-controller at e6060000 { + compatible = "renesas,pfc-r8a7792"; + reg = <0 0xe6060000 0 0x144>; + }; + dmac0: dma-controller at e6700000 { compatible = "renesas,dmac-r8a7792", "renesas,rcar-dmac";
Will repost.
MBR, Sergei
PATCH 2/3 ARM: dts: blanche: add SCIF0/3 pins
In reply to Sergei ShtylyovAdd the (previously omitted) SCIF0/3 pin data to the Blanche board's device tree.
--- arch/arm/boot/dts/r8a7792-blanche.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
arch/arm/boot/dts/r8a7792-blanche.dts +18 -0
@@ -57,10 +57,28 @@ clock-frequency = <20000000>; }; +&pfc { + scif0_pins: scif0 { + groups = "scif0_data"; + function = "scif0"; + }; + + scif3_pins: scif3 { + groups = "scif3_data"; + function = "scif3"; + }; +}; + &scif0 { + pinctrl-0 = <&scif0_pins>; + pinctrl-names = "default"; + status = "okay"; }; &scif3 { + pinctrl-0 = <&scif3_pins>; + pinctrl-names = "default"; + status = "okay"; };
PATCH 2/3 ARM: dts: blanche: add SCIF0/3 pins
Quoted 4 lines · Sergei Shtylyov
Add the (previously omitted) SCIF0/3 pin data to the Blanche board's device tree.
Signed-off-by Sergei Shtylyov <[email protected]>
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
PATCH 3/3 ARM: dts: blanche: add Ethernet pins
In reply to Sergei ShtylyovAdd the (previously omitted) pin data for the SMSC LAN89218 Ethernet chip to the Blanche board's device tree: the chip's IRQ output is connected to the SoC's IRQ0 pin and its nCS input is connected to the SoC's EX_CS0# pin.
--- arch/arm/boot/dts/r8a7792-blanche.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
arch/arm/boot/dts/r8a7792-blanche.dts +15 -0
@@ -50,6 +50,9 @@ reg-io-width = <4>; vddvario-supply = <&d3_3v>; vdd33a-supply = <&d3_3v>; + + pinctrl-0 = <&lan89218_pins>; + pinctrl-names = "default"; }; };
@@ -67,6 +70,18 @@ groups = "scif3_data"; function = "scif3"; }; + + lan89218_pins: lan89218 { + intc { + groups = "intc_irq0"; + function = "intc"; + }; + lbsc { + groups = "lbsc_ex_cs0"; + function = "lbsc"; + }; + }; + }; &scif0 {