Commit 99167613 authored by Lad Prabhakar's avatar Lad Prabhakar Committed by Geert Uytterhoeven
Browse files

arm64: dts: renesas: hihope-common: Separate out Rev.2.0 specific into hihope-rev2.dtsi file



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: default avatarLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: default avatarMarian-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: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
parent 59d8eee8
Loading
Loading
Loading
Loading
+4 −67
Original line number Diff line number Diff line
// 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.
 */
@@ -32,17 +33,6 @@ hdmi0_con: endpoint {
	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>;
		};
@@ -55,11 +45,8 @@ led3 {
			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>;
		};
	};

@@ -112,17 +99,6 @@ vccq_sdhi0: regulator-vccq-sdhi0 {
		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>;
@@ -194,11 +170,6 @@ &hscif0 {

	uart-has-rtscts;
	status = "okay";

	bluetooth {
		compatible = "ti,wl1837-st";
		enable-gpios = <&gpio_expander 2 GPIO_ACTIVE_HIGH>;
	};
};

&hsusb {
@@ -210,13 +181,6 @@ &i2c4 {
	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>;
@@ -281,11 +245,6 @@ sdhi3_pins: sd3 {
		power-source = <1800>;
	};

	sound_clk_pins: sound_clk {
		groups = "audio_clk_a_a";
		function = "audio_clk";
	};

	usb0_pins: usb0 {
		groups = "usb0";
		function = "usb0";
@@ -309,28 +268,6 @@ usb30_pins: usb30 {
	};
};

&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";
+86 −0
Original line number Diff line number Diff line
// 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>;
		};
	};
};
+1 −1
Original line number Diff line number Diff line
@@ -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";
+1 −1
Original line number Diff line number Diff line
@@ -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";