Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Alias_Alias

Pages: [1]
1
Hello,

I try to connect the NHD‐4.3‐480272EF‐ATXL#‐CTP with a FAN5333 to the BeagleBoneBlack.

I think I have connected everything correctly, but the Display doesn't start. Can you please check it.

Display :
Pin  1       : LED-                    --> come from the FAN5333 see FAN5333
PIN 2        : LED+                  --> come from the FAN5333 see FAN5333
PIN 3        : GND                   --> come from BBB
PIN 4        : 3.3V                   --> come from BBB
PIN 5‐12     : R                      --> come from BBB
PIN 13‐20    : G                    --> come from BBB
PIN 21‐28    : B                    --> come from BBB
PIN 29       : GND                  --> come from BBB
PIN 30       : CLK                   --> come from BBB
PIN 31       : DISP ->   3.3V   --> come from BBB
PIN 32       : HSYNC               --> come from BBB
PIN 33       : VSYNC               --> come from BBB
PIN 34       : MPU                   --> come from BBB
PIN 36       : GND                   --> come from BBB

FAN5333
PIN 1         : SW                     --> go to LED+
PIN 2         : GND                    --> come from BBB
PIN 3         : FB                       --> go to LED-
PIN 4         : SHDN  -> 3.3V     --> come from BBB   (Later I would like to add the PWN PIN from the BBB)
PIN 5         : Vin   -> 3.3V        --> come from BBB

Coil L (10μH) (FAN5333)
FROM PIN5 to PIN1                --> from Vin to SW
 
Capacitor C(10μF) (FAN5333)
FROM Vin to GND

I use this Overlay to start the Display :
https://github.com/beagleboard/bb.org-overlays/blob/master/src/arm/BB-BONE-LCD7-01-00A3.dts

