1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2022 Theobroma Systems Design und Consulting GmbH
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";
20 stdout-path = "serial0:115200n8";
24 compatible = "gpio-keys";
25 pinctrl-0 = <&haikou_keys_pin>;
26 pinctrl-names = "default";
30 linux,code = <KEY_BATTERY>;
31 gpios = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_SLEEP>;
37 gpios = <&gpio1 RK_PB7 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_WAKEUP>;
43 gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_LOW>;
49 linux,code = <SW_LID>;
50 linux,input-type = <EV_SW>;
51 gpios = <&gpio3 RK_PA6 GPIO_ACTIVE_LOW>;
56 pinctrl-0 = <&module_led_pin>, <&sd_card_led_pin>;
59 gpios = <&gpio3 RK_PB3 GPIO_ACTIVE_HIGH>;
60 linux,default-trigger = "mmc2";
61 function = LED_FUNCTION_SD;
62 color = <LED_COLOR_ID_BLUE>;
67 compatible = "simple-audio-card";
68 simple-audio-card,format = "i2s";
69 simple-audio-card,name = "Haikou,I2S-codec";
70 simple-audio-card,mclk-fs = <512>;
72 simple-audio-card,codec {
73 clocks = <&sgtl5000_clk>;
74 sound-dai = <&sgtl5000>;
77 simple-audio-card,cpu {
80 sound-dai = <&i2s0_8ch>;
84 sgtl5000_clk: sgtl5000-oscillator {
85 compatible = "fixed-clock";
87 clock-frequency = <24576000>;
90 dc_12v: dc-12v-regulator {
91 compatible = "regulator-fixed";
92 regulator-name = "dc_12v";
95 regulator-min-microvolt = <12000000>;
96 regulator-max-microvolt = <12000000>;
99 vcc3v3_baseboard: vcc3v3-baseboard-regulator {
100 compatible = "regulator-fixed";
101 regulator-name = "vcc3v3_baseboard";
104 regulator-min-microvolt = <3300000>;
105 regulator-max-microvolt = <3300000>;
106 vin-supply = <&dc_12v>;
109 vcc5v0_baseboard: vcc5v0-baseboard-regulator {
110 compatible = "regulator-fixed";
111 regulator-name = "vcc5v0_baseboard";
114 regulator-min-microvolt = <5000000>;
115 regulator-max-microvolt = <5000000>;
116 vin-supply = <&dc_12v>;
119 vdda_codec: vdda-codec-regulator {
120 compatible = "regulator-fixed";
121 regulator-name = "vdda_codec";
123 regulator-min-microvolt = <3300000>;
124 regulator-max-microvolt = <3300000>;
125 vin-supply = <&vcc5v0_baseboard>;
128 vddd_codec: vddd-codec-regulator {
129 compatible = "regulator-fixed";
130 regulator-name = "vddd_codec";
132 regulator-min-microvolt = <1600000>;
133 regulator-max-microvolt = <1600000>;
134 vin-supply = <&vcc5v0_baseboard>;
140 clock-frequency = <400000>;
143 compatible = "fsl,sgtl5000";
145 clocks = <&sgtl5000_clk>;
146 #sound-dai-cells = <0>;
147 VDDA-supply = <&vdda_codec>;
148 VDDIO-supply = <&vcc3v3_baseboard>;
149 VDDD-supply = <&vddd_codec>;
156 compatible = "atmel,24c01";
159 vcc-supply = <&vcc3v3_baseboard>;
173 haikou_keys_pin: haikou-keys-pin {
176 <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_up>,
178 <1 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>,
180 <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>,
182 <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>,
184 <2 RK_PC2 RK_FUNC_GPIO &pcfg_pull_up>;
189 sd_card_led_pin: sd-card-led-pin {
191 <3 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
207 cd-gpios = <&gpio0 RK_PA3 GPIO_ACTIVE_LOW>;
209 vmmc-supply = <&vcc3v3_baseboard>;
226 pinctrl-0 = <&uart5_xfer>;