Skip to contentSkip to conversation

ARM: dts: rmobile: Add soc label to Gen3

PATCH New Marek Vasut 1 participant 13 messages Dec 3, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/13 ARM: dts: rmobile: Add soc label to Gen3

Add label to the /soc node, so it can be referenced from the U-Boot DTs.

Cc Nobuhiro Iwamatsu <[email protected]>

---
V2: Rebase on u-boot/master

---
 arch/arm/dts/r8a7796.dtsi  | 2 +-
 arch/arm/dts/r8a77965.dtsi | 2 +-
 arch/arm/dts/r8a77970.dtsi | 2 +-
 arch/arm/dts/r8a77995.dtsi | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
arch/arm/dts/r8a7796.dtsi +1 -1
index 011f0e596a..2b25a1d146 100644
@@ -259,7 +259,7 @@
 		clock-frequency = <0>;
 	};
 
-	soc {
+	soc: soc {
 		compatible = "simple-bus";
 		interrupt-parent = <&gic>;
 		#address-cells = <2>;
arch/arm/dts/r8a77965.dtsi +1 -1
index 7a5d68be13..f28a82c1d4 100644
@@ -144,7 +144,7 @@
 				     <&a57_1>;
 	};
 
-	soc {
+	soc: soc {
 		compatible = "simple-bus";
 		interrupt-parent = <&gic>;
 		#address-cells = <2>;
arch/arm/dts/r8a77970.dtsi +1 -1
index 8dc599edfa..4f9f8ba3c1 100644
@@ -72,7 +72,7 @@
 		clock-frequency = <0>;
 	};
 
-	soc {
+	soc: soc {
 		compatible = "simple-bus";
 		interrupt-parent = <&gic>;
 
arch/arm/dts/r8a77995.dtsi +1 -1
index 1d49279ac9..5ae37c60fd 100644
@@ -66,7 +66,7 @@
 		clock-frequency = <0>;
 	};
 
-	soc {
+	soc: soc {
 		compatible = "simple-bus";
 		interrupt-parent = <&gic>;
 		#address-cells = <2>;
Signature · 1 line
2.18.0
#1 lore raw

PATCH v2 2/13 ARM: dts: rmobile: Extract RPC node to u-boot specific DT

The RPC DT bindings are still work in progress. Extract the RPC DT node from the DT to allow easier update and so it can be replaced once the DT bindings are stable.

Cc Nobuhiro Iwamatsu <[email protected]>

---
V2: Rebase on u-boot/master

---
 arch/arm/dts/r8a7795-u-boot.dtsi       | 10 ++++++++++
 arch/arm/dts/r8a7795.dtsi              |  8 --------
 arch/arm/dts/r8a7796-u-boot.dtsi       | 10 ++++++++++
 arch/arm/dts/r8a7796.dtsi              |  8 --------
 arch/arm/dts/r8a77965-u-boot.dtsi      | 10 ++++++++++
 arch/arm/dts/r8a77965.dtsi             |  8 --------
 arch/arm/dts/r8a77970-eagle-u-boot.dts | 25 +++++++++++++++++++++++++
 arch/arm/dts/r8a77970-eagle.dts        | 20 --------------------
 arch/arm/dts/r8a77970-u-boot.dtsi      | 10 ++++++++++
 arch/arm/dts/r8a77970.dtsi             |  8 --------
 arch/arm/dts/r8a77990-u-boot.dtsi      | 10 ++++++++++
 arch/arm/dts/r8a77990.dtsi             |  8 --------
 arch/arm/dts/r8a77995-u-boot.dtsi      | 10 ++++++++++
 arch/arm/dts/r8a77995.dtsi             |  8 --------
 14 files changed, 85 insertions(+), 68 deletions(-)
arch/arm/dts/r8a7795-u-boot.dtsi +10 -0
index 526966ab24..cc22c57ae3 100644
@@ -10,3 +10,13 @@
 &extalr_clk {
 	u-boot,dm-pre-reloc;
 };
+
+&soc {
+	rpc: rpc at 0xee200000 {
+		compatible = "renesas,rpc-r8a7795", "renesas,rpc";
+		reg = <0 0xee200000 0 0x100>, <0 0x08000000 0 0>;
+		clocks = <&cpg CPG_MOD 917>;
+		bank-width = <2>;
+		status = "disabled";
+	};
+};
arch/arm/dts/r8a7795.dtsi +0 -8
index af77bfe4e4..e2713eea48 100644
@@ -1812,14 +1812,6 @@
 			dma-channels = <2>;
 		};
 
-		rpc: rpc at 0xee200000 {
-			compatible = "renesas,rpc-r8a7795", "renesas,rpc";
-			reg = <0 0xee200000 0 0x100>, <0 0x08000000 0 0>;
-			clocks = <&cpg CPG_MOD 917>;
-			bank-width = <2>;
-			status = "disabled";
-		};
-
 		sdhi0: sd at ee100000 {
 			compatible = "renesas,sdhi-r8a7795",
 				     "renesas,rcar-gen3-sdhi";
arch/arm/dts/r8a7796-u-boot.dtsi +10 -0
index 7cc60bc54a..4655259afe 100644
@@ -10,3 +10,13 @@
 &extalr_clk {
 	u-boot,dm-pre-reloc;
 };
+
+&soc {
+	rpc: rpc at 0xee200000 {
+		compatible = "renesas,rpc-r8a7796", "renesas,rpc";
+		reg = <0 0xee200000 0 0x100>, <0 0x08000000 0 0>;
+		clocks = <&cpg CPG_MOD 917>;
+		bank-width = <2>;
+		status = "disabled";
+	};
+};
arch/arm/dts/r8a7796.dtsi +0 -8
index 2b25a1d146..903fef7284 100644
@@ -1588,14 +1588,6 @@
 			status = "disabled";
 		};
 
-		rpc: rpc at 0xee200000 {
-			compatible = "renesas,rpc-r8a7796", "renesas,rpc";
-			reg = <0 0xee200000 0 0x100>, <0 0x08000000 0 0>;
-			clocks = <&cpg CPG_MOD 917>;
-			bank-width = <2>;
-			status = "disabled";
-		};
-
 		sdhi0: sd at ee100000 {
 			compatible = "renesas,sdhi-r8a7796",
 				     "renesas,rcar-gen3-sdhi";
arch/arm/dts/r8a77965-u-boot.dtsi +10 -0
index f0023114d1..ca80ef8f29 100644
@@ -10,3 +10,13 @@
 &extalr_clk {
 	u-boot,dm-pre-reloc;
 };
+
+&soc {
+	rpc: rpc at 0xee200000 {
+		compatible = "renesas,rpc-r8a77965", "renesas,rpc";
+		reg = <0 0xee200000 0 0x100>, <0 0x08000000 0 0>;
+		clocks = <&cpg CPG_MOD 917>;
+		bank-width = <2>;
+		status = "disabled";
+	};
+};
arch/arm/dts/r8a77965.dtsi +0 -8
index f28a82c1d4..840512ecfa 100644
@@ -863,14 +863,6 @@
 			status = "disabled";
 		};
 
-		rpc: rpc at 0xee200000 {
-			compatible = "renesas,rpc-r8a77965", "renesas,rpc";
-			reg = <0 0xee200000 0 0x100>, <0 0x08000000 0 0>;
-			clocks = <&cpg CPG_MOD 917>;
-			bank-width = <2>;
-			status = "disabled";
-		};
-
 		sdhi0: sd at ee100000 {
 			compatible = "renesas,sdhi-r8a77965";
 			reg = <0 0xee100000 0 0x2000>;
arch/arm/dts/r8a77970-eagle-u-boot.dts +25 -0
index 7ab71a1c65..0c716deb6f 100644
@@ -7,3 +7,28 @@
 
 #include "r8a77970-eagle.dts"
 #include "r8a77970-u-boot.dtsi"
+
+/ {
+	aliases {
+		spi0 = &rpc;
+	};
+};
+
+&rpc {
+	num-cs = <1>;
+	status = "okay";
+	spi-max-frequency = <50000000>;
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	flash0: spi-flash at 0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "s25fs512s", "spi-flash", "jedec,spi-nor";
+		spi-max-frequency = <50000000>;
+		spi-tx-bus-width = <1>;
+		spi-rx-bus-width = <1>;
+		reg = <0>;
+		status = "okay";
+	};
+};
arch/arm/dts/r8a77970-eagle.dts +0 -20
index 5dcad63492..107ac5d393 100644
@@ -17,7 +17,6 @@
 	aliases {
 		serial0 = &scif0;
 		ethernet0 = &avb;
-		spi0 = &rpc;
 	};
 
 	chosen {
@@ -91,25 +90,6 @@
 	};
 };
 
-&rpc {
-	num-cs = <1>;
-	status = "okay";
-	spi-max-frequency = <50000000>;
-	#address-cells = <1>;
-	#size-cells = <0>;
-
-	flash0: spi-flash at 0 {
-		#address-cells = <1>;
-		#size-cells = <1>;
-		compatible = "s25fs512s", "spi-flash", "jedec,spi-nor";
-		spi-max-frequency = <50000000>;
-		spi-tx-bus-width = <1>;
-		spi-rx-bus-width = <1>;
-		reg = <0>;
-		status = "okay";
-	};
-};
-
 &rwdt {
 	timeout-sec = <60>;
 	status = "okay";
arch/arm/dts/r8a77970-u-boot.dtsi +10 -0
index 8fb7fe92db..2903fdb523 100644
@@ -10,3 +10,13 @@
 &extalr_clk {
 	u-boot,dm-pre-reloc;
 };
+
+&soc {
+	rpc: rpc at 0xee200000 {
+		compatible = "renesas,rpc-r8a77970", "renesas,rpc";
+		reg = <0 0xee200000 0 0x100>, <0 0x08000000 0 0>;
+		clocks = <&cpg CPG_MOD 917>;
+		bank-width = <2>;
+		status = "disabled";
+	};
+};
arch/arm/dts/r8a77970.dtsi +0 -8
index 4f9f8ba3c1..9205da2acd 100644
@@ -614,14 +614,6 @@
 			#address-cells = <1>;
 			#size-cells = <0>;
 		};
-
-		rpc: rpc at 0xee200000 {
-			compatible = "renesas,rpc-r8a77970", "renesas,rpc";
-			reg = <0 0xee200000 0 0x100>, <0 0x08000000 0 0>;
-			clocks = <&cpg CPG_MOD 917>;
-			bank-width = <2>;
-			status = "disabled";
-		};
 	};
 
 	timer {
arch/arm/dts/r8a77990-u-boot.dtsi +10 -0
index 564c258e92..052caa720d 100644
@@ -6,3 +6,13 @@
  */
 
 #include "r8a779x-u-boot.dtsi"
+
+&soc {
+	rpc: rpc at 0xee200000 {
+		compatible = "renesas,rpc-r8a77990", "renesas,rpc";
+		reg = <0 0xee200000 0 0x100>, <0 0x08000000 0 0>;
+		clocks = <&cpg CPG_MOD 917>;
+		bank-width = <2>;
+		status = "disabled";
+	};
+};
arch/arm/dts/r8a77990.dtsi +0 -8
index ad20ea14cd..87625870e6 100644
@@ -331,14 +331,6 @@
 			compatible = "renesas,prr";
 			reg = <0 0xfff00044 0 4>;
 		};
-
-		rpc: rpc at 0xee200000 {
-			compatible = "renesas,rpc-r8a77990", "renesas,rpc";
-			reg = <0 0xee200000 0 0x100>, <0 0x08000000 0 0>;
-			clocks = <&cpg CPG_MOD 917>;
-			bank-width = <2>;
-			status = "disabled";
-		};
 	};
 
 	timer {
arch/arm/dts/r8a77995-u-boot.dtsi +10 -0
index e0852c8df2..1f6efafb8b 100644
@@ -6,3 +6,13 @@
  */
 
 #include "r8a779x-u-boot.dtsi"
+
+&soc {
+	rpc: rpc at 0xee200000 {
+		compatible = "renesas,rpc-r8a77995", "renesas,rpc";
+		reg = <0 0xee200000 0 0x100>, <0 0x08000000 0 0>;
+		clocks = <&cpg CPG_MOD 917>;
+		bank-width = <2>;
+		status = "disabled";
+	};
+};
arch/arm/dts/r8a77995.dtsi +0 -8
index 5ae37c60fd..d191d8ad70 100644
@@ -780,14 +780,6 @@
 				};
 			};
 		};
-
-		rpc: rpc at 0xee200000 {
-			compatible = "renesas,rpc-r8a77995", "renesas,rpc";
-			reg = <0 0xee200000 0 0x100>, <0 0x08000000 0 0>;
-			clocks = <&cpg CPG_MOD 917>;
-			bank-width = <2>;
-			status = "disabled";
-		};
 	};
 
 	timer {
Signature · 1 line
2.18.0
#2 lore raw

PATCH v2 3/13 ARM: dts: rmobile: Extract USB nodes on M3N

In reply to Marek Vasut

The USB nodes are not in Linux 4.17 DTs in M3N, pull them into U-Boot specific DT extras until they hit mainline Linux, to make syncing of DTs easier.

Cc Nobuhiro Iwamatsu <[email protected]>

---
V2: Rebase on u-boot/master

---
 arch/arm/dts/r8a77965-u-boot.dtsi | 55 +++++++++++++++++++++++++++++++
 arch/arm/dts/r8a77965.dtsi        | 53 +++++------------------------
 2 files changed, 64 insertions(+), 44 deletions(-)
arch/arm/dts/r8a77965-u-boot.dtsi +55 -0
index ca80ef8f29..15d9467ec0 100644
@@ -19,4 +19,59 @@
 		bank-width = <2>;
 		status = "disabled";
 	};
+
+	ehci0: usb at ee080100 {
+		compatible = "generic-ehci";
+		reg = <0 0xee080100 0 0x100>;
+		interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&cpg CPG_MOD 703>;
+		phys = <&usb2_phy0>;
+		phy-names = "usb";
+		companion= <&ohci0>;
+		power-domains = <&sysc 32>;
+		resets = <&cpg 703>;
+	};
+
+	usb2_phy0: usb-phy at ee080200 {
+		compatible = "renesas,usb2-phy-r8a77965",
+			     "renesas,rcar-gen3-usb2-phy";
+		reg = <0 0xee080200 0 0x700>;
+		interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&cpg CPG_MOD 703>;
+		power-domains = <&sysc 32>;
+		resets = <&cpg 703>;
+		#phy-cells = <0>;
+	};
+
+	ehci1: usb at ee0a0100 {
+		compatible = "generic-ehci";
+		reg = <0 0xee0a0100 0 0x100>;
+		interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&cpg CPG_MOD 702>;
+		phys = <&usb2_phy1>;
+		phy-names = "usb";
+		companion= <&ohci1>;
+		power-domains = <&sysc 32>;
+		resets = <&cpg 702>;
+	};
+
+	usb2_phy1: usb-phy at ee0a0200 {
+		compatible = "renesas,usb2-phy-r8a77965",
+			     "renesas,rcar-gen3-usb2-phy";
+		reg = <0 0xee0a0200 0 0x700>;
+		clocks = <&cpg CPG_MOD 702>;
+		power-domains = <&sysc 32>;
+		resets = <&cpg 702>;
+		#phy-cells = <0>;
+	};
+
+	xhci0: usb at ee000000 {
+		compatible = "renesas,xhci-r8a77965",
+			     "renesas,rcar-gen3-xhci";
+		reg = <0 0xee000000 0 0xc00>;
+		interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&cpg CPG_MOD 328>;
+		power-domains = <&sysc 32>;
+		resets = <&cpg 328>;
+	};
 };
arch/arm/dts/r8a77965.dtsi +9 -44

84 lines not on this page · raw message

Signature · 1 line
2.18.0
#3 lore raw

PATCH v2 4/13 ARM: dts: rmobile: Extract SDHI nodes on M3N

