forked from christinaa/rpi-open-firmware
-
Notifications
You must be signed in to change notification settings - Fork 18
/
rpi1.dts
193 lines (179 loc) · 5.08 KB
/
rpi1.dts
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
/dts-v1/;
#define BCM2835_FSEL_ALT0 4
/memreserve/ 0x00000000 0x00001000;
/ {
compatible = "raspberrypi,model-b", "brcm,bcm2835";
model = "Raspberry Pi Model B, with open firmware";
#address-cells = <0x01>;
#size-cells = <0x01>;
interrupt-parent = <&intc>;
aliases {
ethernet0 = ðernet;
};
chosen {
};
system {
};
memory {
device_type = "memory";
};
soc {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <1>;
// child parent length
ranges = <0x7e000000 0x3f000000 0x1000000>; /* map the MMIO space to 0x3f000000 in arm, 16mb long */
dma-ranges = <0xc0000000 0x00 0x3f000000>; /* map arm physical 0 to the uncached alias, 1008mb long */
system_timer: timer@7e003000 {
compatible = "brcm,bcm2835-system-timer";
reg = <0x7e003000 0x1000>;
interrupts = <1 0>, <1 1>, <1 2>, <1 3>;
/* This could be a reference to BCM2835_CLOCK_TIMER,
* but we don't have the driver using the common clock
* support yet.
*/
clock-frequency = <1000000>;
};
intc: interrupt-controller@7e00b200 {
compatible = "brcm,bcm2835-armctrl-ic";
reg = <0x7e00b200 0x200>;
interrupt-controller;
#interrupt-cells = <0x02>;
};
clocks: cprman@7e101000 {
compatible = "brcm,bcm2835-cprman";
#clock-cells = <1>;
reg = <0x7e101000 0x2000>;
/* CPRMAN derives almost everything from the
* platform's oscillator. However, the DSI
* pixel clocks come from the DSI analog PHY.
*/
clocks = <&clk_osc>;
//<&dsi0 0>, <&dsi0 1>, <&dsi0 2>,
//<&dsi1 0>, <&dsi1 1>, <&dsi1 2>;
};
gpiomem@7e200000 {
compatible = "brcm,bcm2835-gpiomem";
reg = <0x7e200000 0x1000>;
};
gpio@7e200000 {
compatible = "brcm,bcm2835-gpio";
reg = <0x7e200000 0xb4>;
interrupts = <&intc 0x11>,
<&intc 0x12>;
gpio-controller;
#gpio-cells = <0x02>;
interrupt-controller;
#interrupt-cells = <0x02>;
gpio-line-names = "ID_SDA", // based on arch/arm/boot/dts/bcm2835-rpi-b-plus.dts
"ID_SCL";
pinctrl-names = "default";
gpclk0_gpio4 {
brcm,pins = <0x04>;
brcm,function = <0x04>;
};
gpclk1_gpio5 {
brcm,pins = <0x05>;
brcm,function = <BCM2835_FSEL_ALT0>;
};
i2c0_bus0: i2c0_gpio0 {
brcm,pins = <0 1>;
brcm,function = <0x04>;
};
i2c0_bus28: i2c0_gpio28 {
// do not use
// changing altmode of 29 breaks usb
brcm,pins = <28 29>;
brcm,function = <0x04>;
};
i2c0_cam: i2c0_gpio44 {
brcm,pins = <44 45>;
brcm,function = <0x05>;
};
i2c0_smps: i2c0_smps {
brcm,pins = <46 47>;
brcm,function = <0x04>;
};
i2c1_bus2: i2c1_gpio2 {
brcm,pins = <2 3>;
brcm,function = <0x04>;
};
i2c1_cam: i2c1_gpio44 {
brcm,pins = <44 45>;
brcm,function = <0x06>;
};
i2c1_smps: i2c1_smps {
brcm,pins = <46 47>;
brcm,function = <0x05>;
};
sdhost: sdhost_gpio48 {
brcm,pins = <0x30 0x31 0x32 0x33 0x34 0x35>;
brcm,function = <0x04>;
};
emmc: emmc_gpio48 {
brcm,pins = <0x30 0x31 0x32 0x33 0x34 0x35>;
brcm,function = <0x07>;
};
};
serial@7e201000 {
compatible = "brcm,bcm2835-pl011", "arm,pl011", "arm,primecell";
reg = <0x7e201000 0x200>;
interrupts = <2 25>;
clocks = <&clocks 19>, // BCM2835_CLOCK_UART
<&clocks 20>; // BCM2835_CLOCK_VPU
clock-names = "uartclk", "apb_pclk";
arm,primecell-periphid = <0x241011>;
cts-event-workaround;
//pinctrl-names = "default";
//pinctrl-0 = <0x08 0x09>;
status = "okay";
};
usb@7e980000 {
compatible = "brcm,bcm2708-usb";
reg = <0x7e980000 0x10000 0x7e006000 0x1000>;
interrupts = <0x01 0x09 0x02 0x00>;
#address-cells = <0x01>;
#size-cells = <0x00>;
clocks = <&clk_usb>;
clock-names = "otg";
phys = <&usbphy>;
phy-names = "usb2-phy";
interrupt-names = "usb", "soft";
//power-domains = <&power 0x06>;
usb1@1 {
compatible = "usb424,9514";
reg = <0x01>;
#address-cells = <0x01>;
#size-cells = <0x00>;
ethernet: usbether@1 {
compatible = "usb424,ec00";
reg = <0x01>;
local-mac-address = [ b8 27 eb 77 df 95 ];
};
};
};
};
clocks {
compatible = "simple-bus";
#address-cells = <0x01>;
#size-cells = <0x00>;
clk_osc: clock@3 {
compatible = "fixed-clock";
reg = <0x03>;
#clock-cells = <0x00>;
clock-output-names = "osc";
clock-frequency = <19200000>; // 19.2mhz
};
clk_usb: clock@4 {
compatible = "fixed-clock";
reg = <0x04>;
#clock-cells = <0x00>;
clock-output-names = "otg";
clock-frequency = <0x1c9c3800>; // 480mhz
};
};
usbphy: phy {
compatible = "usb-nop-xceiv";
#phy-cells = <0x00>;
};
};