Skip to contentSkip to conversation

arm64: dts: renesas: Break out common board support

PATCH Superseded Geert Uytterhoeven 5 participants 16 messages Apr 21, 2017 – Apr 28, 2017 1 message not in the archive

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Geert Uytterhoeven

author maintainer
#0 lore raw

cover arm64: dts: renesas: Break out common board support

Hi all,

The Renesas Salvator-X and ULCB development board can be equipped with either an R-Car H3 or M3-W SiP, which are pin-compatible. All boards use separate DTBs, but currently there's no sharing of board-specific devices in DTS.

This series reduces duplication by extracting common board support into their own .dtsi files. As the level of support varies across boards and SoCs, this requires the addition of a few external clocks and placeholder devices on R-Car M3-W, so the common board support DTS can refer to them.

- Patches 1 and 2 add the external audio and PCIe bus clocks on R-Car M3-W, which are present in r8a7795.dtsi, and used in r8a7795-salvator-x.dts,
- RFC patch 3 adds placeholders for devices that are not yet supported and/or tested on R-Car M3-W, but used on R-Car H3,
- RFC patch 4 extracts common Salvator-X board support,
- RFC patch 5 extracts common ULCB board support.

For R-Car H3 based boards, there are no functional changes. For R-Car M3-W based boards, some new devices are now described in DT.

Dependencies:
- renesas-devel-20170420-v4.11-rc7,
- Patches 1 and 2 can be applied as-is,
- Patches 4 and 5 depend on "[PATCH 0/8] arm64: dts: renesas: Break out R-Car H3 and M3-W SiP"
(http://www.spinics.net/lists/devicetree/msg173820.html).

DTB changes have been inspected using scripts/dtc/dtx_diff. This has been tested on Salvator-X (both H3 and M3-W).
This has not been tested on H3ULCB and M3ULCB due to lack of hardware.

Thanks for your comments!

Geert Uytterhoeven (5):
arm64: renesas: r8a7796: Add external audio clocks
arm64: renesas: r8a7796: Add external PCIe bus clock [RFC] arm64: dts: r8a7796: Add placeholders for various devices [RFC] arm64: dts: renesas: Extract common Salvator-X board support [RFC] arm64: dts: renesas: Extract common ULCB board support

 arch/arm64/boot/dts/renesas/r8a7795-h3ulcb.dts     | 341 +-------------
 arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 522 +--------------------
 arch/arm64/boot/dts/renesas/r8a7796-m3ulcb.dts     | 201 +-------
 arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 259 +---------
 arch/arm64/boot/dts/renesas/r8a7796.dtsi           | 112 +++++
 .../{r8a7795-salvator-x.dts => salvator-x.dtsi}    | 372 +++++++--------
 .../dts/renesas/{r8a7795-h3ulcb.dts => ulcb.dtsi}  | 243 +++++-----
 7 files changed, 421 insertions(+), 1629 deletions(-)
 copy arch/arm64/boot/dts/renesas/{r8a7795-salvator-x.dts => salvator-x.dtsi} (95%)
 copy arch/arm64/boot/dts/renesas/{r8a7795-h3ulcb.dts => ulcb.dtsi} (96%)
Signature · 12 lines
2.7.4

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

A message that is not in the archive (sent off-list or not yet received): 1492779321-23939-1-git-send-email-geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org

#2 lore raw

PATCH 1/5 arm64: renesas: r8a7796: Add external audio clocks

Add the external audio clocks as zero Hz fixed-frequency clocks. Boards that provide these clocks should override them.

Based on commit 623197b90c7aa97c ("arm64: renesas: r8a7795: Sound SSI PIO support").

---
 arch/arm64/boot/dts/renesas/r8a7796.dtsi | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
arch/arm64/boot/dts/renesas/r8a7796.dtsi +23 -0
index 2ec1ed5f499165ad..101cd41d693a7ab5 100644
@@ -120,6 +120,29 @@
 		clock-frequency = <0>;
 	};
 
+	/*
+	 * The external audio clocks are configured as 0 Hz fixed frequency
+	 * clocks by default.
+	 * Boards that provide audio clocks should override them.
+	 */
+	audio_clk_a: audio_clk_a {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <0>;
+	};
+
+	audio_clk_b: audio_clk_b {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <0>;
+	};
+
+	audio_clk_c: audio_clk_c {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <0>;
+	};
+
 	/* External CAN clock - to be overridden by boards that provide it */
 	can_clk: can {
 		compatible = "fixed-clock";
Signature · 6 lines
2.7.4

--
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
#3 lore raw

PATCH 1/5 arm64: renesas: r8a7796: Add external audio clocks

Hi Geert

Quoted 8 lines

Add the external audio clocks as zero Hz fixed-frequency clocks. Boards that provide these clocks should override them.

Based on commit 623197b90c7aa97c ("arm64: renesas: r8a7795: Sound SSI PIO support").

---

Quoted 40 lines
 arch/arm64/boot/dts/renesas/r8a7796.dtsi | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
arch/arm64/boot/dts/renesas/r8a7796.dtsi +23 -0
index 2ec1ed5f499165ad..101cd41d693a7ab5 100644
@@ -120,6 +120,29 @@
 		clock-frequency = <0>;
 	};
 
+	/*
+	 * The external audio clocks are configured as 0 Hz fixed frequency
+	 * clocks by default.
+	 * Boards that provide audio clocks should override them.
+	 */
+	audio_clk_a: audio_clk_a {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <0>;
+	};
+
+	audio_clk_b: audio_clk_b {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <0>;
+	};
+
+	audio_clk_c: audio_clk_c {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <0>;
+	};
+
 	/* External CAN clock - to be overridden by boards that provide it */
 	can_clk: can {
 		compatible = "fixed-clock";
Signature · 1 line
2.7.4
#4 lore raw

PATCH 3/5 arm64: dts: r8a7796: Add placeholders for various devices

In reply to a message not in the archive

Add empty device nodes serving as placeholders for devices that are not yet supported and/or tested on R-Car M3-W, but are supported and used on Salvator-X or H3ULCB boards equipped with an R-Car H3 SoC.

---
 arch/arm64/boot/dts/renesas/r8a7796.dtsi | 82 ++++++++++++++++++++++++++++++++
 1 file changed, 82 insertions(+)
arch/arm64/boot/dts/renesas/r8a7796.dtsi +82 -0
index 8e2aab8b6b103cc9..60a4289d0b14fe50 100644
@@ -961,6 +961,38 @@
 			dma-channels = <16>;
 		};
 
