Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
232 lines (206 sloc) 7.53 KB
/*
* 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/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/am33xx.h>
#include <dt-bindings/board/am335x-bbw-bbb-base.h>
/ {
/*
* Free up the pins used by the cape from the pinmux helpers.
*/
fragment@0 {
target = <&ocp>;
__overlay__ {
P8_45_pinmux { status = "disabled"; }; /* lcd: lcd_data0 */
P8_46_pinmux { status = "disabled"; }; /* lcd: lcd_data1 */
P8_43_pinmux { status = "disabled"; }; /* lcd: lcd_data2 */
P8_44_pinmux { status = "disabled"; }; /* lcd: lcd_data3 */
P8_41_pinmux { status = "disabled"; }; /* lcd: lcd_data4 */
P8_42_pinmux { status = "disabled"; }; /* lcd: lcd_data5 */
P8_39_pinmux { status = "disabled"; }; /* lcd: lcd_data6 */
P8_40_pinmux { status = "disabled"; }; /* lcd: lcd_data7 */
P8_37_pinmux { status = "disabled"; }; /* lcd: lcd_data8 */
P8_38_pinmux { status = "disabled"; }; /* lcd: lcd_data9 */
P8_36_pinmux { status = "disabled"; }; /* lcd: lcd_data10 */
P8_34_pinmux { status = "disabled"; }; /* lcd: lcd_data11 */
P8_35_pinmux { status = "disabled"; }; /* lcd: lcd_data12 */
P8_33_pinmux { status = "disabled"; }; /* lcd: lcd_data13 */
P8_31_pinmux { status = "disabled"; }; /* lcd: lcd_data14 */
P8_32_pinmux { status = "disabled"; }; /* lcd: lcd_data15 */
P8_15_pinmux { status = "disabled"; }; /* gpmc_ad15.lcd_data16 */
P8_16_pinmux { status = "disabled"; }; /* gpmc_ad14.lcd_data17 */
P8_11_pinmux { status = "disabled"; }; /* gpmc_ad13.lcd_data18 */
P8_12_pinmux { status = "disabled"; }; /* gpmc_ad12.lcd_data19 */
P8_17_pinmux { status = "disabled"; }; /* gpmc_ad11.lcd_data20 */
P8_14_pinmux { status = "disabled"; }; /* gpmc_ad10.lcd_data21 */
P8_13_pinmux { status = "disabled"; }; /* gpmc_ad9.lcd_data22 */
P8_19_pinmux { status = "disabled"; }; /* gpmc_ad8.lcd_data23 */
P8_27_pinmux { status = "disabled"; }; /* lcd: lcd_vsync */
P8_29_pinmux { status = "disabled"; }; /* lcd: lcd_hsync */
P8_28_pinmux { status = "disabled"; }; /* lcd: lcd_pclk */
P8_30_pinmux { status = "disabled"; }; /* lcd: lcd_ac_bias_en */
P8_18_pinmux { status = "disabled"; }; /* lcd: enable */
P9_14_pinmux { status = "disabled"; }; /* pwm: ehrpwm1a */
P9_27_pinmux { status = "disabled"; }; /* ft5336: gpio3_15 */
};
};
fragment@1 {
target = <&am33xx_pinmux>;
__overlay__ {
bb_lcd_pwm_backlight_pins: pinmux_bb_lcd_pwm_backlight_pins {
pinctrl-single,pins = <
BONE_P9_14 (PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* P9_14: gpmc_a2.ehrpwm1a */
>;
};
bb_lcd_lcd_pins: pinmux_bb_lcd_lcd_pins {
pinctrl-single,pins = <
/*LCD enable */
BONE_P8_18 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_clk_mux0.gpio2_1 */
BONE_P8_45 (PIN_OUTPUT | MUX_MODE0) /* P8_45: lcd_data0.lcd_data0 */
BONE_P8_46 (PIN_OUTPUT | MUX_MODE0) /* P8_46: lcd_data1.lcd_data1 */
BONE_P8_43 (PIN_OUTPUT | MUX_MODE0) /* P8_43: lcd_data2.lcd_data2 */
BONE_P8_44 (PIN_OUTPUT | MUX_MODE0) /* P8_44: lcd_data3.lcd_data3 */
BONE_P8_41 (PIN_OUTPUT | MUX_MODE0) /* P8_41: lcd_data4.lcd_data4 */
BONE_P8_42 (PIN_OUTPUT | MUX_MODE0) /* P8_42: lcd_data5.lcd_data5 */
BONE_P8_39 (PIN_OUTPUT | MUX_MODE0) /* P8_39: lcd_data6.lcd_data6 */
BONE_P8_40 (PIN_OUTPUT | MUX_MODE0) /* P8_40: lcd_data7.lcd_data7 */
BONE_P8_37 (PIN_OUTPUT | MUX_MODE0) /* P8_37: lcd_data8.lcd_data8 */
BONE_P8_38 (PIN_OUTPUT | MUX_MODE0) /* P8_38: lcd_data9.lcd_data9 */
BONE_P8_36 (PIN_OUTPUT | MUX_MODE0) /* P8_36: lcd_data10.lcd_data10 */
BONE_P8_34 (PIN_OUTPUT | MUX_MODE0) /* P8_34: lcd_data11.lcd_data11 */
BONE_P8_35 (PIN_OUTPUT | MUX_MODE0) /* P8_35: lcd_data12.lcd_data12 */
BONE_P8_33 (PIN_OUTPUT | MUX_MODE0) /* P8_33: lcd_data13.lcd_data13 */
BONE_P8_31 (PIN_OUTPUT | MUX_MODE0) /* P8_31: lcd_data14.lcd_data14 */
BONE_P8_32 (PIN_OUTPUT | MUX_MODE0) /* P8_32: lcd_data15.lcd_data15 */
BONE_P8_15 (PIN_OUTPUT | MUX_MODE1) /* P8_15: gpmc_ad15.lcd_data16 */
BONE_P8_16 (PIN_OUTPUT | MUX_MODE1) /* P8_16: gpmc_ad14.lcd_data17 */
BONE_P8_11 (PIN_OUTPUT | MUX_MODE1) /* P8_11: gpmc_ad13.lcd_data18 */
BONE_P8_12 (PIN_OUTPUT | MUX_MODE1) /* P8_12: gpmc_ad12.lcd_data19 */
BONE_P8_17 (PIN_OUTPUT | MUX_MODE1) /* P8_17: gpmc_ad11.lcd_data20 */
BONE_P8_14 (PIN_OUTPUT | MUX_MODE1) /* P8_14: gpmc_ad10.lcd_data21 */
BONE_P8_13 (PIN_OUTPUT | MUX_MODE1) /* P8_13: gpmc_ad9.lcd_data22 */
BONE_P8_19 (PIN_OUTPUT | MUX_MODE1) /* P8_19: gpmc_ad8.lcd_data23 */
BONE_P8_27 (PIN_OUTPUT | MUX_MODE0) /* P8_27: lcd_vsync.lcd_vsync */
BONE_P8_29 (PIN_OUTPUT | MUX_MODE0) /* P8_29: lcd_hsync.lcd_hsync */
BONE_P8_28 (PIN_OUTPUT | MUX_MODE0) /* P8_28: lcd_pclk.lcd_pclk */
BONE_P8_30 (PIN_OUTPUT | MUX_MODE0) /* P8_30: lcd_ac_bias_en.lcd_ac_bias_en */
>;
};
edt_ft5x06_pins: pinmux_edt_ft5x06_pins {
pinctrl-single,pins = <
BONE_P9_27 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* mcasp0_fsr.gpio3_19 */
>;
};
};
};
fragment@2 {
target = <&epwmss1>;
__overlay__ {
status = "okay";
};
};
fragment@3 {
target = <&ehrpwm1>;
__overlay__ {
pinctrl-names = "default";
pinctrl-0 = <&bb_lcd_pwm_backlight_pins>;
status = "okay";
};
};
fragment@4 {
target = <&lcdc>;
__overlay__ {
status = "okay";
blue-and-red-wiring = "crossed";
};
};
fragment@5 {
target = <&i2c2>;
__overlay__ {
status = "okay";
/* this is the configuration part */
clock-frequency = <100000>;
#address-cells = <1>;
#size-cells = <0>;
edt-ft5x06@38 {
status = "okay";
compatible = "edt,edt-ft5406", "edt,edt-ft5x06";
reg = <0x38>;
pinctrl-names = "default";
pinctrl-0 = <&edt_ft5x06_pins>;
interrupt-parent = <&gpio3>;
interrupts = <19 0>;
touchscreen-size-x = <800>;
touchscreen-size-y = <480>;
// touchscreen-swapped-x-y;
};
};
};
fragment@6 {
target-path="/";
__overlay__ {
backlight {
status = "okay";
compatible = "pwm-backlight";
pwms = <&ehrpwm1 0 500000 0>;
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 = <100>;
};
/* NHD-7.0-800480EF-ATXL# */
panel {
status = "okay";
compatible = "ti,tilcdc,panel";
pinctrl-names = "default";
pinctrl-0 = <&bb_lcd_lcd_pins>;
panel-info {
ac-bias = <255>;
ac-bias-intrpt = <0>;
dma-burst-sz = <16>;
bpp = <32>;
fdd = <0x80>;
tft-alt-mode = <0>;
stn-565-mode = <0>;
mono-8bit-mode = <0>;
sync-edge = <0>;
sync-ctrl = <0>;
raster-order = <0>;
fifo-th = <0>;
};
display-timings {
native-mode = <&timing0>;
timing0: 800x480 {
clock-frequency = <45000000>;
hactive = <800>;
vactive = <480>;
hfront-porch = <40>;
hback-porch = <40>;
hsync-len = <48>;
vback-porch = <29>;
vfront-porch = <13>;
vsync-len = <3>;
hsync-active = <0>;
vsync-active = <0>;
};
};
};
};
};
};