In reply to Marek Vasut

The SDHI nodes are not in Linux 4.17 DTs in M3N, pull them into U-Boot specific DT extras until they hit mainline Linux, to make syncing of DTs easier.

Cc Nobuhiro Iwamatsu <[email protected]>

---
V2: Rebase on u-boot/master

---
 arch/arm/dts/r8a77965-u-boot.dtsi | 44 +++++++++++++++++++++++++++++++
 arch/arm/dts/r8a77965.dtsi        | 32 +++-------------------
 2 files changed, 48 insertions(+), 28 deletions(-)
arch/arm/dts/r8a77965-u-boot.dtsi +44 -0
index 15d9467ec0..cbd29b3aed 100644
@@ -20,6 +20,50 @@
 		status = "disabled";
 	};
 
+	sdhi0: sd at ee100000 {
+		compatible = "renesas,sdhi-r8a77965";
+		reg = <0 0xee100000 0 0x2000>;
+		interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&cpg CPG_MOD 314>;
+		max-frequency = <200000000>;
+		power-domains = <&sysc 32>;
+		resets = <&cpg 314>;
+		status = "disabled";
+	};
+
+	sdhi1: sd at ee120000 {
+		compatible = "renesas,sdhi-r8a77965";
+		reg = <0 0xee120000 0 0x2000>;
+		interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&cpg CPG_MOD 313>;
+		max-frequency = <200000000>;
+		power-domains = <&sysc 32>;
+		resets = <&cpg 313>;
+		status = "disabled";
+	};
+
+	sdhi2: sd at ee140000 {
+		compatible = "renesas,sdhi-r8a77965";
+		reg = <0 0xee140000 0 0x2000>;
+		interrupts = <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&cpg CPG_MOD 312>;
+		max-frequency = <200000000>;
+		power-domains = <&sysc 32>;
+		resets = <&cpg 312>;
+		status = "disabled";
+	};
+
+	sdhi3: sd at ee160000 {
+		compatible = "renesas,sdhi-r8a77965";
+		reg = <0 0xee160000 0 0x2000>;
+		interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&cpg CPG_MOD 311>;
+		max-frequency = <200000000>;
+		power-domains = <&sysc 32>;
+		resets = <&cpg 311>;
+		status = "disabled";
+	};
+
 	ehci0: usb at ee080100 {
 		compatible = "generic-ehci";
 		reg = <0 0xee080100 0 0x100>;
arch/arm/dts/r8a77965.dtsi +4 -28
index a47f079c02..84ecb4631f 100644
@@ -835,47 +835,23 @@
 		};
 
 		sdhi0: sd at ee100000 {
-			compatible = "renesas,sdhi-r8a77965";
 			reg = <0 0xee100000 0 0x2000>;
-			interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>;
-			clocks = <&cpg CPG_MOD 314>;
-			max-frequency = <200000000>;
-			power-domains = <&sysc 32>;
-			resets = <&cpg 314>;
-			status = "disabled";
+			/* placeholder */
 		};
 
 		sdhi1: sd at ee120000 {
-			compatible = "renesas,sdhi-r8a77965";
 			reg = <0 0xee120000 0 0x2000>;
-			interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>;
-			clocks = <&cpg CPG_MOD 313>;
-			max-frequency = <200000000>;
-			power-domains = <&sysc 32>;
-			resets = <&cpg 313>;
-			status = "disabled";
+			/* placeholder */
 		};
 
 		sdhi2: sd at ee140000 {
-			compatible = "renesas,sdhi-r8a77965";
 			reg = <0 0xee140000 0 0x2000>;
-			interrupts = <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>;
-			clocks = <&cpg CPG_MOD 312>;
-			max-frequency = <200000000>;
-			power-domains = <&sysc 32>;
-			resets = <&cpg 312>;
-			status = "disabled";
+			/* placeholder */
 		};
 
 		sdhi3: sd at ee160000 {
-			compatible = "renesas,sdhi-r8a77965";
 			reg = <0 0xee160000 0 0x2000>;
-			interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>;
-			clocks = <&cpg CPG_MOD 311>;
-			max-frequency = <200000000>;
-			power-domains = <&sysc 32>;
-			resets = <&cpg 311>;
-			status = "disabled";
+			/* placeholder */
 		};
 
 		usb3_phy0: usb-phy at e65ee000 {
Signature · 1 line
2.18.0
#4 lore raw

PATCH v2 5/13 ARM: dts: rmobile: Extract AVB node extras on V3M Eagle

In reply to Marek Vasut

The AVB node is not complete in Linux 4.17 DTs on V3M Eagle, pull the AVB node extras into U-Boot specific DT until they hit mainline Linux, to make syncing of DTs easier.

Cc Nobuhiro Iwamatsu <[email protected]>

---
V2: Rebase on u-boot/master

---
 arch/arm/dts/r8a77970-eagle-u-boot.dts | 20 ++++++++++++++++++++
 arch/arm/dts/r8a77970-eagle.dts        | 11 -----------
 2 files changed, 20 insertions(+), 11 deletions(-)
arch/arm/dts/r8a77970-eagle-u-boot.dts +20 -0
index 0c716deb6f..5b17f1d1f0 100644
@@ -7,6 +7,7 @@
 
 #include "r8a77970-eagle.dts"
 #include "r8a77970-u-boot.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
 	aliases {
@@ -14,6 +15,25 @@
 	};
 };
 
+&avb {
+	pinctrl-0 = <&avb0_pins>;
+	pinctrl-names = "default";
+
+};
+
+&phy0 {
+	reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
+};
+
+&pfc {
+	avb0_pins: avb {
+		mux {
+			groups = "avb0_link", "avb0_mdio", "avb0_rgmii", "avb0_txcrefclk";
+			function = "avb0";
+		};
+	};
+};
+
 &rpc {
 	num-cs = <1>;
 	status = "okay";
arch/arm/dts/r8a77970-eagle.dts +0 -11
index 107ac5d393..7fee1aa1ac 100644
@@ -8,7 +8,6 @@
 
 /dts-v1/;
 #include "r8a77970.dtsi"
-#include <dt-bindings/gpio/gpio.h>
 
 / {
 	model = "Renesas Eagle board based on r8a77970";
@@ -32,8 +31,6 @@
 };
 
 &avb {
-	pinctrl-0 = <&avb0_pins>;
-	pinctrl-names = "default";
 	renesas,no-ether-link;
 	phy-handle = <&phy0>;
 	phy-mode = "rgmii-id";
@@ -44,7 +41,6 @@
 		reg = <0>;
 		interrupt-parent = <&gpio1>;
 		interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
-		reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
 	};
 };
 
