1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2018 Theobroma Systems Design und Consulting GmbH
7 #include "rk3368-lion.dtsi"
10 model = "Theobroma Systems RK3368-uQ7 Baseboard";
11 compatible = "tsd,rk3368-lion-haikou", "rockchip,rk3368";
14 stdout-path = "serial0:115200n8";
20 compatible = "atmel,24c01";
28 pinctrl-0 = <&led_pins_module>, <&led_sd_haikou>;
31 label = "sd_card_led";
32 gpios = <&gpio0 RK_PD2 GPIO_ACTIVE_HIGH>;
33 linux,default-trigger = "mmc0";
38 compatible = "regulator-fixed";
39 regulator-name = "dc_12v";
42 regulator-min-microvolt = <12000000>;
43 regulator-max-microvolt = <12000000>;
46 vcc3v3_baseboard: vcc3v3-baseboard {
47 compatible = "regulator-fixed";
48 regulator-name = "vcc3v3_baseboard";
51 regulator-min-microvolt = <3300000>;
52 regulator-max-microvolt = <3300000>;
53 vin-supply = <&dc_12v>;
56 vcc5v0_otg: vcc5v0-otg-regulator {
57 compatible = "regulator-fixed";
59 gpio = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
60 pinctrl-names = "default";
61 pinctrl-0 = <&otg_vbus_drv>;
62 regulator-name = "vcc5v0_otg";
71 cd-gpios = <&gpio2 RK_PB3 GPIO_ACTIVE_LOW>;
73 max-frequency = <25000000>;
74 pinctrl-names = "default";
75 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
76 rockchip,default-sample-phase = <90>;
77 vmmc-supply = <&vcc3v3_baseboard>;
82 cs-gpios = <0>, <&gpio2 RK_PC3 GPIO_ACTIVE_LOW>;
87 pinctrl-names = "default";
88 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
98 pinctrl-names = "default";
99 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
104 /* alternate function of GPIO5/6 */
109 pinctrl-names = "default";
110 pinctrl-0 = <&haikou_pin_hog>;
113 haikou_pin_hog: haikou-pin-hog {
116 <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>,
118 <0 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>,
120 <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>,
122 <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
127 led_sd_haikou: led-sd-gpio {
129 <0 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
134 sdmmc_cd_gpio: sdmmc-cd-gpio {
136 <2 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
141 otg_vbus_drv: otg-vbus-drv {
143 <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;