+		hsusb: usb@e6590000 {
+			/* placeholder */
+		};
+
+		xhci0: usb@ee000000 {
+			/* placeholder */
+		};
+
+		ohci0: usb@ee080000 {
+			/* placeholder */
+		};
+
+		ehci0: usb@ee080100 {
+			/* placeholder */
+		};
+
+		usb2_phy0: usb-phy@ee080200 {
+			/* placeholder */
+		};
+
+		ohci1: usb@ee0a0000 {
+			/* placeholder */
+		};
+
+		ehci1: usb@ee0a0100 {
+			/* placeholder */
+		};
+
+		usb2_phy1: usb-phy@ee0a0200 {
+			/* placeholder */
+		};
+
 		sdhi0: sd@ee100000 {
 			compatible = "renesas,sdhi-r8a7796";
 			reg = <0 0xee100000 0 0x2000>;
@@ -1063,5 +1095,55 @@
 				};
 			};
 		};
+
+		rcar_sound: sound@ec500000 {
+			/* placeholder */
+
+			rcar_sound,dvc {
+				dvc0: dvc-0 {
+				};
+
+				dvc1: dvc-1 {
+				};
+			};
+
+			rcar_sound,src {
+				src0: src-0 {
+				};
+				src1: src-1 {
+				};
+			};
+
+			rcar_sound,ssi {
+				ssi0: ssi-0 {
+				};
+
+				ssi1: ssi-1 {
+				};
+			};
+		};
+
+		pciec0: pcie@fe000000 {
+			/* placeholder */
+		};
+
+		pciec1: pcie@ee800000 {
+			/* placeholder */
+		};
+
+		du: display@feb00000 {
+			/* placeholder */
+
+			ports {
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				port@0 {
+					reg = <0>;
+					du_out_rgb: endpoint {
+					};
+				};
+			};
+		};
 	};
 };
Signature · 6 lines
2.7.4

--
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
author maintainer
#5 lore raw

PATCH 2/5 arm64: renesas: r8a7796: Add external PCIe bus clock

In reply to Geert Uytterhoeven

Add the external PCIe bus clock as a zero Hz fixed-frequency clock. Boards that provide this clock should override it.

Based on r8a7795.dtsi.

---
 arch/arm64/boot/dts/renesas/r8a7796.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm64/boot/dts/renesas/r8a7796.dtsi +7 -0
index 101cd41d693a7ab5..8e2aab8b6b103cc9 100644
@@ -157,6 +157,13 @@
 		clock-frequency = <0>;
 	};
 
+	/* External PCIe clock - can be overridden by the board */
+	pcie_bus_clk: pcie_bus {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <0>;
+	};
+
 	soc {
 		compatible = "simple-bus";
 		interrupt-parent = <&gic>;
Signature · 1 line
2.7.4
author maintainer
#6 lore raw

PATCH 4/5 arm64: dts: renesas: Extract common Salvator-X board support

In reply to Geert Uytterhoeven

The Renesas Salvator-X development board can be equipped with either an R-Car H3 or M3-W SiP, which are pin-compatible. Both boards use different DTBs.

Reduce duplication by extracting common Salvator-X board support into its own .dtsi file. References to SoC-specific clocks are handled through cpp definitions. Sort device nodes while at it.

For boards with an R-Car H3 SiP, there are no functional changes.

For boards with an R-Car M3-W SiP, the following new devices are now described in DT:
- External audio, CAN, and PCIe clocks,
- USB Vbus regulator,
- CS2000 clock generator,
- AK4613 Audio Codec,
- VGA.

---
 arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 522 +--------------------
 arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 259 +---------
 .../{r8a7795-salvator-x.dts => salvator-x.dtsi}    | 372 +++++++--------
 3 files changed, 183 insertions(+), 970 deletions(-)
 copy arch/arm64/boot/dts/renesas/{r8a7795-salvator-x.dts => salvator-x.dtsi} (95%)
arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts +6 -516
index e5b9409bf2d218d8..c2fab17a3c2e87f7 100644
@@ -31,549 +31,39 @@
  *	amixer set "DVC Out" 100%  // Volume Up
  */
 
+#define CPG_AUDIO_CLK_I		R8A7795_CLK_S0D4
+
 /dts-v1/;
 #include "r8j7795-4x1g.dtsi"
-#include <dt-bindings/gpio/gpio.h>
+#include "salvator-x.dtsi"
 
 / {
 	model = "Renesas Salvator-X board based on r8j7795";
 	compatible = "renesas,salvator-x", "renesas,r8j7795", "renesas,r8a7795";
-
-	aliases {
-		serial0 = &scif2;
-		serial1 = &scif1;
-		ethernet0 = &avb;
-	};
-
-	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
-		stdout-path = "serial0:115200n8";
-	};
-
-	x12_clk: x12 {
-		compatible = "fixed-clock";
-		#clock-cells = <0>;
-		clock-frequency = <24576000>;
-	};
-
-	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 2 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 1 GPIO_ACTIVE_HIGH>;
-		gpios-states = <1>;
-		states = <3300000 1
-			  1800000 0>;
-	};
-
-	vcc_sdhi3: regulator-vcc-sdhi3 {
-		compatible = "regulator-fixed";
-
-		regulator-name = "SDHI3 Vcc";
-		regulator-min-microvolt = <3300000>;
-		regulator-max-microvolt = <3300000>;
-
-		gpio = <&gpio3 15 GPIO_ACTIVE_HIGH>;
-		enable-active-high;
-	};
-
-	vccq_sdhi3: regulator-vccq-sdhi3 {
-		compatible = "regulator-gpio";
-
-		regulator-name = "SDHI3 VccQ";
-		regulator-min-microvolt = <1800000>;
-		regulator-max-microvolt = <3300000>;
-
-		gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
-		gpios-states = <1>;
-		states = <3300000 1
-			  1800000 0>;
-	};
-
-	vbus0_usb2: regulator-vbus0-usb2 {
-		compatible = "regulator-fixed";
-
-		regulator-name = "USB20_VBUS0";
-		regulator-min-microvolt = <5000000>;
-		regulator-max-microvolt = <5000000>;
-
-		gpio = <&gpio6 16 GPIO_ACTIVE_HIGH>;
-		enable-active-high;
-	};
-
-	audio_clkout: audio_clkout {
-		/*
-		 * This is same as <&rcar_sound 0>
-		 * but needed to avoid cs2000/rcar_sound probe dead-lock
-		 */
-		compatible = "fixed-clock";
-		#clock-cells = <0>;
-		clock-frequency = <11289600>;
-	};
-
-	rsnd_ak4613: sound {
-		compatible = "simple-audio-card";
-
-		simple-audio-card,format = "left_j";
-		simple-audio-card,bitclock-master = <&sndcpu>;
-		simple-audio-card,frame-master = <&sndcpu>;
-
-		sndcpu: simple-audio-card,cpu {
-			sound-dai = <&rcar_sound>;
-		};
-
-		sndcodec: simple-audio-card,codec {
-			sound-dai = <&ak4613>;
-		};
-	};
-
-	vga-encoder {
-		compatible = "adi,adv7123";
-
-		ports {
-			#address-cells = <1>;
-			#size-cells = <0>;
-
-			port@0 {
-				reg = <0>;
-				adv7123_in: endpoint {
-					remote-endpoint = <&du_out_rgb>;
-				};
-			};
-			port@1 {
-				reg = <1>;
-				adv7123_out: endpoint {
-					remote-endpoint = <&vga_in>;
-				};
-			};
-		};
-	};
-
-	vga {
-		compatible = "vga-connector";
-
-		port {
-			vga_in: endpoint {
-				remote-endpoint = <&adv7123_out>;
-			};
-		};
-	};
 };
 
-&du {
-	pinctrl-0 = <&du_pins>;
-	pinctrl-names = "default";
+&ehci2 {
 	status = "okay";
-
-	ports {
-		port@0 {
-			endpoint {
-				remote-endpoint = <&adv7123_in>;
-			};
-		};
-		port@3 {
-			lvds_connector: endpoint {
-			};
-		};
-	};
 };
 
-&extal_clk {
-	clock-frequency = <16666666>;
-};
-
-&extalr_clk {
-	clock-frequency = <32768>;
+&ohci2 {
+	status = "okay";
 };
 
 &pfc {
-	pinctrl-0 = <&scif_clk_pins>;
-	pinctrl-names = "default";
-
-	scif1_pins: scif1 {
-		groups = "scif1_data_a", "scif1_ctrl";
-		function = "scif1";
-	};
-	scif2_pins: scif2 {
-		groups = "scif2_data_a";
-		function = "scif2";
-	};
-	scif_clk_pins: scif_clk {
-		groups = "scif_clk_a";
-		function = "scif_clk";
-	};
-
-	i2c2_pins: i2c2 {
-		groups = "i2c2_a";
-		function = "i2c2";
-	};
-
-	avb_pins: avb {
-		mux {
-			groups = "avb_link", "avb_phy_int", "avb_mdc",
-				 "avb_mii";
-			function = "avb";
-		};
-
-		pins_mdc {
-			groups = "avb_mdc";
-			drive-strength = <24>;
-		};
-
-		pins_mii_tx {
-			pins = "PIN_AVB_TX_CTL", "PIN_AVB_TXC", "PIN_AVB_TD0",
-			       "PIN_AVB_TD1", "PIN_AVB_TD2", "PIN_AVB_TD3";
-			drive-strength = <12>;
-		};
-	};
-
-	du_pins: du {
-		groups = "du_rgb888", "du_sync", "du_oddf", "du_clk_out_0";
-		function = "du";
-	};
-
-	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>;
-	};
-
-	sdhi2_pins: sd2 {
-		groups = "sdhi2_data8", "sdhi2_ctrl";
-		function = "sdhi2";
-		power-source = <3300>;
-	};
-
-	sdhi2_pins_uhs: sd2_uhs {
-		groups = "sdhi2_data8", "sdhi2_ctrl";
-		function = "sdhi2";
-		power-source = <1800>;
-	};
-
-	sdhi3_pins: sd3 {
-		groups = "sdhi3_data4", "sdhi3_ctrl";
-		function = "sdhi3";
-		power-source = <3300>;
-	};
-
-	sdhi3_pins_uhs: sd3_uhs {
-		groups = "sdhi3_data4", "sdhi3_ctrl";
-		function = "sdhi3";
-		power-source = <1800>;
-	};
-
-	sound_pins: sound {
-		groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
-		function = "ssi";
-	};
-
-	sound_clk_pins: sound_clk {
-		groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
-			 "audio_clkout_a", "audio_clkout3_a";
-		function = "audio_clk";
-	};
-
-	usb0_pins: usb0 {
-		groups = "usb0";
-		function = "usb0";
-	};
-
-	usb1_pins: usb1 {
-		mux {
-			groups = "usb1";
-			function = "usb1";
-		};
-
-		ovc {
-			pins = "GP_6_27";
-			bias-pull-up;
-		};
-
-		pwen {
-			pins = "GP_6_26";
-			bias-pull-down;
-		};
-	};
-
 	usb2_pins: usb2 {
 		groups = "usb2";
 		function = "usb2";
 	};
 };
 
-&scif1 {
-	pinctrl-0 = <&scif1_pins>;
-	pinctrl-names = "default";
-
-	uart-has-rtscts;
-	status = "okay";
-};
-
-&scif2 {
-	pinctrl-0 = <&scif2_pins>;
-	pinctrl-names = "default";
-
-	status = "okay";
-};
-
-&scif_clk {
-	clock-frequency = <14745600>;
-};
-
-&i2c2 {
-	pinctrl-0 = <&i2c2_pins>;
-	pinctrl-names = "default";
-
-	status = "okay";
-
-	clock-frequency = <100000>;
-
-	ak4613: codec@10 {
-		compatible = "asahi-kasei,ak4613";
-		#sound-dai-cells = <0>;
-		reg = <0x10>;
-		clocks = <&rcar_sound 3>;
-
-		asahi-kasei,in1-single-end;
-		asahi-kasei,in2-single-end;
-		asahi-kasei,out1-single-end;
-		asahi-kasei,out2-single-end;
-		asahi-kasei,out3-single-end;
-		asahi-kasei,out4-single-end;
-		asahi-kasei,out5-single-end;
-		asahi-kasei,out6-single-end;
-	};
-
-	cs2000: clk_multiplier@4f {
-		#clock-cells = <0>;
-		compatible = "cirrus,cs2000-cp";
-		reg = <0x4f>;
-		clocks = <&audio_clkout>, <&x12_clk>;
-		clock-names = "clk_in", "ref_clk";
-
-		assigned-clocks = <&cs2000>;
-		assigned-clock-rates = <24576000>; /* 1/1 divide */
-	};
-};
-
-&rcar_sound {
-	pinctrl-0 = <&sound_pins &sound_clk_pins>;
-	pinctrl-names = "default";
-
-	/* Single DAI */
-	#sound-dai-cells = <0>;
-
-	/* audio_clkout0/1/2/3 */
-	#clock-cells = <1>;
-	clock-frequency = <11289600>;
-
-	status = "okay";
-
-	/* update <audio_clk_b> to <cs2000> */
-	clocks = <&cpg CPG_MOD 1005>,
-		 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
-		 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
-		 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
-		 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
-		 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
-		 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
-		 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
-		 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
-		 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
-		 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
-		 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
-		 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
-		 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
-		 <&audio_clk_a>, <&cs2000>,
-		 <&audio_clk_c>,
-		 <&cpg CPG_CORE R8A7795_CLK_S0D4>;
-
-	rcar_sound,dai {
-		dai0 {
-			playback = <&ssi0 &src0 &dvc0>;
-			capture  = <&ssi1 &src1 &dvc1>;
-		};
-	};
-};
-
 &sata {
 	status = "okay";
 };
 
-&sdhi0 {
-	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-sdr50;
-	status = "okay";
-};
-
-&sdhi2 {
-	/* used for on-board 8bit eMMC */
-	pinctrl-0 = <&sdhi2_pins>;
-	pinctrl-1 = <&sdhi2_pins_uhs>;
-	pinctrl-names = "default", "state_uhs";
-
-	vmmc-supply = <&reg_3p3v>;
-	vqmmc-supply = <&reg_1p8v>;
-	bus-width = <8>;
-	mmc-hs200-1_8v;
-	non-removable;
-	status = "okay";
-};
-
-&sdhi3 {
-	pinctrl-0 = <&sdhi3_pins>;
-	pinctrl-1 = <&sdhi3_pins_uhs>;
-	pinctrl-names = "default", "state_uhs";
-
-	vmmc-supply = <&vcc_sdhi3>;
-	vqmmc-supply = <&vccq_sdhi3>;
-	cd-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
-	wp-gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>;
-	bus-width = <4>;
-	sd-uhs-sdr50;
-	status = "okay";
-};
-
-&ssi1 {
-	shared-pin;
-};
-
-&wdt0 {
-	timeout-sec = <60>;
-	status = "okay";
-};
-
-&audio_clk_a {
-	clock-frequency = <22579200>;
-};
-
-&i2c_dvfs {
-	status = "okay";
-};
-
-&avb {
-	pinctrl-0 = <&avb_pins>;
-	pinctrl-names = "default";
-	renesas,no-ether-link;
-	phy-handle = <&phy0>;
-	status = "okay";
-
-	phy0: ethernet-phy@0 {
-		rxc-skew-ps = <1500>;
-		reg = <0>;
-		interrupt-parent = <&gpio2>;
-		interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
-	};
-};
-
-&xhci0 {
-	status = "okay";
-};
-
-&usb2_phy0 {
-	pinctrl-0 = <&usb0_pins>;
-	pinctrl-names = "default";
-
-	vbus-supply = <&vbus0_usb2>;
-	status = "okay";
-};
-
-&usb2_phy1 {
-	pinctrl-0 = <&usb1_pins>;
-	pinctrl-names = "default";
-
-	status = "okay";
-};
-
 &usb2_phy2 {
 	pinctrl-0 = <&usb2_pins>;
 	pinctrl-names = "default";
 
 	status = "okay";
 };
-
-&ehci0 {
-	status = "okay";
-};
-
-&ehci1 {
-	status = "okay";
-};
-
-&ehci2 {
-	status = "okay";
-};
-
-&ohci0 {
-	status = "okay";
-};
-
-&ohci1 {
-	status = "okay";
-};
-
-&ohci2 {
-	status = "okay";
-};
-
-&hsusb {
-	status = "okay";
-};
-
-&pcie_bus_clk {
-	clock-frequency = <100000000>;
-};
-
-&pciec0 {
-	status = "okay";
-};
-
-&pciec1 {
-	status = "okay";
-};
arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts +3 -256

269 lines not on this page · raw message

arch/arm64/boot/dts/renesas/salvator-x.dtsi renamed from arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts +174 -198

473 lines not on this page · raw message

Signature · 1 line
2.7.4
author maintainer
#7 lore raw

PATCH 5/5 arm64: dts: renesas: Extract common ULCB board support

In reply to Geert Uytterhoeven

The Renesas ULCB development board can be equipped with either an R-Car H3 or M3-W SiP, which are pin-compatible. Both boards use different DTBs.

Reduce duplication by extracting common ULCB board support into its own .dtsi file. References to SoC-specific clocks are handled through cpp definitions. Sort device nodes while at it.

For H3ULCB, there are no functional changes.

For M3ULCB, the following new devices are now described in DT:
- External audio, CAN, and PCIe clocks,
- CS2000 clock generator,
- AK4613 Audio Codec.

---
Untested due to lack of hardware, but dtx_diff is my friend.

---
 arch/arm64/boot/dts/renesas/r8a7795-h3ulcb.dts     | 341 +--------------------
 arch/arm64/boot/dts/renesas/r8a7796-m3ulcb.dts     | 201 +-----------
 .../dts/renesas/{r8a7795-h3ulcb.dts => ulcb.dtsi}  | 243 ++++++++-------
 3 files changed, 126 insertions(+), 659 deletions(-)
 copy arch/arm64/boot/dts/renesas/{r8a7795-h3ulcb.dts => ulcb.dtsi} (96%)
arch/arm64/boot/dts/renesas/r8a7795-h3ulcb.dts +3 -338
index fe7eca39490eb1a2..534a9d1bf2e6b1fd 100644
@@ -9,348 +9,13 @@
  * kind, whether express or implied.
  */
 
+#define CPG_AUDIO_CLK_I	R8A7795_CLK_S0D4
+
 /dts-v1/;
 #include "r8j7795-4x1g.dtsi"
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
+#include "ulcb.dtsi"
 
 / {
 	model = "Renesas H3ULCB board based on r8j7795";
 	compatible = "renesas,h3ulcb", "renesas,r8j7795", "renesas,r8a7795";
-
-	aliases {
-		serial0 = &scif2;
-		ethernet0 = &avb;
-	};
-
-	chosen {
-		stdout-path = "serial0:115200n8";
-	};
-
-	leds {
-		compatible = "gpio-leds";
-
-		led5 {
-			gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>;
-		};
-		led6 {
-			gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>;
-		};
-	};
-
-	keyboard {
-		compatible = "gpio-keys";
-
-		key-1 {
-			linux,code = <KEY_1>;
-			label = "SW3";
-			wakeup-source;
-			debounce-interval = <20>;
-			gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
-		};
-	};
-
-	x12_clk: x12 {
-		compatible = "fixed-clock";
-		#clock-cells = <0>;
-		clock-frequency = <24576000>;
-	};
-
-	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 2 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 1 GPIO_ACTIVE_HIGH>;
-		gpios-states = <1>;
-		states = <3300000 1
-			  1800000 0>;
-	};
-
-	audio_clkout: audio-clkout {
-		/*
-		 * This is same as <&rcar_sound 0>
-		 * but needed to avoid cs2000/rcar_sound probe dead-lock
-		 */
-		compatible = "fixed-clock";
-		#clock-cells = <0>;
-		clock-frequency = <11289600>;
-	};
-
-	rsnd_ak4613: sound {
-		compatible = "simple-audio-card";
-
-		simple-audio-card,format = "left_j";
-		simple-audio-card,bitclock-master = <&sndcpu>;
-		simple-audio-card,frame-master = <&sndcpu>;
-
-		sndcpu: simple-audio-card,cpu {
-			sound-dai = <&rcar_sound>;
-		};
-
-		sndcodec: simple-audio-card,codec {
-			sound-dai = <&ak4613>;
-		};
-	};
-};
-
-&extal_clk {
-	clock-frequency = <16666666>;
-};
-
-&extalr_clk {
-	clock-frequency = <32768>;
-};
-
-&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";
-	};
-
-	i2c2_pins: i2c2 {
-		groups = "i2c2_a";
-		function = "i2c2";
-	};
-
-	avb_pins: avb {
-		groups = "avb_mdc";
-		function = "avb";
-	};
-
-	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>;
-	};
-
-	sdhi2_pins: sd2 {
-		groups = "sdhi2_data8", "sdhi2_ctrl";
-		function = "sdhi2";
-		power-source = <3300>;
-	};
-
-	sdhi2_pins_uhs: sd2_uhs {
-		groups = "sdhi2_data8", "sdhi2_ctrl";
-		function = "sdhi2";
-		power-source = <1800>;
-	};
-
-	sound_pins: sound {
-		groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
-		function = "ssi";
-	};
-
-	sound_clk_pins: sound-clk {
-		groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
-			 "audio_clkout_a", "audio_clkout3_a";
-		function = "audio_clk";
-	};
-
-	usb1_pins: usb1 {
-		groups = "usb1";
-		function = "usb1";
-	};
-};
-
-&scif2 {
-	pinctrl-0 = <&scif2_pins>;
-	pinctrl-names = "default";
-
-	status = "okay";
-};
-
-&scif_clk {
-	clock-frequency = <14745600>;
-};
-
-&i2c2 {
-	pinctrl-0 = <&i2c2_pins>;
-	pinctrl-names = "default";
-
-	status = "okay";
-
-	clock-frequency = <100000>;
-
-	ak4613: codec@10 {
-		compatible = "asahi-kasei,ak4613";
-		#sound-dai-cells = <0>;
-		reg = <0x10>;
-		clocks = <&rcar_sound 3>;
-
-		asahi-kasei,in1-single-end;
-		asahi-kasei,in2-single-end;
-		asahi-kasei,out1-single-end;
-		asahi-kasei,out2-single-end;
-		asahi-kasei,out3-single-end;
-		asahi-kasei,out4-single-end;
-		asahi-kasei,out5-single-end;
-		asahi-kasei,out6-single-end;
-	};
-
-	cs2000: clk-multiplier@4f {
-		#clock-cells = <0>;
-		compatible = "cirrus,cs2000-cp";
-		reg = <0x4f>;
-		clocks = <&audio_clkout>, <&x12_clk>;
-		clock-names = "clk_in", "ref_clk";
-
-		assigned-clocks = <&cs2000>;
-		assigned-clock-rates = <24576000>; /* 1/1 divide */
-	};
-};
-
-&rcar_sound {
-	pinctrl-0 = <&sound_pins &sound_clk_pins>;
-	pinctrl-names = "default";
-
-	/* Single DAI */
-	#sound-dai-cells = <0>;
-
-	/* audio_clkout0/1/2/3 */
-	#clock-cells = <1>;
-	clock-frequency = <11289600>;
-
-	status = "okay";
-
-	/* update <audio_clk_b> to <cs2000> */
-	clocks = <&cpg CPG_MOD 1005>,
-		 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
-		 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
-		 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
-		 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
-		 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
-		 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
-		 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
-		 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
-		 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
-		 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
-		 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
-		 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
-		 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
-		 <&audio_clk_a>, <&cs2000>,
-		 <&audio_clk_c>,
-		 <&cpg CPG_CORE R8A7795_CLK_S0D4>;
-
-	rcar_sound,dai {
-		dai0 {
-			playback = <&ssi0 &src0 &dvc0>;
-			capture  = <&ssi1 &src1 &dvc1>;
-		};
-	};
-};
-
-&sdhi0 {
-	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>;
-	bus-width = <4>;
-	sd-uhs-sdr50;
-	status = "okay";
-};
-
-&sdhi2 {
-	/* used for on-board 8bit eMMC */
-	pinctrl-0 = <&sdhi2_pins>;
-	pinctrl-1 = <&sdhi2_pins_uhs>;
-	pinctrl-names = "default", "state_uhs";
-
-	vmmc-supply = <&reg_3p3v>;
-	vqmmc-supply = <&reg_1p8v>;
-	bus-width = <8>;
-	mmc-hs200-1_8v;
-	non-removable;
-	status = "okay";
-};
-
-&ssi1 {
-	shared-pin;
-};
-
-&wdt0 {
-	timeout-sec = <60>;
-	status = "okay";
-};
-
-&audio_clk_a {
-	clock-frequency = <22579200>;
-};
-
-&avb {
-	pinctrl-0 = <&avb_pins>;
-	pinctrl-names = "default";
-	renesas,no-ether-link;
-	phy-handle = <&phy0>;
-	status = "okay";
-
-	phy0: ethernet-phy@0 {
-		rxc-skew-ps = <1500>;
-		reg = <0>;
-		interrupt-parent = <&gpio2>;
-		interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
-	};
-};
-
-&usb2_phy1 {
-	pinctrl-0 = <&usb1_pins>;
-	pinctrl-names = "default";
-
-	status = "okay";
-};
-
-&ehci1 {
-	status = "okay";
-};
-
-&ohci1 {
-	status = "okay";
 };
