forked from RobertCNelson/linux-dev
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path0030-ARM-dts-add-BeagleBone-Adafruit-1.8-LCD-support.patch
55 lines (48 loc) · 1.4 KB
/
0030-ARM-dts-add-BeagleBone-Adafruit-1.8-LCD-support.patch
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
From cc71742fa15d3159376eb859ea132b090839140a Mon Sep 17 00:00:00 2001
From: Matt Porter <mporter@ti.com>
Date: Thu, 11 Oct 2012 08:52:54 -0400
Subject: [PATCH 30/35] ARM: dts: add BeagleBone Adafruit 1.8 LCD support
Signed-off-by: Matt Porter <mporter@ti.com>
---
arch/arm/boot/dts/am335x-bone.dts | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/am335x-bone.dts b/arch/arm/boot/dts/am335x-bone.dts
index ccff86a..8ac3ae4 100644
--- a/arch/arm/boot/dts/am335x-bone.dts
+++ b/arch/arm/boot/dts/am335x-bone.dts
@@ -26,7 +26,7 @@
am33xx_pinmux: pinmux@44e10800 {
pinctrl-names = "default";
- pinctrl-0 = <&user_leds_s0 &spi1_pins_s0>;
+ pinctrl-0 = <&user_leds_s0 &spi1_pins_s0 &lcd_pins_s0>;
user_leds_s0: user_leds_s0 {
pinctrl-single,pins = <
@@ -45,6 +45,13 @@
0x19c 0x13 /* mcasp0_ahclkr.spi1_cs0, OUTPUT_PULLUP | MODE3 */
>;
};
+
+ lcd_pins_s0: lcd_pins_s0 {
+ pinctrl-single,pins = <
+ 0x1a4 0x17 /* mcasp0_fsr.gpio3_19, OUTPUT_PULLUP | MODE7 */
+ 0x1ac 0x17 /* mcasp0_ahclkx.gpio3_21, OUTPUT_PULLUP | MODE7 */
+ >;
+ };
};
ocp {
@@ -155,4 +162,14 @@
&spi1 {
status = "okay";
+
+ lcd@0 {
+ compatible = "adafruit,tft-lcd-1.8-green", "sitronix,st7735";
+ spi-max-frequency = <8000000>;
+ reg = <0>;
+ spi-cpol;
+ spi-cpha;
+ st7735-rst = <&gpio4 19 0>;
+ st7735-dc = <&gpio4 21 0>;
+ };
};
--
1.7.10.4