diff --git a/src/arm/BONE-SPI1-00A0.dts b/src/arm/BONE-SPI1-00A0.dts new file mode 100644 index 00000000..a5f4cec1 --- /dev/null +++ b/src/arm/BONE-SPI1-00A0.dts @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2020 Deepak Khatri + * + * Virtual cape for /bone/spi/1.0 & /bone/spi/1.1 + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +/dts-v1/; +/plugin/; + +/* +* Helper to show loaded overlays under: /proc/device-tree/chosen/overlays/ +*/ +&{/chosen} { + overlays { + BONE-SPI1-00A0.dts = __TIMESTAMP__; + }; +}; + +/* +* Free up the pins used by the cape from the pinmux helpers. +*/ +&ocp { + P9_28_pinmux { status = "disabled"; }; /* spi1_cs0 */ + P9_30_pinmux { status = "disabled"; }; /* spi1_d1 */ + P9_29_pinmux { status = "disabled"; }; /* spi1_d0 */ + P9_31_pinmux { status = "disabled"; }; /* spi1_sclk */ + P9_42_pinmux { status = "disabled"; }; /* spi1_cs1 */ +}; + +&bone_spi_1 { + // See these files for the definition + // https://github.com/beagleboard/BeagleBoard-DeviceTrees/src/arm/bbai-bone-buses.dtsi + // https://github.com/beagleboard/BeagleBoard-DeviceTrees/src/arm/bbb-bone-buses.dtsi + status = "okay"; +}; \ No newline at end of file