xref: /linux/arch/arm64/boot/dts/renesas/hihope-rev2.dtsi (revision 4b4193256c8d3bc3a5397b5cd9494c2ad386317d)
1*99167613SLad Prabhakar// SPDX-License-Identifier: GPL-2.0
2*99167613SLad Prabhakar/*
3*99167613SLad Prabhakar * Device Tree Source for the HiHope RZ/G2[MN] main board Rev.2.0 common
4*99167613SLad Prabhakar * parts
5*99167613SLad Prabhakar *
6*99167613SLad Prabhakar * Copyright (C) 2020 Renesas Electronics Corp.
7*99167613SLad Prabhakar */
8*99167613SLad Prabhakar
9*99167613SLad Prabhakar#include <dt-bindings/gpio/gpio.h>
10*99167613SLad Prabhakar#include "hihope-common.dtsi"
11*99167613SLad Prabhakar
12*99167613SLad Prabhakar/ {
13*99167613SLad Prabhakar	leds {
14*99167613SLad Prabhakar		compatible = "gpio-leds";
15*99167613SLad Prabhakar
16*99167613SLad Prabhakar		bt_active_led {
17*99167613SLad Prabhakar			label = "blue:bt";
18*99167613SLad Prabhakar			gpios = <&gpio7  0 GPIO_ACTIVE_HIGH>;
19*99167613SLad Prabhakar			linux,default-trigger = "hci0-power";
20*99167613SLad Prabhakar			default-state = "off";
21*99167613SLad Prabhakar		};
22*99167613SLad Prabhakar
23*99167613SLad Prabhakar		wlan_active_led {
24*99167613SLad Prabhakar			label = "yellow:wlan";
25*99167613SLad Prabhakar			gpios = <&gpio7  1 GPIO_ACTIVE_HIGH>;
26*99167613SLad Prabhakar			linux,default-trigger = "phy0tx";
27*99167613SLad Prabhakar			default-state = "off";
28*99167613SLad Prabhakar		};
29*99167613SLad Prabhakar	};
30*99167613SLad Prabhakar
31*99167613SLad Prabhakar	wlan_en_reg: regulator-wlan_en {
32*99167613SLad Prabhakar		compatible = "regulator-fixed";
33*99167613SLad Prabhakar		regulator-name = "wlan-en-regulator";
34*99167613SLad Prabhakar		regulator-min-microvolt = <1800000>;
35*99167613SLad Prabhakar		regulator-max-microvolt = <1800000>;
36*99167613SLad Prabhakar		startup-delay-us = <70000>;
37*99167613SLad Prabhakar
38*99167613SLad Prabhakar		gpio = <&gpio_expander 1 GPIO_ACTIVE_HIGH>;
39*99167613SLad Prabhakar		enable-active-high;
40*99167613SLad Prabhakar	};
41*99167613SLad Prabhakar};
42*99167613SLad Prabhakar
43*99167613SLad Prabhakar&hscif0 {
44*99167613SLad Prabhakar	bluetooth {
45*99167613SLad Prabhakar		compatible = "ti,wl1837-st";
46*99167613SLad Prabhakar		enable-gpios = <&gpio_expander 2 GPIO_ACTIVE_HIGH>;
47*99167613SLad Prabhakar	};
48*99167613SLad Prabhakar};
49*99167613SLad Prabhakar
50*99167613SLad Prabhakar&i2c4 {
51*99167613SLad Prabhakar	gpio_expander: gpio@20 {
52*99167613SLad Prabhakar		compatible = "onnn,pca9654";
53*99167613SLad Prabhakar		reg = <0x20>;
54*99167613SLad Prabhakar		gpio-controller;
55*99167613SLad Prabhakar		#gpio-cells = <2>;
56*99167613SLad Prabhakar	};
57*99167613SLad Prabhakar};
58*99167613SLad Prabhakar
59*99167613SLad Prabhakar&pfc {
60*99167613SLad Prabhakar	sound_clk_pins: sound_clk {
61*99167613SLad Prabhakar		groups = "audio_clk_a_a";
62*99167613SLad Prabhakar		function = "audio_clk";
63*99167613SLad Prabhakar	};
64*99167613SLad Prabhakar};
65*99167613SLad Prabhakar
66*99167613SLad Prabhakar&rcar_sound {
67*99167613SLad Prabhakar	pinctrl-0 = <&sound_clk_pins>;
68*99167613SLad Prabhakar	pinctrl-names = "default";
69*99167613SLad Prabhakar
70*99167613SLad Prabhakar	status = "okay";
71*99167613SLad Prabhakar
72*99167613SLad Prabhakar	/* Single DAI */
73*99167613SLad Prabhakar	#sound-dai-cells = <0>;
74*99167613SLad Prabhakar
75*99167613SLad Prabhakar	rsnd_port: port {
76*99167613SLad Prabhakar		rsnd_endpoint: endpoint {
77*99167613SLad Prabhakar			remote-endpoint = <&dw_hdmi0_snd_in>;
78*99167613SLad Prabhakar
79*99167613SLad Prabhakar			dai-format = "i2s";
80*99167613SLad Prabhakar			bitclock-master = <&rsnd_endpoint>;
81*99167613SLad Prabhakar			frame-master = <&rsnd_endpoint>;
82*99167613SLad Prabhakar
83*99167613SLad Prabhakar			playback = <&ssi2>;
84*99167613SLad Prabhakar		};
85*99167613SLad Prabhakar	};
86*99167613SLad Prabhakar};
87