1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
7 #include "rk3399-puma.dtsi"
8 #include <dt-bindings/input/input.h>
11 model = "Theobroma Systems RK3399-Q7 SoM";
12 compatible = "tsd,rk3399-puma-haikou", "rockchip,rk3399";
19 stdout-path = "serial0:115200n8";
23 compatible = "gpio-keys";
24 pinctrl-0 = <&haikou_keys_pin>;
25 pinctrl-names = "default";
28 gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_BATTERY>;
34 gpios = <&gpio0 RK_PB3 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_SLEEP>;
40 gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_WAKEUP>;
47 gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
49 linux,code = <SW_LID>;
50 linux,input-type = <EV_SW>;
55 pinctrl-0 = <&module_led_pin>, <&sd_card_led_pin>;
58 label = "sd_card_led";
59 gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>;
60 linux,default-trigger = "mmc0";
65 compatible = "simple-audio-card";
66 simple-audio-card,format = "i2s";
67 simple-audio-card,name = "Haikou,I2S-codec";
68 simple-audio-card,mclk-fs = <512>;
70 simple-audio-card,codec {
71 clocks = <&sgtl5000_clk>;
72 sound-dai = <&sgtl5000>;
75 simple-audio-card,cpu {
82 sgtl5000_clk: sgtl5000-oscillator {
83 compatible = "fixed-clock";
85 clock-frequency = <24576000>;
89 compatible = "regulator-fixed";
90 regulator-name = "dc_12v";
93 regulator-min-microvolt = <12000000>;
94 regulator-max-microvolt = <12000000>;
97 vcc3v3_baseboard: vcc3v3-baseboard {
98 compatible = "regulator-fixed";
99 regulator-name = "vcc3v3_baseboard";
102 regulator-min-microvolt = <3300000>;
103 regulator-max-microvolt = <3300000>;
104 vin-supply = <&dc_12v>;
107 vcc5v0_baseboard: vcc5v0-baseboard {
108 compatible = "regulator-fixed";
109 regulator-name = "vcc5v0_baseboard";
112 regulator-min-microvolt = <5000000>;
113 regulator-max-microvolt = <5000000>;
114 vin-supply = <&dc_12v>;
117 vcc5v0_otg: vcc5v0-otg-regulator {
118 compatible = "regulator-fixed";
120 gpio = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
121 pinctrl-names = "default";
122 pinctrl-0 = <&otg_vbus_drv>;
123 regulator-name = "vcc5v0_otg";
127 vdda_codec: vdda-codec {
128 compatible = "regulator-fixed";
129 regulator-name = "vdda_codec";
131 regulator-min-microvolt = <3300000>;
132 regulator-max-microvolt = <3300000>;
133 vin-supply = <&vcc5v0_baseboard>;
136 vddd_codec: vddd-codec {
137 compatible = "regulator-fixed";
138 regulator-name = "vddd_codec";
140 regulator-min-microvolt = <1600000>;
141 regulator-max-microvolt = <1600000>;
142 vin-supply = <&vcc5v0_baseboard>;
147 ddc-i2c-bus = <&i2c3>;
153 clock-frequency = <400000>;
158 clock-frequency = <400000>;
162 i2c-scl-rising-time-ns = <450>;
163 i2c-scl-falling-time-ns = <15>;
169 clock-frequency = <400000>;
172 compatible = "fsl,sgtl5000";
174 clocks = <&sgtl5000_clk>;
175 #sound-dai-cells = <0>;
176 VDDA-supply = <&vdda_codec>;
177 VDDIO-supply = <&vdda_codec>;
178 VDDD-supply = <&vddd_codec>;
185 clock-frequency = <400000>;
193 ep-gpios = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
195 pinctrl-names = "default";
196 pinctrl-0 = <&pcie_clkreqn_cpm>;
202 haikou_keys_pin: haikou-keys-pin {
205 <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>,
207 <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>,
209 <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>,
211 <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>;
216 sd_card_led_pin: sd-card-led-pin {
218 <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
223 otg_vbus_drv: otg-vbus-drv {
225 <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
238 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
240 max-frequency = <40000000>;
241 pinctrl-names = "default";
242 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
243 vmmc-supply = <&vcc3v3_baseboard>;
265 extcon = <&extcon_usb3>;
270 phy-supply = <&vcc5v0_otg>;
275 pinctrl-names = "default";
276 pinctrl-0 = <&uart0_xfer>;
281 rts-gpios = <&gpio2 RK_PC3 GPIO_ACTIVE_HIGH>;