Lines Matching +full:codec +full:- +full:gpio3

1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
7 #include "px30-ringneck.dtsi"
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/leds/common.h>
12 model = "Theobroma Systems PX30-uQ7 SoM on Haikou devkit";
13 compatible = "tsd,px30-ringneck-haikou", "rockchip,px30";
21 stdout-path = "serial0:115200n8";
24 gpio-keys {
25 compatible = "gpio-keys";
26 pinctrl-0 = <&haikou_keys_pin>;
27 pinctrl-names = "default";
29 button-batlow-n {
32 gpios = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
35 button-slp-btn-n {
41 button-wake-n {
45 wakeup-source;
48 switch-lid-btn-n {
51 linux,input-type = <EV_SW>;
52 gpios = <&gpio3 RK_PA6 GPIO_ACTIVE_LOW>;
57 pinctrl-0 = <&module_led_pin>, <&sd_card_led_pin>;
59 sd_card_led: led-1 {
60 gpios = <&gpio3 RK_PB3 GPIO_ACTIVE_HIGH>;
61 linux,default-trigger = "mmc2";
67 i2s0-sound {
68 compatible = "simple-audio-card";
69 simple-audio-card,format = "i2s";
70 simple-audio-card,name = "Haikou,I2S-codec";
71 simple-audio-card,mclk-fs = <512>;
72 simple-audio-card,frame-master = <&sgtl5000_codec>;
73 simple-audio-card,bitclock-master = <&sgtl5000_codec>;
75 sgtl5000_codec: simple-audio-card,codec {
76 sound-dai = <&sgtl5000>;
78 // frequency. We are using a fixed-frequency oscillator.
79 system-clock-fixed;
82 simple-audio-card,cpu {
83 sound-dai = <&i2s0_8ch>;
87 sgtl5000_clk: sgtl5000-oscillator {
88 compatible = "fixed-clock";
89 #clock-cells = <0>;
90 clock-frequency = <24576000>;
93 dc_12v: dc-12v-regulator {
94 compatible = "regulator-fixed";
95 regulator-name = "dc_12v";
96 regulator-always-on;
97 regulator-boot-on;
98 regulator-min-microvolt = <12000000>;
99 regulator-max-microvolt = <12000000>;
102 vcc3v3_baseboard: vcc3v3-baseboard-regulator {
103 compatible = "regulator-fixed";
104 regulator-name = "vcc3v3_baseboard";
105 regulator-always-on;
106 regulator-boot-on;
107 regulator-min-microvolt = <3300000>;
108 regulator-max-microvolt = <3300000>;
109 vin-supply = <&dc_12v>;
112 vcc5v0_baseboard: vcc5v0-baseboard-regulator {
113 compatible = "regulator-fixed";
114 regulator-name = "vcc5v0_baseboard";
115 regulator-always-on;
116 regulator-boot-on;
117 regulator-min-microvolt = <5000000>;
118 regulator-max-microvolt = <5000000>;
119 vin-supply = <&dc_12v>;
122 vdda_codec: vdda-codec-regulator {
123 compatible = "regulator-fixed";
124 regulator-name = "vdda_codec";
125 regulator-boot-on;
126 regulator-min-microvolt = <3300000>;
127 regulator-max-microvolt = <3300000>;
128 vin-supply = <&vcc5v0_baseboard>;
131 vddd_codec: vddd-codec-regulator {
132 compatible = "regulator-fixed";
133 regulator-name = "vddd_codec";
134 regulator-boot-on;
135 regulator-min-microvolt = <1600000>;
136 regulator-max-microvolt = <1600000>;
137 vin-supply = <&vcc5v0_baseboard>;
143 clock-frequency = <400000>;
145 sgtl5000: codec@a {
149 #sound-dai-cells = <0>;
150 VDDA-supply = <&vdda_codec>;
151 VDDIO-supply = <&vcc3v3_baseboard>;
152 VDDD-supply = <&vddd_codec>;
162 vcc-supply = <&vcc3v3_baseboard>;
176 haikou_keys_pin: haikou-keys-pin {
192 sd_card_led_pin: sd-card-led-pin {
204 sd-uhs-sdr12;
205 sd-uhs-sdr25;
206 sd-uhs-sdr50;
207 bus-width = <4>;
208 cap-mmc-highspeed;
209 cap-sd-highspeed;
210 cd-gpios = <&gpio0 RK_PA3 GPIO_ACTIVE_LOW>;
211 disable-wp;
212 vmmc-supply = <&vcc3v3_baseboard>;
229 pinctrl-0 = <&uart5_xfer>;