Skip to content

Commit df920d1

Browse files
committed
virual cape for /bone/spi/1.0 and /bone/spi/1.1
1 parent 6eea898 commit df920d1

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

src/arm/BONE-SPI1-00A0.dts

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* Copyright (C) 2020 Deepak Khatri <[email protected]>
3+
*
4+
* Virtual cape for /bone/spi/1.0 & /bone/spi/1.1
5+
*
6+
* This program is free software; you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License version 2 as
8+
* published by the Free Software Foundation.
9+
*/
10+
11+
/dts-v1/;
12+
/plugin/;
13+
14+
/*
15+
* Helper to show loaded overlays under: /proc/device-tree/chosen/overlays/
16+
*/
17+
&{/chosen} {
18+
overlays {
19+
BONE-SPI1-00A0.dts = __TIMESTAMP__;
20+
};
21+
};
22+
23+
/*
24+
* Free up the pins used by the cape from the pinmux helpers.
25+
*/
26+
&ocp {
27+
P9_28_pinmux { status = "disabled"; }; /* spi1_cs0 */
28+
P9_30_pinmux { status = "disabled"; }; /* spi1_d1 */
29+
P9_29_pinmux { status = "disabled"; }; /* spi1_d0 */
30+
P9_31_pinmux { status = "disabled"; }; /* spi1_sclk */
31+
P9_42_pinmux { status = "disabled"; }; /* spi1_cs1 */
32+
};
33+
34+
&bone_spi_1 {
35+
// See these files for the definition
36+
// https://github.com/beagleboard/BeagleBoard-DeviceTrees/src/arm/bbai-bone-buses.dtsi
37+
// https://github.com/beagleboard/BeagleBoard-DeviceTrees/src/arm/bbb-bone-buses.dtsi
38+
status = "okay";
39+
};

0 commit comments

Comments
 (0)