0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Device Tree Source for the HiHope RZ/G2[MN] main board Rev.2.0 common
0004 * parts
0005 *
0006 * Copyright (C) 2020 Renesas Electronics Corp.
0007 */
0008
0009 #include <dt-bindings/gpio/gpio.h>
0010 #include "hihope-common.dtsi"
0011
0012 / {
0013 leds {
0014 compatible = "gpio-leds";
0015
0016 bt_active_led {
0017 label = "blue:bt";
0018 gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
0019 linux,default-trigger = "hci0-power";
0020 default-state = "off";
0021 };
0022
0023 wlan_active_led {
0024 label = "yellow:wlan";
0025 gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
0026 linux,default-trigger = "phy0tx";
0027 default-state = "off";
0028 };
0029 };
0030
0031 wlan_en_reg: regulator-wlan_en {
0032 compatible = "regulator-fixed";
0033 regulator-name = "wlan-en-regulator";
0034 regulator-min-microvolt = <1800000>;
0035 regulator-max-microvolt = <1800000>;
0036 startup-delay-us = <70000>;
0037
0038 gpio = <&gpio_expander 1 GPIO_ACTIVE_HIGH>;
0039 enable-active-high;
0040 };
0041 };
0042
0043 &hscif0 {
0044 bluetooth {
0045 compatible = "ti,wl1837-st";
0046 enable-gpios = <&gpio_expander 2 GPIO_ACTIVE_HIGH>;
0047 };
0048 };
0049
0050 &i2c4 {
0051 gpio_expander: gpio@20 {
0052 compatible = "onnn,pca9654";
0053 reg = <0x20>;
0054 gpio-controller;
0055 #gpio-cells = <2>;
0056 };
0057 };
0058
0059 &pfc {
0060 sound_clk_pins: sound_clk {
0061 groups = "audio_clk_a_a";
0062 function = "audio_clk";
0063 };
0064 };
0065
0066 &rcar_sound {
0067 pinctrl-0 = <&sound_clk_pins>;
0068 pinctrl-names = "default";
0069
0070 status = "okay";
0071
0072 /* Single DAI */
0073 #sound-dai-cells = <0>;
0074
0075 rsnd_port: port {
0076 rsnd_endpoint: endpoint {
0077 remote-endpoint = <&dw_hdmi0_snd_in>;
0078
0079 dai-format = "i2s";
0080 bitclock-master = <&rsnd_endpoint>;
0081 frame-master = <&rsnd_endpoint>;
0082
0083 playback = <&ssi2>;
0084 };
0085 };
0086 };