| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
/* |
| 3 |
* Copyright (c) 2018 Theobroma Systems Design und Consulting GmbH |
| 4 |
*/ |
| 5 |
|
| 6 |
/dts-v1/; |
| 7 |
#include "rk3368-lion.dtsi" |
| 8 |
|
| 9 |
/ { |
| 10 |
model = "Theobroma Systems RK3368-uQ7 Baseboard"; |
| 11 |
compatible = "tsd,rk3368-lion-haikou", "rockchip,rk3368"; |
| 12 |
|
| 13 |
aliases { |
| 14 |
mmc1 = &sdmmc; |
| 15 |
}; |
| 16 |
|
| 17 |
chosen { |
| 18 |
stdout-path = "serial0:115200n8"; |
| 19 |
}; |
| 20 |
|
| 21 |
leds { |
| 22 |
pinctrl-0 = <&module_led_pins>, <&sd_card_led_pin>; |
| 23 |
|
| 24 |
sd_card_led: led-3 { |
| 25 |
label = "sd_card_led"; |
| 26 |
gpios = <&gpio0 RK_PD2 GPIO_ACTIVE_HIGH>; |
| 27 |
linux,default-trigger = "mmc0"; |
| 28 |
}; |
| 29 |
}; |
| 30 |
|
| 31 |
dc_12v: regulator-dc-12v { |
| 32 |
compatible = "regulator-fixed"; |
| 33 |
regulator-name = "dc_12v"; |
| 34 |
regulator-always-on; |
| 35 |
regulator-boot-on; |
| 36 |
regulator-min-microvolt = <12000000>; |
| 37 |
regulator-max-microvolt = <12000000>; |
| 38 |
}; |
| 39 |
|
| 40 |
vcc3v3_baseboard: regulator-vcc3v3-baseboard { |
| 41 |
compatible = "regulator-fixed"; |
| 42 |
regulator-name = "vcc3v3_baseboard"; |
| 43 |
regulator-always-on; |
| 44 |
regulator-boot-on; |
| 45 |
regulator-min-microvolt = <3300000>; |
| 46 |
regulator-max-microvolt = <3300000>; |
| 47 |
vin-supply = <&dc_12v>; |
| 48 |
}; |
| 49 |
|
| 50 |
vcc5v0_otg: regulator-vcc5v0-otg { |
| 51 |
compatible = "regulator-fixed"; |
| 52 |
enable-active-high; |
| 53 |
gpio = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>; |
| 54 |
pinctrl-names = "default"; |
| 55 |
pinctrl-0 = <&otg_vbus_drv>; |
| 56 |
regulator-name = "vcc5v0_otg"; |
| 57 |
regulator-always-on; |
| 58 |
}; |
| 59 |
}; |
| 60 |
|
| 61 |
&display_subsystem { |
| 62 |
status = "okay"; |
| 63 |
}; |
| 64 |
|
| 65 |
&hdmi { |
| 66 |
status = "okay"; |
| 67 |
}; |
| 68 |
|
| 69 |
&i2c_lvds_blc { |
| 70 |
eeprom: eeprom@50 { |
| 71 |
compatible = "atmel,24c01"; |
| 72 |
pagesize = <8>; |
| 73 |
reg = <0x50>; |
| 74 |
}; |
| 75 |
}; |
| 76 |
|
| 77 |
&pwm1 { |
| 78 |
status = "okay"; |
| 79 |
}; |
| 80 |
|
| 81 |
&sdmmc { |
| 82 |
bus-width = <4>; |
| 83 |
cap-mmc-highspeed; |
| 84 |
cap-sd-highspeed; |
| 85 |
cd-gpios = <&gpio2 RK_PB3 GPIO_ACTIVE_LOW>; |
| 86 |
disable-wp; |
| 87 |
max-frequency = <25000000>; |
| 88 |
pinctrl-names = "default"; |
| 89 |
pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>; |
| 90 |
rockchip,default-sample-phase = <90>; |
| 91 |
vmmc-supply = <&vcc3v3_baseboard>; |
| 92 |
status = "okay"; |
| 93 |
}; |
| 94 |
|
| 95 |
&spi2 { |
| 96 |
cs-gpios = <0>, <&gpio2 RK_PC3 GPIO_ACTIVE_LOW>; |
| 97 |
status = "okay"; |
| 98 |
}; |
| 99 |
|
| 100 |
&usb_otg { |
| 101 |
dr_mode = "otg"; |
| 102 |
status = "okay"; |
| 103 |
}; |
| 104 |
|
| 105 |
&uart0 { |
| 106 |
pinctrl-names = "default"; |
| 107 |
pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>; |
| 108 |
status = "okay"; |
| 109 |
}; |
| 110 |
|
| 111 |
&uart1 { |
| 112 |
/* alternate function of GPIO5/6 */ |
| 113 |
status = "disabled"; |
| 114 |
}; |
| 115 |
|
| 116 |
&vop { |
| 117 |
status = "okay"; |
| 118 |
}; |
| 119 |
|
| 120 |
&vop_mmu { |
| 121 |
status = "okay"; |
| 122 |
}; |
| 123 |
|
| 124 |
&pinctrl { |
| 125 |
pinctrl-names = "default"; |
| 126 |
pinctrl-0 = <&haikou_pin_hog>; |
| 127 |
|
| 128 |
hog { |
| 129 |
haikou_pin_hog: haikou-pin-hog { |
| 130 |
rockchip,pins = |
| 131 |
/* LID_BTN */ |
| 132 |
<3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>, |
| 133 |
/* BATLOW# */ |
| 134 |
<0 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>, |
| 135 |
/* SLP_BTN# */ |
| 136 |
<3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>, |
| 137 |
/* BIOS_DISABLE# */ |
| 138 |
<3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>; |
| 139 |
}; |
| 140 |
}; |
| 141 |
|
| 142 |
leds { |
| 143 |
sd_card_led_pin: sd-card-led-pin { |
| 144 |
rockchip,pins = |
| 145 |
<0 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; |
| 146 |
}; |
| 147 |
}; |
| 148 |
|
| 149 |
sdmmc { |
| 150 |
sdmmc_cd_pin: sdmmc-cd-pin { |
| 151 |
rockchip,pins = |
| 152 |
<2 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>; |
| 153 |
}; |
| 154 |
}; |
| 155 |
|
| 156 |
usb_otg { |
| 157 |
otg_vbus_drv: otg-vbus-drv { |
| 158 |
rockchip,pins = |
| 159 |
<0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>; |
| 160 |
}; |
| 161 |
}; |
| 162 |
}; |