-
Notifications
You must be signed in to change notification settings - Fork 67
/
rt-rpi-300-Add-changes-for-this-dt.patch
125 lines (113 loc) · 3.35 KB
/
rt-rpi-300-Add-changes-for-this-dt.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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
From 82b7ba4c5ffd8057cce06cba530d2aa2b22dfc21 Mon Sep 17 00:00:00 2001
From: Alexandru Costache <alexandru@balena.io>
Date: Tue, 10 Nov 2020 11:20:23 +0100
Subject: [PATCH] rt-rpi-300: Add changes for this dt
This patch adds the necessary confguration
for the rt-rpi-300 device type.
Upstream-status: Inappropriate [configuration]
Signed-off-by: Alexandru Costache <alexandru@balena.io>
---
arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 30 ++++++++++++++++++++++-----
drivers/misc/Kconfig | 5 +++++
drivers/misc/Makefile | 1 +
3 files changed, 31 insertions(+), 5 deletions(-)
diff --git a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
index 8c0ab39beea1..2e33563553db 100644
--- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
+++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
@@ -24,6 +24,12 @@ led-pwr {
default-state = "keep";
linux,default-trigger = "default-on";
};
+ usr {
+ label = "USR";
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
+ linux,default-trigger = "heartbeat";
+ retain-state-suspended;
+ };
};
wifi_pwrseq: wifi-pwrseq {
@@ -326,14 +332,15 @@ &uart1 {
&spi0 {
pinctrl-names = "default";
pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
- cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
+ cs-gpios = <&gpio 8 1>;
+ status="okay";
spidev0: spidev@0{
- compatible = "spidev";
+ compatible = "wch,ch43x";
reg = <0>; /* CE0 */
#address-cells = <1>;
#size-cells = <0>;
- spi-max-frequency = <125000000>;
+ spi-max-frequency = <3000000>;
};
spidev1: spidev@1{
@@ -341,7 +348,7 @@ spidev1: spidev@1{
reg = <1>; /* CE1 */
#address-cells = <1>;
#size-cells = <0>;
- spi-max-frequency = <125000000>;
+ spi-max-frequency = <1000000>;
};
};
@@ -352,7 +359,7 @@ spi0_pins: spi0_pins {
};
spi0_cs_pins: spi0_cs_pins {
- brcm,pins = <8 7>;
+ brcm,pins = <8>;
brcm,function = <BCM2835_FSEL_GPIO_OUT>;
};
@@ -495,6 +502,13 @@ &i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
clock-frequency = <100000>;
+ status="okay";
+
+ rtc@32 {
+ compatible = "epson,rx8010";
+ reg = <0x32>;
+ status="okay";
+ };
};
&i2s {
@@ -532,6 +546,12 @@ pwr_led: led-pwr {
linux,default-trigger = "default-on";
gpios = <&expgpio 2 GPIO_ACTIVE_LOW>;
};
+ usr_led: usr {
+ label = "led2";
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
+ linux,default-trigger = "heartbeat";
+ retain-state-suspended;
+ };
};
&pwm1 {
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index 606331451466..4c92d19b240f 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -58,6 +58,11 @@ config AD525X_DPOT_SPI
To compile this driver as a module, choose M here: the
module will be called ad525x_dpot-spi.
+config CH432T_SPI
+ tristate "support ch432t SPI bus connection"
+ help
+ Say Y here if you have ch432 SPI bus.
+
config DUMMY_IRQ
tristate "Dummy IRQ handler"
help
diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile
index e0188c30ffa8..5db99197678f 100644
--- a/drivers/misc/Makefile
+++ b/drivers/misc/Makefile
@@ -8,6 +8,7 @@ obj-$(CONFIG_IBMVMC) += ibmvmc.o
obj-$(CONFIG_AD525X_DPOT) += ad525x_dpot.o
obj-$(CONFIG_AD525X_DPOT_I2C) += ad525x_dpot-i2c.o
obj-$(CONFIG_AD525X_DPOT_SPI) += ad525x_dpot-spi.o
+obj-$(CONFIG_CH432T_SPI) += ch432.o
obj-$(CONFIG_ATMEL_SSC) += atmel-ssc.o
obj-$(CONFIG_BCM2835_SMI) += bcm2835_smi.o
obj-$(CONFIG_DUMMY_IRQ) += dummy-irq.o