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