1/* 2 * (C) Copyright 2017 Rockchip Electronics Co., Ltd 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 7/dts-v1/; 8 9#include "rk3128.dtsi" 10 11/ { 12 model = "Rockchip RK3126 Evaluation board"; 13 compatible = "rockchip,rk3128-evb", "rockchip,rk3128"; 14 15 chosen { 16 stdout-path = &uart2; 17 }; 18 19 vcc5v0_otg: vcc5v0-otg-drv { 20 compatible = "regulator-fixed"; 21 regulator-name = "vcc5v0_otg"; 22 gpio = <&gpio0 26 GPIO_ACTIVE_HIGH>; 23 pinctrl-names = "default"; 24 pinctrl-0 = <&otg_vbus_drv>; 25 regulator-min-microvolt = <5000000>; 26 regulator-max-microvolt = <5000000>; 27 }; 28 29 vcc5v0_host: vcc5v0-host-drv { 30 compatible = "regulator-fixed"; 31 regulator-name = "vcc5v0_host"; 32 gpio = <&gpio2 23 GPIO_ACTIVE_HIGH>; 33 pinctrl-names = "default"; 34 pinctrl-0 = <&host_vbus_drv>; 35 regulator-min-microvolt = <5000000>; 36 regulator-max-microvolt = <5000000>; 37 regulator-always-on; 38 }; 39 40 backlight: backlight { 41 compatible = "pwm-backlight"; 42 brightness-levels = < 43 0 1 2 3 4 5 6 7 44 8 9 10 11 12 13 14 15 45 16 17 18 19 20 21 22 23 46 24 25 26 27 28 29 30 31 47 32 33 34 35 36 37 38 39 48 40 41 42 43 44 45 46 47 49 48 49 50 51 52 53 54 55 50 56 57 58 59 60 61 62 63 51 64 65 66 67 68 69 70 71 52 72 73 74 75 76 77 78 79 53 80 81 82 83 84 85 86 87 54 88 89 90 91 92 93 94 95 55 96 97 98 99 100 101 102 103 56 104 105 106 107 108 109 110 111 57 112 113 114 115 116 117 118 119 58 120 121 122 123 124 125 126 127 59 128 129 130 131 132 133 134 135 60 136 137 138 139 140 141 142 143 61 144 145 146 147 148 149 150 151 62 152 153 154 155 156 157 158 159 63 160 161 162 163 164 165 166 167 64 168 169 170 171 172 173 174 175 65 176 177 178 179 180 181 182 183 66 184 185 186 187 188 189 190 191 67 192 193 194 195 196 197 198 199 68 200 201 202 203 204 205 206 207 69 208 209 210 211 212 213 214 215 70 216 217 218 219 220 221 222 223 71 224 225 226 227 228 229 230 231 72 232 233 234 235 236 237 238 239 73 240 241 242 243 244 245 246 247 74 248 249 250 251 252 253 254 255>; 75 default-brightness-level = <128>; 76 pwms = <&pwm0 0 1000000 1>; 77 enable-gpios = <&gpio2 RK_PB2 GPIO_ACTIVE_HIGH>; 78 status = "okay"; 79 }; 80 81 lvds_panel: lvds-panel { 82 u-boot,dm-pre-reloc; 83 compatible ="simple-panel"; 84 backlight = <&backlight>; 85 bus-format = <0x1009>; 86 /* enable-gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>; 87 * delay,disable = <10>; 88 * power-supply = <&vcc_lcd>; 89 */ 90 power-supply = <&ldo6>; 91 power-invert = <1>; 92 rockchip,data-mapping = "jeida"; 93 rockchip,data-width = <18>; 94 rockchip,output = "rgb"; 95 96 display-timings { 97 native-mode = <&timing0>; 98 timing0: timing0 { 99 clock-frequency = <60000000>; 100 hactive = <1024>; 101 vactive = <600>; 102 hback-porch = <100>; 103 hfront-porch = <120>; 104 vback-porch = <10>; 105 vfront-porch = <15>; 106 hsync-len = <100>; 107 vsync-len = <10>; 108 hsync-active = <0>; 109 vsync-active = <0>; 110 de-active = <0>; 111 pixelclk-active = <0>; 112 }; 113 }; 114 115 ports { 116 panel_in_lvds: endpoint { 117 remote-endpoint = <&lvds_out_panel>; 118 }; 119 }; 120 }; 121}; 122 123&i2c1 { 124 status = "okay"; 125 126 hym8563: hym8563@51 { 127 compatible = "haoyu,hym8563"; 128 reg = <0x51>; 129 #clock-cells = <0>; 130 clock-frequency = <32768>; 131 clock-output-names = "xin32k"; 132 }; 133}; 134 135&i2c2 { 136 clock-frequency = <100000>; 137 status = "okay"; 138 139 rk816: pmic@1a { 140 compatible = "rockchip,rk816"; 141 reg = <0x1a>; 142 interrupt-parent = <&gpio0>; 143 interrupts = <2 IRQ_TYPE_LEVEL_LOW>; 144 pinctrl-names = "default"; 145 pinctrl-0 = <&pmic_int_l>; 146 rockchip,system-power-controller; 147 wakeup-source; 148 gpio-controller; 149 #gpio-cells = <2>; 150 #clock-cells = <1>; 151 clock-output-names = "xin32k", "rk816-clkout2"; 152 153 gpio { 154 status = "okay"; 155 }; 156 157 pwrkey { 158 status = "okay"; 159 }; 160 161 rtc { 162 status = "okay"; 163 }; 164 165 battery { 166 compatible = "rk816-battery"; 167 ocv_table = < 3400 3654 3686 3710 3744 3775 3803 168 3825 3843 3858 3870 3886 3916 3955 169 3988 4010 4023 4032 4049 4080 4151 >; 170 design_capacity = <2000>; 171 design_qmax = <2200>; 172 bat_res = <120>; 173 max_input_current = <2000>; 174 max_chrg_current = <1000>; 175 max_chrg_voltage = <4200>; 176 sleep_enter_current = <300>; 177 sleep_exit_current = <300>; 178 sleep_filter_current = <100>; 179 power_off_thresd = <3500>; 180 zero_algorithm_vol = <3800>; 181 max_soc_offset = <60>; 182 monitor_sec = <5>; 183 virtual_power = <0>; 184 power_dc2otg = <0>; 185 dc_det_adc = <0>; 186 }; 187 188 regulators { 189 190 vdd_arm: DCDC_REG1{ 191 regulator-name= "vdd_arm"; 192 regulator-min-microvolt = <750000>; 193 regulator-max-microvolt = <1500000>; 194 regulator-ramp-delay = <6001>; 195 regulator-always-on; 196 regulator-boot-on; 197 regulator-state-mem { 198 regulator-on-in-suspend; 199 regulator-suspend-microvolt = <900000>; 200 }; 201 }; 202 203 vdd_log: DCDC_REG2 { 204 regulator-name= "vdd_logic"; 205 regulator-min-microvolt = <750000>; 206 regulator-max-microvolt = <1500000>; 207 regulator-ramp-delay = <6001>; 208 regulator-always-on; 209 regulator-boot-on; 210 regulator-state-mem { 211 regulator-on-in-suspend; 212 regulator-suspend-microvolt = <1000000>; 213 }; 214 }; 215 216 vcc_ddr: DCDC_REG3 { 217 regulator-name = "vcc_ddr"; 218 regulator-always-on; 219 regulator-boot-on; 220 }; 221 222 vcc_io: DCDC_REG4 { 223 regulator-name = "vcc_io"; 224 regulator-min-microvolt = <3300000>; 225 regulator-max-microvolt = <3300000>; 226 regulator-always-on; 227 regulator-boot-on; 228 regulator-state-mem { 229 regulator-on-in-suspend; 230 regulator-suspend-microvolt = <3000000>; 231 }; 232 }; 233 234 vcc28_cif: LDO_REG1 { 235 regulator-name = "vcc28_cif"; 236 regulator-min-microvolt = <2800000>; 237 regulator-max-microvolt = <2800000>; 238 regulator-always-on; 239 regulator-boot-on; 240 regulator-state-mem { 241 regulator-off-in-suspend; 242 }; 243 }; 244 245 vcc18_cif: LDO_REG2 { 246 regulator-name = "vcc18_cif"; 247 regulator-min-microvolt = <1800000>; 248 regulator-max-microvolt = <1800000>; 249 regulator-always-on; 250 regulator-boot-on; 251 regulator-state-mem { 252 regulator-off-in-suspend; 253 }; 254 }; 255 256 vdd_11: LDO_REG3 { 257 regulator-name = "vdd_11"; 258 regulator-min-microvolt = <1100000>; 259 regulator-max-microvolt = <1100000>; 260 regulator-always-on; 261 regulator-boot-on; 262 regulator-state-mem { 263 regulator-on-in-suspend; 264 regulator-suspend-microvolt = <1100000>; 265 }; 266 }; 267 268 ldo4: LDO_REG4 { 269 regulator-name= "ldo4"; 270 regulator-min-microvolt = <3300000>; 271 regulator-max-microvolt = <3300000>; 272 regulator-always-on; 273 regulator-boot-on; 274 regulator-state-mem { 275 regulator-off-in-suspend; 276 }; 277 }; 278 279 ldo5: LDO_REG5 { 280 regulator-name= "ldo5"; 281 regulator-min-microvolt = <3000000>; 282 regulator-max-microvolt = <3000000>; 283 regulator-always-on; 284 regulator-boot-on; 285 regulator-state-mem { 286 regulator-off-in-suspend; 287 }; 288 }; 289 290 ldo6: LDO_REG6 { 291 regulator-name= "ldo6"; 292 regulator-min-microvolt = <3300000>; 293 regulator-max-microvolt = <3300000>; 294 regulator-state-mem { 295 regulator-on-in-suspend; 296 regulator-suspend-microvolt = <3300000>; 297 }; 298 }; 299 }; 300 }; 301}; 302 303&usb_host { 304 status = "okay"; 305}; 306 307&usb_otg { 308 status = "okay"; 309}; 310 311&emmc { 312 fifo-mode; 313 status = "okay"; 314}; 315 316&lvds { 317 status = "okay"; 318 ports { 319 lvds_out: endpoint@0 { 320 reg = <0>; 321 lvds_out_panel: endpoint { 322 remote-endpoint = <&panel_in_lvds>; 323 }; 324 }; 325 }; 326}; 327 328&vop { 329 status = "okay"; 330}; 331 332&pinctrl { 333 usb_otg { 334 otg_vbus_drv: host-vbus-drv { 335 rockchip,pins = <0 26 RK_FUNC_GPIO &pcfg_pull_none>; 336 }; 337 }; 338 339 usb_host { 340 host_vbus_drv: host-vbus-drv { 341 rockchip,pins = <2 23 RK_FUNC_GPIO &pcfg_pull_none>; 342 }; 343 }; 344 345 pmic_int_l: pmic-int-l { 346 rockchip,pins = 347 <0 2 RK_FUNC_GPIO &pcfg_pull_none>; 348 }; 349}; 350 351&saradc { 352 status = "okay"; 353}; 354