2 * Device Tree Source for the H3ULCB (R-Car Starter Kit Premier) board
4 * Copyright (C) 2016 Renesas Electronics Corp.
5 * Copyright (C) 2016 Cogent Embedded, Inc.
7 * This file is licensed under the terms of the GNU General Public License
8 * version 2. This program is licensed "as is" without any warranty of any
9 * kind, whether express or implied.
13 #include "r8a7795.dtsi"
14 #include <dt-bindings/gpio/gpio.h>
15 #include <dt-bindings/input/input.h>
18 model = "Renesas H3ULCB board based on r8a7795";
19 compatible = "renesas,h3ulcb", "renesas,r8a7795";
27 stdout-path = "serial0:115200n8";
31 device_type = "memory";
32 /* first 128MB is reserved for secure area. */
33 reg = <0x0 0x48000000 0x0 0x38000000>;
37 compatible = "gpio-leds";
40 gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>;
43 gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>;
48 compatible = "gpio-keys";
54 debounce-interval = <20>;
55 gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
60 compatible = "fixed-clock";
62 clock-frequency = <24576000>;
65 reg_1p8v: regulator0 {
66 compatible = "regulator-fixed";
67 regulator-name = "fixed-1.8V";
68 regulator-min-microvolt = <1800000>;
69 regulator-max-microvolt = <1800000>;
74 reg_3p3v: regulator1 {
75 compatible = "regulator-fixed";
76 regulator-name = "fixed-3.3V";
77 regulator-min-microvolt = <3300000>;
78 regulator-max-microvolt = <3300000>;
83 vcc_sdhi0: regulator-vcc-sdhi0 {
84 compatible = "regulator-fixed";
86 regulator-name = "SDHI0 Vcc";
87 regulator-min-microvolt = <3300000>;
88 regulator-max-microvolt = <3300000>;
90 gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
94 vccq_sdhi0: regulator-vccq-sdhi0 {
95 compatible = "regulator-gpio";
97 regulator-name = "SDHI0 VccQ";
98 regulator-min-microvolt = <1800000>;
99 regulator-max-microvolt = <3300000>;
101 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
107 audio_clkout: audio-clkout {
109 * This is same as <&rcar_sound 0>
110 * but needed to avoid cs2000/rcar_sound probe dead-lock
112 compatible = "fixed-clock";
114 clock-frequency = <11289600>;
118 compatible = "simple-audio-card";
120 simple-audio-card,format = "left_j";
121 simple-audio-card,bitclock-master = <&sndcpu>;
122 simple-audio-card,frame-master = <&sndcpu>;
124 sndcpu: simple-audio-card,cpu {
125 sound-dai = <&rcar_sound>;
128 sndcodec: simple-audio-card,codec {
129 sound-dai = <&ak4613>;
135 clock-frequency = <16666666>;
139 clock-frequency = <32768>;
143 pinctrl-0 = <&scif_clk_pins>;
144 pinctrl-names = "default";
147 groups = "scif2_data_a";
151 scif_clk_pins: scif_clk {
152 groups = "scif_clk_a";
153 function = "scif_clk";
167 groups = "sdhi0_data4", "sdhi0_ctrl";
169 power-source = <3300>;
172 sdhi0_pins_uhs: sd0_uhs {
173 groups = "sdhi0_data4", "sdhi0_ctrl";
175 power-source = <1800>;
179 groups = "sdhi2_data8", "sdhi2_ctrl";
181 power-source = <3300>;
184 sdhi2_pins_uhs: sd2_uhs {
185 groups = "sdhi2_data8", "sdhi2_ctrl";
187 power-source = <1800>;
191 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
195 sound_clk_pins: sound-clk {
196 groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
197 "audio_clkout_a", "audio_clkout3_a";
198 function = "audio_clk";
208 pinctrl-0 = <&scif2_pins>;
209 pinctrl-names = "default";
215 clock-frequency = <14745600>;
220 pinctrl-0 = <&i2c2_pins>;
221 pinctrl-names = "default";
225 clock-frequency = <100000>;
228 compatible = "asahi-kasei,ak4613";
229 #sound-dai-cells = <0>;
231 clocks = <&rcar_sound 3>;
233 asahi-kasei,in1-single-end;
234 asahi-kasei,in2-single-end;
235 asahi-kasei,out1-single-end;
236 asahi-kasei,out2-single-end;
237 asahi-kasei,out3-single-end;
238 asahi-kasei,out4-single-end;
239 asahi-kasei,out5-single-end;
240 asahi-kasei,out6-single-end;
243 cs2000: clk-multiplier@4f {
245 compatible = "cirrus,cs2000-cp";
247 clocks = <&audio_clkout>, <&x12_clk>;
248 clock-names = "clk_in", "ref_clk";
250 assigned-clocks = <&cs2000>;
251 assigned-clock-rates = <24576000>; /* 1/1 divide */
256 pinctrl-0 = <&sound_pins &sound_clk_pins>;
257 pinctrl-names = "default";
260 #sound-dai-cells = <0>;
262 /* audio_clkout0/1/2/3 */
264 clock-frequency = <11289600>;
268 /* update <audio_clk_b> to <cs2000> */
269 clocks = <&cpg CPG_MOD 1005>,
270 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
271 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
272 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
273 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
274 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
275 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
276 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
277 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
278 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
279 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
280 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
281 <&audio_clk_a>, <&cs2000>,
283 <&cpg CPG_CORE R8A7795_CLK_S0D4>;
287 playback = <&ssi0 &src0 &dvc0>;
288 capture = <&ssi1 &src1 &dvc1>;
294 pinctrl-0 = <&sdhi0_pins>;
295 pinctrl-1 = <&sdhi0_pins_uhs>;
296 pinctrl-names = "default", "state_uhs";
298 vmmc-supply = <&vcc_sdhi0>;
299 vqmmc-supply = <&vccq_sdhi0>;
300 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
307 /* used for on-board 8bit eMMC */
308 pinctrl-0 = <&sdhi2_pins>;
309 pinctrl-1 = <&sdhi2_pins_uhs>;
310 pinctrl-names = "default", "state_uhs";
312 vmmc-supply = <®_3p3v>;
313 vqmmc-supply = <®_1p8v>;
329 clock-frequency = <22579200>;
333 pinctrl-0 = <&avb_pins>;
334 pinctrl-names = "default";
335 renesas,no-ether-link;
336 phy-handle = <&phy0>;
339 phy0: ethernet-phy@0 {
353 interrupt-parent = <&gpio2>;
354 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
359 pinctrl-0 = <&usb1_pins>;
360 pinctrl-names = "default";