1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 3 * Copyright (c) 2019 Fuzhou Rockchip Electron 4 * 5 */ 6 7 /dts-v1/; 8 #include <dt-bindings/input/input.h> 9 #include "rk3308.dtsi" 10 11 / { 12 model = "Rockchip RK3308 EVB"; 13 compatible = "rockchip,rk3308-evb", "r 14 15 chosen { 16 stdout-path = "serial4:1500000 17 }; 18 19 adc-keys0 { 20 compatible = "adc-keys"; 21 io-channels = <&saradc 0>; 22 io-channel-names = "buttons"; 23 poll-interval = <100>; 24 keyup-threshold-microvolt = <1 25 26 button-func { 27 linux,code = <KEY_FN>; 28 label = "function"; 29 press-threshold-microv 30 }; 31 }; 32 33 adc-keys1 { 34 compatible = "adc-keys"; 35 io-channels = <&saradc 1>; 36 io-channel-names = "buttons"; 37 poll-interval = <100>; 38 keyup-threshold-microvolt = <1 39 40 button-esc { 41 linux,code = <KEY_MICM 42 label = "micmute"; 43 press-threshold-microv 44 }; 45 46 button-home { 47 linux,code = <KEY_MODE 48 label = "mode"; 49 press-threshold-microv 50 }; 51 52 button-menu { 53 linux,code = <KEY_PLAY 54 label = "play"; 55 press-threshold-microv 56 }; 57 58 button-down { 59 linux,code = <KEY_VOLU 60 label = "volume down"; 61 press-threshold-microv 62 }; 63 64 button-up { 65 linux,code = <KEY_VOLU 66 label = "volume up"; 67 press-threshold-microv 68 }; 69 }; 70 71 gpio-keys { 72 compatible = "gpio-keys"; 73 autorepeat; 74 75 pinctrl-names = "default"; 76 pinctrl-0 = <&pwr_key>; 77 78 key-power { 79 gpios = <&gpio0 RK_PA6 80 linux,code = <KEY_POWE 81 label = "GPIO Key Powe 82 debounce-interval = <1 83 wakeup-source; 84 }; 85 }; 86 87 vcc12v_dcin: vcc12v-dcin { 88 compatible = "regulator-fixed" 89 regulator-name = "vcc12v_dcin" 90 regulator-min-microvolt = <120 91 regulator-max-microvolt = <120 92 regulator-always-on; 93 regulator-boot-on; 94 }; 95 96 vcc5v0_sys: vcc5v0-sys { 97 compatible = "regulator-fixed" 98 regulator-name = "vcc5v0_sys"; 99 regulator-min-microvolt = <500 100 regulator-max-microvolt = <500 101 regulator-always-on; 102 regulator-boot-on; 103 vin-supply = <&vcc12v_dcin>; 104 }; 105 106 vccio_sdio: vcc_1v8: vcc-1v8 { 107 compatible = "regulator-fixed" 108 regulator-name = "vcc_1v8"; 109 regulator-min-microvolt = <180 110 regulator-max-microvolt = <180 111 regulator-always-on; 112 regulator-boot-on; 113 vin-supply = <&vcc_io>; 114 }; 115 116 vcc_ddr: vcc-ddr { 117 compatible = "regulator-fixed" 118 regulator-name = "vcc_ddr"; 119 regulator-min-microvolt = <150 120 regulator-max-microvolt = <150 121 regulator-always-on; 122 regulator-boot-on; 123 vin-supply = <&vcc5v0_sys>; 124 }; 125 126 vcc_io: vcc-io { 127 compatible = "regulator-fixed" 128 regulator-name = "vcc_io"; 129 regulator-min-microvolt = <330 130 regulator-max-microvolt = <330 131 regulator-always-on; 132 regulator-boot-on; 133 vin-supply = <&vcc5v0_sys>; 134 }; 135 136 vccio_flash: vccio-flash { 137 compatible = "regulator-fixed" 138 regulator-name = "vccio_flash" 139 regulator-min-microvolt = <330 140 regulator-max-microvolt = <330 141 regulator-always-on; 142 regulator-boot-on; 143 vin-supply = <&vcc_io>; 144 }; 145 146 vcc5v0_host: vcc5v0-host { 147 compatible = "regulator-fixed" 148 gpio = <&gpio0 RK_PC5 GPIO_ACT 149 enable-active-high; 150 pinctrl-names = "default"; 151 pinctrl-0 = <&usb_drv>; 152 regulator-name = "vbus_host"; 153 vin-supply = <&vcc5v0_sys>; 154 }; 155 156 vdd_core: vdd-core { 157 compatible = "pwm-regulator"; 158 pwms = <&pwm0 0 5000 1>; 159 regulator-name = "vdd_core"; 160 regulator-min-microvolt = <827 161 regulator-max-microvolt = <134 162 regulator-always-on; 163 regulator-boot-on; 164 regulator-settling-time-up-us 165 pwm-supply = <&vcc5v0_sys>; 166 }; 167 168 vdd_log: vdd-log { 169 compatible = "regulator-fixed" 170 regulator-name = "vdd_log"; 171 regulator-min-microvolt = <105 172 regulator-max-microvolt = <105 173 regulator-always-on; 174 regulator-boot-on; 175 vin-supply = <&vcc5v0_sys>; 176 }; 177 178 vdd_1v0: vdd-1v0 { 179 compatible = "regulator-fixed" 180 regulator-name = "vdd_1v0"; 181 regulator-min-microvolt = <100 182 regulator-max-microvolt = <100 183 regulator-always-on; 184 regulator-boot-on; 185 vin-supply = <&vcc5v0_sys>; 186 }; 187 }; 188 189 &cpu0 { 190 cpu-supply = <&vdd_core>; 191 }; 192 193 &saradc { 194 status = "okay"; 195 vref-supply = <&vcc_1v8>; 196 }; 197 198 &pinctrl { 199 pinctrl-names = "default"; 200 pinctrl-0 = <&rtc_32k>; 201 202 buttons { 203 pwr_key: pwr-key { 204 rockchip,pins = <0 RK_ 205 }; 206 }; 207 208 usb { 209 usb_drv: usb-drv { 210 rockchip,pins = <0 RK_ 211 }; 212 }; 213 214 sdio-pwrseq { 215 wifi_enable_h: wifi-enable-h { 216 rockchip,pins = <0 RK_ 217 }; 218 }; 219 }; 220 221 &pwm0 { 222 status = "okay"; 223 pinctrl-0 = <&pwm0_pin_pull_down>; 224 }; 225 226 &uart4 { 227 pinctrl-names = "default"; 228 pinctrl-0 = <&uart4_xfer>; 229 status = "okay"; 230 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.