| diff --git a/firmware/Makefile b/firmware/Makefile |
| index de933e7..8e8ea3b 100644 |
| --- a/firmware/Makefile |
| +++ b/firmware/Makefile |
| @@ -191,7 +191,8 @@ fw-shipped-$(CONFIG_CAPE_BEAGLEBONE) += \ |
| BB-BONE-BACON-00A0.dtbo \ |
| BB-BONE-BACONE-00A0.dtbo \ |
| BB-BONE-BACONE2-00A0.dtbo \ |
| - bone-servo-gpios-00A0.dtbo |
| + bone-servo-gpios-00A0.dtbo \ |
| + bone-servo-spi1-00A0.dtbo |
| |
| # the geiger cape |
| fw-shipped-$(CONFIG_CAPE_BEAGLEBONE_GEIGER) += \ |
| diff --git a/firmware/capes/bone-servo-spi1-00A0.dts b/firmware/capes/bone-servo-spi1-00A0.dts |
| new file mode 100644 |
| index 0000000..2a234c0 |
| --- /dev/null |
| +++ b/firmware/capes/bone-servo-spi1-00A0.dts |
| @@ -0,0 +1,44 @@ |
| +/dts-v1/; |
| +/plugin/; |
| + |
| +/* SPI1 */ |
| +/* D1 Output and D0 Input */ |
| + |
| +/ { |
| + compatible = "ti,beaglebone", "ti,beaglebone-black"; |
| + |
| + /* identification */ |
| + part-number = "spi1mux"; |
| + |
| + fragment@0 { |
| + target = <&am33xx_pinmux>; |
| + __overlay__ { |
| + spi1_pins_s0: spi1_pins_s0 { |
| + pinctrl-single,pins = < |
| + 0x190 0x33 |
| + 0x194 0x33 |
| + 0x198 0x13 |
| + 0x19c 0x13 |
| + >; |
| + }; |
| + }; |
| + }; |
| + |
| + fragment@1 { |
| + target = <&spi1>; |
| + __overlay__ { |
| + |
| + #address-cells = <1>; |
| + #size-cells = <0>; |
| + status = "okay"; |
| + pinctrl-names = "default"; |
| + pinctrl-0 = <&spi1_pins_s0>; |
| + |
| + spidev@1 { |
| + spi-max-frequency = <24000000>; |
| + reg = <0>; |
| + compatible = "linux,spidev"; |
| + }; |
| + }; |
| + }; |
| +}; |