Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Copyright (C) 2013 CircuitCo
- *
- * Virtual cape for SPI1 on connector pins P9.29 P9.31 P9.30 P9.28
- * Modified to enable /dev/spidev2.0 by Carl Johnson
- *
- * 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/;
- / {
- compatible = "ti,beaglebone", "ti,beaglebone-black";
- /* identification */
- part-number = "BB-SPI1DEV";
- version = "00A0";
- /* state the resources this cape uses */
- exclusive-use =
- /* the pin header uses */
- "P9.31", /* spi1_sclk */
- "P9.29", /* spi1_d0 */
- "P9.30", /* spi1_d1 */
- "P9.28", /* spi1_cs0 */
- /* the hardware ip uses */
- "spi1";
- fragment@0 {
- target = <&am33xx_pinmux>;
- __overlay__ {
- bb_spi1_pins: pinmux_bb_spi1_pins {
- pinctrl-single,pins = <
- 0x190 0x33 /* mcasp0_aclkx.spi1_sclk, INPUT_PULLUP | MODE3 */
- 0x194 0x33 /* mcasp0_fsx.spi1_d0, INPUT_PULLUP | MODE3 */
- 0x198 0x13 /* mcasp0_axr0.spi1_d1, OUTPUT_PULLUP | MODE3 */
- 0x19c 0x13 /* mcasp0_ahclkr.spi1_cs0, OUTPUT_PULLUP | MODE3 */
- >;
- };
- };
- };
- fragment@1 {
- target = <&spi1>; /* spi1 is numbered correctly */
- __overlay__ {
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&bb_spi1_pins>;
- #address-cells = <1>;
- #size-cells = <0>;
- spidev@1 {
- #address-cells = <1>;
- #size-cells = <0>;
- spi-max-frequency = <24000000>;
- reg = <0>;
- compatible = "linux,spidev";
- };
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment