arm64: dts: renesas: hihope-common: Separate out Rev.2.0 specific into hihope-rev2...
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Wed, 24 Jun 2020 13:12:02 +0000 (14:12 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 26 Jun 2020 09:42:09 +0000 (11:42 +0200)
Separate out Rev.2.0 specific hardware changes into hihope-rev2.dtsi
file so that hihope-common.dtsi can be used by all the variants for
RZ/G2M[N] boards.

LED node names have been updated according to Rev.4.0 schematics.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
Link: https://lore.kernel.org/r/1593004330-5039-4-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/hihope-common.dtsi
arch/arm64/boot/dts/renesas/hihope-rev2.dtsi [new file with mode: 0644]
arch/arm64/boot/dts/renesas/r8a774a1-hihope-rzg2m-rev2.dts
arch/arm64/boot/dts/renesas/r8a774b1-hihope-rzg2n-rev2.dts

index bd05690..beddfd7 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 /*
- * Device Tree Source for the HiHope RZ/G2[MN] main board common parts
+ * Device Tree Source for the HiHope RZ/G2[MN] main board
+ * Rev.[2.0/3.0/4.0] common parts
  *
  * Copyright (C) 2019 Renesas Electronics Corp.
  */
        leds {
                compatible = "gpio-leds";
 
-               bt_active_led {
-                       label = "blue:bt";
-                       gpios = <&gpio7  0 GPIO_ACTIVE_HIGH>;
-                       linux,default-trigger = "hci0-power";
-                       default-state = "off";
-               };
-
-               led0 {
-                       gpios = <&gpio6 11 GPIO_ACTIVE_HIGH>;
-               };
-
                led1 {
                        gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>;
                };
                        gpios = <&gpio0  0 GPIO_ACTIVE_HIGH>;
                };
 
-               wlan_active_led {
-                       label = "yellow:wlan";
-                       gpios = <&gpio7  1 GPIO_ACTIVE_HIGH>;
-                       linux,default-trigger = "phy0tx";
-                       default-state = "off";
+               led4 {
+                       gpios = <&gpio6 11 GPIO_ACTIVE_HIGH>;
                };
        };
 
                states = <3300000 1>, <1800000 0>;
        };
 
-       wlan_en_reg: regulator-wlan_en {
-               compatible = "regulator-fixed";
-               regulator-name = "wlan-en-regulator";
-               regulator-min-microvolt = <1800000>;
-               regulator-max-microvolt = <1800000>;
-               startup-delay-us = <70000>;
-
-               gpio = <&gpio_expander 1 GPIO_ACTIVE_HIGH>;
-               enable-active-high;
-       };
-
        x302_clk: x302-clock {
                compatible = "fixed-clock";
                #clock-cells = <0>;
 
        uart-has-rtscts;
        status = "okay";
-
-       bluetooth {
-               compatible = "ti,wl1837-st";
-               enable-gpios = <&gpio_expander 2 GPIO_ACTIVE_HIGH>;
-       };
 };
 
 &hsusb {
        clock-frequency = <400000>;
        status = "okay";
 
-       gpio_expander: gpio@20 {
-               compatible = "onnn,pca9654";
-               reg = <0x20>;
-               gpio-controller;
-               #gpio-cells = <2>;
-       };
-
        versaclock5: clock-generator@6a {
                compatible = "idt,5p49v5923";
                reg = <0x6a>;
                power-source = <1800>;
        };
 
-       sound_clk_pins: sound_clk {
-               groups = "audio_clk_a_a";
-               function = "audio_clk";
-       };
-
        usb0_pins: usb0 {
                groups = "usb0";
                function = "usb0";
        };
 };
 
-&rcar_sound {
-       pinctrl-0 = <&sound_clk_pins>;
-       pinctrl-names = "default";
-
-       status = "okay";
-
-       /* Single DAI */
-       #sound-dai-cells = <0>;
-
-       rsnd_port: port {
-               rsnd_endpoint: endpoint {
-                       remote-endpoint = <&dw_hdmi0_snd_in>;
-
-                       dai-format = "i2s";
-                       bitclock-master = <&rsnd_endpoint>;
-                       frame-master = <&rsnd_endpoint>;
-
-                       playback = <&ssi2>;
-               };
-       };
-};
-
 &rwdt {
        timeout-sec = <60>;
        status = "okay";
diff --git a/arch/arm64/boot/dts/renesas/hihope-rev2.dtsi b/arch/arm64/boot/dts/renesas/hihope-rev2.dtsi
new file mode 100644 (file)
index 0000000..8e2db1d
--- /dev/null
@@ -0,0 +1,86 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Device Tree Source for the HiHope RZ/G2[MN] main board Rev.2.0 common
+ * parts
+ *
+ * Copyright (C) 2020 Renesas Electronics Corp.
+ */
+
+#include <dt-bindings/gpio/gpio.h>
+#include "hihope-common.dtsi"
+
+/ {
+       leds {
+               compatible = "gpio-leds";
+
+               bt_active_led {
+                       label = "blue:bt";
+                       gpios = <&gpio7  0 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "hci0-power";
+                       default-state = "off";
+               };
+
+               wlan_active_led {
+                       label = "yellow:wlan";
+                       gpios = <&gpio7  1 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "phy0tx";
+                       default-state = "off";
+               };
+       };
+
+       wlan_en_reg: regulator-wlan_en {
+               compatible = "regulator-fixed";
+               regulator-name = "wlan-en-regulator";
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <1800000>;
+               startup-delay-us = <70000>;
+
+               gpio = <&gpio_expander 1 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
+};
+
+&hscif0 {
+       bluetooth {
+               compatible = "ti,wl1837-st";
+               enable-gpios = <&gpio_expander 2 GPIO_ACTIVE_HIGH>;
+       };
+};
+
+&i2c4 {
+       gpio_expander: gpio@20 {
+               compatible = "onnn,pca9654";
+               reg = <0x20>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+};
+
+&pfc {
+       sound_clk_pins: sound_clk {
+               groups = "audio_clk_a_a";
+               function = "audio_clk";
+       };
+};
+
+&rcar_sound {
+       pinctrl-0 = <&sound_clk_pins>;
+       pinctrl-names = "default";
+
+       status = "okay";
+
+       /* Single DAI */
+       #sound-dai-cells = <0>;
+
+       rsnd_port: port {
+               rsnd_endpoint: endpoint {
+                       remote-endpoint = <&dw_hdmi0_snd_in>;
+
+                       dai-format = "i2s";
+                       bitclock-master = <&rsnd_endpoint>;
+                       frame-master = <&rsnd_endpoint>;
+
+                       playback = <&ssi2>;
+               };
+       };
+};
index 276f449..bb18f6e 100644 (file)
@@ -7,7 +7,7 @@
 
 /dts-v1/;
 #include "r8a774a1.dtsi"
-#include "hihope-common.dtsi"
+#include "hihope-rev2.dtsi"
 
 / {
        model = "HopeRun HiHope RZ/G2M main board (Rev.2.0) based on r8a774a1";
index eb1206b..c69ca5c 100644 (file)
@@ -7,7 +7,7 @@
 
 /dts-v1/;
 #include "r8a774b1.dtsi"
-#include "hihope-common.dtsi"
+#include "hihope-rev2.dtsi"
 
 / {
        model = "HopeRun HiHope RZ/G2N main board (Rev.2.0) based on r8a774b1";