blob: b7a3e6caa3864edaea3d2608843dab5516699ee3 [file] [log] [blame]
Paul Barkere3e01a62023-10-16 10:25:42 +01001// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2/*
3 * Device Tree Source for the RZ/{G2L,G2LC,V2L} SMARC EVK common parts
4 *
5 * Copyright (C) 2022 Renesas Electronics Corp.
6 */
7
8#include <dt-bindings/gpio/gpio.h>
9#include <dt-bindings/pinctrl/rzg2l-pinctrl.h>
10
11/*
12 * SSI-WM8978
13 *
14 * This command is required when Playback/Capture
15 *
16 * amixer cset name='Left Input Mixer L2 Switch' on
17 * amixer cset name='Right Input Mixer R2 Switch' on
18 * amixer cset name='Headphone Playback Volume' 100
19 * amixer cset name='PCM Volume' 100%
20 * amixer cset name='Input PGA Volume' 25
21 *
22 */
23
24/ {
25 aliases {
26 serial0 = &scif0;
27 i2c0 = &i2c0;
28 i2c1 = &i2c1;
29 };
30
31 chosen {
32 stdout-path = "serial0:115200n8";
33 };
34
Paul Barkere3e01a62023-10-16 10:25:42 +010035 snd_rzg2l: sound {
36 compatible = "simple-audio-card";
37 simple-audio-card,format = "i2s";
38 simple-audio-card,bitclock-master = <&cpu_dai>;
39 simple-audio-card,frame-master = <&cpu_dai>;
40 simple-audio-card,mclk-fs = <256>;
41
42 simple-audio-card,widgets = "Microphone", "Microphone Jack";
43 simple-audio-card,routing =
44 "L2", "Mic Bias",
45 "R2", "Mic Bias",
46 "Mic Bias", "Microphone Jack";
47
48 cpu_dai: simple-audio-card,cpu {
49 };
50
51 codec_dai: simple-audio-card,codec {
Paul Barkerd4f0ff92024-02-27 20:40:29 +000052 clocks = <&versa3 2>;
Paul Barkere3e01a62023-10-16 10:25:42 +010053 sound-dai = <&wm8978>;
54 };
55 };
56
57 usb0_vbus_otg: regulator-usb0-vbus-otg {
58 compatible = "regulator-fixed";
59
60 regulator-name = "USB0_VBUS_OTG";
61 regulator-min-microvolt = <5000000>;
62 regulator-max-microvolt = <5000000>;
63 };
64
65 vccq_sdhi1: regulator-vccq-sdhi1 {
66 compatible = "regulator-gpio";
67 regulator-name = "SDHI1 VccQ";
68 regulator-min-microvolt = <1800000>;
69 regulator-max-microvolt = <3300000>;
70 gpios-states = <1>;
71 states = <3300000 1>, <1800000 0>;
72 };
Paul Barkerd4f0ff92024-02-27 20:40:29 +000073
74 x1: x1-clock {
75 compatible = "fixed-clock";
76 #clock-cells = <0>;
77 clock-frequency = <24000000>;
78 };
Paul Barkere3e01a62023-10-16 10:25:42 +010079};
80
Paul Barkerd4f0ff92024-02-27 20:40:29 +000081&audio_clk1 {
Paul Barkere3e01a62023-10-16 10:25:42 +010082 clock-frequency = <11289600>;
83};
84
Paul Barkerd4f0ff92024-02-27 20:40:29 +000085&audio_clk2 {
Paul Barkere3e01a62023-10-16 10:25:42 +010086 clock-frequency = <12288000>;
87};
88
89&canfd {
90 pinctrl-0 = <&can0_pins &can1_pins>;
91 pinctrl-names = "default";
92 status = "okay";
93
94 channel0 {
95 status = "okay";
96 };
97
98 channel1 {
99 status = "okay";
100 };
101};
102
103&ehci0 {
104 dr_mode = "otg";
105 status = "okay";
106};
107
108&ehci1 {
109 status = "okay";
110};
111
112&hsusb {
113 dr_mode = "otg";
114 status = "okay";
115};
116
117&i2c0 {
118 pinctrl-0 = <&i2c0_pins>;
119 pinctrl-names = "default";
120
121 status = "okay";
122};
123
124&i2c1 {
125 pinctrl-0 = <&i2c1_pins>;
126 pinctrl-names = "default";
127
128 status = "okay";
129};
130
131&ohci0 {
132 dr_mode = "otg";
133 status = "okay";
134};
135
136&ohci1 {
137 status = "okay";
138};
139
140&phyrst {
141 status = "okay";
142};
143
144&scif0 {
145 pinctrl-0 = <&scif0_pins>;
146 pinctrl-names = "default";
147 status = "okay";
148};
149
150&sdhi1 {
151 pinctrl-0 = <&sdhi1_pins>;
152 pinctrl-1 = <&sdhi1_pins_uhs>;
153 pinctrl-names = "default", "state_uhs";
154
155 vmmc-supply = <&reg_3p3v>;
156 vqmmc-supply = <&vccq_sdhi1>;
157 bus-width = <4>;
158 sd-uhs-sdr50;
159 sd-uhs-sdr104;
160 status = "okay";
161};
162
163&spi1 {
164 pinctrl-0 = <&spi1_pins>;
165 pinctrl-names = "default";
166
167 status = "okay";
168};
169
170&usb2_phy0 {
171 pinctrl-0 = <&usb0_pins>;
172 pinctrl-names = "default";
173
174 vbus-supply = <&usb0_vbus_otg>;
175 status = "okay";
176};
177
178&usb2_phy1 {
179 pinctrl-0 = <&usb1_pins>;
180 pinctrl-names = "default";
181
182 status = "okay";
183};