kuba_moo
Posts: 5
Joined: Tue Mar 17, 2015 12:47 pm

target as paramter in device tree

Tue Mar 17, 2015 1:04 pm

It would be useful to be able to select I2C bus to which device is connected in overlays. As an example the i2c-rtc overlay currently has "target" property set to <&i2c1>. I would like to be able to configure this target with a parameter in config.txt, like this:

Code: Select all

dtoverlay=i2c-rtc,ds1307,bus=i2c0
with overlay modified like this:

Code: Select all

f0: fragment@0 {
<...>
};
__overrides__ {
        bus = <&f0>,"target";
        <...>
};
I get following error:

Code: Select all

001931.126: dterror: phandle 18 not found
Is this problem possible to solve?

Return to “Advanced users”