RE: [PATCH] video: s3c-fb: Add device tree support
From: Jingoo Han <hidden>
Date: 2012-01-11 09:16:54
Also in:
linux-arm-kernel, linux-devicetree, linux-samsung-soc
Hi, Thomas.
-----Original Message-----
From: Thomas Abraham [mailto:thomas.abraham@linaro.org]
Sent: Tuesday, January 10, 2012 5:02 AM
To: linux-fbdev@vger.kernel.org; devicetree-discuss@lists.ozlabs.org
Cc: FlorianSchandinat@gmx.de; grant.likely@secretlab.ca; rob.herring@calxeda.com; linux-arm-
kernel@lists.infradead.org; linux-samsung-soc@vger.kernel.org; kgene.kim@samsung.com;
jg1.han@samsung.com; patches@linaro.org
Subject: [PATCH] video: s3c-fb: Add device tree support
Add device tree based discovery support for Samsung's display controller.
Cc: Grant Likely <redacted>
Cc: Rob Herring <redacted>
Signed-off-by: Thomas Abraham <redacted>
---
.../devicetree/bindings/fb/samsung-fb.txt | 103 ++++++++++
drivers/video/s3c-fb.c | 209 +++++++++++++++++++-
2 files changed, 304 insertions(+), 8 deletions(-)
create mode 100644 Documentation/devicetree/bindings/fb/samsung-fb.txt
[...]
+- samsung,fimd-bpp: Specifies the bits per pixel. Two values should be
+ specified in the following order.
+ - max-bpp: maximum required bpp for the overlay.
+ - default-bpp: bpp supported by the overlay.
[...]
+ fimd-overlay0 {
+ samsung,fimd-htiming = <64 16 48 1024>;
+ samsung,fimd-vtiming = <64 16 3 600>;
+ samsung,fimd-bpp = <24 32>;
+ };
+
+ fimd-overlay1 {
+ samsung,fimd-htiming = <64 16 48 200>;
+ samsung,fimd-vtiming = <64 16 3 100>;
+ samsung,fimd-bpp = <16 32>;
+ };
+ };In the above 'samsung-fb.txt', the order is defined as max-bpp and default-bpp. However, <24 32> and <16 32> seems to be wrong. It should be <32 24> and <32 16>, respectively. Max bpp would be 32bpp in s3c-fb. Best regards, Jingoo Han