arch/arm64/boot/dts/renesas/r8a7796-m3ulcb.dts +3 -198

211 lines not on this page · raw message

arch/arm64/boot/dts/renesas/ulcb.dtsi renamed from arch/arm64/boot/dts/renesas/r8a7795-h3ulcb.dts +120 -123

335 lines not on this page · raw message

Signature · 1 line
2.7.4
#8 lore raw

cover arm64: dts: renesas: Break out common board support

In reply to Geert Uytterhoeven
Quoted 3 lines · Geert Uytterhoeven

Geert Uytterhoeven (5):
arm64: renesas: r8a7796: Add external audio clocks
arm64: renesas: r8a7796: Add external PCIe bus clock

Oops, the above should have had the proper "arm64: dts:" prefix.

Quoted 3 lines

[RFC] arm64: dts: r8a7796: Add placeholders for various devices [RFC] arm64: dts: renesas: Extract common Salvator-X board support [RFC] arm64: dts: renesas: Extract common ULCB board support

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

#9 lore raw

cover arm64: dts: renesas: Break out common board support

In reply to Geert Uytterhoeven

Hi Geert,

Quoted 31 lines · Geert Uytterhoeven

Hi all,

The Renesas Salvator-X and ULCB development board can be equipped with either an R-Car H3 or M3-W SiP, which are pin-compatible. All boards use separate DTBs, but currently there's no sharing of board-specific devices in DTS.

This series reduces duplication by extracting common board support into their own .dtsi files. As the level of support varies across boards and SoCs, this requires the addition of a few external clocks and placeholder devices on R-Car M3-W, so the common board support DTS can refer to them.

- Patches 1 and 2 add the external audio and PCIe bus clocks on R-Car M3-W, which are present in r8a7795.dtsi, and used in r8a7795-salvator-x.dts,
- RFC patch 3 adds placeholders for devices that are not yet supported and/or tested on R-Car M3-W, but used on R-Car H3,
- RFC patch 4 extracts common Salvator-X board support,
- RFC patch 5 extracts common ULCB board support.

For R-Car H3 based boards, there are no functional changes. For R-Car M3-W based boards, some new devices are now described in DT.

Dependencies:
- renesas-devel-20170420-v4.11-rc7,
- Patches 1 and 2 can be applied as-is,
- Patches 4 and 5 depend on "[PATCH 0/8] arm64: dts: renesas: Break out R-Car H3 and M3-W SiP"
(http://www.spinics.net/lists/devicetree/msg173820.html).

Quoted 5 lines

DTB changes have been inspected using scripts/dtc/dtx_diff. This has been tested on Salvator-X (both H3 and M3-W).
This has not been tested on H3ULCB and M3ULCB due to lack of hardware.

Thanks for your comments!

Thanks for tackling this important problem. I have looked over the changes and they seem nice to me. I would, however, be more comfortable applying them if they were rested on the ULCB boards.

#10 lore raw

cover arm64: dts: renesas: Break out common board support

Hi Simon,

CC Vladimir (which I forgot to CC initially, sorry for that)

Quoted 34 lines · Simon Horman
Quoted 33 lines · Geert Uytterhoeven

The Renesas Salvator-X and ULCB development board can be equipped with either an R-Car H3 or M3-W SiP, which are pin-compatible. All boards use separate DTBs, but currently there's no sharing of board-specific devices in DTS.

This series reduces duplication by extracting common board support into their own .dtsi files. As the level of support varies across boards and SoCs, this requires the addition of a few external clocks and placeholder devices on R-Car M3-W, so the common board support DTS can refer to them.

- Patches 1 and 2 add the external audio and PCIe bus clocks on R-Car M3-W, which are present in r8a7795.dtsi, and used in r8a7795-salvator-x.dts,
- RFC patch 3 adds placeholders for devices that are not yet supported and/or tested on R-Car M3-W, but used on R-Car H3,
- RFC patch 4 extracts common Salvator-X board support,
- RFC patch 5 extracts common ULCB board support.

For R-Car H3 based boards, there are no functional changes. For R-Car M3-W based boards, some new devices are now described in DT.

Dependencies:
- renesas-devel-20170420-v4.11-rc7,
- Patches 1 and 2 can be applied as-is,
- Patches 4 and 5 depend on "[PATCH 0/8] arm64: dts: renesas: Break out R-Car H3 and M3-W SiP"
(http://www.spinics.net/lists/devicetree/msg173820.html).

DTB changes have been inspected using scripts/dtc/dtx_diff. This has been tested on Salvator-X (both H3 and M3-W).
This has not been tested on H3ULCB and M3ULCB due to lack of hardware.

Quoted 5 lines
Quoted 1 line

Thanks for your comments!

Thanks for tackling this important problem. I have looked over the changes and they seem nice to me. I would, however, be more comfortable applying them if they were rested on the ULCB boards.

tested?

I've pushed a branch for testing to topic/rcar3-dtsi-sharing in
git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git.

Thanks!

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

#11 lore raw

cover arm64: dts: renesas: Break out common board support

Quoted 39 lines · Geert Uytterhoeven

Hi Simon,

CC Vladimir (which I forgot to CC initially, sorry for that)

Quoted 34 lines · Simon Horman
Quoted 33 lines · Geert Uytterhoeven

The Renesas Salvator-X and ULCB development board can be equipped with either an R-Car H3 or M3-W SiP, which are pin-compatible. All boards use separate DTBs, but currently there's no sharing of board-specific devices in DTS.

This series reduces duplication by extracting common board support into their own .dtsi files. As the level of support varies across boards and SoCs, this requires the addition of a few external clocks and placeholder devices on R-Car M3-W, so the common board support DTS can refer to them.

- Patches 1 and 2 add the external audio and PCIe bus clocks on R-Car M3-W, which are present in r8a7795.dtsi, and used in r8a7795-salvator-x.dts,
- RFC patch 3 adds placeholders for devices that are not yet supported and/or tested on R-Car M3-W, but used on R-Car H3,
- RFC patch 4 extracts common Salvator-X board support,
- RFC patch 5 extracts common ULCB board support.

For R-Car H3 based boards, there are no functional changes. For R-Car M3-W based boards, some new devices are now described in DT.

Dependencies:
- renesas-devel-20170420-v4.11-rc7,
- Patches 1 and 2 can be applied as-is,
- Patches 4 and 5 depend on "[PATCH 0/8] arm64: dts: renesas: Break out R-Car H3 and M3-W SiP"
(http://www.spinics.net/lists/devicetree/msg173820.html).

DTB changes have been inspected using scripts/dtc/dtx_diff. This has been tested on Salvator-X (both H3 and M3-W).
This has not been tested on H3ULCB and M3ULCB due to lack of hardware.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Thanks for your comments!

Thanks for tackling this important problem. I have looked over the changes and they seem nice to me. I would, however, be more comfortable applying them if they were rested on the ULCB boards.

tested?

Yes, tested :)

Quoted 2 lines

I've pushed a branch for testing to topic/rcar3-dtsi-sharing in
git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git.

#12 lore raw

cover arm64: dts: renesas: Break out common board support

In reply to Geert Uytterhoeven

Hi Simon,

Quoted 39 lines · Geert Uytterhoeven

CC Vladimir (which I forgot to CC initially, sorry for that)

Quoted 36 lines · Simon Horman
Quoted 34 lines · Geert Uytterhoeven

The Renesas Salvator-X and ULCB development board can be equipped with either an R-Car H3 or M3-W SiP, which are pin-compatible. All boards use separate DTBs, but currently there's no sharing of board-specific devices in DTS.

This series reduces duplication by extracting common board support into their own .dtsi files. As the level of support varies across boards and SoCs, this requires the addition of a few external clocks and placeholder devices on R-Car M3-W, so the common board support DTS can refer to them.

- Patches 1 and 2 add the external audio and PCIe bus clocks on R-Car M3-W, which are present in r8a7795.dtsi, and used in r8a7795-salvator-x.dts,
- RFC patch 3 adds placeholders for devices that are not yet supported and/or tested on R-Car M3-W, but used on R-Car H3,
- RFC patch 4 extracts common Salvator-X board support,
- RFC patch 5 extracts common ULCB board support.

For R-Car H3 based boards, there are no functional changes. For R-Car M3-W based boards, some new devices are now described in DT.

Dependencies:
- renesas-devel-20170420-v4.11-rc7,
- Patches 1 and 2 can be applied as-is,
- Patches 4 and 5 depend on "[PATCH 0/8] arm64: dts: renesas: Break out R-Car H3 and M3-W SiP"
(http://www.spinics.net/lists/devicetree/msg173820.html).

DTB changes have been inspected using scripts/dtc/dtx_diff. This has been tested on Salvator-X (both H3 and M3-W).
This has not been tested on H3ULCB and M3ULCB due to lack of hardware.

Thanks for your comments!

Quoted 8 lines
Quoted 3 lines

Thanks for tackling this important problem. I have looked over the changes and they seem nice to me. I would, however, be more comfortable applying them if they were rested on the ULCB boards.

tested?

I've pushed a branch for testing to topic/rcar3-dtsi-sharing in
git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git.

I managed to test it on the new H3ULCB and M3ULCB baords in Magnus' farm. No issues detected.

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

#13 lore raw

cover arm64: dts: renesas: Break out common board support

Quoted 47 lines · Geert Uytterhoeven

Hi Simon,

Quoted 43 lines · Geert Uytterhoeven

CC Vladimir (which I forgot to CC initially, sorry for that)

Quoted 39 lines · Simon Horman
Quoted 29 lines · Geert Uytterhoeven

The Renesas Salvator-X and ULCB development board can be equipped with either an R-Car H3 or M3-W SiP, which are pin-compatible. All boards use separate DTBs, but currently there's no sharing of board-specific devices in DTS.

This series reduces duplication by extracting common board support into their own .dtsi files. As the level of support varies across boards and SoCs, this requires the addition of a few external clocks and placeholder devices on R-Car M3-W, so the common board support DTS can refer to them.

- Patches 1 and 2 add the external audio and PCIe bus clocks on R-Car M3-W, which are present in r8a7795.dtsi, and used in r8a7795-salvator-x.dts,
- RFC patch 3 adds placeholders for devices that are not yet supported and/or tested on R-Car M3-W, but used on R-Car H3,
- RFC patch 4 extracts common Salvator-X board support,
- RFC patch 5 extracts common ULCB board support.

For R-Car H3 based boards, there are no functional changes. For R-Car M3-W based boards, some new devices are now described in DT.

Dependencies:
- renesas-devel-20170420-v4.11-rc7,
- Patches 1 and 2 can be applied as-is,
- Patches 4 and 5 depend on "[PATCH 0/8] arm64: dts: renesas: Break out R-Car H3 and M3-W SiP"
(http://www.spinics.net/lists/devicetree/msg173820.html).

Quoted 5 lines

DTB changes have been inspected using scripts/dtc/dtx_diff. This has been tested on Salvator-X (both H3 and M3-W).
This has not been tested on H3ULCB and M3ULCB due to lack of hardware.

Thanks for your comments!

Thanks for tackling this important problem. I have looked over the changes and they seem nice to me. I would, however, be more comfortable applying them if they were rested on the ULCB boards.

Quoted 7 lines
Quoted 4 lines

tested?

I've pushed a branch for testing to topic/rcar3-dtsi-sharing in
git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git.

I managed to test it on the new H3ULCB and M3ULCB baords in Magnus' farm. No issues detected.

Great! Any objections to me queuing this up?

#14 lore raw

cover arm64: dts: renesas: Break out common board support

Hi SImon,

Quoted 29 lines · Simon Horman
Quoted 28 lines · Geert Uytterhoeven
Quoted 26 lines · Geert Uytterhoeven

CC Vladimir (which I forgot to CC initially, sorry for that)

Quoted 23 lines · Simon Horman
Quoted 22 lines · Geert Uytterhoeven

The Renesas Salvator-X and ULCB development board can be equipped with either an R-Car H3 or M3-W SiP, which are pin-compatible. All boards use separate DTBs, but currently there's no sharing of board-specific devices in DTS.

This series reduces duplication by extracting common board support into their own .dtsi files. As the level of support varies across boards and SoCs, this requires the addition of a few external clocks and placeholder devices on R-Car M3-W, so the common board support DTS can refer to them.

- Patches 1 and 2 add the external audio and PCIe bus clocks on R-Car M3-W, which are present in r8a7795.dtsi, and used in r8a7795-salvator-x.dts,
- RFC patch 3 adds placeholders for devices that are not yet supported and/or tested on R-Car M3-W, but used on R-Car H3,
- RFC patch 4 extracts common Salvator-X board support,
- RFC patch 5 extracts common ULCB board support.

For R-Car H3 based boards, there are no functional changes. For R-Car M3-W based boards, some new devices are now described in DT.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Dependencies:
- renesas-devel-20170420-v4.11-rc7,
- Patches 1 and 2 can be applied as-is,
- Patches 4 and 5 depend on "[PATCH 0/8] arm64: dts: renesas: Break out R-Car H3 and M3-W SiP"
(http://www.spinics.net/lists/devicetree/msg173820.html).

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 9 lines
Quoted 5 lines

DTB changes have been inspected using scripts/dtc/dtx_diff. This has been tested on Salvator-X (both H3 and M3-W).
This has not been tested on H3ULCB and M3ULCB due to lack of hardware.

Thanks for your comments!

Thanks for tackling this important problem. I have looked over the changes and they seem nice to me. I would, however, be more comfortable applying them if they were rested on the ULCB boards.

tested?

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

I've pushed a branch for testing to topic/rcar3-dtsi-sharing in
git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git.

I managed to test it on the new H3ULCB and M3ULCB baords in Magnus' farm. No issues detected.

Great! Any objections to me queuing this up?

The dependency above (no feedback about the SiP types yet).

I can respin without that dependency, if that is preferred...

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

#15 lore raw

cover arm64: dts: renesas: Break out common board support

Quoted 55 lines · Geert Uytterhoeven

Hi SImon,

Quoted 29 lines · Simon Horman
Quoted 28 lines · Geert Uytterhoeven
Quoted 26 lines · Geert Uytterhoeven

CC Vladimir (which I forgot to CC initially, sorry for that)

Quoted 23 lines · Simon Horman
Quoted 22 lines · Geert Uytterhoeven

The Renesas Salvator-X and ULCB development board can be equipped with either an R-Car H3 or M3-W SiP, which are pin-compatible. All boards use separate DTBs, but currently there's no sharing of board-specific devices in DTS.

This series reduces duplication by extracting common board support into their own .dtsi files. As the level of support varies across boards and SoCs, this requires the addition of a few external clocks and placeholder devices on R-Car M3-W, so the common board support DTS can refer to them.

- Patches 1 and 2 add the external audio and PCIe bus clocks on R-Car M3-W, which are present in r8a7795.dtsi, and used in r8a7795-salvator-x.dts,
- RFC patch 3 adds placeholders for devices that are not yet supported and/or tested on R-Car M3-W, but used on R-Car H3,
- RFC patch 4 extracts common Salvator-X board support,
- RFC patch 5 extracts common ULCB board support.

For R-Car H3 based boards, there are no functional changes. For R-Car M3-W based boards, some new devices are now described in DT.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Dependencies:
- renesas-devel-20170420-v4.11-rc7,
- Patches 1 and 2 can be applied as-is,
- Patches 4 and 5 depend on "[PATCH 0/8] arm64: dts: renesas: Break out R-Car H3 and M3-W SiP"
(http://www.spinics.net/lists/devicetree/msg173820.html).

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Quoted 15 lines
Quoted 15 lines
Quoted 14 lines
Quoted 9 lines
Quoted 5 lines

DTB changes have been inspected using scripts/dtc/dtx_diff. This has been tested on Salvator-X (both H3 and M3-W).
This has not been tested on H3ULCB and M3ULCB due to lack of hardware.

Thanks for your comments!

Thanks for tackling this important problem. I have looked over the changes and they seem nice to me. I would, however, be more comfortable applying them if they were rested on the ULCB boards.

tested?

I've pushed a branch for testing to topic/rcar3-dtsi-sharing in
git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git.

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

I managed to test it on the new H3ULCB and M3ULCB baords in Magnus' farm. No issues detected.

Great! Any objections to me queuing this up?

The dependency above (no feedback about the SiP types yet).

I can respin without that dependency, if that is preferred...

It seems to me that it would be nice to get these in sooner than later - in particular earlier rather than later in the (v4.13) development cycle. But I defer to your judgement on what is best.

#16 lore raw

cover arm64: dts: renesas: Break out common board support

Hi Simon,

Quoted 59 lines · Simon Horman
Quoted 58 lines · Geert Uytterhoeven
Quoted 29 lines · Simon Horman
Quoted 28 lines · Geert Uytterhoeven
Quoted 26 lines · Geert Uytterhoeven

CC Vladimir (which I forgot to CC initially, sorry for that)

Quoted 23 lines · Simon Horman
Quoted 22 lines · Geert Uytterhoeven

The Renesas Salvator-X and ULCB development board can be equipped with either an R-Car H3 or M3-W SiP, which are pin-compatible. All boards use separate DTBs, but currently there's no sharing of board-specific devices in DTS.

This series reduces duplication by extracting common board support into their own .dtsi files. As the level of support varies across boards and SoCs, this requires the addition of a few external clocks and placeholder devices on R-Car M3-W, so the common board support DTS can refer to them.

- Patches 1 and 2 add the external audio and PCIe bus clocks on R-Car M3-W, which are present in r8a7795.dtsi, and used in r8a7795-salvator-x.dts,
- RFC patch 3 adds placeholders for devices that are not yet supported and/or tested on R-Car M3-W, but used on R-Car H3,
- RFC patch 4 extracts common Salvator-X board support,
- RFC patch 5 extracts common ULCB board support.

For R-Car H3 based boards, there are no functional changes. For R-Car M3-W based boards, some new devices are now described in DT.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Dependencies:
- renesas-devel-20170420-v4.11-rc7,
- Patches 1 and 2 can be applied as-is,
- Patches 4 and 5 depend on "[PATCH 0/8] arm64: dts: renesas: Break out R-Car H3 and M3-W SiP"
(http://www.spinics.net/lists/devicetree/msg173820.html).

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Quoted 19 lines
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
Quoted 5 lines

DTB changes have been inspected using scripts/dtc/dtx_diff. This has been tested on Salvator-X (both H3 and M3-W).
This has not been tested on H3ULCB and M3ULCB due to lack of hardware.

Thanks for your comments!

Thanks for tackling this important problem. I have looked over the changes and they seem nice to me. I would, however, be more comfortable applying them if they were rested on the ULCB boards.

Quoted 7 lines
Quoted 4 lines

tested?

I've pushed a branch for testing to topic/rcar3-dtsi-sharing in
git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git.

I managed to test it on the new H3ULCB and M3ULCB baords in Magnus' farm. No issues detected.

Great! Any objections to me queuing this up?

Quoted 7 lines
Quoted 3 lines

The dependency above (no feedback about the SiP types yet).

I can respin without that dependency, if that is preferred...

It seems to me that it would be nice to get these in sooner than later - in particular earlier rather than later in the (v4.13) development cycle. But I defer to your judgement on what is best.

Agreed. Stay tuned for v2...

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