@@ -15,6 +15,10 @@
rgb {
status = "okay";
nvidia,ddc-i2c-bus = <&lvds_ddc>;
+
+ display {
+ nvidia,backlight = <&backlight>;
+ };
};
};
};
@@ -461,6 +465,67 @@
};
};
+ backlight: backlight {
+ compatible = "pwm-backlight";
+ brightness-levels = <0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 255>;
+ default-brightness-level = <12>;
+
+ /* resources used by the power sequences */
+ pwms = <&pwm 0 5000000>;
+ pwm-names = "backlight";
+ panel-supply = <&vdd_panel_reg>;
+
+ power-sequences {
+ power-on {
+ step0 {
+ type = "regulator";
+ id = "panel";
+ enable;
+ };
+ step1 {
+ /* LVDS_SHDN */
+ type = "gpio";
+ gpio = <&gpio 102 0>;
+ value = <1>;
+ };
+ step2 {
+ type = "pwm";
+ id = "backlight";
+ enable;
+ };
+ step3 {
+ /* BL_EN */
+ type = "gpio";
+ gpio = <&gpio 164 0>;
+ value = <1>;
+ };
+ };
+
+ power-off {
+ step0 {
+ type = "gpio";
+ gpio = <&gpio 164 0>;
+ value = <0>;
+ };
+ step1 {
+ type = "pwm";
+ id = "backlight";
+ disable;
+ };
+ step2 {
+ type = "gpio";
+ gpio = <&gpio 102 0>;
+ value = <0>;
+ };
+ step3 {
+ type = "regulator";
+ id = "panel";
+ disable;
+ };
+ };
+ };
+ };
+
regulators {
compatible = "simple-bus";
#address-cells = <1>;
@@ -474,6 +539,16 @@
regulator-max-microvolt = <5000000>;
regulator-always-on;
};
+
+ vdd_panel_reg: regulator@1 {
+ compatible = "regulator-fixed";
+ reg = <1>;
+ regulator-name = "+3VS,vdd_pnl";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ gpio = <&gpio 4 0>; /* gpio PA4 */
+ enable-active-high;
+ };
};
sound {
This enables backlight using power sequences. Signed-off-by: Marc Dietrich <marvin24@gmx.de> --- V5: - kill W0 gpio as it is not used on paz00 - use regulator for vdd_panel arch/arm/boot/dts/tegra20-paz00.dts | 75 +++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+)