summaryrefslogtreecommitdiffstats
path: root/dts/src/arm64/renesas/hihope-rev2.dtsi
blob: 8e2db1d6ca81e23030270ca1f8652f06964b7424 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
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>;
		};
	};
};