From: Cédric Malitte <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Saturday, August 2, 2014 at 1:57 PM To: "[email protected]" <[email protected]> Subject: Re: [beagleboard] Enable LCD4 adding .dts to Kernel source v3.1x ?
> Thanks John, > > That's what I realized this morning when looking back at the code. > > But I wasn't aware of the need to copy the dts file to the sdcard. As a general rule, after building a new kernel, you should do the following from the deploy folder: sudo tar xvpf 3.15.6-bone5-firmware.tar.gz -C /media/rootfs/firmware/ sudo tar xvpf 3.15.6-bone5-modules.tar.gz -C /media/rootfs/ tar xvpf 3.15.6-bone5-dtbs.tar.gz -C /media/BOOT/ cp 3.15.6-bone5.zImage /media/BOOT/zImage Remember to change the kernel version above to match kernel version you are building. I recommend you add the above into a script in your deploy folder called update.sh, make it executable. Each time you update the kernel, then just run: ./update.sh Regards, John > > Will give it a try later when back home. > Regards > > Cédric Malitte > > Le 2014-08-02 à 15:21, John Syn <[email protected]> a écrit : > >> >> From: Cedric Malitte <[email protected]> >> Reply-To: "[email protected]" <[email protected]> >> Date: Friday, August 1, 2014 at 11:50 PM >> To: "[email protected]" <[email protected]> >> Subject: [beagleboard] Enable LCD4 adding .dts to Kernel source v3.1x ? >> >>> Hi, >>> >>> I compiled the 3.13 and 3.15 kernel using Robert tools, and I saw this >>> hoping to get LCD4 cape support: >>> http://www.spinics.net/lists/linux-omap/msg109735.html >>> >>> I applied the patch against the kernel tree, but nothing happened at boot >>> after a rebuild, I mean screen stayed black. >>> >>> A quick look in the kernel tree dirs and the am335x-bone-display-cape.dts >>> has not been compiled. >>> So I tried to ass it to Makefile, rebuild and got a fatal error from DTC. >> It shouldn¹t be compiled. Looking at the link you provided, the patch is >> included in the am335x-boneblack.dts file so when this DT gets compiled, it >> will have support for your LCD. Make sure you copy the new >> am335x-boneblack.dts to your dtbs folder on your SDCard. >> >> Regards, >> John >>> >>> I'm not very used to DT, so if someone could have a look at this file and >>> tell me what can be wrong, I'll try to rebuild it. >>> >>>> /* >>>> * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/ >>>> * >>>> * This program is free software; you can redistribute it and/or modify >>>> * it under the terms of the GNU General Public License version 2 as >>>> * published by the Free Software Foundation. >>>> * >>>> * This DTS adds supports for display capes using LCD interface for display >>>> * and GPIO or PWM interface for backlight controls. >>>> */ >>>> &am33xx_pinmux { >>>> bbcape_backlight_pins: bbcape_backlight_pins { >>>> pinctrl-single,pins = < >>>> 0x48 (PIN_OUTPUT | MUX_MODE7) /* gpmc_a[2].GPIO1[18] (backlight control) >>>> */ >>>>> >; >>>> }; >>>> bbcape_lcd_pins: bbcape_lcd_pins { >>>> pinctrl-single,pins = < >>>> 0xa0 (PIN_OUTPUT | MUX_MODE0) /* lcd_data0.lcd_data0 */ >>>> 0xa4 (PIN_OUTPUT | MUX_MODE0) /* lcd_data1.lcd_data1 */ >>>> 0xa8 (PIN_OUTPUT | MUX_MODE0) /* lcd_data2.lcd_data2 */ >>>> 0xac (PIN_OUTPUT | MUX_MODE0) /* lcd_data3.lcd_data3 */ >>>> 0xb0 (PIN_OUTPUT | MUX_MODE0) /* lcd_data4.lcd_data4 */ >>>> 0xb4 (PIN_OUTPUT | MUX_MODE0) /* lcd_data5.lcd_data5 */ >>>> 0xb8 (PIN_OUTPUT | MUX_MODE0) /* lcd_data6.lcd_data6 */ >>>> 0xbc (PIN_OUTPUT | MUX_MODE0) /* lcd_data7.lcd_data7 */ >>>> 0xc0 (PIN_OUTPUT | MUX_MODE0) /* lcd_data8.lcd_data8 */ >>>> 0xc4 (PIN_OUTPUT | MUX_MODE0) /* lcd_data9.lcd_data9 */ >>>> 0xc8 (PIN_OUTPUT | MUX_MODE0) /* lcd_data10.lcd_data10 */ >>>> 0xcc (PIN_OUTPUT | MUX_MODE0) /* lcd_data11.lcd_data11 */ >>>> 0xd0 (PIN_OUTPUT | MUX_MODE0) /* lcd_data12.lcd_data12 */ >>>> 0xd4 (PIN_OUTPUT | MUX_MODE0) /* lcd_data13.lcd_data13 */ >>>> 0xd8 (PIN_OUTPUT | MUX_MODE0) /* lcd_data14.lcd_data14 */ >>>> 0xdc (PIN_OUTPUT | MUX_MODE0) /* lcd_data15.lcd_data15 */ >>>> 0xe0 (PIN_OUTPUT | MUX_MODE0) /* lcd_vsync.lcd_vsync */ >>>> 0xe4 (PIN_OUTPUT | MUX_MODE0) /* lcd_hsync.lcd_hsync */ >>>> 0xe8 (PIN_OUTPUT | MUX_MODE0) /* lcd_pclk.lcd_pclk */ >>>> 0xec (PIN_OUTPUT | MUX_MODE0) /* lcd_ac_bias_en.lcd_ac_bias_en (lcd_en) */ >>>> 0x1a4 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* mcasp0_fsr.gpio3[19] (lcd_disen) >>>> */ >>>>> >; >>>> }; >>>> bbcape_touchscreen_pins: bbcape_touchscreen_pins { >>>> pinctrl-single,pins = < >>>> 0x184 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* uart1_txd.gpio0[15] (enter) */ >>>> 0x40 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a0.gpio1[16] (left) */ >>>> 0x44 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a1.gpio1[17] (right) */ >>>> 0x4c (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a3.gpio1[19] (up) */ >>>> 0x198 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* mcasp0_axr0.gpio3[16] (down) */ >>>>> >; >>>> }; >>>> }; >>>> >>>> / { >>>> backlight { >>>> status = "okay"; >>>> compatible = "gpio-backlight"; >>>> pinctrl-names = "default"; >>>> pinctrl-0 = <&bbcape_backlight_pins>; >>>> gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>; >>>> default-on; >>>> }; >>>> panel { >>>> status = "okay"; >>>> compatible = "ti,tilcdc,panel"; >>>> pinctrl-names = "default"; >>>> pinctrl-0 = <&bbcape_lcd_pins>; >>>> panel-info { >>>> ac-bias = <255>; >>>> ac-bias-intrpt = <0>; >>>> dma-burst-sz = <16>; >>>> bpp = <16>; >>>> fdd = <0x80>; >>>> sync-edge = <0>; >>>> sync-ctrl = <1>; >>>> raster-order = <0>; >>>> fifo-th = <0>; >>>> }; >>>> display-timings { >>>> native-mode = <&timing0>; >>>> /* www.newhavendisplay.com/app_notes/OTA5180A.pdf >>>> <http://www.newhavendisplay.com/app_notes/OTA5180A.pdf> */ >>>> timing0: 480x272 { >>>> clock-frequency = <9200000>; >>>> hactive = <480>; >>>> vactive = <272>; >>>> hfront-porch = <8>; >>>> hback-porch = <47>; >>>> hsync-len = <41>; >>>> vback-porch = <2>; >>>> vfront-porch = <3>; >>>> vsync-len = <10>; >>>> hsync-active = <0>; >>>> vsync-active = <0>; >>>> de-active = <1>; >>>> pixelclk-active = <0>; >>>> }; >>>> }; >>>> }; >>>> }; >>> >>> Thanks >>> >>> Cedric. >>> -- >>> For more options, visit http://beagleboard.org/discuss >>> --- >>> You received this message because you are subscribed to the Google Groups >>> "BeagleBoard" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >> >> -- >> For more options, visit http://beagleboard.org/discuss >> --- >> You received this message because you are subscribed to a topic in the Google >> Groups "BeagleBoard" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/beagleboard/wAcTyHqLfwg/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> For more options, visit https://groups.google.com/d/optout. > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
