ARM: dts: cm-t54: add ADS7846 touchscreen support
Add ADS7846 touchscreen support. Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il> Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
parent
ac84d6cc18
commit
1a3290b813
1 changed files with 61 additions and 0 deletions
|
@ -51,6 +51,13 @@
|
||||||
enable-active-high;
|
enable-active-high;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ads7846reg: ads7846-reg {
|
||||||
|
compatible = "regulator-fixed";
|
||||||
|
regulator-name = "ads7846-reg";
|
||||||
|
regulator-min-microvolt = <3300000>;
|
||||||
|
regulator-max-microvolt = <3300000>;
|
||||||
|
};
|
||||||
|
|
||||||
/* HS USB Host PHY on PORT 2 */
|
/* HS USB Host PHY on PORT 2 */
|
||||||
hsusb2_phy: hsusb2_phy {
|
hsusb2_phy: hsusb2_phy {
|
||||||
compatible = "usb-nop-xceiv";
|
compatible = "usb-nop-xceiv";
|
||||||
|
@ -164,6 +171,15 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&omap5_pmx_wkup {
|
||||||
|
|
||||||
|
ads7846_pins: pinmux_ads7846_pins {
|
||||||
|
pinctrl-single,pins = <
|
||||||
|
0x02 (PIN_INPUT_PULLDOWN | MUX_MODE6) /* llib_wakereqin.gpio1_wk15 */
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&omap5_pmx_core {
|
&omap5_pmx_core {
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <
|
pinctrl-0 = <
|
||||||
|
@ -300,6 +316,51 @@
|
||||||
OMAP5_IOPAD(0x013a, PIN_OUTPUT | MUX_MODE3) /* gpio6_187.dispc_data23 */
|
OMAP5_IOPAD(0x013a, PIN_OUTPUT | MUX_MODE3) /* gpio6_187.dispc_data23 */
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mcspi2_pins: pinmux_mcspi1_pins {
|
||||||
|
pinctrl-single,pins = <
|
||||||
|
OMAP5_IOPAD(0x00fc, PIN_INPUT | MUX_MODE0) /* mcspi2_clk */
|
||||||
|
OMAP5_IOPAD(0x00fe, PIN_INPUT | MUX_MODE0) /* mcspi2_simo */
|
||||||
|
OMAP5_IOPAD(0x0100, PIN_INPUT | MUX_MODE0) /* mcspi2_somi */
|
||||||
|
OMAP5_IOPAD(0x0102, PIN_INPUT | MUX_MODE0) /* mcspi2_cs0 */
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&mcspi2 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&mcspi2_pins>;
|
||||||
|
|
||||||
|
/* touch controller */
|
||||||
|
ads7846@0 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&ads7846_pins>;
|
||||||
|
|
||||||
|
compatible = "ti,ads7846";
|
||||||
|
vcc-supply = <&ads7846reg>;
|
||||||
|
|
||||||
|
reg = <0>; /* CS0 */
|
||||||
|
spi-max-frequency = <1500000>;
|
||||||
|
|
||||||
|
interrupt-parent = <&gpio1>;
|
||||||
|
interrupts = <15 0>; /* gpio1_wk15 */
|
||||||
|
pendown-gpio = <&gpio1 15 0>;
|
||||||
|
|
||||||
|
|
||||||
|
ti,x-min = /bits/ 16 <0x0>;
|
||||||
|
ti,x-max = /bits/ 16 <0x0fff>;
|
||||||
|
ti,y-min = /bits/ 16 <0x0>;
|
||||||
|
ti,y-max = /bits/ 16 <0x0fff>;
|
||||||
|
|
||||||
|
ti,x-plate-ohms = /bits/ 16 <180>;
|
||||||
|
ti,pressure-max = /bits/ 16 <255>;
|
||||||
|
|
||||||
|
ti,debounce-max = /bits/ 16 <30>;
|
||||||
|
ti,debounce-tol = /bits/ 16 <10>;
|
||||||
|
ti,debounce-rep = /bits/ 16 <1>;
|
||||||
|
|
||||||
|
linux,wakeup;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&mmc1 {
|
&mmc1 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue