Add R8A7792/Wheat board support
cover Add R8A7792/Wheat board support
Hello.
Here's the set of 3 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-20160826-v4.8-rc3' tag. We add the device tree support for the R8A7792-based Wheat board. I have only sparse board documentation at this point, according to which this board somewhat differs from the other R-Car evaluation boards in that it has debug serial port, debug Ethernet chip, and a NOR flash on the separate debug board (connected to the main board with a ribbon cable). I'm not sure how to approach this (DT overlay, perhaps?), for now I'm just posting the debug UART/Ethernet support the same way it was done for the Blanche board -- these components seem to be the same between these 2 boards...
[1/3] DT: arm: shmobile: document Wheat board
[2/3] ARM: dts: wheat: initial device tree
[3/3] ARM: dts: wheat: add Ethernet support
WBR, Sergei
PATCH 1/3 DT: arm: shmobile: document Wheat board
Document the Wheat device tree bindings, listing it as a supported board.
This allows to use checkpatch.pl to validate .dts files referring to the Wheat board.
--- Documentation/devicetree/bindings/arm/shmobile.txt | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/arm/shmobile.txt +2 -0
@@ -69,3 +69,5 @@ Boards: compatible = "renesas,salvator-x", "renesas,r8a7796"; - SILK (RTP0RC7794LCB00011S) compatible = "renesas,silk", "renesas,r8a7794" + - Wheat + compatible = "renesas,wheat", "renesas,r8a7792"
A message that is not in the archive (sent off-list or not yet received): 81794087.EqU2I9TLcp-gHKXc3Y1Z8zGSmamagVegGFoWSdPRAKMAL8bYrjMMd8@public.gmane.org
Geert Uytterhoeven
Acked-byRe: [PATCH 1/3] DT: arm: shmobile: document Wheat board
Quoted 6 lines · Sergei Shtylyov
Document the Wheat device tree bindings, listing it as a supported board.
This allows to use checkpatch.pl to validate .dts files referring to the Wheat board.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
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
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 1/3] DT: arm: shmobile: document Wheat board
In reply to Sergei ShtylyovQuoted 6 lines · Sergei Shtylyov
Document the Wheat device tree bindings, listing it as a supported board.
This allows to use checkpatch.pl to validate .dts files referring to the Wheat board.
Signed-off-by Sergei Shtylyov <[email protected]>
PATCH 2/3 ARM: dts: wheat: initial device tree
In reply to Sergei ShtylyovAdd the initial device tree for the R8A7792 SoC based Wheat board. The Wheat board itself has no serial ports wired up, the USB serial chips are situated on a separate debug board and one of them is connected to SCFI0 -- include unconditional support for it, so that the serial console
can work.
Based on the original (and large) patch by Vladimir Barinov <[email protected]>.
--- arch/arm/boot/dts/Makefile | 1 arch/arm/boot/dts/r8a7792-wheat.dts | 50 ++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+)
arch/arm/boot/dts/Makefile +1 -0
@@ -659,6 +659,7 @@ dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += \ r8a7791-koelsch.dtb \ r8a7791-porter.dtb \ r8a7792-blanche.dtb \ + r8a7792-wheat.dtb \ r8a7793-gose.dtb \ r8a7794-alt.dtb \ r8a7794-silk.dtb \
arch/arm/boot/dts/r8a7792-wheat.dts new file +50 -0
50 lines not on this page · raw message
PATCH 2/3 ARM: dts: wheat: initial device tree
Quoted 10 lines · Sergei Shtylyov
Add the initial device tree for the R8A7792 SoC based Wheat board. The Wheat board itself has no serial ports wired up, the USB serial chips are situated on a separate debug board and one of them is connected to SCFI0 -- include unconditional support for it, so that the serial consolecan work.
Based on the original (and large) patch by Vladimir Barinov <[email protected]>.
Signed-off-by Sergei Shtylyov <[email protected]>
(limited to review that can be done without board documentation)
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: wheat: add Ethernet support
In reply to Sergei ShtylyovR8A7792 SoC doesn't have the EtherMAC core, so SMSC LAN89218 Ethernet chip was used instead on the Wheat debug board; this chip is compatible with SMSC LAN9115 for which there's a (device tree aware) driver. Describe the chip in the Wheat device tree unconditionally (the driver should fail the probe if the debug board isn't connected); enable DHCP and NFS root in the command line for the kernel boot...
Based on the original (and large) patch by Vladimir Barinov <[email protected]>.
--- arch/arm/boot/dts/r8a7792-wheat.dts | 38 +++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-)
arch/arm/boot/dts/r8a7792-wheat.dts +37 -1
@@ -21,7 +21,7 @@ }; chosen { - bootargs = "ignore_loglevel"; + bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp"; stdout-path = "serial0:115200n8"; };
@@ -29,6 +29,31 @@ device_type = "memory"; reg = <0 0x40000000 0 0x40000000>; }; + + d3_3v: regulator-3v3 { + compatible = "regulator-fixed"; + regulator-name = "D3.3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ethernet at 18000000 { + compatible = "smsc,lan89218", "smsc,lan9115"; + reg = <0 0x18000000 0 0x100>; + phy-mode = "mii"; + interrupt-parent = <&irqc>; + interrupts = <0 IRQ_TYPE_EDGE_FALLING>; + smsc,irq-push-pull; + smsc,save-mac-address; + reg-io-width = <4>; + vddvario-supply = <&d3_3v>; + vdd33a-supply = <&d3_3v>; + + pinctrl-0 = <&lan89218_pins>; + pinctrl-names = "default"; + }; }; &extal_clk {
@@ -40,6 +65,17 @@ groups = "scif0_data"; function = "scif0"; }; + + lan89218_pins: lan89218 { + intc { + groups = "intc_irq0"; + function = "intc"; + }; + lbsc { + groups = "lbsc_ex_cs0"; + function = "lbsc"; + }; + }; }; &scif0 {
PATCH 3/3 ARM: dts: wheat: add Ethernet support
Quoted 11 lines · Sergei Shtylyov
R8A7792 SoC doesn't have the EtherMAC core, so SMSC LAN89218 Ethernet chip was used instead on the Wheat debug board; this chip is compatible with SMSC LAN9115 for which there's a (device tree aware) driver. Describe the chip in the Wheat device tree unconditionally (the driver should fail the probe if the debug board isn't connected); enable DHCP and NFS root in the command line for the kernel boot...
Based on the original (and large) patch by Vladimir Barinov <[email protected]>.
Signed-off-by Sergei Shtylyov <[email protected]>
(limited to review that can be done without board documentation)
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
cover Add R8A7792/Wheat board support
In reply to Sergei ShtylyovQuoted 13 lines · Sergei Shtylyov
Hello.
Here's the set of 3 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-20160826-v4.8-rc3' tag. We add the device tree support for the R8A7792-based Wheat board. I have only sparse board documentation at this point, according to which this board somewhat differs from the other R-Car evaluation boards in that it has debug serial port, debug Ethernet chip, and a NOR flash on the separate debug board (connected to the main board with a ribbon cable). I'm not sure how to approach this (DT overlay, perhaps?), for now I'm just posting the debug UART/Ethernet support the same way it was done for the Blanche board -- these components seem to be the same between these 2 boards...
Quoted 3 lines
[1/3] DT: arm: shmobile: document Wheat board
[2/3] ARM: dts: wheat: initial device tree
[3/3] ARM: dts: wheat: add Ethernet support
Thanks, I have queued this up.