1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree Source for the HiHope RZ/G2H Rev.4.0 and
4 * HiHope RZ/G2[MN] Rev.3.0/4.0 main board common parts
6 * Copyright (C) 2020 Renesas Electronics Corp.
9 #include <dt-bindings/gpio/gpio.h>
10 #include "hihope-common.dtsi"
13 audio_clkout: audio-clkout {
15 * This is same as <&rcar_sound 0>
16 * but needed to avoid cs2000/rcar_sound probe dead-lock
18 compatible = "fixed-clock";
20 clock-frequency = <12288000>;
23 wlan_en_reg: regulator-wlan_en {
24 compatible = "regulator-fixed";
25 regulator-name = "wlan-en-regulator";
26 regulator-min-microvolt = <1800000>;
27 regulator-max-microvolt = <1800000>;
28 startup-delay-us = <70000>;
30 gpio = <&gpio4 6 GPIO_ACTIVE_HIGH>;
34 x1801_clk: x1801-clock {
35 compatible = "fixed-clock";
37 clock-frequency = <24576000>;
43 compatible = "ti,wl1837-st";
44 enable-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
49 pinctrl-0 = <&i2c2_pins>;
50 pinctrl-names = "default";
53 cs2000: clk_multiplier@4f {
55 compatible = "cirrus,cs2000-cp";
57 clocks = <&audio_clkout>, <&x1801_clk>;
58 clock-names = "clk_in", "ref_clk";
60 assigned-clocks = <&cs2000>;
61 assigned-clock-rates = <24576000>; /* 1/1 divide */
71 sound_clk_pins: sound_clk {
72 groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clkout_a";
73 function = "audio_clk";
77 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
83 pinctrl-0 = <&sound_pins &sound_clk_pins>;
84 pinctrl-names = "default";
88 #sound-dai-cells = <0>;
90 /* audio_clkout0/1/2/3 */
92 clock-frequency = <12288000 11289600>;
95 * Update <audio_clk_b> to <cs2000>
96 * Switch SW2404 should be at position 1 so that clock from
97 * CS2000 is connected to AUDIO_CLKB_A
99 clocks = <&cpg CPG_MOD 1005>,
100 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
101 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
102 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
103 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
104 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
105 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
106 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
107 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
108 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
109 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
110 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
111 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
112 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
113 <&audio_clk_a>, <&cs2000>,
115 <&cpg CPG_CORE CPG_AUDIO_CLK_I>;
118 rsnd_endpoint: endpoint {
119 remote-endpoint = <&dw_hdmi0_snd_in>;
122 bitclock-master = <&rsnd_endpoint>;
123 frame-master = <&rsnd_endpoint>;