/* * (C) Copyright 2017 Rockchip Electronics Co., Ltd * * SPDX-License-Identifier: GPL-2.0+ */ /dts-v1/; #include "rk3128.dtsi" / { model = "Rockchip RK3126 Evaluation board"; compatible = "rockchip,rk3128-evb", "rockchip,rk3128"; chosen { stdout-path = &uart2; }; vcc5v0_otg: vcc5v0-otg-drv { compatible = "regulator-fixed"; regulator-name = "vcc5v0_otg"; gpio = <&gpio0 26 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&otg_vbus_drv>; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; }; vcc5v0_host: vcc5v0-host-drv { compatible = "regulator-fixed"; regulator-name = "vcc5v0_host"; gpio = <&gpio2 23 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&host_vbus_drv>; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; regulator-always-on; }; }; &i2c1 { status = "okay"; hym8563: hym8563@51 { compatible = "haoyu,hym8563"; reg = <0x51>; #clock-cells = <0>; clock-frequency = <32768>; clock-output-names = "xin32k"; }; }; &i2c2 { clock-frequency = <100000>; status = "okay"; rk816: pmic@1a { compatible = "rockchip,rk816"; reg = <0x1a>; interrupt-parent = <&gpio0>; interrupts = <2 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default"; pinctrl-0 = <&pmic_int_l>; rockchip,system-power-controller; wakeup-source; gpio-controller; #gpio-cells = <2>; #clock-cells = <1>; clock-output-names = "xin32k", "rk816-clkout2"; gpio { status = "okay"; }; pwrkey { status = "okay"; }; rtc { status = "okay"; }; battery { compatible = "rk816-battery"; ocv_table = < 3400 3654 3686 3710 3744 3775 3803 3825 3843 3858 3870 3886 3916 3955 3988 4010 4023 4032 4049 4080 4151 >; design_capacity = <2000>; design_qmax = <2200>; bat_res = <120>; max_input_current = <2000>; max_chrg_current = <1000>; max_chrg_voltage = <4200>; sleep_enter_current = <300>; sleep_exit_current = <300>; sleep_filter_current = <100>; power_off_thresd = <3500>; zero_algorithm_vol = <3800>; max_soc_offset = <60>; monitor_sec = <5>; virtual_power = <0>; power_dc2otg = <0>; dc_det_adc = <0>; }; regulators { vdd_arm: DCDC_REG1{ regulator-name= "vdd_arm"; regulator-min-microvolt = <750000>; regulator-max-microvolt = <1500000>; regulator-ramp-delay = <6001>; regulator-always-on; regulator-boot-on; regulator-state-mem { regulator-on-in-suspend; regulator-suspend-microvolt = <900000>; }; }; vdd_log: DCDC_REG2 { regulator-name= "vdd_logic"; regulator-min-microvolt = <750000>; regulator-max-microvolt = <1500000>; regulator-ramp-delay = <6001>; regulator-always-on; regulator-boot-on; regulator-state-mem { regulator-on-in-suspend; regulator-suspend-microvolt = <1000000>; }; }; vcc_ddr: DCDC_REG3 { regulator-name = "vcc_ddr"; regulator-always-on; regulator-boot-on; }; vcc_io: DCDC_REG4 { regulator-name = "vcc_io"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-always-on; regulator-boot-on; regulator-state-mem { regulator-on-in-suspend; regulator-suspend-microvolt = <3000000>; }; }; vcc28_cif: LDO_REG1 { regulator-name = "vcc28_cif"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; regulator-always-on; regulator-boot-on; regulator-state-mem { regulator-off-in-suspend; }; }; vcc18_cif: LDO_REG2 { regulator-name = "vcc18_cif"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; regulator-boot-on; regulator-state-mem { regulator-off-in-suspend; }; }; vdd_11: LDO_REG3 { regulator-name = "vdd_11"; regulator-min-microvolt = <1100000>; regulator-max-microvolt = <1100000>; regulator-always-on; regulator-boot-on; regulator-state-mem { regulator-on-in-suspend; regulator-suspend-microvolt = <1100000>; }; }; ldo4: LDO_REG4 { regulator-name= "ldo4"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-always-on; regulator-boot-on; regulator-state-mem { regulator-off-in-suspend; }; }; ldo5: LDO_REG5 { regulator-name= "ldo5"; regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3000000>; regulator-always-on; regulator-boot-on; regulator-state-mem { regulator-off-in-suspend; }; }; ldo6: LDO_REG6 { regulator-name= "ldo6"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-state-mem { regulator-on-in-suspend; regulator-suspend-microvolt = <3300000>; }; }; }; }; }; &usb_host { status = "okay"; }; &usb_otg { status = "okay"; }; &emmc { fifo-mode; status = "okay"; }; &pinctrl { usb_otg { otg_vbus_drv: host-vbus-drv { rockchip,pins = <0 26 RK_FUNC_GPIO &pcfg_pull_none>; }; }; usb_host { host_vbus_drv: host-vbus-drv { rockchip,pins = <2 23 RK_FUNC_GPIO &pcfg_pull_none>; }; }; pmic_int_l: pmic-int-l { rockchip,pins = <0 2 RK_FUNC_GPIO &pcfg_pull_none>; }; };