On Wed, 23 Oct 2013 14:43:47 +0200, Denis Carikli wrote: > Cc: Jean-Christophe Plagniol-Villard > Cc: Tomi Valkeinen > Cc: linux-fbdev@vger.kernel.org > Cc: Rob Herring > Cc: Pawel Moll > Cc: Mark Rutland > Cc: Stephen Warren > Cc: Ian Campbell > Cc: devicetree@vger.kernel.org > Cc: Sascha Hauer > Cc: linux-arm-kernel@lists.infradead.org > Cc: Eric BĂ©nard > Signed-off-by: Denis Carikli > --- > ChangeLog v2->v3: > - The device tree bindings were reworked in order to make it look more 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.txt > > 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 > +================ > + > +Required properties: > +- compatible: Should be "fsl,mx3fb". compatible chips include the imx31 and the > + imx35. > +- reg: should be register base and length as documented in the datasheet. > +- clocks: Handle to the ipu_gate clock. > + > +Example: > + > +lcdc: mx3fb@53fc00b4 { > + compatible = "fsl,mx3-fb"; > + reg = <0x53fc00b4 0x0b>; > + clocks = <&clks 55>; > +}; This (and some of the other bindings) are trivial, and they are all associated with a single SoC. I think it would be better to collect all the mx3 bindings into a single file rather than distributing them all over the bindings tree. I started thinking about this after some of the DT conversations in Edinburgh this week. Unless there is a high likelyhood of components being used separately, I think it is far more useful to collect all the bindings for an SoC into a single file. It will certainly reduce a lot of the boilerplate that we've been collecting in bindings documentation files. A long time ago I took that approach for the mpc5200 documentation[1]. Take a look at that organization and let me know what you think. [1] Documentation/devicetree/bindings/powerpc/fsl/mpc5200.txt g. > + > +Display support > +=============== > +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" > + > +It can also have an optional timing subnode as described in > + Documentation/devicetree/bindings/video/display-timing.txt. > + > +Example: > + > +display@di0 { > + interface-pix-fmt = "rgb666"; > + model = "CMO-QVGA"; > +}; > 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 > > +#include