Skip to content

Commit 93f441f

Browse files
committed
Fix issue raspberrypi#112 and clean up dt-blob documentation.
1 parent e4725c9 commit 93f441f

File tree

2 files changed

+294
-296
lines changed

2 files changed

+294
-296
lines changed

configuration/images/dt-blob.dts

Lines changed: 291 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,291 @@
1+
/dts-v1/;
2+
3+
/ {
4+
videocore {
5+
pins_rev1 {
6+
pin_config {
7+
pin@default {
8+
polarity = "active_high";
9+
termination = "pull_down";
10+
startup_state = "inactive";
11+
function = "input";
12+
}; // pin
13+
pin@p2 { function = "i2c1"; termination = "pull_up"; }; // I2C 1 SDA
14+
pin@p3 { function = "i2c1"; termination = "pull_up"; }; // I2C 1 SCL
15+
pin@p5 { function = "output"; termination = "pull_down"; }; // CAM_LED
16+
pin@p6 { function = "output"; termination = "pull_down"; }; // LAN NRESET
17+
pin@p14 { function = "uart0"; termination = "no_pulling"; drive_strength_mA = < 8 >; }; // TX uart0
18+
pin@p15 { function = "uart0"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // RX uart0
19+
pin@p16 { function = "output"; termination = "pull_up"; polarity="active_low"; }; // activity LED
20+
pin@p27 { function = "output"; termination = "no_pulling"; }; // Camera shutdown
21+
pin@p40 { function = "pwm"; termination = "no_pulling"; drive_strength_mA = < 16 >; }; // Left audio
22+
pin@p45 { function = "pwm"; termination = "no_pulling"; drive_strength_mA = < 16 >; }; // Right audio
23+
pin@p46 { function = "input"; termination = "no_pulling"; }; // Hotplug
24+
pin@p47 { function = "input"; termination = "no_pulling"; }; // SD card detect
25+
pin@p48 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD CLK
26+
pin@p49 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD CMD
27+
pin@p50 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD D0
28+
pin@p51 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD D1
29+
pin@p52 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD D2
30+
pin@p53 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD D3
31+
32+
}; // pin_config
33+
pin_defines {
34+
pin_define@HDMI_CONTROL_ATTACHED {
35+
type = "internal";
36+
number = <46>;
37+
};
38+
pin_define@NUM_CAMERAS {
39+
type = "internal";
40+
number = <1>;
41+
};
42+
pin_define@CAMERA_0_UNICAM_PORT {
43+
type = "internal";
44+
number = <1>;
45+
};
46+
pin_define@CAMERA_0_I2C_PORT {
47+
type = "internal";
48+
number = <1>;
49+
};
50+
pin_define@CAMERA_0_SDA_PIN {
51+
type = "internal";
52+
number = <2>;
53+
};
54+
pin_define@CAMERA_0_SCL_PIN {
55+
type = "internal";
56+
number = <3>;
57+
};
58+
pin_define@CAMERA_0_SHUTDOWN {
59+
type = "internal";
60+
number = <27>;
61+
};
62+
pin_define@CAMERA_0_LED {
63+
type = "internal";
64+
number = <5>;
65+
};
66+
pin_define@FLASH_0_ENABLE {
67+
type = "absent";
68+
};
69+
pin_define@FLASH_0_INDICATOR {
70+
type = "absent";
71+
};
72+
pin_define@FLASH_1_ENABLE {
73+
type = "absent";
74+
};
75+
pin_define@FLASH_1_INDICATOR {
76+
type = "absent";
77+
};
78+
pin_define@POWER_LOW {
79+
type = "absent";
80+
};
81+
pin_define@LEDS_DISK_ACTIVITY {
82+
type = "internal";
83+
number = <16>;
84+
};
85+
pin_define@LAN_RESET {
86+
type = "internal";
87+
number = <6>;
88+
};
89+
}; // pin_defines
90+
}; // pins_rev1
91+
92+
pins_rev2 {
93+
pin_config {
94+
pin@default {
95+
polarity = "active_high";
96+
termination = "pull_down";
97+
startup_state = "inactive";
98+
function = "input";
99+
}; // pin
100+
pin@p0 { function = "i2c0"; termination = "pull_up"; }; // I2C 0 SDA
101+
pin@p1 { function = "i2c0"; termination = "pull_up"; }; // I2C 0 SCL
102+
pin@p5 { function = "output"; termination = "pull_down"; }; // CAM_LED
103+
pin@p6 { function = "output"; termination = "pull_down"; }; // LAN NRESET
104+
pin@p14 { function = "uart0"; termination = "no_pulling"; drive_strength_mA = < 8 >; }; // TX uart0
105+
pin@p15 { function = "uart0"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // RX uart0
106+
pin@p16 { function = "output"; termination = "pull_up"; polarity = "active_low"; }; // activity LED
107+
pin@p21 { function = "output"; termination = "no_pulling"; }; // Camera shutdown
108+
pin@p40 { function = "pwm"; termination = "no_pulling"; drive_strength_mA = < 16 >; }; // Left audio
109+
pin@p45 { function = "pwm"; termination = "no_pulling"; drive_strength_mA = < 16 >; }; // Right audio
110+
pin@p46 { function = "input"; termination = "no_pulling"; }; // Hotplug
111+
pin@p47 { function = "input"; termination = "no_pulling"; }; // SD card detect
112+
pin@p48 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD CLK
113+
pin@p49 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD CMD
114+
pin@p50 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD D0
115+
pin@p51 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD D1
116+
pin@p52 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD D2
117+
pin@p53 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD D3
118+
119+
}; // pin_config
120+
pin_defines {
121+
pin_define@HDMI_CONTROL_ATTACHED {
122+
type = "internal";
123+
number = <46>;
124+
};
125+
pin_define@NUM_CAMERAS {
126+
type = "internal";
127+
number = <1>;
128+
};
129+
pin_define@CAMERA_0_I2C_PORT {
130+
type = "internal";
131+
number = <0>;
132+
};
133+
pin_define@CAMERA_0_SDA_PIN {
134+
type = "internal";
135+
number = <0>;
136+
};
137+
pin_define@CAMERA_0_SCL_PIN {
138+
type = "internal";
139+
number = <1>;
140+
};
141+
pin_define@CAMERA_0_SHUTDOWN {
142+
type = "internal";
143+
number = <21>;
144+
};
145+
pin_define@CAMERA_0_UNICAM_PORT {
146+
type = "internal";
147+
number = <1>;
148+
};
149+
pin_define@CAMERA_0_LED {
150+
type = "internal";
151+
number = <5>;
152+
};
153+
pin_define@FLASH_0_ENABLE {
154+
type = "absent";
155+
};
156+
pin_define@FLASH_0_INDICATOR {
157+
type = "absent";
158+
};
159+
pin_define@FLASH_1_ENABLE {
160+
type = "absent";
161+
};
162+
pin_define@FLASH_1_INDICATOR {
163+
type = "absent";
164+
};
165+
pin_define@POWER_LOW {
166+
type = "absent";
167+
};
168+
pin_define@LEDS_DISK_ACTIVITY {
169+
type = "internal";
170+
number = <16>;
171+
};
172+
pin_define@LAN_RESET {
173+
type = "internal";
174+
number = <6>;
175+
};
176+
}; // pin_defines
177+
}; // pins
178+
179+
pins_bplus {
180+
pin_config {
181+
pin@default {
182+
polarity = "active_high";
183+
termination = "pull_down";
184+
startup_state = "inactive";
185+
function = "input";
186+
}; // pin
187+
pin@p14 { function = "uart0"; termination = "no_pulling"; drive_strength_mA = < 8 >; }; // TX uart0
188+
pin@p15 { function = "uart0"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // RX uart0
189+
pin@p28 { function = "i2c0"; termination = "pull_up"; }; // I2C 0 SDA
190+
pin@p29 { function = "i2c0"; termination = "pull_up"; }; // I2C 0 SCL
191+
pin@p31 { function = "output"; termination = "pull_down"; }; // LAN NRESET
192+
pin@p32 { function = "output"; termination = "pull_down"; }; // Camera LED
193+
pin@p35 { function = "input"; termination = "no_pulling"; polarity = "active_low"; }; // Power low
194+
pin@p38 { function = "output"; termination = "no_pulling"; }; // USB current limit (0=600mA, 1=1200mA)
195+
pin@p40 { function = "pwm"; termination = "no_pulling"; drive_strength_mA = < 16 >; }; // Left audio
196+
pin@p41 { function = "output"; termination = "no_pulling"; }; // Camera enable
197+
pin@p44 { function = "gp_clk"; termination = "pull_down"; }; // Ethernet 25MHz output
198+
pin@p45 { function = "pwm"; termination = "no_pulling"; drive_strength_mA = < 16 >; }; // Right audio
199+
pin@p46 { function = "input"; termination = "no_pulling"; polarity = "active_low"; }; // Hotplug
200+
pin@p47 { function = "output"; termination = "pull_down"; }; // activity LED
201+
pin@p48 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD CLK
202+
pin@p49 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD CMD
203+
pin@p50 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD D0
204+
pin@p51 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD D1
205+
pin@p52 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD D2
206+
pin@p53 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD D3
207+
208+
}; // pin_config
209+
pin_defines {
210+
pin_define@HDMI_CONTROL_ATTACHED {
211+
type = "internal";
212+
number = <46>;
213+
};
214+
pin_define@NUM_CAMERAS {
215+
type = "internal";
216+
number = <1>;
217+
};
218+
pin_define@CAMERA_0_I2C_PORT {
219+
type = "internal";
220+
number = <0>;
221+
};
222+
pin_define@CAMERA_0_SDA_PIN {
223+
type = "internal";
224+
number = <28>;
225+
};
226+
pin_define@CAMERA_0_SCL_PIN {
227+
type = "internal";
228+
number = <29>;
229+
};
230+
pin_define@CAMERA_0_SHUTDOWN {
231+
type = "internal";
232+
number = <41>;
233+
};
234+
pin_define@CAMERA_0_UNICAM_PORT {
235+
type = "internal";
236+
number = <1>;
237+
};
238+
pin_define@CAMERA_0_LED {
239+
type = "internal";
240+
number = <32>;
241+
};
242+
pin_define@FLASH_0_ENABLE {
243+
type = "absent";
244+
};
245+
pin_define@FLASH_0_INDICATOR {
246+
type = "absent";
247+
};
248+
pin_define@FLASH_1_ENABLE {
249+
type = "absent";
250+
};
251+
pin_define@FLASH_1_INDICATOR {
252+
type = "absent";
253+
};
254+
pin_define@POWER_LOW {
255+
type = "internal";
256+
number = <35>;
257+
};
258+
pin_define@LEDS_DISK_ACTIVITY {
259+
type = "internal";
260+
number = <47>;
261+
};
262+
pin_define@LAN_RESET {
263+
type = "internal";
264+
number = <31>;
265+
};
266+
}; // pin_defines
267+
}; // pins
268+
269+
pins_cm {
270+
pin_config {
271+
pin@default {
272+
polarity = "active_high";
273+
termination = "pull_down";
274+
startup_state = "inactive";
275+
function = "input";
276+
}; // pin
277+
pin@p14 { function = "uart0"; termination = "no_pulling"; }; // TX uart0
278+
pin@p15 { function = "uart0"; termination = "pull_up"; }; // RX uart0
279+
pin@p48 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD CLK
280+
pin@p49 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD CMD
281+
pin@p50 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD D0
282+
pin@p51 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD D1
283+
pin@p52 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD D2
284+
pin@p53 { function = "sdcard"; termination = "pull_up"; drive_strength_mA = < 8 >; }; // SD D3
285+
286+
}; // pin_config
287+
pin_defines {
288+
}; // pin_defines
289+
}; // pins_cm
290+
};
291+
};

0 commit comments

Comments
 (0)