Add Ethernet/Watchdog support
Subsystems (4)
cover Add Ethernet/Watchdog support
This patch series add Ethernet/Watchdog support for EK874 platform.
This patch series is based on linux-4.19.y-cip and all the patches in this series are cherry-picked from linux rc tree.
This patch series is depend on the below patch series
https://patchwork.kernel.org/patch/10865441/
Biju Das (1):
arm64: dts: renesas: cat875: Add ethernet support
Fabrizio Castro (4):
dt-bindings: net: ravb: Add support for r8a774c0 SoC
arm64: dts: renesas: r8a774c0: Add Ethernet AVB node
dt-bindings: watchdog: renesas-wdt: Document r8a774c0 support
arm64: dts: renesas: r8a774c0: Add watchdog support
.../devicetree/bindings/net/renesas,ravb.txt | 1 + .../devicetree/bindings/watchdog/renesas-wdt.txt | 1 + arch/arm64/boot/dts/renesas/cat875.dtsi | 30 ++++++++++++ arch/arm64/boot/dts/renesas/r8a774c0.dtsi | 55 ++++++++++++++++++++++ 4 files changed, 87 insertions(+)
Signature · 1 line
2.7.4
PATCH 1/5 dt-bindings: net: ravb: Add support for r8a774c0 SoC
From: Fabrizio Castro <[email protected]>
Document RZ/G2E (R8A774C0) SoC bindings.
--- Documentation/devicetree/bindings/net/renesas,ravb.txt | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/net/renesas,ravb.txt +1 -0
@@ -17,6 +17,7 @@ Required properties: R-Car Gen2 and RZ/G1 devices. - "renesas,etheravb-r8a774a1" for the R8A774A1 SoC. + - "renesas,etheravb-r8a774c0" for the R8A774C0 SoC. - "renesas,etheravb-r8a7795" for the R8A7795 SoC. - "renesas,etheravb-r8a7796" for the R8A7796 SoC. - "renesas,etheravb-r8a77965" for the R8A77965 SoC.
Signature · 1 line
2.7.4
PATCH 1/5 dt-bindings: net: ravb: Add support for r8a774c0 SoC
Quoted 3 lines · Biju Das
From: Fabrizio Castro <[email protected]>
Document RZ/G2E (R8A774C0) SoC bindings.
This one rejected when I tried applying it.
Pavel
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
PATCH 1/5 dt-bindings: net: ravb: Add support for r8a774c0 SoC
In reply to Biju DasQuoted 11 lines · Biju Das
From: Fabrizio Castro <[email protected]>
Document RZ/G2E (R8A774C0) SoC bindings.
Signed-off-by Fabrizio Castro <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>Reviewed-by Simon Horman <[email protected]>Reviewed-by Sergei Shtylyov <[email protected]>Signed-off-by David S. Miller <[email protected]>(cherry picked from commit 1811caa0cf91320baff40c82cbb157c772cfd365)Signed-off-by Biju Das <[email protected]>
Thanks, I applied the series.
Pavel
Signature · 9 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: Digital signature URL: <http://lists.cip-project.org/pipermail/cip-dev/attachments/20190411/0388fa0b/attachment.sig>
PATCH 2/5 arm64: dts: renesas: r8a774c0: Add Ethernet AVB node
In reply to Biju DasFrom: Fabrizio Castro <[email protected]>
This patch adds the SoC specific part of the Ethernet AVB device tree node.
--- arch/arm64/boot/dts/renesas/r8a774c0.dtsi | 45 +++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+)
arch/arm64/boot/dts/renesas/r8a774c0.dtsi +45 -0
@@ -451,6 +451,51 @@ dma-channels = <16>; }; + avb: ethernet at e6800000 { + compatible = "renesas,etheravb-r8a774c0", + "renesas,etheravb-rcar-gen3"; + reg = <0 0xe6800000 0 0x800>; + interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12", "ch13", "ch14", "ch15", + "ch16", "ch17", "ch18", "ch19", + "ch20", "ch21", "ch22", "ch23", + "ch24"; + clocks = <&cpg CPG_MOD 812>; + power-domains = <&sysc R8A774C0_PD_ALWAYS_ON>; + resets = <&cpg 812>; + phy-mode = "rgmii"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + scif0: serial at e6e60000 { compatible = "renesas,scif-r8a774c0", "renesas,rcar-gen3-scif", "renesas,scif";
Signature · 1 line
2.7.4
PATCH 3/5 arm64: dts: renesas: cat875: Add ethernet support
In reply to Biju DasThis patch adds ethernet support to the sub board.
--- arch/arm64/boot/dts/renesas/cat875.dtsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+)
arch/arm64/boot/dts/renesas/cat875.dtsi +30 -0
@@ -7,4 +7,34 @@ / { model = "Silicon Linux sub board for CAT874 (CAT875)"; + + aliases { + ethernet0 = &avb; + }; +}; + +&avb { + pinctrl-0 = <&avb_pins>; + pinctrl-names = "default"; + renesas,no-ether-link; + phy-handle = <&phy0>; + phy-mode = "rgmii"; + status = "okay"; + + phy0: ethernet-phy at 0 { + rxc-skew-ps = <1500>; + reg = <0>; + interrupt-parent = <&gpio2>; + interrupts = <21 IRQ_TYPE_LEVEL_LOW>; + reset-gpios = <&gpio1 20 GPIO_ACTIVE_LOW>; + }; +}; + +&pfc { + avb_pins: avb { + mux { + groups = "avb_mii"; + function = "avb"; + }; + }; };
Signature · 1 line
2.7.4
PATCH 4/5 dt-bindings: watchdog: renesas-wdt: Document r8a774c0 support
In reply to Biju DasFrom: Fabrizio Castro <[email protected]>
RZ/G2E (R8A774C0) watchdog implementation is compatible with R-Car Gen3, therefore add relevant documentation.
--- Documentation/devicetree/bindings/watchdog/renesas-wdt.txt | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/watchdog/renesas-wdt.txt +1 -0
@@ -8,6 +8,7 @@ Required properties: - "renesas,r8a7743-wdt" (RZ/G1M) - "renesas,r8a7745-wdt" (RZ/G1E) - "renesas,r8a774a1-wdt" (RZ/G2M) + - "renesas,r8a774c0-wdt" (RZ/G2E) - "renesas,r8a7790-wdt" (R-Car H2) - "renesas,r8a7791-wdt" (R-Car M2-W) - "renesas,r8a7792-wdt" (R-Car V2H)
Signature · 1 line
2.7.4
PATCH 5/5 arm64: dts: renesas: r8a774c0: Add watchdog support
In reply to Biju DasFrom: Fabrizio Castro <[email protected]>
Add watchdog support to the RZ/G2E (a.k.a. R8A774C0) SoC specific device tree.
--- arch/arm64/boot/dts/renesas/r8a774c0.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/renesas/r8a774c0.dtsi +10 -0
@@ -114,6 +114,16 @@ #size-cells = <2>; ranges; + rwdt: watchdog at e6020000 { + compatible = "renesas,r8a774c0-wdt", + "renesas,rcar-gen3-wdt"; + reg = <0 0xe6020000 0 0x0c>; + clocks = <&cpg CPG_MOD 402>; + power-domains = <&sysc R8A774C0_PD_ALWAYS_ON>; + resets = <&cpg 402>; + status = "disabled"; + }; + gpio0: gpio at e6050000 { compatible = "renesas,gpio-r8a774c0", "renesas,rcar-gen3-gpio";
Signature · 1 line
2.7.4