1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree Source for the Kingfisher (ULCB extension) board
5 * Copyright (C) 2017 Renesas Electronics Corp.
6 * Copyright (C) 2017 Cogent Embedded, Inc.
11 * aplay -D plughw:0,2 xxx.wav
12 * arecord -D plughw:0,3 xxx.wav
22 clksndsel: clksndsel {
24 compatible = "gpio-mux-clock";
25 clocks = <&cs2000>, <&audio_clk_a>; /* clk8snd, clksnd */
26 select-gpios = <&gpio_exp_75 13 GPIO_ACTIVE_HIGH>;
29 snd_3p3v: regulator-snd_3p3v {
30 compatible = "regulator-fixed";
31 regulator-name = "snd-3.3v";
32 regulator-min-microvolt = <3300000>;
33 regulator-max-microvolt = <3300000>;
36 snd_vcc5v: regulator-snd_vcc5v {
37 compatible = "regulator-fixed";
38 regulator-name = "snd-vcc5v";
39 regulator-min-microvolt = <5000000>;
40 regulator-max-microvolt = <5000000>;
43 wlan_en: regulator-wlan_en {
44 compatible = "regulator-fixed";
45 regulator-name = "wlan-en-regulator";
47 regulator-min-microvolt = <3300000>;
48 regulator-max-microvolt = <3300000>;
50 gpio = <&gpio_exp_74 4 GPIO_ACTIVE_HIGH>;
51 startup-delay-us = <70000>;
57 pinctrl-0 = <&can0_pins>;
58 pinctrl-names = "default";
63 pinctrl-0 = <&can1_pins>;
64 pinctrl-names = "default";
74 pinctrl-0 = <&hscif0_pins>;
75 pinctrl-names = "default";
87 i2cswitch2: i2c-switch@71 {
88 compatible = "nxp,pca9548";
92 reset-gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
94 /* Audio_SDA, Audio_SCL */
100 pcm3168a: audio-codec@44 {
101 #sound-dai-cells = <0>;
102 compatible = "ti,pcm3168a";
104 clocks = <&clksndsel>;
105 clock-names = "scki";
107 VDD1-supply = <&snd_3p3v>;
108 VDD2-supply = <&snd_3p3v>;
109 VCCAD1-supply = <&snd_vcc5v>;
110 VCCAD2-supply = <&snd_vcc5v>;
111 VCCDA1-supply = <&snd_vcc5v>;
112 VCCDA2-supply = <&snd_vcc5v>;
115 #address-cells = <1>;
120 pcm3168a_endpoint_p: endpoint {
121 remote-endpoint = <&rsnd_for_pcm3168a_play>;
122 clocks = <&clksndsel>;
127 pcm3168a_endpoint_c: endpoint {
128 remote-endpoint = <&rsnd_for_pcm3168a_capture>;
129 clocks = <&clksndsel>;
138 gpio_exp_74: gpio@74 {
139 compatible = "ti,tca9539";
143 interrupt-controller;
144 interrupt-parent = <&gpio6>;
145 interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
149 gpios = <0 GPIO_ACTIVE_HIGH>; /* P00 */
151 line-name = "Audio_Out_OFF";
156 gpios = <6 GPIO_ACTIVE_HIGH>;
158 line-name = "HUB pwen";
163 gpios = <7 GPIO_ACTIVE_HIGH>;
165 line-name = "HUB rst";
170 gpios = <9 GPIO_ACTIVE_HIGH>;
172 line-name = "OTG EXTLPn";
177 gpios = <8 GPIO_ACTIVE_HIGH>;
179 line-name = "OTG OFFVBUSn";
184 gpios = <5 GPIO_ACTIVE_HIGH>;
185 output-low; /* Connect WL1837 */
186 line-name = "SD WiFi mux";
191 gpios = <15 GPIO_ACTIVE_HIGH>; /* P17 */
193 line-name = "SND_RST";
198 gpio_exp_75: gpio@75 {
199 compatible = "ti,tca9539";
203 interrupt-controller;
204 interrupt-parent = <&gpio6>;
205 interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
210 i2cswitch4: i2c-switch@71 {
211 compatible = "nxp,pca9548";
212 #address-cells = <1>;
215 reset-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>;
218 gpio_exp_76: gpio@76 {
219 compatible = "ti,tca9539";
223 interrupt-controller;
224 interrupt-parent = <&gpio7>;
225 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
228 gpio_exp_77: gpio@77 {
229 compatible = "ti,tca9539";
233 interrupt-controller;
234 interrupt-parent = <&gpio5>;
235 interrupts = <9 IRQ_TYPE_EDGE_FALLING>;
245 clock-frequency = <100000000>;
258 groups = "can0_data_a";
263 groups = "can1_data";
267 hscif0_pins: hscif0 {
268 groups = "hscif0_data", "hscif0_ctrl";
273 groups = "scif1_data_b", "scif1_ctrl";
278 groups = "sdhi3_data4", "sdhi3_ctrl";
280 power-source = <3300>;
283 sound_pcm_pins: sound-pcm {
284 groups = "ssi349_ctrl", "ssi3_data", "ssi4_data";
295 pinctrl-0 = <&sound_pins
300 /* rsnd_port0/1 are on salvator-common */
303 rsnd_for_pcm3168a_play: endpoint {
304 remote-endpoint = <&pcm3168a_endpoint_p>;
307 bitclock-master = <&rsnd_for_pcm3168a_play>;
308 frame-master = <&rsnd_for_pcm3168a_play>;
309 dai-tdm-slot-num = <8>;
316 rsnd_for_pcm3168a_capture: endpoint {
317 remote-endpoint = <&pcm3168a_endpoint_c>;
320 bitclock-master = <&rsnd_for_pcm3168a_capture>;
321 frame-master = <&rsnd_for_pcm3168a_capture>;
322 dai-tdm-slot-num = <6>;
331 pinctrl-0 = <&scif1_pins>;
332 pinctrl-names = "default";
339 pinctrl-0 = <&sdhi3_pins>;
340 pinctrl-names = "default";
342 vmmc-supply = <&wlan_en>;
343 vqmmc-supply = <&wlan_en>;
348 keep-power-in-suspend;
349 max-frequency = <26000000>;
352 #address-cells = <1>;
355 compatible = "ti,wl1837";
357 interrupt-parent = <&gpio1>;
358 interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
363 dais = <&rsnd_port0 /* ak4613 */
364 &rsnd_port1 /* HDMI0 */
365 &rsnd_port2 /* pcm3168a playback */
366 &rsnd_port3 /* pcm3168a capture */
375 pinctrl-0 = <&usb0_pins>;
376 pinctrl-names = "default";