RK3399 EVB1 and EVB2 use pwm3 for vdd_center, but EVB3 use pwm2.
This patch moved the vdd_center node to each board dtsi file.
Change-Id: I2b46b06b622c30ab65f26663a3628e73733472ad
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
compatible = "rockchip,android", "rockchip,rk3399-evb-rev1", "rockchip,rk3399";
};
-&vdd_log {
- rockchip,pwm_id= <2>;
- rockchip,pwm_voltage = <900000>;
-};
-
-&vdd_center {
- rockchip,pwm_id= <3>;
- rockchip,pwm_voltage = <900000>;
-};
-
&rk_screen {
#include <dt-bindings/display/screen-timing/lcd-tv080wum-nl0-mipi.dtsi>
};
vdd_log: vdd-log {
compatible = "pwm-regulator";
+ rockchip,pwm_id = <2>;
+ rockchip,pwm_voltage = <900000>;
pwms = <&pwm2 0 25000 0>;
regulator-name = "vdd_log";
regulator-min-microvolt = <800000>;
regulator-always-on;
regulator-boot-on;
};
+
+ vdd_center: vdd-center {
+ compatible = "pwm-regulator";
+ rockchip,pwm_id = <3>;
+ rockchip,pwm_voltage = <900000>;
+ pwms = <&pwm3 0 25000 0>;
+ regulator-name = "vdd_center";
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <1400000>;
+ regulator-always-on;
+ regulator-boot-on;
+ };
};
&cpu_l0 {
status = "okay";
};
+&pwm3 {
+ status = "okay";
+};
+
&u2phy0_otg {
rockchip,utmi-avalid;
};
compatible = "rockchip,android", "rockchip,rk3399-evb-rev2", "rockchip,rk3399";
};
-&vdd_center {
- rockchip,pwm_id= <3>;
- rockchip,pwm_voltage = <900000>;
-};
-
&rk_screen {
#include <dt-bindings/display/screen-timing/lcd-tv080wum-nl0-mipi.dtsi>
};
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
};
+
+ vdd_center: vdd-center {
+ compatible = "pwm-regulator";
+ rockchip,pwm_id = <3>;
+ rockchip,pwm_voltage = <900000>;
+ pwms = <&pwm3 0 25000 0>;
+ regulator-name = "vdd_center";
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <1400000>;
+ regulator-always-on;
+ regulator-boot-on;
+ };
};
&cpu_l0 {
};
};
+&pwm3 {
+ status = "okay";
+};
+
&u2phy0_otg {
rockchip,utmi-avalid;
};
compatible = "rockchip,android", "rockchip,rk3399-evb-rev3", "rockchip,rk3399";
};
-&vdd_center {
- rockchip,pwm_id= <3>;
- rockchip,pwm_voltage = <900000>;
-};
-
&rk_screen {
#include <dt-bindings/display/screen-timing/lcd-tv080wum-nl0-mipi.dtsi>
};
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
};
+
+ vdd_center: vdd-center {
+ compatible = "pwm-regulator";
+ rockchip,pwm_id = <2>;
+ rockchip,pwm_voltage = <900000>;
+ pwms = <&pwm2 0 25000 0>;
+ regulator-name = "vdd_center";
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <1400000>;
+ regulator-always-on;
+ regulator-boot-on;
+ };
};
&cluster0_opp {
status = "okay";
};
};
+
+&pwm2 {
+ status = "okay";
+};
/ {
compatible = "rockchip,rk3399-evb", "rockchip,rk3399";
- vdd_center: vdd-center {
- compatible = "pwm-regulator";
- pwms = <&pwm3 0 25000 0>;
- regulator-name = "vdd_center";
- regulator-min-microvolt = <800000>;
- regulator-max-microvolt = <1400000>;
- regulator-always-on;
- regulator-boot-on;
- };
-
vcc3v3_sys: vcc3v3-sys {
compatible = "regulator-fixed";
regulator-name = "vcc3v3_sys";
status = "okay";
};
-&pwm3 {
- status = "okay";
-};
-
&gmac {
phy-supply = <&vcc_phy>;
phy-mode = "rgmii";