/dts-v1/;
#include "rk312x.dtsi"
+#include "rk3126-cif-sensor.dtsi"
+#include "rk3128-cif-sensor.dtsi"
-#include "rk312x-cif-sensor.dtsi"
/ {
fiq-debugger {
status = "okay";
};
chosen {
- bootargs = "vmalloc=496M clk_ignore_unused";
+ bootargs = "vmalloc=496M rockchip_jtag";
};
pwm_regulator1:pwm-regulator1 {
};
&emmc {
- clock-frequency = <37500000>;
- clock-freq-min-max = <400000 37500000>;
+ clock-frequency = <50000000>;
+ clock-freq-min-max = <400000 50000000>;
supports-highspeed;
supports-emmc;
bootpart-no-access;
reg = <0x1c>;
status = "okay";
};
+ act8931: act8931@5b {
+ reg = <0x5b>;
+ status = "okay";
+ };
rt5025: rt5025@35 {
compatible = "rt,rt5025";
reg = <0x35>;
- status = "okay";
+ status = "disabled";
+ };
+ rt5036: rt5036@38 {
+ compatible = "rt,rt5036";
+ reg = <0x38>;
+ status = "disabled";
};
};
+
&i2c2 {
status = "okay";
ts@55 {
rockchip,uboot-logo-on = <0>;
};
-&hdmi {
- status = "okay";
-};
/include/ "rt5025.dtsi"
&rt5025 {
};
};
+/include/ "rt5036.dtsi"
+&rt5036 {
+
+ rt5036_dcdc1: regulator_0 {
+ regulator-name = "vdd_arm";
+ regulator-min-microvolt = < 800000>;
+ regulator-max-microvolt = <3300000>;
+ qcom,comsumer-supplies = "vdd_arm", "";
+ regulator-always-on;
+ regulator-boot-on;
+ rt,standby_enabled;
+ rt,standby_vol = <950000>;
+ };
+
+ rt5036_dcdc2: regulator_1 {
+ regulator-name = "vdd_logic";
+ regulator-min-microvolt = < 800000>;
+ regulator-max-microvolt = <3300000>;
+ qcom,comsumer-supplies = "vdd_logic", "";
+ regulator-always-on;
+ regulator-boot-on;
+ rt,standby_enabled;
+ rt,standby_vol = <950000>;
+ };
+
+ rt5036_dcdc3: regulator_2 {
+ regulator-name = "rt5036-dcdc3";
+ regulator-min-microvolt = < 800000>;
+ regulator-max-microvolt = <3300000>;
+ qcom,comsumer-supplies = "rt5036-dcdc3", "";
+ regulator-always-on;
+ regulator-boot-on;
+ rt,standby_enabled;
+ rt,standby_vol = <2800000>;
+ };
+
+ rt5036_dcdc4: regulator_3 {
+ regulator-name = "rt5036-dcdc4";
+ regulator-min-microvolt = < 800000>;
+ regulator-max-microvolt = <3300000>;
+ qcom,comsumer-supplies = "rt5036-dcdc4", "";
+ regulator-always-on;
+ regulator-boot-on;
+ rt,standby_enabled;
+ rt,standby_vol = <1200000>;
+ };
+
+ rt5036_ldo1: regulator_4 {
+ regulator-name = "rt5036-ldo1";
+ regulator-min-microvolt = < 3000000>;
+ regulator-max-microvolt = <3000000>;
+ qcom,comsumer-supplies = "rt5036-ldo1", "";
+ regulator-always-on;
+ regulator-boot-on;
+ rt,standby_enabled;
+ rt,standby_vol = <3000000>;
+ };
+
+ rt5036_ldo2: regulator_5 {
+ regulator-name = "rt5036-ldo2";
+ regulator-min-microvolt = < 1100000>;
+ regulator-max-microvolt = <1100000>;
+ qcom,comsumer-supplies = "rt5036-ldo2", "";
+ regulator-always-on;
+ regulator-boot-on;
+ rt,standby_enabled;
+ rt,standby_vol = <1100000>;
+ };
+
+ rt5036_ldo3: regulator_6 {
+ regulator-name = "rt5036-ldo3";
+ regulator-min-microvolt = < 1800000>;
+ regulator-max-microvolt = <1800000>;
+ qcom,comsumer-supplies = "rt5036-ldo3", "";
+ regulator-always-on;
+ regulator-boot-on;
+ rt,standby_enabled;
+ rt,standby_vol = <1800000>;
+ };
+
+ rt5036_ldo4: regulator_7 {
+ regulator-name = "rt5036-ldo4";
+ regulator-min-microvolt = < 1800000>;
+ regulator-max-microvolt = <1800000>;
+ qcom,comsumer-supplies = "rt5036-ldo4", "";
+ regulator-always-on;
+ regulator-boot-on;
+ rt,standby_enabled;
+ rt,standby_vol = <1800000>;
+ };
+
+ rt5036_ldo5: regulator_8 {
+ regulator-name = "rt5036-ldo5";
+ qcom,comsumer-supplies = "rt5036-ldo5", "";
+ regulator-always-on;
+ regulator-boot-on;
+ rt,standby_enabled;
+ };
+
+ rt5036_ldo6: regulator_9 {
+ regulator-name = "rt5036-ldo6";
+ qcom,comsumer-supplies = "rt5036-ldo6", "";
+ regulator-always-on;
+ regulator-boot-on;
+ rt,standby_enabled;
+ };
+
+ rt5036-irq {
+ compatible = "rt,rt5036-irq";
+ rt,irq-gpio = <&gpio1 GPIO_B1 GPIO_ACTIVE_HIGH>;
+ };
+
+ rt5036-charger {
+ compatible = "rt,rt5036-charger";
+ rt,te_en;
+ rt,iprec = <0x2>;
+ rt,ieoc = <0x3>;
+ rt,vprec = <0xA>;
+ rt,batlv = <0x4>;
+ rt,vrechg = <1>;
+ rt,chg_volt = <4200>;
+ rt,otg_volt = <5025>;
+ rt,acchg_icc = <2000>;
+ rt,usbtachg_icc = <2000>;
+ rt,usbchg_icc = <900>;
+ /*rt,acdet_gpio = <&gpio1 GPIO_B1 GPIO_ACTIVE_HIGH>;*/
+ /*rt,usbdet_gpio = <&gpio1 GPIO_B1 GPIO_ACTIVE_HIGH>;*/
+ };
+};
+
/include/ "rk818.dtsi"
&rk818 {
gpios =<&gpio1 GPIO_B1 GPIO_ACTIVE_HIGH>,<&gpio1 GPIO_A1 GPIO_ACTIVE_LOW>;
};
};
-&clk_core_dvfs_table {
- operating-points = <
- /* KHz uV */
- 408000 1250000
- 600000 1250000
- 696000 1250000
- 816000 1250000
- 1008000 1250000
- >;
- status="okay";
-};
-&clk_gpu_dvfs_table {
- operating-points = <
- /* KHz uV */
- 200000 1250000
- 300000 1250000
- >;
- status="okay";
-};
+/include/ "act8931.dtsi"
+&act8931 {
+ /* gpio: 0-irq, 1-pwr_hold */
+ gpios = <&gpio2 GPIO_B1 GPIO_ACTIVE_HIGH>, <&gpio1 GPIO_A2 GPIO_ACTIVE_HIGH>;
+ act8931,system-power-controller;
+
+ regulators {
+
+ act8931_dcdc1_reg: regulator@0{
+ regulator-name= "vccio";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-initial-mode = <0x2>;
+ };
+
+ act8931_dcdc2_reg: regulator@1 {
+ regulator-name= "act_dcdc2";
+ regulator-min-microvolt = <1500000>;
+ regulator-max-microvolt = <1500000>;
+ regulator-initial-mode = <0x2>;
+ };
+
+ act8931_dcdc3_reg: regulator@2 {
+ regulator-name= "vdd_arm";
+ regulator-min-microvolt = <700000>;
+ regulator-max-microvolt = <1500000>;
+ regulator-initial-mode = <0x2>;
+ };
+
+ act8931_ldo1_reg:regulator@3 {
+ regulator-name= "act_ldo1";
+ regulator-min-microvolt = <2800000>;
+ regulator-max-microvolt = <2800000>;
+ };
+
+ act8931_ldo2_reg: regulator@4 {
+ regulator-name= "act_ldo2";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ };
+
+ act8931_ldo3_reg: regulator@5 {
+ regulator-name= "act_ldo3";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ };
+
+ act8931_ldo4_reg: regulator@6 {
+ regulator-name= "act_ldo4";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ };
+ };
-&clk_ddr_dvfs_table {
- operating-points = <
- /* KHz uV */
- 200000 950000
- 300000 950000
- 400000 1000000
- 533000 1050000
- >;
-
- freq-table = <
- /*status freq(KHz)*/
- SYS_STATUS_NORMAL 400000
- SYS_STATUS_SUSPEND 200000
- SYS_STATUS_VIDEO_1080P 240000
- SYS_STATUS_VIDEO_4K 400000
- SYS_STATUS_PERFORMANCE 528000
- SYS_STATUS_DUALVIEW 400000
- SYS_STATUS_BOOST 324000
- SYS_STATUS_ISP 533000
- >;
- auto-freq-table = <
- 240000
- 324000
- 396000
- 528000
- >;
- auto-freq=<0>;
- status="okay";
};
&pwm0 {
status = "okay";
};
-&cif_sensor{
- status = "okay";
-};