From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kumar Gala Subject: Re: [PATCHv3][ 3/5] video: mx3fb: Add device tree suport. Date: Sat, 26 Oct 2013 01:40:20 -0500 Message-ID: <75314C73-0260-4F15-A9EB-4227C6A7B374@codeaurora.org> References: <1382532229-32755-1-git-send-email-denis@eukrea.com> <1382532229-32755-3-git-send-email-denis@eukrea.com> Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <1382532229-32755-3-git-send-email-denis-fO0SIAKYzcbQT0dZR+AlfA@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Denis Carikli Cc: Sascha Hauer , Shawn Guo , =?iso-8859-1?Q?Eric_B=E9nard?= , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Jean-Christophe Plagniol-Villard , Tomi Valkeinen , linux-fbdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Rob Herring , Pawel Moll , Mark Rutland , Stephen Warren , Ian Campbell , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org On Oct 23, 2013, at 7:43 AM, Denis Carikli wrote: > Cc: Jean-Christophe Plagniol-Villard > Cc: Tomi Valkeinen > Cc: linux-fbdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: Rob Herring > Cc: Pawel Moll > Cc: Mark Rutland > Cc: Stephen Warren > Cc: Ian Campbell > Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: Sascha Hauer > Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org > Cc: Eric B=E9nard > Signed-off-by: Denis Carikli > --- > ChangeLog v2->v3: > - The device tree bindings were reworked in order to make it look mor= e like the > IPUv3 bindings. > - The interface_pix_fmt property now looks like the IPUv3 one. > --- > .../devicetree/bindings/video/fsl,mx3-fb.txt | 35 ++++++ > drivers/video/Kconfig | 2 + > drivers/video/mx3fb.c | 125 +++++++++++= ++++++--- > 3 files changed, 147 insertions(+), 15 deletions(-) > create mode 100644 Documentation/devicetree/bindings/video/fsl,mx3-fb= =2Etxt >=20 > diff --git a/Documentation/devicetree/bindings/video/fsl,mx3-fb.txt b= /Documentation/devicetree/bindings/video/fsl,mx3-fb.txt > new file mode 100644 > index 0000000..0b31374 > --- /dev/null > +++ b/Documentation/devicetree/bindings/video/fsl,mx3-fb.txt > @@ -0,0 +1,35 @@ > +Freescale MX3 fb Can you spell out framebuffer here instead of fb > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +Required properties: > +- compatible: Should be "fsl,mx3fb". compatible chips include the im= x31 and the > + imx35. > +- reg: should be register base and length as documented in the datas= heet. > +- clocks: Handle to the ipu_gate clock. > + > +Example: > + > +lcdc: mx3fb@53fc00b4 { > + compatible =3D "fsl,mx3-fb"; > + reg =3D <0x53fc00b4 0x0b>; > + clocks =3D <&clks 55>; > +}; > + > +Display support > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +Required properties: > +- model : The user-visible name of the display. > + > +Optional properties: > +- interface_pix_fmt: How this display is connected to the > + crtc. Currently supported types: "rgb24", "rgb565", "rgb666" Why is there no compatible for the display? > + > +It can also have an optional timing subnode as described in > + Documentation/devicetree/bindings/video/display-timing.txt. > + > +Example: > + > +display@di0 { > + interface-pix-fmt =3D "rgb666"; > + model =3D "CMO-QVGA"; > +}; how do you relate the display to the framebuffer? - k > diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig > index 14317b7..2a638df 100644 > --- a/drivers/video/Kconfig > +++ b/drivers/video/Kconfig > @@ -2359,6 +2359,8 @@ config FB_MX3 > select FB_CFB_FILLRECT > select FB_CFB_COPYAREA > select FB_CFB_IMAGEBLIT > + select VIDEOMODE_HELPERS > + select FB_MODE_HELPERS > default y > help > This is a framebuffer device for the i.MX31 LCD Controller. So > diff --git a/drivers/video/mx3fb.c b/drivers/video/mx3fb.c > index 804f874..de5a6c8 100644 > --- a/drivers/video/mx3fb.c > +++ b/drivers/video/mx3fb.c > @@ -31,6 +31,8 @@ > #include > #include >=20 > +#include