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



So, on my system, things seem to work better if I don't use target = <&i2c1>, but rather specify target-path = "/soc/i2c@..."

Is this a deficiency in our dtc(1)?

> On Nov 12, 2018, at 10:35 AM, yarl-baudig%mailoo.org@localhost wrote:
> 
> 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>;
>      };
>    };
>  };
> };

-- thorpej



Home | Main Index | Thread Index | Old Index