Skip to content
Permalink
Browse files

Add Chalk Electronics LVDS cape and 10in display

  • Loading branch information...
jadonk committed Dec 31, 2012
1 parent de28263 commit ade06090f88cb4fd5c4fa370c8f11f8100eb003b
Showing with 87 additions and 3 deletions.
  1. +2 −2 configs/beaglebone
  2. +1 −1 patch.sh
  3. +84 −0 patches/capes/0001-da8xx-fb-add-Chalk-Electronics-LVDS-cape-and-10in-di.patch
@@ -2836,8 +2836,8 @@ CONFIG_HID_LENOVO_TPKBD=m
# CONFIG_HID_MAGICMOUSE is not set
# CONFIG_HID_MICROSOFT is not set
# CONFIG_HID_MONTEREY is not set
# CONFIG_HID_MULTITOUCH is not set
# CONFIG_HID_NTRIG is not set
CONFIG_HID_MULTITOUCH=y
CONFIG_HID_NTRIG=m
# CONFIG_HID_ORTEK is not set
# CONFIG_HID_PANTHERLORD is not set
# CONFIG_HID_PETALYNX is not set
@@ -26,7 +26,7 @@ EXTERNAL_SHA="29594404d7fe73cd80eaa4ee8c43dcc53970c60e"

#PATCHSET="pruss pwm2 fixes"
# BAD: rtc
PATCHSET="dma cpsw pinctrl cpufreq adc pwm i2c usb da8xx-fb mmc fixes f2fs 6lowpan capebus hdmi pruss arm omap omap_sakoman omap_beagle_expansion omap_beagle omap_panda omap_sgx omap_fixes omap_thermal net spi"
PATCHSET="dma cpsw pinctrl cpufreq adc pwm i2c usb da8xx-fb mmc fixes f2fs 6lowpan capebus hdmi pruss arm omap omap_sakoman omap_beagle_expansion omap_beagle omap_panda omap_sgx omap_fixes omap_thermal net spi capes"

git_kernel_stable () {
git pull git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git master --tags || true
@@ -0,0 +1,84 @@
From 4789e4d44e46a46a0e08080e208ef6f6acc8da3e Mon Sep 17 00:00:00 2001
From: Jason Kridner <jdk@ti.com>
Date: Mon, 31 Dec 2012 13:39:57 -0500
Subject: [PATCH] da8xx-fb: add Chalk Electronics LVDS cape and 10in display

---
arch/arm/boot/dts/am335x-bone-common.dtsi | 21 +++++++++++++++++++++
drivers/video/da8xx-fb.c | 14 ++++++++++++++
2 files changed, 35 insertions(+)

diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi
index 5bb6a1c..224869b 100644
--- a/arch/arm/boot/dts/am335x-bone-common.dtsi
+++ b/arch/arm/boot/dts/am335x-bone-common.dtsi
@@ -305,6 +305,10 @@
compatible = "bone-generic-cape";
};

+ bone_lvds_cape: cape@7 {
+ compatible = "bone-generic-cape";
+ };
+
/* overrides; no EEPROM (prototyping) */
// override@3 {
// compatible = "bone-capebus-slot-override";
@@ -708,6 +712,23 @@
};
};

+&bone_lvds_cape {
+ board-name = "BeagleBone LVDS LCD CAPE";
+
+ /* hacky, since this is not a proper DT platform device */
+ /* but until we have DT bindings... */
+ lvds {
+ compatible = "da8xx-dt";
+ pinctrl-names = "default";
+ pinctrl-0 = <&bone_lcd3_cape_lcd_pins>;
+
+ ti,hwmods = "lcdc";
+
+ disp-pll = <371000000>;
+ panel-type = "chalkelec-lvds-10in";
+ };
+};
+
&bone_lcd7_cape {
board-name = "BeagleBone LCD7 CAPE";

diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c
index d6b228f..cd19748 100644
--- a/drivers/video/da8xx-fb.c
+++ b/drivers/video/da8xx-fb.c
@@ -368,6 +368,19 @@ static struct da8xx_panel known_lcd_panels[] = {
.pxl_clk = 96000000,
.invert_pxl_clk = 0,
},
+ [10] = {
+ .name = "chalkelec-lvds-10in",
+ .width = 1280,
+ .height = 800,
+ .hfp = 109,
+ .hbp = 139,
+ .hsw = 39,
+ .vfp = 5,
+ .vbp = 19,
+ .vsw = 5,
+ .pxl_clk = 74250000,
+ .invert_pxl_clk = 0,
+ },
};

/* Enable the Raster Engine of the LCD Controller */
@@ -1320,6 +1333,7 @@ static unsigned int da8xxfb_pixel_clk_period(struct da8xx_fb_par *par)
unsigned long long pix_clk_period_picosec = 1000000000000ULL;

lcd_clk = clk_get_rate(par->lcdc_clk);
+ printk("lcd_clk = %d, pxl_clk = %d\n", lcd_clk, par->pxl_clk);
div = lcd_clk / par->pxl_clk;
configured_pix_clk = (lcd_clk / div);

--
1.7.9.5

0 comments on commit ade0609

Please sign in to comment.
You can’t perform that action at this time.