@@ -72,13 +68,6 @@
 };
 
 &pfc {
-	avb0_pins: avb {
-		mux {
-			groups = "avb0_link", "avb0_mdio", "avb0_rgmii", "avb0_txcrefclk";
-			function = "avb0";
-		};
-	};
-
 	i2c0_pins: i2c0 {
 		groups = "i2c0";
 		function = "i2c0";
Signature · 1 line
2.18.0
#5 lore raw

PATCH v2 6/13 ARM: dts: rmobile: Extract CPLD node on H3 and M3W ULCB

In reply to Marek Vasut

The CPLD node is missing in Linux 4.17 DTs on H3/M3W ULCB, pull the node into U-Boot specific DT until it hits mainline Linux, to make syncing of DTs easier.

Cc Nobuhiro Iwamatsu <[email protected]>

---
V2: Rebase on u-boot/master

---
 arch/arm/dts/r8a7795-h3ulcb-u-boot.dts | 11 +++++++++++
 arch/arm/dts/r8a7796-m3ulcb-u-boot.dts | 11 +++++++++++
 arch/arm/dts/ulcb.dtsi                 |  9 ---------
 3 files changed, 22 insertions(+), 9 deletions(-)
arch/arm/dts/r8a7795-h3ulcb-u-boot.dts +11 -0
index 06bd4f24ca..5cb5e9c6fb 100644
@@ -7,3 +7,14 @@
 
 #include "r8a7795-h3ulcb.dts"
 #include "r8a7795-u-boot.dtsi"
+
+/ {
+	cpld {
+		compatible = "renesas,ulcb-cpld";
+		status = "okay";
+		gpio-sck = <&gpio6 8 0>;
+		gpio-mosi = <&gpio6 7 0>;
+		gpio-miso = <&gpio6 10 0>;
+		gpio-sstbz = <&gpio2 3 0>;
+	};
+};
arch/arm/dts/r8a7796-m3ulcb-u-boot.dts +11 -0
index a1d13ccf28..78bd4f26bd 100644
@@ -7,3 +7,14 @@
 
 #include "r8a7796-m3ulcb.dts"
 #include "r8a7796-u-boot.dtsi"
+
+/ {
+	cpld {
+		compatible = "renesas,ulcb-cpld";
+		status = "okay";
+		gpio-sck = <&gpio6 8 0>;
+		gpio-mosi = <&gpio6 7 0>;
+		gpio-miso = <&gpio6 10 0>;
+		gpio-sstbz = <&gpio2 3 0>;
+	};
+};
arch/arm/dts/ulcb.dtsi +0 -9
index e16c7f245e..c805265343 100644
@@ -24,15 +24,6 @@
 		stdout-path = "serial0:115200n8";
 	};
 
-	cpld {
-		compatible = "renesas,ulcb-cpld";
-		status = "okay";
-		gpio-sck = <&gpio6 8 0>;
-		gpio-mosi = <&gpio6 7 0>;
-		gpio-miso = <&gpio6 10 0>;
-		gpio-sstbz = <&gpio2 3 0>;
-	};
-
 	audio_clkout: audio-clkout {
 		/*
 		 * This is same as <&rcar_sound 0>
Signature · 1 line
2.18.0
#6 lore raw

PATCH v2 7/13 ARM: dts: rmobile: Extract SDHI extras on H3 and M3W ULCB

In reply to Marek Vasut

The SDHI nodes are missing features supported in upstream U-Boot, like mode support properties. Pull the extras into U-Boot specific DT until it hits mainline Linux, to make syncing of DTs easier.

Cc Nobuhiro Iwamatsu <[email protected]>

---
V2: Rebase on u-boot/master

---
 arch/arm/dts/r8a7795-h3ulcb-u-boot.dts | 21 +++++++++++++++++++++
 arch/arm/dts/r8a7796-m3ulcb-u-boot.dts | 21 +++++++++++++++++++++
 arch/arm/dts/ulcb.dtsi                 | 12 +++---------
 3 files changed, 45 insertions(+), 9 deletions(-)
arch/arm/dts/r8a7795-h3ulcb-u-boot.dts +21 -0
index 5cb5e9c6fb..ebbd234d78 100644
@@ -18,3 +18,24 @@
 		gpio-sstbz = <&gpio2 3 0>;
 	};
 };
+
+&sdhi2_pins {
+	groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
+	power-source = <1800>;
+};
+
+&sdhi2_pins_uhs {
+	groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
+};
+
+&sdhi0 {
+	sd-uhs-sdr12;
+	sd-uhs-sdr25;
+	sd-uhs-sdr104;
+	max-frequency = <208000000>;
+};
+
+&sdhi2 {
+	mmc-hs400-1_8v;
+	max-frequency = <200000000>;
+};
arch/arm/dts/r8a7796-m3ulcb-u-boot.dts +21 -0
index 78bd4f26bd..4e960081f9 100644
@@ -18,3 +18,24 @@
 		gpio-sstbz = <&gpio2 3 0>;
 	};
 };
+
+&sdhi2_pins {
+	groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
+	power-source = <1800>;
+};
+
+&sdhi2_pins_uhs {
+	groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
+};
+
+&sdhi0 {
+	sd-uhs-sdr12;
+	sd-uhs-sdr25;
+	sd-uhs-sdr104;
+	max-frequency = <208000000>;
+};
+
+&sdhi2 {
+	mmc-hs400-1_8v;
+	max-frequency = <200000000>;
+};
arch/arm/dts/ulcb.dtsi +3 -9
index c805265343..6f814845f8 100644
@@ -299,13 +299,13 @@
 	};
 
 	sdhi2_pins: sd2 {
-		groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
+		groups = "sdhi2_data8", "sdhi2_ctrl";
 		function = "sdhi2";
-		power-source = <1800>;
+		power-source = <3300>;
 	};
 
 	sdhi2_pins_uhs: sd2_uhs {
-		groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
+		groups = "sdhi2_data8", "sdhi2_ctrl";
 		function = "sdhi2";
 		power-source = <1800>;
 	};
@@ -387,12 +387,8 @@
 	vqmmc-supply = <&vccq_sdhi0>;
 	cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
 	bus-width = <4>;
-	sd-uhs-sdr12;
-	sd-uhs-sdr25;
 	sd-uhs-sdr50;
-	sd-uhs-sdr104;
 	status = "okay";
-	max-frequency = <208000000>;
 };
 
 &sdhi2 {
@@ -405,10 +401,8 @@
 	vqmmc-supply = <&reg_1p8v>;
 	bus-width = <8>;
 	mmc-hs200-1_8v;
-	mmc-hs400-1_8v;
 	non-removable;
 	status = "okay";
-	max-frequency = <200000000>;
 };
 
 &ssi1 {
Signature · 1 line
2.18.0
#7 lore raw

PATCH v2 8/13 ARM: dts: rmobile: Extract SDHI extras on H3, M3W, M3N Salvator-X

In reply to Marek Vasut

The SDHI nodes are missing features supported in upstream U-Boot, like mode support properties. Pull the extras into U-Boot specific DT until it hits mainline Linux, to make syncing of DTs easier.

Cc Nobuhiro Iwamatsu <[email protected]>

---
V2: Rebase on u-boot/master

---
 arch/arm/dts/r8a7795-salvator-x-u-boot.dts  | 28 +++++++++++++++++++
 arch/arm/dts/r8a7796-salvator-x-u-boot.dts  | 28 +++++++++++++++++++
 arch/arm/dts/r8a77965-salvator-x-u-boot.dts | 31 +++++++++++++++++++++
 arch/arm/dts/salvator-common.dtsi           | 17 ++---------
 4 files changed, 90 insertions(+), 14 deletions(-)
arch/arm/dts/r8a7795-salvator-x-u-boot.dts +28 -0
index 666fbf5a83..8be5e41a51 100644
@@ -7,3 +7,31 @@
 
 #include "r8a7795-salvator-x.dts"
 #include "r8a7795-u-boot.dtsi"
+
+&sdhi2_pins {
+	groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
+	power-source = <1800>;
+};
+
+&sdhi2_pins_uhs {
+	groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
+};
+
+&sdhi0 {
+	sd-uhs-sdr12;
+	sd-uhs-sdr25;
+	sd-uhs-sdr104;
+	max-frequency = <208000000>;
+};
+
+&sdhi2 {
+	mmc-hs400-1_8v;
+	max-frequency = <200000000>;
+};
+
+&sdhi3 {
+	sd-uhs-sdr12;
+	sd-uhs-sdr25;
+	sd-uhs-sdr104;
+	max-frequency = <208000000>;
+};
arch/arm/dts/r8a7796-salvator-x-u-boot.dts +28 -0
index 7a8ad27795..44b2f9fb37 100644
@@ -7,3 +7,31 @@
 
 #include "r8a7796-salvator-x.dts"
 #include "r8a7796-u-boot.dtsi"
+
+&sdhi2_pins {
+	groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
+	power-source = <1800>;
+};
+
+&sdhi2_pins_uhs {
+	groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
+};
+
+&sdhi0 {
+	sd-uhs-sdr12;
+	sd-uhs-sdr25;
+	sd-uhs-sdr104;
+	max-frequency = <208000000>;
+};
+
+&sdhi2 {
+	mmc-hs400-1_8v;
+	max-frequency = <200000000>;
+};
+
+&sdhi3 {
+	sd-uhs-sdr12;
+	sd-uhs-sdr25;
+	sd-uhs-sdr104;
+	max-frequency = <208000000>;
+};
arch/arm/dts/r8a77965-salvator-x-u-boot.dts +31 -0
index 06002b629a..9e0cd26f40 100644
@@ -7,3 +7,34 @@
 
 #include "r8a77965-salvator-x.dts"
 #include "r8a77965-u-boot.dtsi"
+
+&sdhi2_pins {
+	groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
+	power-source = <1800>;
+};
+
+&sdhi2_pins_uhs {
+	groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
+};
+
+&sdhi0 {
+	sd-uhs-sdr12;
+	sd-uhs-sdr25;
+	sd-uhs-sdr104;
+	max-frequency = <208000000>;
+	status = "okay";
+};
+
+&sdhi2 {
+	mmc-hs400-1_8v;
+	max-frequency = <200000000>;
+	status = "okay";
+};
+
+&sdhi3 {
+	sd-uhs-sdr12;
+	sd-uhs-sdr25;
+	sd-uhs-sdr104;
+	max-frequency = <208000000>;
+	status = "okay";
+};
arch/arm/dts/salvator-common.dtsi +3 -14
index b036a713ea..2a7f36abd2 100644
@@ -480,13 +480,13 @@
 	};
 
 	sdhi2_pins: sd2 {
-		groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
+		groups = "sdhi2_data8", "sdhi2_ctrl";
 		function = "sdhi2";
-		power-source = <1800>;
+		power-source = <3300>;
 	};
 
 	sdhi2_pins_uhs: sd2_uhs {
-		groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
+		groups = "sdhi2_data8", "sdhi2_ctrl";
 		function = "sdhi2";
 		power-source = <1800>;
 	};
@@ -618,13 +618,8 @@
 	cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
 	wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
 	bus-width = <4>;
-	sd-uhs-sdr12;
-	sd-uhs-sdr25;
 	sd-uhs-sdr50;
-	sd-uhs-sdr104;
 	status = "okay";
-
-	max-frequency = <208000000>;
 };
 
 &sdhi2 {
@@ -637,11 +632,9 @@
 	vqmmc-supply = <&reg_1p8v>;
 	bus-width = <8>;
 	mmc-hs200-1_8v;
-	mmc-hs400-1_8v;
 	non-removable;
 	fixed-emmc-driver-type = <1>;
 	status = "okay";
-	max-frequency = <200000000>;
 };
 
 &sdhi3 {
@@ -654,12 +647,8 @@
 	cd-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
 	wp-gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>;
 	bus-width = <4>;
-	sd-uhs-sdr12;
-	sd-uhs-sdr25;
 	sd-uhs-sdr50;
-	sd-uhs-sdr104;
 	status = "okay";
-	max-frequency = <208000000>;
 };
 
 &ssi1 {
Signature · 1 line
2.18.0
#8 lore raw

PATCH v2 9/13 ARM: dts: rmobile: Extract SDHI nodes on E3 Ebisu

In reply to Marek Vasut

The SDHI nodes are not in Linux 4.17 DTs in E3, pull them into U-Boot specific DT extras until they hit mainline Linux, to make syncing of DTs easier.

Cc Nobuhiro Iwamatsu <[email protected]>

---
V2: Rebase on u-boot/master

---
 arch/arm/dts/r8a77990-ebisu-u-boot.dts | 158 +++++++++++++++++++++++++
 arch/arm/dts/r8a77990-ebisu.dts        |  36 ------
 arch/arm/dts/r8a77990-u-boot.dtsi      |  24 ++++
 arch/arm/dts/r8a77990.dtsi             |  24 ----
 4 files changed, 182 insertions(+), 60 deletions(-)
arch/arm/dts/r8a77990-ebisu-u-boot.dts +158 -0
index 8d4ea88a91..17b749545f 100644
@@ -7,3 +7,161 @@
 
 #include "r8a77990-ebisu.dts"
 #include "r8a77990-u-boot.dtsi"
+
+/ {
+	reg_1p8v: regulator0 {
+		compatible = "regulator-fixed";
+		regulator-name = "fixed-1.8V";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
+	reg_3p3v: regulator1 {
+		compatible = "regulator-fixed";
+		regulator-name = "fixed-3.3V";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
+	vcc_sdhi0: regulator-vcc-sdhi0 {
+		compatible = "regulator-fixed";
+
+		regulator-name = "SDHI0 Vcc";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+
+		gpio = <&gpio5 17 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+	};
+
+	vccq_sdhi0: regulator-vccq-sdhi0 {
+		compatible = "regulator-gpio";
+
+		regulator-name = "SDHI0 VccQ";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <3300000>;
+
+		gpios = <&gpio5 18 GPIO_ACTIVE_HIGH>;
+		gpios-states = <1>;
+		states = <3300000 1
+			  1800000 0>;
+	};
+
+	vcc_sdhi1: regulator-vcc-sdhi1 {
+		compatible = "regulator-fixed";
+
+		regulator-name = "SDHI1 Vcc";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+
+		gpio = <&gpio0 4 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+	};
+
+	vccq_sdhi1: regulator-vccq-sdhi1 {
+		compatible = "regulator-gpio";
+
+		regulator-name = "SDHI1 VccQ";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <3300000>;
+
+		gpios = <&gpio3 15 GPIO_ACTIVE_HIGH>;
+		gpios-states = <1>;
+		states = <3300000 1
+			  1800000 0>;
+	};
+};
+
+&pfc {
+	sdhi0_pins: sd0 {
+		groups = "sdhi0_data4", "sdhi0_ctrl";
+		function = "sdhi0";
+		power-source = <3300>;
+	};
+
+	sdhi0_pins_uhs: sd0_uhs {
+		groups = "sdhi0_data4", "sdhi0_ctrl";
+		function = "sdhi0";
+		power-source = <1800>;
+	};
+
+	sdhi1_pins: sd1 {
+		groups = "sdhi1_data4", "sdhi1_ctrl";
+		function = "sdhi1";
+		power-source = <3300>;
+	};
+
+	sdhi1_pins_uhs: sd1_uhs {
+		groups = "sdhi1_data4", "sdhi1_ctrl";
+		function = "sdhi1";
+		power-source = <1800>;
+	};
+
+	sdhi3_pins: sd2 {
+		groups = "sdhi3_data8", "sdhi3_ctrl", "sdhi3_ds";
+		function = "sdhi3";
+		power-source = <1800>;
+	};
+
+	sdhi3_pins_uhs: sd2_uhs {
+		groups = "sdhi3_data8", "sdhi3_ctrl", "sdhi3_ds";
+		function = "sdhi3";
+		power-source = <1800>;
+	};
+};
+
+&sdhi0 {
+	/* full size SD */
+	pinctrl-0 = <&sdhi0_pins>;
+	pinctrl-1 = <&sdhi0_pins_uhs>;
+	pinctrl-names = "default", "state_uhs";
+
+	vmmc-supply = <&vcc_sdhi0>;
+	vqmmc-supply = <&vccq_sdhi0>;
+	cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
+	wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
+	bus-width = <4>;
+	sd-uhs-sdr12;
+	sd-uhs-sdr25;
+	sd-uhs-sdr50;
+	sd-uhs-sdr104;
+	status = "okay";
+	max-frequency = <208000000>;
+};
+
+&sdhi1 {
+	/* microSD */
+	pinctrl-0 = <&sdhi1_pins>;
+	pinctrl-1 = <&sdhi1_pins_uhs>;
+	pinctrl-names = "default", "state_uhs";
+
+	vmmc-supply = <&vcc_sdhi1>;
+	vqmmc-supply = <&vccq_sdhi1>;
+	cd-gpios = <&gpio3 14 GPIO_ACTIVE_LOW>;
+	bus-width = <4>;
+	sd-uhs-sdr12;
+	sd-uhs-sdr25;
+	sd-uhs-sdr50;
+	sd-uhs-sdr104;
+	status = "okay";
+	max-frequency = <208000000>;
+};
+
+&sdhi3 {
+	/* used for on-board 8bit eMMC */
+	pinctrl-0 = <&sdhi3_pins>;
+	pinctrl-1 = <&sdhi3_pins_uhs>;
+	pinctrl-names = "default", "state_uhs";
+
+	vmmc-supply = <&reg_3p3v>;
+	vqmmc-supply = <&reg_1p8v>;
+	bus-width = <8>;
+	mmc-hs200-1_8v;
+	mmc-hs400-1_8v;
+	non-removable;
+	status = "okay";
+};
arch/arm/dts/r8a77990-ebisu.dts +0 -36
index 0f269d0469..cea08d7488 100644
@@ -142,42 +142,6 @@
 		function = "scif_clk";
 	};
 
-	sdhi0_pins: sd0 {
-		groups = "sdhi0_data4", "sdhi0_ctrl";
-		function = "sdhi0";
-		power-source = <3300>;
-	};
-
-	sdhi0_pins_uhs: sd0_uhs {
-		groups = "sdhi0_data4", "sdhi0_ctrl";
-		function = "sdhi0";
-		power-source = <1800>;
-	};
-
-	sdhi1_pins: sd1 {
-		groups = "sdhi1_data4", "sdhi1_ctrl";
-		function = "sdhi1";
-		power-source = <3300>;
-	};
-
-	sdhi1_pins_uhs: sd1_uhs {
-		groups = "sdhi1_data4", "sdhi1_ctrl";
-		function = "sdhi1";
-		power-source = <1800>;
-	};
-
-	sdhi3_pins: sd2 {
-		groups = "sdhi3_data8", "sdhi3_ctrl", "sdhi3_ds";
-		function = "sdhi3";
-		power-source = <1800>;
-	};
-
-	sdhi3_pins_uhs: sd2_uhs {
-		groups = "sdhi3_data8", "sdhi3_ctrl", "sdhi3_ds";
-		function = "sdhi3";
-		power-source = <1800>;
-	};
-
 	usb0_pins: usb0 {
 		groups = "usb0";
 		function = "usb0";
arch/arm/dts/r8a77990-u-boot.dtsi +24 -0
index 052caa720d..288e57e4bc 100644
@@ -15,4 +15,28 @@
 		bank-width = <2>;
 		status = "disabled";
 	};
+
+	sdhi0: sd at ee100000 {
+		compatible = "renesas,sdhi-r8a77990";
+		reg = <0 0xee100000 0 0x2000>;
+		clocks = <&cpg CPG_MOD 314>;
+		max-frequency = <200000000>;
+		status = "disabled";
+	};
+
+	sdhi1: sd at ee120000 {
+		compatible = "renesas,sdhi-r8a77990";
+		reg = <0 0xee120000 0 0x2000>;
+		clocks = <&cpg CPG_MOD 313>;
+		max-frequency = <200000000>;
+		status = "disabled";
+	};
+
+	sdhi3: sd at ee160000 {
+		compatible = "renesas,sdhi-r8a77990";
+		reg = <0 0xee160000 0 0x2000>;
+		clocks = <&cpg CPG_MOD 311>;
+		max-frequency = <200000000>;
+		status = "disabled";
+	};
 };
arch/arm/dts/r8a77990.dtsi +0 -24
index 87625870e6..593d35a267 100644
@@ -223,30 +223,6 @@
 			reg = <0 0xe6160000 0 0x0200>;
 		};
 
-		sdhi0: sd at ee100000 {
-			compatible = "renesas,sdhi-r8a77990";
-			reg = <0 0xee100000 0 0x2000>;
-			clocks = <&cpg CPG_MOD 314>;
-			max-frequency = <200000000>;
-			status = "disabled";
-		};
-
-		sdhi1: sd at ee120000 {
-			compatible = "renesas,sdhi-r8a77990";
-			reg = <0 0xee120000 0 0x2000>;
-			clocks = <&cpg CPG_MOD 313>;
-			max-frequency = <200000000>;
-			status = "disabled";
-		};
-
-		sdhi3: sd at ee160000 {
-			compatible = "renesas,sdhi-r8a77990";
-			reg = <0 0xee160000 0 0x2000>;
-			clocks = <&cpg CPG_MOD 311>;
-			max-frequency = <200000000>;
-			status = "disabled";
-		};
-
 		sysc: system-controller at e6180000 {
 			compatible = "renesas,r8a77990-sysc";
 			reg = <0 0xe6180000 0 0x0400>;
Signature · 1 line
2.18.0
#9 lore raw

PATCH v2 10/13 ARM: dts: rmobile: Extract SCIF2 node on E3 Ebisu

In reply to Marek Vasut

The SCIF2 node is not in Linux 4.17 DTs on E3, pull it into U-Boot specific DT extras until it hits mainline Linux, to make syncing of DTs easier.

Cc Nobuhiro Iwamatsu <[email protected]>

---
V2: Rebase on u-boot/master

---
 arch/arm/dts/r8a77990-ebisu-u-boot.dts | 19 +++++++++++++++++++
 arch/arm/dts/r8a77990-ebisu.dts        | 16 ----------------
 2 files changed, 19 insertions(+), 16 deletions(-)
arch/arm/dts/r8a77990-ebisu-u-boot.dts +19 -0
index 17b749545f..b030d5c649 100644
@@ -77,6 +77,19 @@
 };
 
 &pfc {
+	pinctrl-0 = <&scif_clk_pins>;
+	pinctrl-names = "default";
+
+	scif2_pins: scif2 {
+		groups = "scif2_data_a";
+		function = "scif2";
+	};
+
+	scif_clk_pins: scif_clk {
+		groups = "scif_clk_a";
+		function = "scif_clk";
+	};
+
 	sdhi0_pins: sd0 {
 		groups = "sdhi0_data4", "sdhi0_ctrl";
 		function = "sdhi0";
@@ -114,6 +127,12 @@
 	};
 };
 
+&scif2 {
+	pinctrl-0 = <&scif2_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+};
+
 &sdhi0 {
 	/* full size SD */
 	pinctrl-0 = <&sdhi0_pins>;
arch/arm/dts/r8a77990-ebisu.dts +0 -16
index cea08d7488..e337c902cb 100644
@@ -122,9 +122,6 @@
 };
 
 &pfc {
-	pinctrl-0 = <&scif_clk_pins>;
-	pinctrl-names = "default";
-
 	avb_pins: avb {
 		mux {
 			groups = "avb_link", "avb_mii";
@@ -132,16 +129,6 @@
 		};
 	};
 
-	scif2_pins: scif2 {
-		groups = "scif2_data_a";
-		function = "scif2";
-	};
-
-	scif_clk_pins: scif_clk {
-		groups = "scif_clk_a";
-		function = "scif_clk";
-	};
-
 	usb0_pins: usb0 {
 		groups = "usb0";
 		function = "usb0";
@@ -208,8 +195,5 @@
 };
 
 &scif2 {
-	pinctrl-0 = <&scif2_pins>;
-	pinctrl-names = "default";
-
 	status = "okay";
 };
Signature · 1 line
2.18.0
#10 lore raw

PATCH v2 11/13 ARM: dts: rmobile: Extract i2c6 on M2W Porter

In reply to Marek Vasut

The i2c6 node is missing in mainline Linux thus far, pull it into U-Boot specific DT until it hits mainline Linux, to make syncing of DTs easier.

Cc Nobuhiro Iwamatsu <[email protected]>

---
V2: Rebase on u-boot/master

---
 arch/arm/dts/r8a7791-porter-u-boot.dts | 5 +++++
 arch/arm/dts/r8a7791-porter.dts        | 5 -----
 2 files changed, 5 insertions(+), 5 deletions(-)
arch/arm/dts/r8a7791-porter-u-boot.dts +5 -0
index 797fa9d6e7..275f6b4375 100644
@@ -11,3 +11,8 @@
 &scif0 {
 	u-boot,dm-pre-reloc;
 };
+
+&i2c6 {
+	status = "okay";
+	clock-frequency = <400000>;
+};
arch/arm/dts/r8a7791-porter.dts +0 -5
index fa9a57d770..f2d5723fbd 100644
@@ -372,11 +372,6 @@
 	clock-frequency = <400000>;
 };
 
