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";
18 stdout-path = "serial0:115200n8";
22 pinctrl-0 = <&module_led_pin>, <&sd_card_led_pin>;
25 label = "sd_card_led";
26 gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>;
27 linux,default-trigger = "mmc0";
32 compatible = "simple-audio-card";
33 simple-audio-card,format = "i2s";
34 simple-audio-card,name = "Haikou,I2S-codec";
35 simple-audio-card,mclk-fs = <512>;
37 simple-audio-card,codec {
38 clocks = <&sgtl5000_clk>;
39 sound-dai = <&sgtl5000>;
42 simple-audio-card,cpu {
49 sgtl5000_clk: sgtl5000-oscillator {
50 compatible = "fixed-clock";
52 clock-frequency = <24576000>;
56 compatible = "regulator-fixed";
57 regulator-name = "dc_12v";
60 regulator-min-microvolt = <12000000>;
61 regulator-max-microvolt = <12000000>;
64 vcc3v3_baseboard: vcc3v3-baseboard {
65 compatible = "regulator-fixed";
66 regulator-name = "vcc3v3_baseboard";
69 regulator-min-microvolt = <3300000>;
70 regulator-max-microvolt = <3300000>;
71 vin-supply = <&dc_12v>;
74 vcc5v0_baseboard: vcc5v0-baseboard {
75 compatible = "regulator-fixed";
76 regulator-name = "vcc5v0_baseboard";
79 regulator-min-microvolt = <5000000>;
80 regulator-max-microvolt = <5000000>;
81 vin-supply = <&dc_12v>;
84 vcc5v0_otg: vcc5v0-otg-regulator {
85 compatible = "regulator-fixed";
87 gpio = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
88 pinctrl-names = "default";
89 pinctrl-0 = <&otg_vbus_drv>;
90 regulator-name = "vcc5v0_otg";
94 vdda_codec: vdda-codec {
95 compatible = "regulator-fixed";
96 regulator-name = "vdda_codec";
98 regulator-min-microvolt = <3300000>;
99 regulator-max-microvolt = <3300000>;
100 vin-supply = <&vcc5v0_baseboard>;
103 vddd_codec: vddd-codec {
104 compatible = "regulator-fixed";
105 regulator-name = "vddd_codec";
107 regulator-min-microvolt = <1600000>;
108 regulator-max-microvolt = <1600000>;
109 vin-supply = <&vcc5v0_baseboard>;
114 ddc-i2c-bus = <&i2c3>;
120 clock-frequency = <400000>;
125 clock-frequency = <400000>;
129 i2c-scl-rising-time-ns = <450>;
130 i2c-scl-falling-time-ns = <15>;
136 clock-frequency = <400000>;
139 compatible = "fsl,sgtl5000";
141 clocks = <&sgtl5000_clk>;
142 #sound-dai-cells = <0>;
143 VDDA-supply = <&vdda_codec>;
144 VDDIO-supply = <&vdda_codec>;
145 VDDD-supply = <&vddd_codec>;
152 clock-frequency = <400000>;
160 ep-gpios = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
162 pinctrl-names = "default";
163 pinctrl-0 = <&pcie_clkreqn_cpm>;
168 pinctrl-names = "default";
169 pinctrl-0 = <&haikou_pin_hog>;
172 haikou_pin_hog: haikou-pin-hog {
175 <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>,
177 <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>,
179 <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>,
181 <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>;
186 sd_card_led_pin: sd-card-led-pin {
188 <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
193 otg_vbus_drv: otg-vbus-drv {
195 <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
208 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
210 max-frequency = <40000000>;
211 pinctrl-names = "default";
212 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
213 vmmc-supply = <&vcc3v3_baseboard>;
235 extcon = <&extcon_usb3>;
240 phy-supply = <&vcc5v0_otg>;
245 pinctrl-names = "default";
246 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;