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 41&i2c1 { 42 status = "okay"; 43 44 hym8563: hym8563@51 { 45 compatible = "haoyu,hym8563"; 46 reg = <0x51>; 47 #clock-cells = <0>; 48 clock-frequency = <32768>; 49 clock-output-names = "xin32k"; 50 }; 51}; 52 53&i2c2 { 54 clock-frequency = <100000>; 55 status = "okay"; 56 57 rk816: pmic@1a { 58 compatible = "rockchip,rk816"; 59 reg = <0x1a>; 60 interrupt-parent = <&gpio0>; 61 interrupts = <2 IRQ_TYPE_LEVEL_LOW>; 62 pinctrl-names = "default"; 63 pinctrl-0 = <&pmic_int_l>; 64 rockchip,system-power-controller; 65 wakeup-source; 66 gpio-controller; 67 #gpio-cells = <2>; 68 #clock-cells = <1>; 69 clock-output-names = "xin32k", "rk816-clkout2"; 70 71 gpio { 72 status = "okay"; 73 }; 74 75 pwrkey { 76 status = "okay"; 77 }; 78 79 rtc { 80 status = "okay"; 81 }; 82 83 battery { 84 compatible = "rk816-battery"; 85 ocv_table = < 3400 3654 3686 3710 3744 3775 3803 86 3825 3843 3858 3870 3886 3916 3955 87 3988 4010 4023 4032 4049 4080 4151 >; 88 design_capacity = <2000>; 89 design_qmax = <2200>; 90 bat_res = <120>; 91 max_input_current = <2000>; 92 max_chrg_current = <1000>; 93 max_chrg_voltage = <4200>; 94 sleep_enter_current = <300>; 95 sleep_exit_current = <300>; 96 sleep_filter_current = <100>; 97 power_off_thresd = <3500>; 98 zero_algorithm_vol = <3800>; 99 max_soc_offset = <60>; 100 monitor_sec = <5>; 101 virtual_power = <0>; 102 power_dc2otg = <0>; 103 dc_det_adc = <0>; 104 }; 105 106 regulators { 107 108 vdd_arm: DCDC_REG1{ 109 regulator-name= "vdd_arm"; 110 regulator-min-microvolt = <750000>; 111 regulator-max-microvolt = <1500000>; 112 regulator-ramp-delay = <6001>; 113 regulator-always-on; 114 regulator-boot-on; 115 regulator-state-mem { 116 regulator-on-in-suspend; 117 regulator-suspend-microvolt = <900000>; 118 }; 119 }; 120 121 vdd_log: DCDC_REG2 { 122 regulator-name= "vdd_logic"; 123 regulator-min-microvolt = <750000>; 124 regulator-max-microvolt = <1500000>; 125 regulator-ramp-delay = <6001>; 126 regulator-always-on; 127 regulator-boot-on; 128 regulator-state-mem { 129 regulator-on-in-suspend; 130 regulator-suspend-microvolt = <1000000>; 131 }; 132 }; 133 134 vcc_ddr: DCDC_REG3 { 135 regulator-name = "vcc_ddr"; 136 regulator-always-on; 137 regulator-boot-on; 138 }; 139 140 vcc_io: DCDC_REG4 { 141 regulator-name = "vcc_io"; 142 regulator-min-microvolt = <3300000>; 143 regulator-max-microvolt = <3300000>; 144 regulator-always-on; 145 regulator-boot-on; 146 regulator-state-mem { 147 regulator-on-in-suspend; 148 regulator-suspend-microvolt = <3000000>; 149 }; 150 }; 151 152 vcc28_cif: LDO_REG1 { 153 regulator-name = "vcc28_cif"; 154 regulator-min-microvolt = <2800000>; 155 regulator-max-microvolt = <2800000>; 156 regulator-always-on; 157 regulator-boot-on; 158 regulator-state-mem { 159 regulator-off-in-suspend; 160 }; 161 }; 162 163 vcc18_cif: LDO_REG2 { 164 regulator-name = "vcc18_cif"; 165 regulator-min-microvolt = <1800000>; 166 regulator-max-microvolt = <1800000>; 167 regulator-always-on; 168 regulator-boot-on; 169 regulator-state-mem { 170 regulator-off-in-suspend; 171 }; 172 }; 173 174 vdd_11: LDO_REG3 { 175 regulator-name = "vdd_11"; 176 regulator-min-microvolt = <1100000>; 177 regulator-max-microvolt = <1100000>; 178 regulator-always-on; 179 regulator-boot-on; 180 regulator-state-mem { 181 regulator-on-in-suspend; 182 regulator-suspend-microvolt = <1100000>; 183 }; 184 }; 185 186 ldo4: LDO_REG4 { 187 regulator-name= "ldo4"; 188 regulator-min-microvolt = <3300000>; 189 regulator-max-microvolt = <3300000>; 190 regulator-always-on; 191 regulator-boot-on; 192 regulator-state-mem { 193 regulator-off-in-suspend; 194 }; 195 }; 196 197 ldo5: LDO_REG5 { 198 regulator-name= "ldo5"; 199 regulator-min-microvolt = <3000000>; 200 regulator-max-microvolt = <3000000>; 201 regulator-always-on; 202 regulator-boot-on; 203 regulator-state-mem { 204 regulator-off-in-suspend; 205 }; 206 }; 207 208 ldo6: LDO_REG6 { 209 regulator-name= "ldo6"; 210 regulator-min-microvolt = <3300000>; 211 regulator-max-microvolt = <3300000>; 212 regulator-state-mem { 213 regulator-on-in-suspend; 214 regulator-suspend-microvolt = <3300000>; 215 }; 216 }; 217 }; 218 }; 219}; 220 221&usb_host { 222 status = "okay"; 223}; 224 225&usb_otg { 226 status = "okay"; 227}; 228 229&emmc { 230 fifo-mode; 231 status = "okay"; 232}; 233 234&pinctrl { 235 usb_otg { 236 otg_vbus_drv: host-vbus-drv { 237 rockchip,pins = <0 26 RK_FUNC_GPIO &pcfg_pull_none>; 238 }; 239 }; 240 241 usb_host { 242 host_vbus_drv: host-vbus-drv { 243 rockchip,pins = <2 23 RK_FUNC_GPIO &pcfg_pull_none>; 244 }; 245 }; 246 247 pmic_int_l: pmic-int-l { 248 rockchip,pins = 249 <0 2 RK_FUNC_GPIO &pcfg_pull_none>; 250 }; 251}; 252