And have added :
bb_lcd_lcd_pins: pinmux_bb_lcd_lcd_pins {
.
.
BONE_P8_15 (PIN_OUTPUT | MUX_MODE1) /* lcd_data16.lcd_data16 */
...
BONE_P8_19 (PIN_OUTPUT | MUX_MODE1) /* lcd_data23.lcd_data23 *
}

For the 24 bit support I have changed the timings to:
timing0: 480x272 {
   clock-frequency = <9000000>;
   hactive = <480>;
   vactive = <272>;
   hfront-porch = <2>;
   hback-porch = <2>;
   hsync-len = <41>;
   vback-porch = <2>;
   vfront-porch = <2>;
   vsync-len = <10>;
   hsync-active = <0>;
   vsync-active = <0>;
   de-active = <1>;
   pixelclk-active = <0>;
};
I have also changed the Panel-Info for the 24bit support:
panel-info {
   ac-bias           = <255>;
   ac-bias-intrpt    = <0>;
   dma-burst-sz      = <16>;
   bpp               = <24>;
   fdd               = <0x80>;
   sync-edge         = <0>;
   sync-ctrl         = <1>;
   raster-order      = <0>;
   fifo-th           = <0>;
};



If I connect a LED :
to LED+   it lights up
to HSYNC  it lights up
to VSYNC  it lights up
to MPU    it lights up
to DISP   it lights up
to LED+   it lights up
to CLK    it lights a little bit up
to R,G,B  it lights up sometimes --> so I think I must see an output on the display


Is it now a software or a hardware Problem.
It is possible that I have crushed the Display, but I don't think so.


Please help me


Have a nice Day.

2
TFTs / Linux | Device Tree | NHD ‐ 4.3 ‐ 480272EF
« on: February 18, 2015, 07:16:40 AM »
Hello,

i have now read a lot and I try to add my NHD ‐ 4.3 ‐ 480272EF to a BeagleBone Black.
I connect it Like :
http://e2e.ti.com/support/arm/sitara_arm/f/791/t/303632
but for this display i need :
http://elinux.org/24bit_LCD_for_BBB

This is not the big Problem.

The next thing is that i must add the TFT to the Device Tree. I have write this :

 
Code: [Select]

/*
 * Copyright (C) 2012 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.
 */
/dts-v1/;

#include "am33xx.dtsi"
#include "am335x-bone-common.dtsi"

&ldo3_reg {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-always-on;
};

&mmc1 {
vmmc-supply = <&vmmcsd_fixed>;
};

&mmc2 {
vmmc-supply = <&vmmcsd_fixed>;
pinctrl-names = "default";
pinctrl-0 = <&emmc_pins>;
bus-width = <8>;
ti,non-removable;
status = "okay";
};

&am33xx_pinmux {

lcd_pins_default: lcd_pins_default {
pinctrl-single,pins = <


0x20 0x01 /* gpmc_ad8.lcd_data16, OUTPUT | MODE1 */
0x24 0x01 /* gpmc_ad9.lcd_data17, OUTPUT | MODE1 */
0x28 0x01 /* gpmc_ad10.lcd_data18, OUTPUT | MODE1 */
0x2c 0x01 /* gpmc_ad11.lcd_data19, OUTPUT | MODE1 */
0x30 0x01 /* gpmc_ad12.lcd_data20, OUTPUT | MODE1 */
0x34 0x01 /* gpmc_ad13.lcd_data21, OUTPUT | MODE1 */
0x38 0x01 /* gpmc_ad14.lcd_data22, OUTPUT | MODE1 */
0x3c 0x01 /* gpmc_ad15.lcd_data23, OUTPUT | MODE1 */

0xa0 0x00 /* lcd_data0.lcd_data0, OUTPUT | MODE0 */
0xa4 0x00 /* lcd_data1.lcd_data1, OUTPUT | MODE0 */
0xa8 0x00 /* lcd_data2.lcd_data2, OUTPUT | MODE0 */
0xac 0x00 /* lcd_data3.lcd_data3, OUTPUT | MODE0 */
0xb0 0x00 /* lcd_data4.lcd_data4, OUTPUT | MODE0 */
0xb4 0x00 /* lcd_data5.lcd_data5, OUTPUT | MODE0 */
0xb8 0x00 /* lcd_data6.lcd_data6, OUTPUT | MODE0 */
0xbc 0x00 /* lcd_data7.lcd_data7, OUTPUT | MODE0 */
0xc0 0x00 /* lcd_data8.lcd_data8, OUTPUT | MODE0 */
0xc4 0x00 /* lcd_data9.lcd_data9, OUTPUT | MODE0 */
0xc8 0x00 /* lcd_data10.lcd_data10, OUTPUT | MODE0 */
0xcc 0x00 /* lcd_data11.lcd_data11, OUTPUT | MODE0 */
0xd0 0x00 /* lcd_data12.lcd_data12, OUTPUT | MODE0 */
0xd4 0x00 /* lcd_data13.lcd_data13, OUTPUT | MODE0 */
0xd8 0x00 /* lcd_data14.lcd_data14, OUTPUT | MODE0 */
0xdc 0x00 /* lcd_data15.lcd_data15, OUTPUT | MODE0 */
0xe0 0x00 /* lcd_vsync.lcd_vsync, OUTPUT | MODE0 */
0xe4 0x00 /* lcd_hsync.lcd_hsync, OUTPUT | MODE0 */
0xe8 0x00 /* lcd_pclk.lcd_pclk, OUTPUT | MODE0 */
0xec 0x00 /* lcd_ac_bias_en.lcd_ac_bias_en, OUTPUT | MODE0 */
>;
};

nxp_hdmi_bonelt_pins: nxp_hdmi_bonelt_pins {
pinctrl-single,pins = <
0x1b0 0x03      /* xdma_event_intr0, OMAP_MUX_MODE3 | AM33XX_PIN_OUTPUT */
0xa0 0x08       /* lcd_data0.lcd_data0, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
0xa4 0x08       /* lcd_data1.lcd_data1, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
0xa8 0x08       /* lcd_data2.lcd_data2, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
0xac 0x08       /* lcd_data3.lcd_data3, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
0xb0 0x08       /* lcd_data4.lcd_data4, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
0xb4 0x08       /* lcd_data5.lcd_data5, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
0xb8 0x08       /* lcd_data6.lcd_data6, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
0xbc 0x08       /* lcd_data7.lcd_data7, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
0xc0 0x08       /* lcd_data8.lcd_data8, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
0xc4 0x08       /* lcd_data9.lcd_data9, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
0xc8 0x08       /* lcd_data10.lcd_data10, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
0xcc 0x08       /* lcd_data11.lcd_data11, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
0xd0 0x08       /* lcd_data12.lcd_data12, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
0xd4 0x08       /* lcd_data13.lcd_data13, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
0xd8 0x08       /* lcd_data14.lcd_data14, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
0xdc 0x08       /* lcd_data15.lcd_data15, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
0xe0 0x00       /* lcd_vsync.lcd_vsync, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT */
0xe4 0x00       /* lcd_hsync.lcd_hsync, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT */
0xe8 0x00       /* lcd_pclk.lcd_pclk, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT */
0xec 0x00       /* lcd_ac_bias_en.lcd_ac_bias_en, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT */
>;
};
nxp_hdmi_bonelt_off_pins: nxp_hdmi_bonelt_off_pins {
pinctrl-single,pins = <
0x1b0 0x03      /* xdma_event_intr0, OMAP_MUX_MODE3 | AM33XX_PIN_OUTPUT */
>;
};

ecap0_pins_default: backlight_pins {
pinctrl-single,pins = <
0x164 0x0       /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */
>;
};

pwm_bl_pins: pinmux_pwm_bl_pins {
pinctrl-single,pins = <
0x48 0x06       /* gpmc_a2.ehrpwm1a, OMAP_MUX_MODE6 | AM33XX_PIN_OUTPUT */
>;
};
};

&epwmss1 {
status = "okay";

ehrpwm1: ehrpwm@48302200 {
        status = "okay";
};
};

&lcdc {
pinctrl-names = "default";
pinctrl-0 = <&lcd_pins_default>;
status = "okay";
display-timings {
800x480p62 {
clock-frequency = <30000000>;
hactive = <800>;
vactive = <480>;
hfront-porch = <39>;
hback-porch = <39>;
hsync-len = <47>;
vback-porch = <29>;
vfront-porch = <13>;
vsync-len = <2>;
hsync-active = <0>;
vsync-active = <0>;
bpp = <16>;
};

482x272p62 {
clock-frequency = <90000000>;
hactive = <482>;
vactive = <272>;
hfront-porch = <2>;
hback-porch = <2>;
hsync-len = <41>;
vback-porch = <2>;
vfront-porch = <2>;
vsync-len = <3>;
hsync-active = <0>;
vsync-active = <0>;
bpp = <16>;
};
};
};

&tscadc {
        status = "okay";
        tsc {
                ti,wires = <4>;
                ti,x-plate-resistance = <200>;
                ti,coordinate-readouts = <5>;
                ti,wire-config = <0x00 0x11 0x22 0x33>;
        };

        adc {
                ti,adc-channels = <4 5 6 7>;
        };
};


/ {

backlight {
compatible      = "pwm-backlight";
pinctrl-names   = "default";
pinctrl-0       = <&pwm_bl_pins>;
status = "okay";
pwms = <&ehrpwm1 0 500000 0>;
pwm-names = "LCD7";
brightness-levels = <0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100>;
default-brightness-level = <101>; /* index to the array above */
};

/*
panel {
                compatible = "ti,tilcdc,panel";
                status = "okay";
                pinctrl-names = "default";
                pinctrl-0 = <&lcd_pins_default>;
                panel-info {
                        ac-bias           = <255>;
                        ac-bias-intrpt    = <0>;
                        dma-burst-sz      = <16>;
                        bpp               = <32>;
                        fdd               = <0x80>;
                        sync-edge         = <0>;
                        sync-ctrl         = <1>;
                        raster-order      = <0>;
                        fifo-th           = <0>;
tft-alt-mode      = <0>;
stn-565-mode      = <0>;
mono-8bit-mode    = <0>;
                };

                display-timings {
                        800x480p62 {
                                clock-frequency = <30000000>;
                                hactive = <800>;
                                vactive = <480>;
                                hfront-porch = <40>;
                                hback-porch = <40>;
                                hsync-len = <48>;
                                vback-porch = <30>;
                                vfront-porch = <13>;
                                vsync-len = <3>;
                                hsync-active = <0>;
                                vsync-active = <0>;
                        };
                };
        };
*/
};


Can you please look at :

Code: [Select]
482x272p62 {
clock-frequency = <90000000>;
hactive = <482>;
vactive = <272>;
hfront-porch = <2>;
hback-porch = <2>;
hsync-len = <41>;
vback-porch = <2>;
vfront-porch = <2>;
vsync-len = <3>;
hsync-active = <0>;
vsync-active = <0>;
bpp = <16>;
};


Is this Ok ?
Or have i make something wrong ? Or can i make something better ?

Have a nice day ;)

3
TFTs / Example Arduino Code for the NHD-4.3-480272EF-ATXL#-CTP
« on: January 20, 2015, 06:37:23 AM »
Hello,

i have buy the NHD-4.3-480272EF-ATXL#-CTP.
Now I would like to add the NHD-4.3-480272EF-ATXL#-CTP to an Arduino. You have great Code for many of your Displays under http://www.newhavendisplay.com/exprog_page.html. First i would like to say thanks for that.
But I think I'm write that you not have not a code for the NHD-4.3-480272EF-ATXL#-CTP. You have Code for the HX8369 controller. But the new display have the HX8257.

Can you help me a little bit what I must change ?
I thing I must change data_out_16bit to a 24bit.
That is not so hard I think.
But I'm really not Shure about Init_HX8369A to Init_HX8369. Can you help me here a little bit or show me what I must read to understand the code. I have read a little bit of the Documentation of the HX836, but I don't

Have a nice day

Pages: [1]