Commit 6b381a8e authored by Matthias Kaehlcke's avatar Matthias Kaehlcke Committed by Heiko Stuebner

ARM: dts: rockchip: consolidate veyron panel and backlight settings

veyron jaq, jerry, minnie and speedy have mostly redundant regulator
and pinctrl configurations for the panel/backlight. Consolidate these
pieces in the eDP .dtsi.

Also change the default power supply for the panel to
'panel_regulator', instead of overriding it in all the board files.
pinky is the only device that uses 'vcc33_lcd' (the prior default),
so overwrite it in this case. pinky doesn't have a complete display
configuration, to keep things as they were delete the common nodes
that didn't exist previously in pinky's board file.
Reviewed-by: default avatarDouglas Anderson <dianders@chromium.org>
Signed-off-by: default avatarMatthias Kaehlcke <mka@chromium.org>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent ab964000
...@@ -6,6 +6,40 @@ ...@@ -6,6 +6,40 @@
*/ */
/ { / {
backlight_regulator: backlight-regulator {
compatible = "regulator-fixed";
enable-active-high;
gpio = <&gpio2 RK_PB4 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&bl_pwr_en>;
regulator-name = "backlight_regulator";
vin-supply = <&vcc33_sys>;
startup-delay-us = <15000>;
};
panel_regulator: panel-regulator {
compatible = "regulator-fixed";
enable-active-high;
gpio = <&gpio7 RK_PB6 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&lcd_enable_h>;
regulator-name = "panel_regulator";
startup-delay-us = <100000>;
vin-supply = <&vcc33_sys>;
};
vcc18_lcd: vcc18-lcd {
compatible = "regulator-fixed";
enable-active-high;
gpio = <&gpio2 RK_PB5 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&avdd_1v8_disp_en>;
regulator-name = "vcc18_lcd";
regulator-always-on;
regulator-boot-on;
vin-supply = <&vcc18_wl>;
};
backlight: backlight { backlight: backlight {
compatible = "pwm-backlight"; compatible = "pwm-backlight";
brightness-levels = < brightness-levels = <
...@@ -48,12 +82,13 @@ backlight: backlight { ...@@ -48,12 +82,13 @@ backlight: backlight {
pwms = <&pwm0 0 1000000 0>; pwms = <&pwm0 0 1000000 0>;
post-pwm-on-delay-ms = <10>; post-pwm-on-delay-ms = <10>;
pwm-off-delay-ms = <10>; pwm-off-delay-ms = <10>;
power-supply = <&backlight_regulator>;
}; };
panel: panel { panel: panel {
compatible ="innolux,n116bge", "simple-panel"; compatible ="innolux,n116bge", "simple-panel";
status = "okay"; status = "okay";
power-supply = <&vcc33_lcd>; power-supply = <&panel_regulator>;
backlight = <&backlight>; backlight = <&backlight>;
panel-timing { panel-timing {
...@@ -117,8 +152,22 @@ &vopl_mmu { ...@@ -117,8 +152,22 @@ &vopl_mmu {
&pinctrl { &pinctrl {
backlight { backlight {
bl_pwr_en: bl_pwr_en {
rockchip,pins = <2 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
};
bl_en: bl-en { bl_en: bl-en {
rockchip,pins = <7 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; rockchip,pins = <7 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
}; };
}; };
lcd {
lcd_enable_h: lcd-en {
rockchip,pins = <7 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
};
avdd_1v8_disp_en: avdd-1v8-disp-en {
rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
}; };
...@@ -16,40 +16,6 @@ / { ...@@ -16,40 +16,6 @@ / {
"google,veyron-jaq-rev3", "google,veyron-jaq-rev2", "google,veyron-jaq-rev3", "google,veyron-jaq-rev2",
"google,veyron-jaq-rev1", "google,veyron-jaq", "google,veyron-jaq-rev1", "google,veyron-jaq",
"google,veyron", "rockchip,rk3288"; "google,veyron", "rockchip,rk3288";
panel_regulator: panel-regulator {
compatible = "regulator-fixed";
enable-active-high;
gpio = <&gpio7 RK_PB6 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&lcd_enable_h>;
regulator-name = "panel_regulator";
startup-delay-us = <100000>;
vin-supply = <&vcc33_sys>;
};
vcc18_lcd: vcc18-lcd {
compatible = "regulator-fixed";
enable-active-high;
gpio = <&gpio2 RK_PB5 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&avdd_1v8_disp_en>;
regulator-name = "vcc18_lcd";
regulator-always-on;
regulator-boot-on;
vin-supply = <&vcc18_wl>;
};
backlight_regulator: backlight-regulator {
compatible = "regulator-fixed";
enable-active-high;
gpio = <&gpio2 RK_PB4 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&bl_pwr_en>;
regulator-name = "backlight_regulator";
vin-supply = <&vcc33_sys>;
startup-delay-us = <15000>;
};
}; };
&backlight { &backlight {
...@@ -87,11 +53,6 @@ &backlight { ...@@ -87,11 +53,6 @@ &backlight {
232 233 234 235 236 237 238 239 232 233 234 235 236 237 238 239
240 241 242 243 244 245 246 247 240 241 242 243 244 245 246 247
248 249 250 251 252 253 254 255>; 248 249 250 251 252 253 254 255>;
power-supply = <&backlight_regulator>;
};
&panel {
power-supply = <&panel_regulator>;
}; };
&rk808 { &rk808 {
...@@ -343,12 +304,6 @@ &gpio8 { ...@@ -343,12 +304,6 @@ &gpio8 {
}; };
&pinctrl { &pinctrl {
backlight {
bl_pwr_en: bl_pwr_en {
rockchip,pins = <2 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
buck-5v { buck-5v {
drv_5v: drv-5v { drv_5v: drv-5v {
rockchip,pins = <7 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>; rockchip,pins = <7 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
...@@ -361,16 +316,6 @@ vcc50_hdmi_en: vcc50-hdmi-en { ...@@ -361,16 +316,6 @@ vcc50_hdmi_en: vcc50-hdmi-en {
}; };
}; };
lcd {
lcd_enable_h: lcd-en {
rockchip,pins = <7 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
};
avdd_1v8_disp_en: avdd-1v8-disp-en {
rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
pmic { pmic {
dvs_1: dvs-1 { dvs_1: dvs-1 {
rockchip,pins = <7 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>; rockchip,pins = <7 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
......
...@@ -18,48 +18,6 @@ / { ...@@ -18,48 +18,6 @@ / {
"google,veyron-jerry-rev5", "google,veyron-jerry-rev4", "google,veyron-jerry-rev5", "google,veyron-jerry-rev4",
"google,veyron-jerry-rev3", "google,veyron-jerry", "google,veyron-jerry-rev3", "google,veyron-jerry",
"google,veyron", "rockchip,rk3288"; "google,veyron", "rockchip,rk3288";
panel_regulator: panel-regulator {
compatible = "regulator-fixed";
enable-active-high;
gpio = <&gpio7 RK_PB6 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&lcd_enable_h>;
regulator-name = "panel_regulator";
startup-delay-us = <100000>;
vin-supply = <&vcc33_sys>;
};
vcc18_lcd: vcc18-lcd {
compatible = "regulator-fixed";
enable-active-high;
gpio = <&gpio2 RK_PB5 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&avdd_1v8_disp_en>;
regulator-name = "vcc18_lcd";
regulator-always-on;
regulator-boot-on;
vin-supply = <&vcc18_wl>;
};
backlight_regulator: backlight-regulator {
compatible = "regulator-fixed";
enable-active-high;
gpio = <&gpio2 RK_PB4 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&bl_pwr_en>;
regulator-name = "backlight_regulator";
vin-supply = <&vcc33_sys>;
startup-delay-us = <15000>;
};
};
&backlight {
power-supply = <&backlight_regulator>;
};
&panel {
power-supply= <&panel_regulator>;
}; };
&rk808 { &rk808 {
...@@ -460,12 +418,6 @@ &gpio8 { ...@@ -460,12 +418,6 @@ &gpio8 {
}; };
&pinctrl { &pinctrl {
backlight {
bl_pwr_en: bl_pwr_en {
rockchip,pins = <2 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
buck-5v { buck-5v {
drv_5v: drv-5v { drv_5v: drv-5v {
rockchip,pins = <7 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>; rockchip,pins = <7 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
...@@ -478,16 +430,6 @@ vcc50_hdmi_en: vcc50-hdmi-en { ...@@ -478,16 +430,6 @@ vcc50_hdmi_en: vcc50-hdmi-en {
}; };
}; };
lcd {
lcd_enable_h: lcd-en {
rockchip,pins = <7 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
};
avdd_1v8_disp_en: avdd-1v8-disp-en {
rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
pmic { pmic {
dvs_1: dvs-1 { dvs_1: dvs-1 {
rockchip,pins = <7 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>; rockchip,pins = <7 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
......
...@@ -15,40 +15,6 @@ / { ...@@ -15,40 +15,6 @@ / {
"google,veyron-minnie-rev0", "google,veyron-minnie", "google,veyron-minnie-rev0", "google,veyron-minnie",
"google,veyron", "rockchip,rk3288"; "google,veyron", "rockchip,rk3288";
backlight_regulator: backlight-regulator {
compatible = "regulator-fixed";
enable-active-high;
gpio = <&gpio2 RK_PB4 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&bl_pwr_en>;
regulator-name = "backlight_regulator";
vin-supply = <&vcc33_sys>;
startup-delay-us = <15000>;
};
panel_regulator: panel-regulator {
compatible = "regulator-fixed";
enable-active-high;
gpio = <&gpio7 RK_PB6 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&lcd_enable_h>;
regulator-name = "panel_regulator";
startup-delay-us = <100000>;
vin-supply = <&vcc33_sys>;
};
vcc18_lcd: vcc18-lcd {
compatible = "regulator-fixed";
enable-active-high;
gpio = <&gpio2 RK_PB5 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&avdd_1v8_disp_en>;
regulator-name = "vcc18_lcd";
regulator-always-on;
regulator-boot-on;
vin-supply = <&vcc18_wl>;
};
volume_buttons: volume-buttons { volume_buttons: volume-buttons {
compatible = "gpio-keys"; compatible = "gpio-keys";
pinctrl-names = "default"; pinctrl-names = "default";
...@@ -105,7 +71,6 @@ &backlight { ...@@ -105,7 +71,6 @@ &backlight {
232 233 234 235 236 237 238 239 232 233 234 235 236 237 238 239
240 241 242 243 244 245 246 247 240 241 242 243 244 245 246 247
248 249 250 251 252 253 254 255>; 248 249 250 251 252 253 254 255>;
power-supply = <&backlight_regulator>;
}; };
&i2c_tunnel { &i2c_tunnel {
...@@ -137,7 +102,6 @@ touchscreen@10 { ...@@ -137,7 +102,6 @@ touchscreen@10 {
&panel { &panel {
compatible = "auo,b101ean01", "simple-panel"; compatible = "auo,b101ean01", "simple-panel";
power-supply= <&panel_regulator>;
/delete-node/ panel-timing; /delete-node/ panel-timing;
...@@ -411,12 +375,6 @@ &gpio8 { ...@@ -411,12 +375,6 @@ &gpio8 {
}; };
&pinctrl { &pinctrl {
backlight {
bl_pwr_en: bl_pwr_en {
rockchip,pins = <2 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
buck-5v { buck-5v {
drv_5v: drv-5v { drv_5v: drv-5v {
rockchip,pins = <7 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>; rockchip,pins = <7 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
...@@ -439,16 +397,6 @@ vcc50_hdmi_en: vcc50-hdmi-en { ...@@ -439,16 +397,6 @@ vcc50_hdmi_en: vcc50-hdmi-en {
}; };
}; };
lcd {
lcd_enable_h: lcd-en {
rockchip,pins = <7 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
};
avdd_1v8_disp_en: avdd-1v8-disp-en {
rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
pmic { pmic {
dvs_1: dvs-1 { dvs_1: dvs-1 {
rockchip,pins = <7 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>; rockchip,pins = <7 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
......
...@@ -14,7 +14,14 @@ / { ...@@ -14,7 +14,14 @@ / {
compatible = "google,veyron-pinky-rev2", "google,veyron-pinky", compatible = "google,veyron-pinky-rev2", "google,veyron-pinky",
"google,veyron", "rockchip,rk3288"; "google,veyron", "rockchip,rk3288";
/delete-node/backlight-regulator;
/delete-node/panel-regulator;
/delete-node/emmc-pwrseq; /delete-node/emmc-pwrseq;
/delete-node/vcc18-lcd;
};
&backlight {
/delete-property/power-supply;
}; };
&emmc { &emmc {
...@@ -52,7 +59,17 @@ &i2c3 { ...@@ -52,7 +59,17 @@ &i2c3 {
i2c-scl-rising-time-ns = <300>; i2c-scl-rising-time-ns = <300>;
}; };
&panel {
power-supply = <&vcc33_lcd>;
};
&pinctrl { &pinctrl {
/delete-node/ lcd;
backlight {
/delete-node/ bl_pwr_en;
};
buttons { buttons {
pwr_key_h: pwr-key-h { pwr_key_h: pwr-key-h {
rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
......
...@@ -16,44 +16,6 @@ / { ...@@ -16,44 +16,6 @@ / {
"google,veyron-speedy-rev5", "google,veyron-speedy-rev4", "google,veyron-speedy-rev5", "google,veyron-speedy-rev4",
"google,veyron-speedy-rev3", "google,veyron-speedy-rev2", "google,veyron-speedy-rev3", "google,veyron-speedy-rev2",
"google,veyron-speedy", "google,veyron", "rockchip,rk3288"; "google,veyron-speedy", "google,veyron", "rockchip,rk3288";
panel_regulator: panel-regulator {
compatible = "regulator-fixed";
enable-active-high;
gpio = <&gpio7 RK_PB6 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&lcd_enable_h>;
regulator-name = "panel_regulator";
startup-delay-us = <100000>;
vin-supply = <&vcc33_sys>;
};
vcc18_lcd: vcc18-lcd {
compatible = "regulator-fixed";
enable-active-high;
gpio = <&gpio2 RK_PB5 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&avdd_1v8_disp_en>;
regulator-name = "vcc18_lcd";
regulator-always-on;
regulator-boot-on;
vin-supply = <&vcc18_wl>;
};
backlight_regulator: backlight-regulator {
compatible = "regulator-fixed";
enable-active-high;
gpio = <&gpio2 RK_PB4 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&bl_pwr_en>;
regulator-name = "backlight_regulator";
vin-supply = <&vcc33_sys>;
startup-delay-us = <15000>;
};
};
&backlight {
power-supply = <&backlight_regulator>;
}; };
&cpu_alert0 { &cpu_alert0 {
...@@ -83,10 +45,6 @@ &gpu_crit { ...@@ -83,10 +45,6 @@ &gpu_crit {
temperature = <90000>; temperature = <90000>;
}; };
&panel {
power-supply= <&panel_regulator>;
};
&rk808 { &rk808 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pmic_int_l>; pinctrl-0 = <&pmic_int_l>;
...@@ -321,12 +279,6 @@ &gpio8 { ...@@ -321,12 +279,6 @@ &gpio8 {
}; };
&pinctrl { &pinctrl {
backlight {
bl_pwr_en: bl_pwr_en {
rockchip,pins = <2 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
buck-5v { buck-5v {
drv_5v: drv-5v { drv_5v: drv-5v {
rockchip,pins = <7 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>; rockchip,pins = <7 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
...@@ -339,16 +291,6 @@ vcc50_hdmi_en: vcc50-hdmi-en { ...@@ -339,16 +291,6 @@ vcc50_hdmi_en: vcc50-hdmi-en {
}; };
}; };
lcd {
lcd_enable_h: lcd-en {
rockchip,pins = <7 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
};
avdd_1v8_disp_en: avdd-1v8-disp-en {
rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
pmic { pmic {
dvs_1: dvs-1 { dvs_1: dvs-1 {
rockchip,pins = <7 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>; rockchip,pins = <7 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment