-
Notifications
You must be signed in to change notification settings - Fork 0
/
0001-Simple-dtb-changes-for-5.4-bbb-kernel.patch
69 lines (65 loc) · 2.13 KB
/
0001-Simple-dtb-changes-for-5.4-bbb-kernel.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
From a9dd8ee6fdd40b5aabe5d618591208ca49c42608 Mon Sep 17 00:00:00 2001
From: Pavel Skripkin <[email protected]>
Date: Sat, 20 Mar 2021 01:02:00 +0300
Subject: [PATCH] Simple dtb changes for 5.4 bbb kernel
Signed-off-by: Pavel Skripkin <[email protected]>
---
arch/arm/boot/dts/am335x-boneblack-gpio.dtsi | 36 ++++++++++++++++++++
arch/arm/boot/dts/am335x-boneblack.dts | 1 +
2 files changed, 37 insertions(+)
create mode 100644 arch/arm/boot/dts/am335x-boneblack-gpio.dtsi
diff --git a/arch/arm/boot/dts/am335x-boneblack-gpio.dtsi b/arch/arm/boot/dts/am335x-boneblack-gpio.dtsi
new file mode 100644
index 000000000000..0ce2a5682959
--- /dev/null
+++ b/arch/arm/boot/dts/am335x-boneblack-gpio.dtsi
@@ -0,0 +1,36 @@
+
+/ {
+ lcd_display {
+ compatible = "pskr,lcd";
+ pinctrl-names = "default";
+ pinctrl-0 = <&lcd_gpios>;
+
+ rs-gpio = <&gpio2 6 GPIO_ACTIVE_HIGH>;
+ rw-gpio = <&gpio2 7 GPIO_ACTIVE_HIGH>;
+ e-gpio = <&gpio2 8 GPIO_ACTIVE_HIGH>;
+
+ dt1-gpio = <&gpio2 9 GPIO_ACTIVE_HIGH>;
+ dt2-gpio = <&gpio2 10 GPIO_ACTIVE_HIGH>;
+ dt3-gpio = <&gpio2 11 GPIO_ACTIVE_HIGH>;
+ dt4-gpio = <&gpio2 12 GPIO_ACTIVE_HIGH>;
+ };
+};
+
+&am33xx_pinmux {
+ lcd_gpios: lcd_gpios {
+ pinctrl-single,pins = <
+ AM33XX_PADCONF(AM335X_PIN_LCD_DATA0, PIN_OUTPUT, MUX_MODE7)
+ AM33XX_PADCONF(AM335X_PIN_LCD_DATA1, PIN_OUTPUT, MUX_MODE7)
+ AM33XX_PADCONF(AM335X_PIN_LCD_DATA2, PIN_OUTPUT, MUX_MODE7)
+ AM33XX_PADCONF(AM335X_PIN_LCD_DATA3, PIN_OUTPUT, MUX_MODE7)
+ AM33XX_PADCONF(AM335X_PIN_LCD_DATA4, PIN_OUTPUT, MUX_MODE7)
+ AM33XX_PADCONF(AM335X_PIN_LCD_DATA5, PIN_OUTPUT, MUX_MODE7)
+ AM33XX_PADCONF(AM335X_PIN_LCD_DATA6, PIN_OUTPUT, MUX_MODE7)
+ >;
+ };
+
+};
+
+&tda19988 {
+ status = "disabled";
+};
diff --git a/arch/arm/boot/dts/am335x-boneblack.dts b/arch/arm/boot/dts/am335x-boneblack.dts
index 40b17b956109..fef64f0a2006 100644
--- a/arch/arm/boot/dts/am335x-boneblack.dts
+++ b/arch/arm/boot/dts/am335x-boneblack.dts
@@ -7,6 +7,7 @@
#include "am33xx.dtsi"
#include "am335x-bone-common.dtsi"
#include "am335x-boneblack-common.dtsi"
+#include "am335x-boneblack-gpio.dtsi"
/* #include "am335x-bone-jtag.dtsi" */
/ {
--
2.30.2