1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
7 #include "rk3399-puma.dtsi"
10 model = "Theobroma Systems RK3399-Q7 SoM";
11 compatible = "tsd,rk3399-puma-haikou", "rockchip,rk3399";
14 stdout-path = "serial0:115200n8";
18 pinctrl-0 = <&module_led_pin>, <&sd_card_led_pin>;
21 label = "sd_card_led";
22 gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>;
23 linux,default-trigger = "mmc0";
28 compatible = "simple-audio-card";
29 simple-audio-card,format = "i2s";
30 simple-audio-card,name = "Haikou,I2S-codec";
31 simple-audio-card,mclk-fs = <512>;
33 simple-audio-card,codec {
34 clocks = <&sgtl5000_clk>;
35 sound-dai = <&sgtl5000>;
38 simple-audio-card,cpu {
45 sgtl5000_clk: sgtl5000-oscillator {
46 compatible = "fixed-clock";
48 clock-frequency = <24576000>;
52 compatible = "regulator-fixed";
53 regulator-name = "dc_12v";
56 regulator-min-microvolt = <12000000>;
57 regulator-max-microvolt = <12000000>;
60 vcc3v3_baseboard: vcc3v3-baseboard {
61 compatible = "regulator-fixed";
62 regulator-name = "vcc3v3_baseboard";
65 regulator-min-microvolt = <3300000>;
66 regulator-max-microvolt = <3300000>;
67 vin-supply = <&dc_12v>;
70 vcc5v0_baseboard: vcc5v0-baseboard {
71 compatible = "regulator-fixed";
72 regulator-name = "vcc5v0_baseboard";
75 regulator-min-microvolt = <5000000>;
76 regulator-max-microvolt = <5000000>;
77 vin-supply = <&dc_12v>;
80 vcc5v0_otg: vcc5v0-otg-regulator {
81 compatible = "regulator-fixed";
83 gpio = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
84 pinctrl-names = "default";
85 pinctrl-0 = <&otg_vbus_drv>;
86 regulator-name = "vcc5v0_otg";
90 vdda_codec: vdda-codec {
91 compatible = "regulator-fixed";
92 regulator-name = "vdda_codec";
94 regulator-min-microvolt = <3300000>;
95 regulator-max-microvolt = <3300000>;
96 vin-supply = <&vcc5v0_baseboard>;
99 vddd_codec: vddd-codec {
100 compatible = "regulator-fixed";
101 regulator-name = "vddd_codec";
103 regulator-min-microvolt = <1600000>;
104 regulator-max-microvolt = <1600000>;
105 vin-supply = <&vcc5v0_baseboard>;
110 ddc-i2c-bus = <&i2c3>;
116 clock-frequency = <400000>;
121 clock-frequency = <400000>;
125 i2c-scl-rising-time-ns = <450>;
126 i2c-scl-falling-time-ns = <15>;
132 clock-frequency = <400000>;
135 compatible = "fsl,sgtl5000";
137 clocks = <&sgtl5000_clk>;
138 #sound-dai-cells = <0>;
139 VDDA-supply = <&vdda_codec>;
140 VDDIO-supply = <&vdda_codec>;
141 VDDD-supply = <&vddd_codec>;
148 clock-frequency = <400000>;
156 ep-gpios = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
158 pinctrl-names = "default";
159 pinctrl-0 = <&pcie_clkreqn_cpm>;
164 pinctrl-names = "default";
165 pinctrl-0 = <&haikou_pin_hog>;
168 haikou_pin_hog: haikou-pin-hog {
171 <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>,
173 <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>,
175 <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>,
177 <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>;
182 sd_card_led_pin: sd-card-led-pin {
184 <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
189 otg_vbus_drv: otg-vbus-drv {
191 <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
204 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
206 max-frequency = <150000000>;
207 pinctrl-names = "default";
208 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
209 vmmc-supply = <&vcc3v3_baseboard>;
235 phy-supply = <&vcc5v0_otg>;
240 pinctrl-names = "default";
241 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;