Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Help with device tree overlays on RPI



Le 2018-11-12 18:50, Jason Thorpe a écrit :
Can you share what your overlay source file looks like?
Sure, myover.dts:

/dts-v1/;
/plugin/;

/ {
  compatible = "brcm,bcm2708";
  fragment@0 {
    target-path = "/soc/gpio";
    __overlay__ {
      pull_down_pins {
        brcm,pins = <27>;
        brcm,function = <0>;
        brcm,pull = <2>;
      };
    };
  };
  fragment@1 {
    target = <&i2c2>;
    __overlay__ {
      magnetometer: lsm303dlhc@1e {
	reg = <0x1e>;
        compatible = "lsm303dlhc";
	interrupt-parent = <&gpio>;
	interrupts = <27 1>;
      };
    };
  };
};


Home | Main Index | Thread Index | Old Index