1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/dts-v1/; /plugin/; /* enable spi1 for spidev */ / { fragment@0 { target-path = "/ahb/apb/spi@f0004000"; __overlay__ { status = "okay"; ap2-cs0@0 { compatible = "spidev"; spi-max-frequency = <1000000>; reg = <0>; }; }; }; };