Commit 52f7176b authored by Shawn Guo's avatar Shawn Guo

ARM: dts: mxs: add pwm-backlight for imx23-evk and imx28-evk

Add pwm device and pwm-backlight for imx23-evk and imx28-evk.
Signed-off-by: default avatarShawn Guo <shawn.guo@linaro.org>
parent f98c990c
...@@ -51,6 +51,12 @@ hog_pins_a: hog-gpios@0 { ...@@ -51,6 +51,12 @@ hog_pins_a: hog-gpios@0 {
}; };
apbx@80040000 { apbx@80040000 {
pwm: pwm@80064000 {
pinctrl-names = "default";
pinctrl-0 = <&pwm2_pins_a>;
status = "okay";
};
auart0: serial@8006c000 { auart0: serial@8006c000 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&auart0_pins_a>; pinctrl-0 = <&auart0_pins_a>;
...@@ -76,4 +82,11 @@ reg_vddio_sd0: vddio-sd0 { ...@@ -76,4 +82,11 @@ reg_vddio_sd0: vddio-sd0 {
gpio = <&gpio1 29 0>; gpio = <&gpio1 29 0>;
}; };
}; };
backlight {
compatible = "pwm-backlight";
pwms = <&pwm 2 5000000>;
brightness-levels = <0 4 8 16 32 64 128 255>;
default-brightness-level = <6>;
};
}; };
...@@ -181,6 +181,16 @@ mmc0_pins_fixup: mmc0-pins-fixup { ...@@ -181,6 +181,16 @@ mmc0_pins_fixup: mmc0-pins-fixup {
>; >;
fsl,pull-up = <0>; fsl,pull-up = <0>;
}; };
pwm2_pins_a: pwm2@0 {
reg = <0>;
fsl,pinmux-ids = <
0x11c0 /* MX23_PAD_PWM2__PWM2 */
>;
fsl,drive-strength = <0>;
fsl,voltage = <1>;
fsl,pull-up = <0>;
};
}; };
digctl@8001c000 { digctl@8001c000 {
...@@ -294,8 +304,11 @@ rtc@8005c000 { ...@@ -294,8 +304,11 @@ rtc@8005c000 {
interrupts = <22>; interrupts = <22>;
}; };
pwm@80064000 { pwm: pwm@80064000 {
compatible = "fsl,imx23-pwm";
reg = <0x80064000 2000>; reg = <0x80064000 2000>;
#pwm-cells = <2>;
fsl,pwm-number = <5>;
status = "disabled"; status = "disabled";
}; };
......
...@@ -95,6 +95,12 @@ sgtl5000: codec@0a { ...@@ -95,6 +95,12 @@ sgtl5000: codec@0a {
}; };
}; };
pwm: pwm@80064000 {
pinctrl-names = "default";
pinctrl-0 = <&pwm2_pins_a>;
status = "okay";
};
duart: serial@80074000 { duart: serial@80074000 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&duart_pins_a>; pinctrl-0 = <&duart_pins_a>;
...@@ -179,4 +185,11 @@ user { ...@@ -179,4 +185,11 @@ user {
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
}; };
}; };
backlight {
compatible = "pwm-backlight";
pwms = <&pwm 2 5000000>;
brightness-levels = <0 4 8 16 32 64 128 255>;
default-brightness-level = <6>;
};
}; };
...@@ -364,6 +364,16 @@ saif1_pins_a: saif1@0 { ...@@ -364,6 +364,16 @@ saif1_pins_a: saif1@0 {
fsl,voltage = <1>; fsl,voltage = <1>;
fsl,pull-up = <1>; fsl,pull-up = <1>;
}; };
pwm2_pins_a: pwm2@0 {
reg = <0>;
fsl,pinmux-ids = <
0x3120 /* MX28_PAD_PWM2__PWM_2 */
>;
fsl,drive-strength = <0>;
fsl,voltage = <1>;
fsl,pull-up = <0>;
};
}; };
digctl@8001c000 { digctl@8001c000 {
...@@ -526,8 +536,11 @@ i2c1: i2c@8005a000 { ...@@ -526,8 +536,11 @@ i2c1: i2c@8005a000 {
status = "disabled"; status = "disabled";
}; };
pwm@80064000 { pwm: pwm@80064000 {
compatible = "fsl,imx28-pwm", "fsl,imx23-pwm";
reg = <0x80064000 2000>; reg = <0x80064000 2000>;
#pwm-cells = <2>;
fsl,pwm-number = <8>;
status = "disabled"; status = "disabled";
}; };
......
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