-&i2c6 {
-	status = "okay";
-	clock-frequency = <400000>;
-};
-
 &sata0 {
 	status = "okay";
 };
Signature · 1 line
2.18.0
#11 lore raw

PATCH v2 12/13 ARM: dts: rmobile: Sync Gen2 DTs with Linux 4.19.6

In reply to Marek Vasut

Synchronize DTs with mainline Linux 4.19.6 ,
commit 96db90800c06d3fe3fa08eb6222fe201286bb778

Cc Nobuhiro Iwamatsu <[email protected]>

---
V2: Rebase on u-boot/master

---
 arch/arm/dts/r8a7790-lager.dts   |   8 ++-
 arch/arm/dts/r8a7790.dtsi        | 101 ++++++++++++++++++++++++++++---
 arch/arm/dts/r8a7791-koelsch.dts |  11 ++--
 arch/arm/dts/r8a7791-porter.dts  |  41 ++++++++++++-
 arch/arm/dts/r8a7791.dtsi        |  51 +++++++++++++++-
 arch/arm/dts/r8a7792-blanche.dts |   5 ++
 arch/arm/dts/r8a7792.dtsi        |  19 +++++-
 arch/arm/dts/r8a7793-gose.dts    |  11 ++--
 arch/arm/dts/r8a7793.dtsi        |  52 +++++++++++++++-
 arch/arm/dts/r8a7794-alt.dts     |  14 ++++-
 arch/arm/dts/r8a7794-silk.dts    |   8 ++-
 arch/arm/dts/r8a7794.dtsi        |  28 ++++++++-
 12 files changed, 309 insertions(+), 40 deletions(-)
arch/arm/dts/r8a7790-lager.dts +5 -3
index dcda98c6ae..50312e752e 100644
@@ -899,9 +899,6 @@
 	status = "okay";
 
 	port {
-		#address-cells = <1>;
-		#size-cells = <0>;
-
 		vin1ep0: endpoint {
 			remote-endpoint = <&adv7180>;
 			bus-width = <8>;
@@ -926,6 +923,11 @@
 	};
 };
 
+&rwdt {
+	timeout-sec = <60>;
+	status = "okay";
+};
+
 &ssi1 {
 	shared-pin;
 };
arch/arm/dts/r8a7790.dtsi +93 -8

165 lines not on this page · raw message

arch/arm/dts/r8a7791-koelsch.dts +5 -6
index be96bfd4f3..ce22db01fb 100644
@@ -640,6 +640,11 @@
 	status = "okay";
 };
 
+&rwdt {
+	timeout-sec = <60>;
+	status = "okay";
+};
+
 &sata0 {
 	status = "okay";
 };
@@ -847,9 +852,6 @@
 	pinctrl-names = "default";
 
 	port {
-		#address-cells = <1>;
-		#size-cells = <0>;
-
 		vin0ep2: endpoint {
 			remote-endpoint = <&adv7612_out>;
 			bus-width = <24>;
@@ -868,9 +870,6 @@
 	pinctrl-names = "default";
 
 	port {
-		#address-cells = <1>;
-		#size-cells = <0>;
-
 		vin1ep: endpoint {
 			remote-endpoint = <&adv7180>;
 			bus-width = <8>;
arch/arm/dts/r8a7791-porter.dts +38 -3

63 lines not on this page · raw message

arch/arm/dts/r8a7791.dtsi +48 -3

90 lines not on this page · raw message

arch/arm/dts/r8a7792-blanche.dts +5 -0
index 023d870bed..f92301290b 100644
@@ -236,6 +236,11 @@
 	};
 };
 
+&rwdt {
+	timeout-sec = <60>;
+	status = "okay";
+};
+
 &scif0 {
 	pinctrl-0 = <&scif0_pins>;
 	pinctrl-names = "default";
arch/arm/dts/r8a7792.dtsi +18 -1
index 8e26dede30..63a978ec81 100644
@@ -82,6 +82,13 @@
 		clock-frequency = <0>;
 	};
 
+	pmu {
+		compatible = "arm,cortex-a15-pmu";
+		interrupts-extended = <&gic GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
+				      <&gic GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
+		interrupt-affinity = <&cpu0>, <&cpu1>;
+	};
+
 	/* External SCIF clock */
 	scif_clk: scif {
 		compatible = "fixed-clock";
@@ -98,6 +105,16 @@
 		#size-cells = <2>;
 		ranges;
 
+		rwdt: watchdog at e6020000 {
+			compatible = "renesas,r8a7792-wdt",
+				     "renesas,rcar-gen2-wdt";
+			reg = <0 0xe6020000 0 0x0c>;
+			clocks = <&cpg CPG_MOD 402>;
+			power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+			resets = <&cpg 402>;
+			status = "disabled";
+		};
+
 		gpio0: gpio at e6050000 {
 			compatible = "renesas,gpio-r8a7792",
 				     "renesas,rcar-gen2-gpio";
@@ -338,7 +355,7 @@
 
 			smp-sram at 0 {
 				compatible = "renesas,smp-sram";
-				reg = <0 0x10>;
+				reg = <0 0x100>;
 			};
 		};
 
arch/arm/dts/r8a7793-gose.dts +5 -6
index 9c893458ce..6b2f3a4fd1 100644
@@ -596,6 +596,11 @@
 	status = "okay";
 };
 
+&rwdt {
+	timeout-sec = <60>;
+	status = "okay";
+};
+
 &scif0 {
 	pinctrl-0 = <&scif0_pins>;
 	pinctrl-names = "default";
@@ -755,9 +760,6 @@
 	pinctrl-names = "default";
 
 	port {
-		#address-cells = <1>;
-		#size-cells = <0>;
-
 		vin0ep2: endpoint {
 			remote-endpoint = <&adv7612_out>;
 			bus-width = <24>;
@@ -777,9 +779,6 @@
 	status = "okay";
 
 	port {
-		#address-cells = <1>;
-		#size-cells = <0>;
-
 		vin1ep: endpoint {
 			remote-endpoint = <&adv7180_out>;
 			bus-width = <8>;
arch/arm/dts/r8a7793.dtsi +49 -3

90 lines not on this page · raw message

arch/arm/dts/r8a7794-alt.dts +11 -3
index af3c67eb02..ef7e2a837d 100644
@@ -178,6 +178,12 @@
 				};
 			};
 		};
+
+		eeprom at 50 {
+			compatible = "renesas,r1ex24002", "atmel,24c02";
+			reg = <0x50>;
+			pagesize = <16>;
+		};
 	};
 
 	/*
@@ -327,6 +333,11 @@
 	status = "okay";
 };
 
+&rwdt {
+	timeout-sec = <60>;
+	status = "okay";
+};
+
 &sdhi0 {
 	pinctrl-0 = <&sdhi0_pins>;
 	pinctrl-1 = <&sdhi0_pins_uhs>;
@@ -372,9 +383,6 @@
 	pinctrl-names = "default";
 
 	port {
-		#address-cells = <1>;
-		#size-cells = <0>;
-
 		vin0ep: endpoint {
 			remote-endpoint = <&adv7180>;
 			bus-width = <8>;
arch/arm/dts/r8a7794-silk.dts +5 -3
index 50dad43c10..daec965889 100644
@@ -472,9 +472,6 @@
 	pinctrl-names = "default";
 
 	port {
-		#address-cells = <1>;
-		#size-cells = <0>;
-
 		vin0ep: endpoint {
 			remote-endpoint = <&adv7180>;
 			bus-width = <8>;
@@ -537,6 +534,11 @@
 	};
 };
 
+&rwdt {
+	timeout-sec = <60>;
+	status = "okay";
+};
+
 &ssi1 {
 	shared-pin;
 };
arch/arm/dts/r8a7794.dtsi +27 -1
index 0cc07b30d1..ea2ca4bdaf 100644
@@ -100,6 +100,13 @@
 		clock-frequency = <0>;
 	};
 
+	pmu {
+		compatible = "arm,cortex-a7-pmu";
+		interrupts-extended = <&gic GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
+				      <&gic GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
+		interrupt-affinity = <&cpu0>, <&cpu1>;
+	};
+
 	/* External SCIF clock */
 	scif_clk: scif {
 		compatible = "fixed-clock";
@@ -116,6 +123,16 @@
 		#size-cells = <2>;
 		ranges;
 
+		rwdt: watchdog at e6020000 {
+			compatible = "renesas,r8a7794-wdt",
+				     "renesas,rcar-gen2-wdt";
+			reg = <0 0xe6020000 0 0x0c>;
+			clocks = <&cpg CPG_MOD 402>;
+			power-domains = <&sysc R8A7794_PD_ALWAYS_ON>;
+			resets = <&cpg 402>;
+			status = "disabled";
+		};
+
 		gpio0: gpio at e6050000 {
 			compatible = "renesas,gpio-r8a7794",
 				     "renesas,rcar-gen2-gpio";
@@ -345,7 +362,7 @@
 
 			smp-sram at 0 {
 				compatible = "renesas,smp-sram";
-				reg = <0 0x10>;
+				reg = <0 0x100>;
 			};
 		};
 
@@ -1320,6 +1337,15 @@
 			resets = <&cpg 128>;
 		};
 
+		fdp1 at fe940000 {
+			compatible = "renesas,fdp1";
+			reg = <0 0xfe940000 0 0x2400>;
+			interrupts = <GIC_SPI 262 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 119>;
+			power-domains = <&sysc R8A7794_PD_ALWAYS_ON>;
+			resets = <&cpg 119>;
+		};
+
 		du: display at feb00000 {
 			compatible = "renesas,du-r8a7794";
 			reg = <0 0xfeb00000 0 0x40000>;
Signature · 1 line
2.18.0
#12 lore raw

PATCH v2 13/13 ARM: dts: rmobile: Sync Gen3 DTs with Linux 4.19.6

In reply to Marek Vasut

Synchronize DTs with mainline Linux 4.19.6 ,
commit 96db90800c06d3fe3fa08eb6222fe201286bb778

Cc Nobuhiro Iwamatsu <[email protected]>

---
V2: Rebase on u-boot/master

---
 arch/arm/dts/r8a7795-salvator-x.dts           |   48 +-
 arch/arm/dts/r8a7795.dtsi                     | 2512 ++++++++++-------
 arch/arm/dts/r8a7796-salvator-x.dts           |   30 +-
 arch/arm/dts/r8a7796.dtsi                     | 2453 +++++++++-------
 arch/arm/dts/r8a77965-salvator-x.dts          |   28 +
 arch/arm/dts/r8a77965.dtsi                    | 1970 ++++++++++---
 arch/arm/dts/r8a77970-eagle.dts               |  116 +
 arch/arm/dts/r8a77970.dtsi                    |  661 +++--
 arch/arm/dts/r8a77990-ebisu.dts               |  139 +-
 arch/arm/dts/r8a77990.dtsi                    |  205 +-
 arch/arm/dts/r8a77995-draak.dts               |  130 +-
 arch/arm/dts/r8a77995.dtsi                    |  976 ++++---
 arch/arm/dts/salvator-common.dtsi             |  217 +-
 arch/arm/dts/salvator-x.dtsi                  |    7 +-
 arch/arm/dts/ulcb.dtsi                        |   48 +-
 include/dt-bindings/clock/r8a77965-cpg-mssr.h |   62 +
 include/dt-bindings/clock/r8a77990-cpg-mssr.h |    5 +-
 include/dt-bindings/power/r8a77990-sysc.h     |    8 +-
 18 files changed, 6286 insertions(+), 3329 deletions(-)
 create mode 100644 include/dt-bindings/clock/r8a77965-cpg-mssr.h
arch/arm/dts/r8a7795-salvator-x.dts +47 -1
index 36373d6cce..446822f575 100644
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /*
- * Device Tree Source for the Salvator-X board
+ * Device Tree Source for the Salvator-X board with R-Car H3 ES2.0
  *
  * Copyright (C) 2015 Renesas Electronics Corp.
  */
@@ -53,6 +53,12 @@
 	status = "okay";
 };
 
+&sound_card {
+	dais = <&rsnd_port0	/* ak4613 */
+		&rsnd_port1	/* HDMI0  */
+		&rsnd_port2>;	/* HDMI1  */
+};
+
 &hdmi0 {
 	status = "okay";
 
@@ -63,6 +69,12 @@
 				remote-endpoint = <&hdmi0_con>;
 			};
 		};
+		port at 2 {
+			reg = <2>;
+			dw_hdmi0_snd_in: endpoint {
+				remote-endpoint = <&rsnd_endpoint1>;
+			};
+		};
 	};
 };
 
