summaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/patches-4.4/0168-FIXUP-BCM270X_DT-Update-to-latest-Pi3-DTS.patch
blob: 686f5c6ac95c78dcf9dcb8d23ed637914557356a (plain)
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
From 52015bd5f0bb4d64ca51c5f8539cf2552dfb8a42 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Thu, 21 Jan 2016 17:57:49 +0000
Subject: [PATCH 168/170] FIXUP: BCM270X_DT: Update to latest Pi3 DTS

---
 arch/arm/boot/dts/bcm2710-rpi-3-b.dts | 34 ++++++++++++++++++++++++++--------
 1 file changed, 26 insertions(+), 8 deletions(-)

--- a/arch/arm/boot/dts/bcm2710-rpi-3-b.dts
+++ b/arch/arm/boot/dts/bcm2710-rpi-3-b.dts
@@ -45,16 +45,21 @@
 	};
 
 	bt_pins: bt_pins {
-		brcm,pins =     <28 29 30 31 14 15 43>;
-		brcm,function = <6 6 6 6 2 2 4>;
-			// alt2:PCM alt5:UART1 alt0:GPCLK2
-		brcm,pull =     <0 0 0 0 0 2 0>;
+		brcm,pins =     <28 29 30 31 43>;
+		brcm,function = <6 6 6 6 4>;   /* alt2:PCM alt0:GPCLK2 */
+		brcm,pull =     <0 0 0 0 0>;
 	};
 
-	uart1_pins: uart1_pins {
+	uart0_pins: uart0_pins {
 		brcm,pins = <32 33>;
 		brcm,function = <7>; /* alt3=UART0 */
-		brcm,pull = <0>;
+		brcm,pull = <0 0>;
+	};
+
+	uart1_pins: uart1_pins {
+		brcm,pins = <14 15>;
+		brcm,function = <2>; /* alt5=UART1 */
+		brcm,pull = <0 0>;
 	};
 };
 
@@ -71,6 +76,17 @@
 	non-removable;
 	bus-width = <4>;
 	status = "okay";
+	brcm,overclock-50 = <0>;
+};
+
+&soc {
+	virtgpio: virtgpio {
+		compatible = "brcm,bcm2835-virtgpio";
+		gpio-controller;
+		#gpio-cells = <2>;
+		firmware = <&firmware>;
+		status = "okay";
+	};
 };
 
 &fb {
@@ -78,12 +94,14 @@
 };
 
 &uart0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart0_pins &bt_pins>;
 	status = "okay";
 };
 
 &uart1 {
 	pinctrl-names = "default";
-	pinctrl-0 = <&uart1_pins &bt_pins>;
+	pinctrl-0 = <&uart1_pins>;
 	status = "okay";
 };
 
@@ -139,7 +157,7 @@
 	act_led: act {
 		label = "led0";
 		linux,default-trigger = "mmc0";
-		gpios = <&gpio 47 0>;
+		gpios = <&virtgpio 0 0>;
 	};
 };