12a13
> #include <dt-bindings/gpio/gpio.h>
77a79,99
>
> wvga: display {
> model = "CLAA057VC01CW";
> bits-per-pixel = <16>;
> fsl,pcr = <0xfa208b80>;
> bus-width = <18>;
> native-mode = <&wvga_timings>;
> display-timings {
> wvga_timings: 640x480 {
> hactive = <640>;
> vactive = <480>;
> hback-porch = <45>;
> hfront-porch = <114>;
> hsync-len = <1>;
> vback-porch = <33>;
> vfront-porch = <11>;
> vsync-len = <1>;
> clock-frequency = <25200000>;
> };
> };
> };
96,97c118,119
< cd-gpios = <&gpio2 1 0>;
< wp-gpios = <&gpio2 0 0>;
---
> cd-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
> wp-gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;
192a215,241
> pinctrl_lcd: lcdgrp {
> fsl,pins = <
> MX25_PAD_LD0__LD0 0xe0
> MX25_PAD_LD1__LD1 0xe0
> MX25_PAD_LD2__LD2 0xe0
> MX25_PAD_LD3__LD3 0xe0
> MX25_PAD_LD4__LD4 0xe0
> MX25_PAD_LD5__LD5 0xe0
> MX25_PAD_LD6__LD6 0xe0
> MX25_PAD_LD7__LD7 0xe0
> MX25_PAD_LD8__LD8 0xe0
> MX25_PAD_LD9__LD9 0xe0
> MX25_PAD_LD10__LD10 0xe0
> MX25_PAD_LD11__LD11 0xe0
> MX25_PAD_LD12__LD12 0xe0
> MX25_PAD_LD13__LD13 0xe0
> MX25_PAD_LD14__LD14 0xe0
> MX25_PAD_LD15__LD15 0xe0
> MX25_PAD_GPIO_E__LD16 0xe0
> MX25_PAD_GPIO_F__LD17 0xe0
> MX25_PAD_HSYNC__HSYNC 0xe0
> MX25_PAD_VSYNC__VSYNC 0xe0
> MX25_PAD_LSCLK__LSCLK 0xe0
> MX25_PAD_OE_ACD__OE_ACD 0xe0
> MX25_PAD_CONTRAST__CONTRAST 0xe0
> >;
> };
204a254,263
> &lcdc {
> display = <&wvga>;
> fsl,lpccr = <0x00a903ff>;
> fsl,lscr1 = <0x00120300>;
> fsl,dmacr = <0x00020010>;
> pinctrl-names = "default";
> pinctrl-0 = <&pinctrl_lcd>;
> status = "okay";
> };
>
> #include <dt-bindings/gpio/gpio.h>
77a79,99
>
> wvga: display {
> model = "CLAA057VC01CW";
> bits-per-pixel = <16>;
> fsl,pcr = <0xfa208b80>;
> bus-width = <18>;
> native-mode = <&wvga_timings>;
> display-timings {
> wvga_timings: 640x480 {
> hactive = <640>;
> vactive = <480>;
> hback-porch = <45>;
> hfront-porch = <114>;
> hsync-len = <1>;
> vback-porch = <33>;
> vfront-porch = <11>;
> vsync-len = <1>;
> clock-frequency = <25200000>;
> };
> };
> };
96,97c118,119
< cd-gpios = <&gpio2 1 0>;
< wp-gpios = <&gpio2 0 0>;
---
> cd-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
> wp-gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;
192a215,241
> pinctrl_lcd: lcdgrp {
> fsl,pins = <
> MX25_PAD_LD0__LD0 0xe0
> MX25_PAD_LD1__LD1 0xe0
> MX25_PAD_LD2__LD2 0xe0
> MX25_PAD_LD3__LD3 0xe0
> MX25_PAD_LD4__LD4 0xe0
> MX25_PAD_LD5__LD5 0xe0
> MX25_PAD_LD6__LD6 0xe0
> MX25_PAD_LD7__LD7 0xe0
> MX25_PAD_LD8__LD8 0xe0
> MX25_PAD_LD9__LD9 0xe0
> MX25_PAD_LD10__LD10 0xe0
> MX25_PAD_LD11__LD11 0xe0
> MX25_PAD_LD12__LD12 0xe0
> MX25_PAD_LD13__LD13 0xe0
> MX25_PAD_LD14__LD14 0xe0
> MX25_PAD_LD15__LD15 0xe0
> MX25_PAD_GPIO_E__LD16 0xe0
> MX25_PAD_GPIO_F__LD17 0xe0
> MX25_PAD_HSYNC__HSYNC 0xe0
> MX25_PAD_VSYNC__VSYNC 0xe0
> MX25_PAD_LSCLK__LSCLK 0xe0
> MX25_PAD_OE_ACD__OE_ACD 0xe0
> MX25_PAD_CONTRAST__CONTRAST 0xe0
> >;
> };
204a254,263
> &lcdc {
> display = <&wvga>;
> fsl,lpccr = <0x00a903ff>;
> fsl,lscr1 = <0x00120300>;
> fsl,dmacr = <0x00020010>;
> pinctrl-names = "default";
> pinctrl-0 = <&pinctrl_lcd>;
> status = "okay";
> };
>