@@ -80,6 +92,12 @@
 				remote-endpoint = <&hdmi1_con>;
 			};
 		};
+		port at 2 {
+			reg = <2>;
+			dw_hdmi1_snd_in: endpoint {
+				remote-endpoint = <&rsnd_endpoint2>;
+			};
+		};
 	};
 };
 
@@ -91,6 +109,34 @@
 	status = "okay";
 };
 
+&rcar_sound {
+	ports {
+		/* rsnd_port0 is on salvator-common */
+		rsnd_port1: port at 1 {
+			rsnd_endpoint1: endpoint {
+				remote-endpoint = <&dw_hdmi0_snd_in>;
+
+				dai-format = "i2s";
+				bitclock-master = <&rsnd_endpoint1>;
+				frame-master = <&rsnd_endpoint1>;
+
+				playback = <&ssi2>;
+			};
+		};
+		rsnd_port2: port at 2 {
+			rsnd_endpoint2: endpoint {
+				remote-endpoint = <&dw_hdmi1_snd_in>;
+
+				dai-format = "i2s";
+				bitclock-master = <&rsnd_endpoint2>;
+				frame-master = <&rsnd_endpoint2>;
+
+				playback = <&ssi3>;
+			};
+		};
+	};
+};
+
 &pfc {
 	usb2_pins: usb2 {
 		groups = "usb2";
arch/arm/dts/r8a7795.dtsi +1456 -1056

2,923 lines not on this page · raw message

arch/arm/dts/r8a7796-salvator-x.dts +29 -1
index 62aa27dbfd..052d72acc8 100644

Lines of this file are not shown. View the raw message.

arch/arm/dts/r8a7796.dtsi +1437 -1016

2,453 lines not on this page · raw message

arch/arm/dts/r8a77965-salvator-x.dts +28 -0
index 75d890d91d..340a3c72b6 100644

Lines of this file are not shown. View the raw message.

arch/arm/dts/r8a77965.dtsi +1501 -469

1,970 lines not on this page · raw message

arch/arm/dts/r8a77970-eagle.dts +116 -0

116 lines not on this page · raw message

arch/arm/dts/r8a77970.dtsi +468 -193

661 lines not on this page · raw message

arch/arm/dts/r8a77990-ebisu.dts +21 -118

139 lines not on this page · raw message

arch/arm/dts/r8a77990.dtsi +158 -47

205 lines not on this page · raw message

arch/arm/dts/r8a77995-draak.dts +129 -1

130 lines not on this page · raw message

arch/arm/dts/r8a77995.dtsi +595 -381

976 lines not on this page · raw message

arch/arm/dts/salvator-common.dtsi +189 -28

217 lines not on this page · raw message

arch/arm/dts/salvator-x.dtsi +3 -4
index 468868c8ed..ddee50e646 100644

Lines of this file are not shown. View the raw message.

arch/arm/dts/ulcb.dtsi +38 -10

48 lines not on this page · raw message

include/dt-bindings/clock/r8a77965-cpg-mssr.h new file +62 -0

62 lines not on this page · raw message

include/dt-bindings/clock/r8a77990-cpg-mssr.h +2 -3
index c806fce449..a596a482f3 100644

Lines of this file are not shown. View the raw message.

include/dt-bindings/power/r8a77990-sysc.h +7 -1
index 1409c73a57..944d85beec 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.18.0

Part of the diff is not shown here. View the raw message.