* [PATCH 0/7] dts: r7s9210: Add RZ/A2 devices
@ 2019-04-30 13:23 Chris Brandt
2019-04-30 13:23 ` [PATCH 1/7] ARM: dts: r7s9210: Add RSPI Chris Brandt
` (7 more replies)
0 siblings, 8 replies; 19+ messages in thread
From: Chris Brandt @ 2019-04-30 13:23 UTC (permalink / raw)
To: Simon Horman, Rob Herring, Mark Rutland
Cc: devicetree, linux-i2c, linux-renesas-soc, Chris Brandt
So while I added RZ/A2 drivers a while back, I never actually added them
all to the device tree.
This series adds everything that is currently supported.
Chris Brandt (7):
ARM: dts: r7s9210: Add RSPI
ARM: dts: r7s9210: Add Ethernet support
dt-bindings: i2c: riic: document r7s9210 support
ARM: dts: r7s9210: Add RIIC support
ARM: dts: r7s9210: Add SDHI support
ARM: dts: r7s9210-rza2mevb: Add Ethernet support
ARM: dts: r7s9210-rza2mevb: Add SDHI support
Documentation/devicetree/bindings/i2c/i2c-riic.txt | 5 +-
arch/arm/boot/dts/r7s9210-rza2mevb.dts | 74 +++++++++
arch/arm/boot/dts/r7s9210.dtsi | 170 +++++++++++++++++++++
3 files changed, 248 insertions(+), 1 deletion(-)
--
2.16.1
^ permalink raw reply [flat|nested] 19+ messages in thread
* [PATCH 1/7] ARM: dts: r7s9210: Add RSPI
2019-04-30 13:23 [PATCH 0/7] dts: r7s9210: Add RZ/A2 devices Chris Brandt
@ 2019-04-30 13:23 ` Chris Brandt
2019-04-30 14:30 ` Geert Uytterhoeven
2019-04-30 13:23 ` [PATCH 2/7] ARM: dts: r7s9210: Add Ethernet support Chris Brandt
` (6 subsequent siblings)
7 siblings, 1 reply; 19+ messages in thread
From: Chris Brandt @ 2019-04-30 13:23 UTC (permalink / raw)
To: Simon Horman, Rob Herring, Mark Rutland
Cc: devicetree, linux-i2c, linux-renesas-soc, Chris Brandt
Add RSPI support for RZ/A2 SoC.
Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
---
arch/arm/boot/dts/r7s9210.dtsi | 45 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/arch/arm/boot/dts/r7s9210.dtsi b/arch/arm/boot/dts/r7s9210.dtsi
index 22baa96f5974..8423004bb4b7 100644
--- a/arch/arm/boot/dts/r7s9210.dtsi
+++ b/arch/arm/boot/dts/r7s9210.dtsi
@@ -146,6 +146,51 @@
status = "disabled";
};
+ spi0: spi@e800c800 {
+ compatible = "renesas,rspi-r7s9210", "renesas,rspi-rz";
+ reg = <0xe800c800 0x24>;
+ interrupts = <GIC_SPI 312 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 313 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 314 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "error", "rx", "tx";
+ clocks = <&cpg CPG_MOD 97>;
+ power-domains = <&cpg>;
+ num-cs = <1>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
+ spi1: spi@e800d000 {
+ compatible = "renesas,rspi-r7s9210", "renesas,rspi-rz";
+ reg = <0xe800d000 0x24>;
+ interrupts = <GIC_SPI 315 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 316 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 317 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "error", "rx", "tx";
+ clocks = <&cpg CPG_MOD 96>;
+ power-domains = <&cpg>;
+ num-cs = <1>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
+ spi2: spi@e800d800 {
+ compatible = "renesas,rspi-r7s9210", "renesas,rspi-rz";
+ reg = <0xe800d800 0x24>;
+ interrupts = <GIC_SPI 318 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 319 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 320 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "error", "rx", "tx";
+ clocks = <&cpg CPG_MOD 95>;
+ power-domains = <&cpg>;
+ num-cs = <1>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
ostm0: timer@e803b000 {
compatible = "renesas,r7s9210-ostm", "renesas,ostm";
reg = <0xe803b000 0x30>;
--
2.16.1
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 2/7] ARM: dts: r7s9210: Add Ethernet support
2019-04-30 13:23 [PATCH 0/7] dts: r7s9210: Add RZ/A2 devices Chris Brandt
2019-04-30 13:23 ` [PATCH 1/7] ARM: dts: r7s9210: Add RSPI Chris Brandt
@ 2019-04-30 13:23 ` Chris Brandt
2019-04-30 14:38 ` Geert Uytterhoeven
2019-04-30 13:23 ` [PATCH 3/7] dt-bindings: i2c: riic: document r7s9210 support Chris Brandt
` (5 subsequent siblings)
7 siblings, 1 reply; 19+ messages in thread
From: Chris Brandt @ 2019-04-30 13:23 UTC (permalink / raw)
To: Simon Horman, Rob Herring, Mark Rutland
Cc: devicetree, linux-i2c, linux-renesas-soc, Chris Brandt
Add Ethernet support for the RZ/A2 SoC.
Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
---
arch/arm/boot/dts/r7s9210.dtsi | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/arch/arm/boot/dts/r7s9210.dtsi b/arch/arm/boot/dts/r7s9210.dtsi
index 8423004bb4b7..8e9738467bfa 100644
--- a/arch/arm/boot/dts/r7s9210.dtsi
+++ b/arch/arm/boot/dts/r7s9210.dtsi
@@ -191,6 +191,31 @@
status = "disabled";
};
+ ether0: ethernet@e8204000 {
+ compatible = "renesas,ether-r7s9210";
+ reg = <0xe8204000 0x200>;
+ interrupts = <GIC_SPI 341 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 65>;
+ power-domains = <&cpg>;
+
+ phy-mode = "rmii";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
+ ether1: ethernet@e8204200 {
+ compatible = "renesas,ether-r7s9210";
+ reg = <0xe8204200 0x200>;
+ interrupts = <GIC_SPI 342 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 64>;
+ power-domains = <&cpg>;
+ phy-mode = "rmii";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
ostm0: timer@e803b000 {
compatible = "renesas,r7s9210-ostm", "renesas,ostm";
reg = <0xe803b000 0x30>;
--
2.16.1
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 3/7] dt-bindings: i2c: riic: document r7s9210 support
2019-04-30 13:23 [PATCH 0/7] dts: r7s9210: Add RZ/A2 devices Chris Brandt
2019-04-30 13:23 ` [PATCH 1/7] ARM: dts: r7s9210: Add RSPI Chris Brandt
2019-04-30 13:23 ` [PATCH 2/7] ARM: dts: r7s9210: Add Ethernet support Chris Brandt
@ 2019-04-30 13:23 ` Chris Brandt
2019-04-30 14:47 ` Geert Uytterhoeven
` (2 more replies)
2019-04-30 13:23 ` [PATCH 4/7] ARM: dts: r7s9210: Add RIIC support Chris Brandt
` (4 subsequent siblings)
7 siblings, 3 replies; 19+ messages in thread
From: Chris Brandt @ 2019-04-30 13:23 UTC (permalink / raw)
To: Simon Horman, Rob Herring, Mark Rutland
Cc: devicetree, linux-i2c, linux-renesas-soc, Chris Brandt
Document support for the R7S9210 (RZ/A2) SoC. Also explicitly document
bindings for the R7S72100 (RZ/A1) SoC.
Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
---
Documentation/devicetree/bindings/i2c/i2c-riic.txt | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/i2c/i2c-riic.txt b/Documentation/devicetree/bindings/i2c/i2c-riic.txt
index 0bcc4716c319..e26fe3ad86a9 100644
--- a/Documentation/devicetree/bindings/i2c/i2c-riic.txt
+++ b/Documentation/devicetree/bindings/i2c/i2c-riic.txt
@@ -1,7 +1,10 @@
Device tree configuration for Renesas RIIC driver
Required properties:
-- compatible : "renesas,riic-<soctype>". "renesas,riic-rz" as fallback
+- compatible :
+ "renesas,riic-r7s72100" if the device is a part of a R7S72100 SoC.
+ "renesas,riic-r7s9210" if the device is a part of a R7S9210 SoC.
+ "renesas,riic-rz" for a generic RZ/A compatible device.
- reg : address start and address range size of device
- interrupts : 8 interrupts (TEI, RI, TI, SPI, STI, NAKI, ALI, TMOI)
- clock-frequency : frequency of bus clock in Hz
--
2.16.1
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 4/7] ARM: dts: r7s9210: Add RIIC support
2019-04-30 13:23 [PATCH 0/7] dts: r7s9210: Add RZ/A2 devices Chris Brandt
` (2 preceding siblings ...)
2019-04-30 13:23 ` [PATCH 3/7] dt-bindings: i2c: riic: document r7s9210 support Chris Brandt
@ 2019-04-30 13:23 ` Chris Brandt
2019-04-30 14:47 ` Geert Uytterhoeven
2019-04-30 13:23 ` [PATCH 5/7] ARM: dts: r7s9210: Add SDHI support Chris Brandt
` (3 subsequent siblings)
7 siblings, 1 reply; 19+ messages in thread
From: Chris Brandt @ 2019-04-30 13:23 UTC (permalink / raw)
To: Simon Horman, Rob Herring, Mark Rutland
Cc: devicetree, linux-i2c, linux-renesas-soc, Chris Brandt
Add I2C support for the R7S9210 (RZ/A2) SoC.
Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
---
arch/arm/boot/dts/r7s9210.dtsi | 76 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 76 insertions(+)
diff --git a/arch/arm/boot/dts/r7s9210.dtsi b/arch/arm/boot/dts/r7s9210.dtsi
index 8e9738467bfa..1cd982c9920f 100644
--- a/arch/arm/boot/dts/r7s9210.dtsi
+++ b/arch/arm/boot/dts/r7s9210.dtsi
@@ -216,6 +216,82 @@
status = "disabled";
};
+ i2c0: i2c@e803a000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "renesas,riic-r7s9210", "renesas,riic-rz";
+ reg = <0xe803a000 0x44>;
+ interrupts = <GIC_SPI 232 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 233 IRQ_TYPE_EDGE_RISING>,
+ <GIC_SPI 234 IRQ_TYPE_EDGE_RISING>,
+ <GIC_SPI 235 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 236 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 237 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 239 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 87>;
+ power-domains = <&cpg>;
+ clock-frequency = <100000>;
+ status = "disabled";
+ };
+
+ i2c1: i2c@e803a400 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "renesas,riic-r7s9210", "renesas,riic-rz";
+ reg = <0xe803a400 0x44>;
+ interrupts = <GIC_SPI 240 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 241 IRQ_TYPE_EDGE_RISING>,
+ <GIC_SPI 242 IRQ_TYPE_EDGE_RISING>,
+ <GIC_SPI 243 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 247 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 86>;
+ power-domains = <&cpg>;
+ clock-frequency = <100000>;
+ status = "disabled";
+ };
+
+ i2c2: i2c@e803a800 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "renesas,riic-r7s9210", "renesas,riic-rz";
+ reg = <0xe803a800 0x44>;
+ interrupts = <GIC_SPI 248 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 249 IRQ_TYPE_EDGE_RISING>,
+ <GIC_SPI 250 IRQ_TYPE_EDGE_RISING>,
+ <GIC_SPI 251 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 252 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 253 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 254 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 255 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 85>;
+ power-domains = <&cpg>;
+ clock-frequency = <100000>;
+ status = "disabled";
+ };
+
+ i2c3: i2c@e803ac00 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "renesas,riic-r7s9210", "renesas,riic-rz";
+ reg = <0xe803ac00 0x44>;
+ interrupts = <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 257 IRQ_TYPE_EDGE_RISING>,
+ <GIC_SPI 258 IRQ_TYPE_EDGE_RISING>,
+ <GIC_SPI 259 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 260 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 261 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 262 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 263 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 84>;
+ power-domains = <&cpg>;
+ clock-frequency = <100000>;
+ status = "disabled";
+ };
+
ostm0: timer@e803b000 {
compatible = "renesas,r7s9210-ostm", "renesas,ostm";
reg = <0xe803b000 0x30>;
--
2.16.1
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 5/7] ARM: dts: r7s9210: Add SDHI support
2019-04-30 13:23 [PATCH 0/7] dts: r7s9210: Add RZ/A2 devices Chris Brandt
` (3 preceding siblings ...)
2019-04-30 13:23 ` [PATCH 4/7] ARM: dts: r7s9210: Add RIIC support Chris Brandt
@ 2019-04-30 13:23 ` Chris Brandt
2019-04-30 14:53 ` Geert Uytterhoeven
2019-04-30 13:23 ` [PATCH 6/7] ARM: dts: r7s9210-rza2mevb: Add Ethernet support Chris Brandt
` (2 subsequent siblings)
7 siblings, 1 reply; 19+ messages in thread
From: Chris Brandt @ 2019-04-30 13:23 UTC (permalink / raw)
To: Simon Horman, Rob Herring, Mark Rutland
Cc: devicetree, linux-i2c, linux-renesas-soc, Chris Brandt
Add SDHI support for the R7S9210 (RZ/A2) SoC.
Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
---
arch/arm/boot/dts/r7s9210.dtsi | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/arch/arm/boot/dts/r7s9210.dtsi b/arch/arm/boot/dts/r7s9210.dtsi
index 1cd982c9920f..2eaa5eeba509 100644
--- a/arch/arm/boot/dts/r7s9210.dtsi
+++ b/arch/arm/boot/dts/r7s9210.dtsi
@@ -322,6 +322,30 @@
status = "disabled";
};
+ sdhi0: sd@e8228000 {
+ compatible = "renesas,sdhi-r7s9210";
+ reg = <0xe8228000 0x8c0>;
+ interrupts = <GIC_SPI 322 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 103>, <&cpg CPG_MOD 102>;
+ clock-names = "core", "cd";
+ power-domains = <&cpg>;
+ cap-sd-highspeed;
+ cap-sdio-irq;
+ status = "disabled";
+ };
+
+ sdhi1: sd@e822a000 {
+ compatible = "renesas,sdhi-r7s9210";
+ reg = <0xe822a000 0x8c0>;
+ interrupts = <GIC_SPI 324 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 101>, <&cpg CPG_MOD 100>;
+ clock-names = "core", "cd";
+ power-domains = <&cpg>;
+ cap-sd-highspeed;
+ cap-sdio-irq;
+ status = "disabled";
+ };
+
gic: interrupt-controller@e8221000 {
compatible = "arm,gic-400";
#interrupt-cells = <3>;
--
2.16.1
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 6/7] ARM: dts: r7s9210-rza2mevb: Add Ethernet support
2019-04-30 13:23 [PATCH 0/7] dts: r7s9210: Add RZ/A2 devices Chris Brandt
` (4 preceding siblings ...)
2019-04-30 13:23 ` [PATCH 5/7] ARM: dts: r7s9210: Add SDHI support Chris Brandt
@ 2019-04-30 13:23 ` Chris Brandt
2019-04-30 15:21 ` Geert Uytterhoeven
2019-04-30 13:23 ` [PATCH 7/7] ARM: dts: r7s9210-rza2mevb: Add SDHI support Chris Brandt
2019-05-06 14:02 ` [PATCH 0/7] dts: r7s9210: Add RZ/A2 devices Simon Horman
7 siblings, 1 reply; 19+ messages in thread
From: Chris Brandt @ 2019-04-30 13:23 UTC (permalink / raw)
To: Simon Horman, Rob Herring, Mark Rutland
Cc: devicetree, linux-i2c, linux-renesas-soc, Chris Brandt
The RZ/A2M EVB sub board has 2 Ethernet jacks on it.
Set switch SW6_4 to ON to use Ethernet Ch-0
Set switch SW6_5 to ON to use Ethernet Ch-1
Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
---
arch/arm/boot/dts/r7s9210-rza2mevb.dts | 50 ++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/arch/arm/boot/dts/r7s9210-rza2mevb.dts b/arch/arm/boot/dts/r7s9210-rza2mevb.dts
index 42005acb848c..df69746244fe 100644
--- a/arch/arm/boot/dts/r7s9210-rza2mevb.dts
+++ b/arch/arm/boot/dts/r7s9210-rza2mevb.dts
@@ -62,6 +62,34 @@
pinmux = <RZA2_PINMUX(PORT9, 0, 4)>, /* TxD4 */
<RZA2_PINMUX(PORT9, 1, 4)>; /* RxD4 */
};
+
+ eth0_pins: eth0 {
+ pinmux = <RZA2_PINMUX(PORTE, 0, 7)>, /* REF50CK0 */
+ <RZA2_PINMUX(PORT6, 1, 7)>, /* RMMI0_TXDEN */
+ <RZA2_PINMUX(PORT6, 2, 7)>, /* RMII0_TXD0 */
+ <RZA2_PINMUX(PORT6, 3, 7)>, /* RMII0_TXD1 */
+ <RZA2_PINMUX(PORTE, 4, 7)>, /* RMII0_CRSDV */
+ <RZA2_PINMUX(PORTE, 1, 7)>, /* RMII0_RXD0 */
+ <RZA2_PINMUX(PORTE, 2, 7)>, /* RMII0_RXD1 */
+ <RZA2_PINMUX(PORTE, 3, 7)>, /* RMII0_RXER */
+ <RZA2_PINMUX(PORTE, 5, 1)>, /* ET0_MDC */
+ <RZA2_PINMUX(PORTE, 6, 1)>, /* ET0_MDIO */
+ <RZA2_PINMUX(PORTL, 0, 5)>; /* IRQ4 */
+ };
+
+ eth1_pins: eth1 {
+ pinmux = <RZA2_PINMUX(PORTK, 3, 7)>, /* REF50CK1 */
+ <RZA2_PINMUX(PORTK, 0, 7)>, /* RMMI1_TXDEN */
+ <RZA2_PINMUX(PORTK, 1, 7)>, /* RMII1_TXD0 */
+ <RZA2_PINMUX(PORTK, 2, 7)>, /* RMII1_TXD1 */
+ <RZA2_PINMUX(PORT3, 2, 7)>, /* RMII1_CRSDV */
+ <RZA2_PINMUX(PORTK, 4, 7)>, /* RMII1_RXD0 */
+ <RZA2_PINMUX(PORT3, 5, 7)>, /* RMII1_RXD1 */
+ <RZA2_PINMUX(PORT3, 1, 7)>, /* RMII1_RXER */
+ <RZA2_PINMUX(PORT3, 3, 1)>, /* ET1_MDC */
+ <RZA2_PINMUX(PORT3, 4, 1)>, /* ET1_MDIO */
+ <RZA2_PINMUX(PORTL, 1, 5)>; /* IRQ5 */
+ };
};
/* High resolution System tick timers */
@@ -80,3 +108,25 @@
status = "okay";
};
+
+ðer0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <ð0_pins>;
+ status = "okay";
+ renesas,no-ether-link;
+ phy-handle = <&phy0>;
+ phy0: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
+ðer1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <ð1_pins>;
+ status = "okay";
+ renesas,no-ether-link;
+ phy-handle = <&phy1>;
+ phy1: ethernet-phy@1 {
+ reg = <0>;
+ };
+};
--
2.16.1
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 7/7] ARM: dts: r7s9210-rza2mevb: Add SDHI support
2019-04-30 13:23 [PATCH 0/7] dts: r7s9210: Add RZ/A2 devices Chris Brandt
` (5 preceding siblings ...)
2019-04-30 13:23 ` [PATCH 6/7] ARM: dts: r7s9210-rza2mevb: Add Ethernet support Chris Brandt
@ 2019-04-30 13:23 ` Chris Brandt
2019-04-30 15:30 ` Geert Uytterhoeven
2019-05-06 14:02 ` [PATCH 0/7] dts: r7s9210: Add RZ/A2 devices Simon Horman
7 siblings, 1 reply; 19+ messages in thread
From: Chris Brandt @ 2019-04-30 13:23 UTC (permalink / raw)
To: Simon Horman, Rob Herring, Mark Rutland
Cc: devicetree, linux-i2c, linux-renesas-soc, Chris Brandt
The RZ/A2M EVB supports 2 SD card slots. A micro SD slot on the CPU
board, and a full SD card slot on the sub board.
Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
---
arch/arm/boot/dts/r7s9210-rza2mevb.dts | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/arch/arm/boot/dts/r7s9210-rza2mevb.dts b/arch/arm/boot/dts/r7s9210-rza2mevb.dts
index df69746244fe..1eba37db7cdc 100644
--- a/arch/arm/boot/dts/r7s9210-rza2mevb.dts
+++ b/arch/arm/boot/dts/r7s9210-rza2mevb.dts
@@ -90,6 +90,16 @@
<RZA2_PINMUX(PORT3, 4, 1)>, /* ET1_MDIO */
<RZA2_PINMUX(PORTL, 1, 5)>; /* IRQ5 */
};
+
+ sdhi0_pins: sdhi0 {
+ pinmux = <RZA2_PINMUX(PORT5, 0, 3)>, /* SD0_CD */
+ <RZA2_PINMUX(PORT5, 1, 3)>; /* SD0_WP */
+ };
+
+ sdhi1_pins: sdhi1 {
+ pinmux = <RZA2_PINMUX(PORT5, 4, 3)>, /* SD1_CD */
+ <RZA2_PINMUX(PORT5, 5, 3)>; /* SD1_WP */
+ };
};
/* High resolution System tick timers */
@@ -130,3 +140,17 @@
reg = <0>;
};
};
+
+&sdhi0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&sdhi0_pins>;
+ bus-width = <4>;
+ status = "okay";
+};
+
+&sdhi1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&sdhi1_pins>;
+ bus-width = <4>;
+ status = "okay";
+};
--
2.16.1
^ permalink raw reply related [flat|nested] 19+ messages in thread
* Re: [PATCH 1/7] ARM: dts: r7s9210: Add RSPI
2019-04-30 13:23 ` [PATCH 1/7] ARM: dts: r7s9210: Add RSPI Chris Brandt
@ 2019-04-30 14:30 ` Geert Uytterhoeven
0 siblings, 0 replies; 19+ messages in thread
From: Geert Uytterhoeven @ 2019-04-30 14:30 UTC (permalink / raw)
To: Chris Brandt
Cc: Simon Horman, Rob Herring, Mark Rutland,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Linux I2C, Linux-Renesas
On Tue, Apr 30, 2019 at 3:34 PM Chris Brandt <chris.brandt@renesas.com> wrote:
> Add RSPI support for RZ/A2 SoC.
>
> Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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
* Re: [PATCH 2/7] ARM: dts: r7s9210: Add Ethernet support
2019-04-30 13:23 ` [PATCH 2/7] ARM: dts: r7s9210: Add Ethernet support Chris Brandt
@ 2019-04-30 14:38 ` Geert Uytterhoeven
0 siblings, 0 replies; 19+ messages in thread
From: Geert Uytterhoeven @ 2019-04-30 14:38 UTC (permalink / raw)
To: Chris Brandt
Cc: Simon Horman, Rob Herring, Mark Rutland,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Linux I2C, Linux-Renesas
On Tue, Apr 30, 2019 at 3:33 PM Chris Brandt <chris.brandt@renesas.com> wrote:
> Add Ethernet support for the RZ/A2 SoC.
>
> Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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
* Re: [PATCH 4/7] ARM: dts: r7s9210: Add RIIC support
2019-04-30 13:23 ` [PATCH 4/7] ARM: dts: r7s9210: Add RIIC support Chris Brandt
@ 2019-04-30 14:47 ` Geert Uytterhoeven
0 siblings, 0 replies; 19+ messages in thread
From: Geert Uytterhoeven @ 2019-04-30 14:47 UTC (permalink / raw)
To: Chris Brandt
Cc: Simon Horman, Rob Herring, Mark Rutland,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Linux I2C, Linux-Renesas
On Tue, Apr 30, 2019 at 3:42 PM Chris Brandt <chris.brandt@renesas.com> wrote:
> Add I2C support for the R7S9210 (RZ/A2) SoC.
>
> Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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
* Re: [PATCH 3/7] dt-bindings: i2c: riic: document r7s9210 support
2019-04-30 13:23 ` [PATCH 3/7] dt-bindings: i2c: riic: document r7s9210 support Chris Brandt
@ 2019-04-30 14:47 ` Geert Uytterhoeven
2019-05-02 21:07 ` Rob Herring
2019-05-03 14:53 ` Wolfram Sang
2 siblings, 0 replies; 19+ messages in thread
From: Geert Uytterhoeven @ 2019-04-30 14:47 UTC (permalink / raw)
To: Chris Brandt
Cc: Simon Horman, Rob Herring, Mark Rutland,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Linux I2C, Linux-Renesas
On Tue, Apr 30, 2019 at 3:36 PM Chris Brandt <chris.brandt@renesas.com> wrote:
> Document support for the R7S9210 (RZ/A2) SoC. Also explicitly document
> bindings for the R7S72100 (RZ/A1) SoC.
>
> Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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
* Re: [PATCH 5/7] ARM: dts: r7s9210: Add SDHI support
2019-04-30 13:23 ` [PATCH 5/7] ARM: dts: r7s9210: Add SDHI support Chris Brandt
@ 2019-04-30 14:53 ` Geert Uytterhoeven
0 siblings, 0 replies; 19+ messages in thread
From: Geert Uytterhoeven @ 2019-04-30 14:53 UTC (permalink / raw)
To: Chris Brandt
Cc: Simon Horman, Rob Herring, Mark Rutland,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Linux I2C, Linux-Renesas
On Tue, Apr 30, 2019 at 3:33 PM Chris Brandt <chris.brandt@renesas.com> wrote:
> Add SDHI support for the R7S9210 (RZ/A2) SoC.
>
> Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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
* Re: [PATCH 6/7] ARM: dts: r7s9210-rza2mevb: Add Ethernet support
2019-04-30 13:23 ` [PATCH 6/7] ARM: dts: r7s9210-rza2mevb: Add Ethernet support Chris Brandt
@ 2019-04-30 15:21 ` Geert Uytterhoeven
2019-04-30 16:03 ` Chris Brandt
0 siblings, 1 reply; 19+ messages in thread
From: Geert Uytterhoeven @ 2019-04-30 15:21 UTC (permalink / raw)
To: Chris Brandt
Cc: Simon Horman, Rob Herring, Mark Rutland,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Linux I2C, Linux-Renesas
Hi Chris,
On Tue, Apr 30, 2019 at 3:33 PM Chris Brandt <chris.brandt@renesas.com> wrote:
> The RZ/A2M EVB sub board has 2 Ethernet jacks on it.
>
> Set switch SW6_4 to ON to use Ethernet Ch-0
> Set switch SW6_5 to ON to use Ethernet Ch-1
>
> Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
Thanks for your patch!
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> --- a/arch/arm/boot/dts/r7s9210-rza2mevb.dts
> +++ b/arch/arm/boot/dts/r7s9210-rza2mevb.dts
Perhaps you want to add an "ethernet0" alias, so U-Boot can find the
device-node and add an appropriate "local-mac-address" property?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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
* Re: [PATCH 7/7] ARM: dts: r7s9210-rza2mevb: Add SDHI support
2019-04-30 13:23 ` [PATCH 7/7] ARM: dts: r7s9210-rza2mevb: Add SDHI support Chris Brandt
@ 2019-04-30 15:30 ` Geert Uytterhoeven
0 siblings, 0 replies; 19+ messages in thread
From: Geert Uytterhoeven @ 2019-04-30 15:30 UTC (permalink / raw)
To: Chris Brandt
Cc: Simon Horman, Rob Herring, Mark Rutland,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Linux I2C, Linux-Renesas
On Tue, Apr 30, 2019 at 3:33 PM Chris Brandt <chris.brandt@renesas.com> wrote:
> The RZ/A2M EVB supports 2 SD card slots. A micro SD slot on the CPU
> board, and a full SD card slot on the sub board.
>
> Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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
* RE: [PATCH 6/7] ARM: dts: r7s9210-rza2mevb: Add Ethernet support
2019-04-30 15:21 ` Geert Uytterhoeven
@ 2019-04-30 16:03 ` Chris Brandt
0 siblings, 0 replies; 19+ messages in thread
From: Chris Brandt @ 2019-04-30 16:03 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Simon Horman, Rob Herring, Mark Rutland,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Linux I2C, Linux-Renesas
Hi Geert,
On Tue, Apr 30, 2019 1, Geert Uytterhoeven wrote:
> Perhaps you want to add an "ethernet0" alias, so U-Boot can find the
> device-node and add an appropriate "local-mac-address" property?
Since I have 2 Ethernets, would your recommendation be I add an alias for
each?
Honestly, I've never done it that way. It has always been that u-boot
preloads the MAC address registers and then the sh_eth driver just uses
what's already loaded.
But, if using DT is the more recommended method, I can migrate towards
that.
Thanks,
Chris
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 3/7] dt-bindings: i2c: riic: document r7s9210 support
2019-04-30 13:23 ` [PATCH 3/7] dt-bindings: i2c: riic: document r7s9210 support Chris Brandt
2019-04-30 14:47 ` Geert Uytterhoeven
@ 2019-05-02 21:07 ` Rob Herring
2019-05-03 14:53 ` Wolfram Sang
2 siblings, 0 replies; 19+ messages in thread
From: Rob Herring @ 2019-05-02 21:07 UTC (permalink / raw)
To: Chris Brandt
Cc: Simon Horman, Mark Rutland, devicetree, linux-i2c,
linux-renesas-soc, Chris Brandt
On Tue, 30 Apr 2019 08:23:05 -0500, Chris Brandt wrote:
> Document support for the R7S9210 (RZ/A2) SoC. Also explicitly document
> bindings for the R7S72100 (RZ/A1) SoC.
>
> Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
> ---
> Documentation/devicetree/bindings/i2c/i2c-riic.txt | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 3/7] dt-bindings: i2c: riic: document r7s9210 support
2019-04-30 13:23 ` [PATCH 3/7] dt-bindings: i2c: riic: document r7s9210 support Chris Brandt
2019-04-30 14:47 ` Geert Uytterhoeven
2019-05-02 21:07 ` Rob Herring
@ 2019-05-03 14:53 ` Wolfram Sang
2 siblings, 0 replies; 19+ messages in thread
From: Wolfram Sang @ 2019-05-03 14:53 UTC (permalink / raw)
To: Chris Brandt
Cc: Simon Horman, Rob Herring, Mark Rutland, devicetree, linux-i2c,
linux-renesas-soc
[-- Attachment #1: Type: text/plain, Size: 275 bytes --]
On Tue, Apr 30, 2019 at 08:23:05AM -0500, Chris Brandt wrote:
> Document support for the R7S9210 (RZ/A2) SoC. Also explicitly document
> bindings for the R7S72100 (RZ/A1) SoC.
>
> Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
Applied to for-next, thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 0/7] dts: r7s9210: Add RZ/A2 devices
2019-04-30 13:23 [PATCH 0/7] dts: r7s9210: Add RZ/A2 devices Chris Brandt
` (6 preceding siblings ...)
2019-04-30 13:23 ` [PATCH 7/7] ARM: dts: r7s9210-rza2mevb: Add SDHI support Chris Brandt
@ 2019-05-06 14:02 ` Simon Horman
7 siblings, 0 replies; 19+ messages in thread
From: Simon Horman @ 2019-05-06 14:02 UTC (permalink / raw)
To: Chris Brandt
Cc: Rob Herring, Mark Rutland, devicetree, linux-i2c, linux-renesas-soc
On Tue, Apr 30, 2019 at 08:23:02AM -0500, Chris Brandt wrote:
> So while I added RZ/A2 drivers a while back, I never actually added them
> all to the device tree.
>
> This series adds everything that is currently supported.
>
> Chris Brandt (7):
> ARM: dts: r7s9210: Add RSPI
> ARM: dts: r7s9210: Add Ethernet support
> dt-bindings: i2c: riic: document r7s9210 support
> ARM: dts: r7s9210: Add RIIC support
> ARM: dts: r7s9210: Add SDHI support
> ARM: dts: r7s9210-rza2mevb: Add Ethernet support
> ARM: dts: r7s9210-rza2mevb: Add SDHI support
Thanks Chris,
I have applied the dts patches for inclusion in v5.3.
Please consider a follow-up patch to add an alias as
per Geert's feedback on the Ethernet support patch.
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2019-05-06 14:02 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-30 13:23 [PATCH 0/7] dts: r7s9210: Add RZ/A2 devices Chris Brandt
2019-04-30 13:23 ` [PATCH 1/7] ARM: dts: r7s9210: Add RSPI Chris Brandt
2019-04-30 14:30 ` Geert Uytterhoeven
2019-04-30 13:23 ` [PATCH 2/7] ARM: dts: r7s9210: Add Ethernet support Chris Brandt
2019-04-30 14:38 ` Geert Uytterhoeven
2019-04-30 13:23 ` [PATCH 3/7] dt-bindings: i2c: riic: document r7s9210 support Chris Brandt
2019-04-30 14:47 ` Geert Uytterhoeven
2019-05-02 21:07 ` Rob Herring
2019-05-03 14:53 ` Wolfram Sang
2019-04-30 13:23 ` [PATCH 4/7] ARM: dts: r7s9210: Add RIIC support Chris Brandt
2019-04-30 14:47 ` Geert Uytterhoeven
2019-04-30 13:23 ` [PATCH 5/7] ARM: dts: r7s9210: Add SDHI support Chris Brandt
2019-04-30 14:53 ` Geert Uytterhoeven
2019-04-30 13:23 ` [PATCH 6/7] ARM: dts: r7s9210-rza2mevb: Add Ethernet support Chris Brandt
2019-04-30 15:21 ` Geert Uytterhoeven
2019-04-30 16:03 ` Chris Brandt
2019-04-30 13:23 ` [PATCH 7/7] ARM: dts: r7s9210-rza2mevb: Add SDHI support Chris Brandt
2019-04-30 15:30 ` Geert Uytterhoeven
2019-05-06 14:02 ` [PATCH 0/7] dts: r7s9210: Add RZ/A2 devices 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).