SHARE
TWEET

spi-gpio-cs.dtb

a guest Aug 12th, 2016 149 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /dts-v1/;
  2. /plugin/;
  3.  
  4. / {
  5.    compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
  6.  
  7.    fragment@0 {
  8.       target = <&spi0>;
  9.       frag0: __overlay__ {
  10.          #address-cells = <1>;
  11.          #size-cells = <0>;
  12.          status = "okay";
  13.          cs-gpios = <&gpio 8 1>, <&gpio 7 1>, <&gpio 20 1>, <&gpio 21 1>;
  14.  
  15.          spidev@2{
  16.             compatible = "spidev";
  17.             reg = <2>;   /* CE2 */
  18.             #address-cells = <1>;
  19.             #size-cells = <0>;
  20.             spi-max-frequency = <500000>;
  21.          };
  22.  
  23.          spidev@3{
  24.             compatible = "spidev";
  25.             reg = <3>;   /* CE3 */
  26.             #address-cells = <1>;
  27.             #size-cells = <0>;
  28.             spi-max-frequency = <500000>;
  29.          };
  30.       };
  31.    };
  32.  
  33.    fragment@1 {
  34.       target = <&spi0_cs_pins>;
  35.       frag1: __overlay__ {
  36.         brcm,pins = <8 7 20 21>;
  37.         brcm,function = <1>; /* out */
  38.       };
  39.    };
  40.  
  41.    __overrides__ {
  42.       cs2_pin = <&frag0>,"cs-gpios:28", <&frag1>,"brcm,pins:8";
  43.       cs3_pin = <&frag0>,"cs-gpios:40", <&frag1>,"brcm,pins:12";
  44.    };
  45. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top