[Asus Tinker Board] Enable I2C

  • LibreElec for the Tinker Board does not use config.txt like with the RasPi, so if you need to enable I2C, you'll need to edit the DTB file.

    mount -o remount,rw /flash

    cp /flash/rk3288-tinker-s.dtb /flash/rk3288-tinker-s.backup

    dtc -I dtb /flash/rk3288-tinker-s.dtb -O dts -o tinker.dts

    nano tinker.dts

    If you want to enable I2C-1:

    Ctrl+W to search for ff14, this block of code should be the second result.

    Code
    i2c@ff140000 {
    compatible = "rockchip, rk3288-i2c"; reg = <0x00 Oxff140000 0x00 0x1000>; interrupts = <0x00 0x3e 0x04>; #address-cells = <0x01>; #size-cells = <Ox00>;
    clock-names = "i2c" ;
    clocks <0x07 0x14d>;
    pinctrl-names = "default" pinctrl-0 = <0x2c>;
    status "disabled";
    phandle <0x93>;
    };

    Change status from "disabled" to "okay".

    Ctrl+X, y, enter to save the changes.

    dtc -I dts tinker.dts -O dtb -o /flash/rk3288-tinker-s.dtb

    Reboot

  • Code
    mount -o remount,rw /flash
    fdtput -t i /flash/rk3288-tinker-s.dtb i2c@ff140000 status okay

    It's probably easier to use "fdtput" to make the modification. I think that's ^ correct.