Lines Matching +full:codec +full:- +full:gpio2

1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 /dts-v1/;
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
12 #include <dt-bindings/pinctrl/rockchip.h>
21 stdout-path = "serial2:115200n8";
25 compatible = "pwm-backlight";
26 power-supply = <&vcc_bl>;
30 builtin_gamepad: gpio-keys {
31 compatible = "gpio-keys";
32 pinctrl-names = "default";
33 pinctrl-0 = <&btn_pins>;
35 button-sw1 {
37 label = "DPAD-UP";
40 button-sw2 {
42 label = "DPAD-DOWN";
45 button-sw3 {
47 label = "DPAD-LEFT";
50 button-sw4 {
52 label = "DPAD-RIGHT";
55 button-sw5 {
57 label = "BTN-A";
60 button-sw6 {
62 label = "BTN-B";
65 button-sw7 {
67 label = "BTN-Y";
70 button-sw8 {
72 label = "BTN-X";
75 btn_f1: button-sw9 {
76 gpios = <&gpio2 RK_PA0 GPIO_ACTIVE_LOW>;
80 btn_f2: button-sw10 {
81 gpios = <&gpio2 RK_PA1 GPIO_ACTIVE_LOW>;
85 btn_f3: button-sw11 {
86 gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_LOW>;
90 btn_f4: button-sw12 {
91 gpios = <&gpio2 RK_PA3 GPIO_ACTIVE_LOW>;
95 btn_f5: button-sw13 {
96 gpios = <&gpio2 RK_PA4 GPIO_ACTIVE_LOW>;
100 btn_f6: button-sw14 {
101 gpios = <&gpio2 RK_PA5 GPIO_ACTIVE_LOW>;
105 button-sw15 {
106 gpios = <&gpio2 RK_PA6 GPIO_ACTIVE_LOW>;
107 label = "TOP-LEFT";
110 button-sw16 {
111 gpios = <&gpio2 RK_PA7 GPIO_ACTIVE_LOW>;
112 label = "TOP-RIGHT";
117 /* led-1 is wired directly to output of always-on regulator */
119 gpio_led: gpio-leds {
120 compatible = "gpio-leds";
121 pinctrl-names = "default";
122 pinctrl-0 = <&red_led_pin>;
124 red_led: led-3 {
131 pwm_led: led-controller {
132 compatible = "pwm-leds";
134 blue_led: led-2 {
137 linux,default-trigger = "heartbeat";
138 max-brightness = <255>;
143 rk817-sound {
144 compatible = "simple-audio-card";
145 simple-audio-card,name = "rk817_int";
146 simple-audio-card,format = "i2s";
147 simple-audio-card,hp-det-gpios = <&gpio2 RK_PC6 GPIO_ACTIVE_HIGH>;
148 simple-audio-card,mclk-fs = <256>;
149 simple-audio-card,widgets =
153 simple-audio-card,routing =
159 simple-audio-card,codec {
160 sound-dai = <&rk817>;
163 simple-audio-card,cpu {
164 sound-dai = <&i2s1_2ch>;
168 vccsys: regulator-vccsys {
169 compatible = "regulator-fixed";
170 regulator-name = "vcc3v8_sys";
171 regulator-always-on;
172 regulator-min-microvolt = <3800000>;
173 regulator-max-microvolt = <3800000>;
176 vcc_host: regulator-vcc-host {
177 compatible = "regulator-fixed";
178 regulator-name = "vcc_host";
179 regulator-min-microvolt = <5000000>;
180 regulator-max-microvolt = <5000000>;
183 enable-active-high;
184 regulator-always-on;
185 regulator-boot-on;
186 vin-supply = <&usb_midu>;
191 cpu-supply = <&vdd_arm>;
195 cpu-supply = <&vdd_arm>;
199 cpu-supply = <&vdd_arm>;
203 cpu-supply = <&vdd_arm>;
207 assigned-clocks = <&cru PLL_NPLL>,
212 assigned-clock-rates = <1188000000>,
223 #address-cells = <1>;
224 #size-cells = <0>;
232 remote-endpoint = <&mipi_in_panel>;
240 reset-gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_LOW>;
245 remote-endpoint = <&mipi_out_panel>;
256 mali-supply = <&vdd_logic>;
261 clock-frequency = <400000>;
262 i2c-scl-falling-time-ns = <16>;
263 i2c-scl-rising-time-ns = <280>;
269 interrupt-parent = <&gpio0>;
271 clock-output-names = "rk808-clkout1", "xin32k";
272 clock-names = "mclk";
274 pinctrl-names = "default";
275 pinctrl-0 = <&pmic_int>, <&i2s1_2ch_mclk>;
276 wakeup-source;
277 #clock-cells = <1>;
278 #sound-dai-cells = <0>;
280 vcc1-supply = <&vccsys>;
281 vcc2-supply = <&vccsys>;
282 vcc3-supply = <&vccsys>;
283 vcc4-supply = <&vccsys>;
284 vcc5-supply = <&vccsys>;
285 vcc6-supply = <&vccsys>;
286 vcc7-supply = <&vccsys>;
287 vcc8-supply = <&vccsys>;
291 regulator-name = "vdd_logic";
292 regulator-min-microvolt = <950000>;
293 regulator-max-microvolt = <1150000>;
294 regulator-ramp-delay = <6001>;
295 regulator-always-on;
296 regulator-boot-on;
298 regulator-state-mem {
299 regulator-on-in-suspend;
300 regulator-suspend-microvolt = <950000>;
305 regulator-name = "vdd_arm";
306 regulator-min-microvolt = <950000>;
307 regulator-max-microvolt = <1350000>;
308 regulator-ramp-delay = <6001>;
309 regulator-always-on;
310 regulator-boot-on;
312 regulator-state-mem {
313 regulator-off-in-suspend;
314 regulator-suspend-microvolt = <950000>;
319 regulator-name = "vcc_ddr";
320 regulator-always-on;
321 regulator-boot-on;
323 regulator-state-mem {
324 regulator-on-in-suspend;
329 regulator-name = "vcc_3v3";
330 regulator-min-microvolt = <3300000>;
331 regulator-max-microvolt = <3300000>;
332 regulator-always-on;
333 regulator-boot-on;
335 regulator-state-mem {
336 regulator-off-in-suspend;
337 regulator-suspend-microvolt = <3300000>;
342 regulator-name = "vcc_1v8";
343 regulator-min-microvolt = <1800000>;
344 regulator-max-microvolt = <1800000>;
345 regulator-always-on;
346 regulator-boot-on;
348 regulator-state-mem {
349 regulator-on-in-suspend;
350 regulator-suspend-microvolt = <1800000>;
355 regulator-name = "vdd_1v0";
356 regulator-min-microvolt = <1000000>;
357 regulator-max-microvolt = <1000000>;
358 regulator-always-on;
359 regulator-boot-on;
361 regulator-state-mem {
362 regulator-on-in-suspend;
363 regulator-suspend-microvolt = <1000000>;
368 regulator-name = "vcc3v3_pmu";
369 regulator-min-microvolt = <3300000>;
370 regulator-max-microvolt = <3300000>;
371 regulator-always-on;
372 regulator-boot-on;
374 regulator-state-mem {
375 regulator-on-in-suspend;
376 regulator-suspend-microvolt = <3300000>;
381 regulator-name = "vccio_sd";
382 regulator-min-microvolt = <1800000>;
383 regulator-max-microvolt = <3300000>;
384 regulator-always-on;
385 regulator-boot-on;
387 regulator-state-mem {
388 regulator-on-in-suspend;
389 regulator-suspend-microvolt = <3300000>;
394 regulator-name = "vcc_sd";
395 regulator-min-microvolt = <3300000>;
396 regulator-max-microvolt = <3300000>;
397 regulator-boot-on;
399 regulator-state-mem {
400 regulator-on-in-suspend;
401 regulator-suspend-microvolt = <3300000>;
406 regulator-name = "vcc_bl";
407 regulator-min-microvolt = <3300000>;
408 regulator-max-microvolt = <3300000>;
410 regulator-state-mem {
411 regulator-off-in-suspend;
412 regulator-suspend-microvolt = <3300000>;
417 regulator-name = "vcc_lcd";
418 regulator-min-microvolt = <2800000>;
419 regulator-max-microvolt = <2800000>;
421 regulator-state-mem {
422 regulator-off-in-suspend;
423 regulator-suspend-microvolt = <2800000>;
432 regulator-name = "usb_midu";
433 regulator-min-microvolt = <5000000>;
434 regulator-max-microvolt = <5400000>;
435 regulator-always-on;
436 regulator-boot-on;
441 rockchip,resistor-sense-micro-ohms = <10000>;
442 rockchip,sleep-enter-current-microamp = <300000>;
443 rockchip,sleep-filter-current-microamp = <100000>;
446 rk817_codec: codec {
447 rockchip,mic-in-differential;
454 clock-frequency = <400000>;
464 vccio1-supply = <&vcc_3v3>;
465 vccio2-supply = <&vccio_sd>;
466 vccio3-supply = <&vcc_3v3>;
467 vccio4-supply = <&vcc_3v3>;
468 vccio5-supply = <&vcc_3v3>;
469 vccio6-supply = <&vcc_3v3>;
474 pmuio1-supply = <&vcc3v3_pmu>;
475 pmuio2-supply = <&vcc3v3_pmu>;
488 vref-supply = <&vcc_1v8>;
493 cap-sd-highspeed;
494 card-detect-delay = <200>;
495 cd-gpios = <&gpio0 RK_PA3 GPIO_ACTIVE_LOW>; /*[> CD GPIO <]*/
496 sd-uhs-sdr12;
497 sd-uhs-sdr25;
498 sd-uhs-sdr50;
499 sd-uhs-sdr104;
500 vmmc-supply = <&vcc_sd>;
501 vqmmc-supply = <&vccio_sd>;
506 pinctrl-0 = <&sfc_clk &sfc_cs0 &sfc_bus2>;
507 pinctrl-names = "default";
508 #address-cells = <1>;
509 #size-cells = <0>;
513 compatible = "jedec,spi-nor";
515 spi-max-frequency = <108000000>;
516 spi-rx-bus-width = <2>;
517 spi-tx-bus-width = <1>;
528 u2phy_host: host-port {
532 u2phy_otg: otg-port {
543 pinctrl-names = "default";
544 pinctrl-0 = <&uart1_xfer &uart1_cts>;
549 pinctrl-names = "default";
550 pinctrl-0 = <&uart2m1_xfer>;
564 btn_pins: btn-pins {
585 hp_det: hp-det {
591 red_led_pin: red-led-pin {
597 dc_det: dc-det {
601 pmic_int: pmic-int {