diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-15 17:03:57 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-15 17:03:57 +0200 |
commit | dc3e1220a3bc60c2f845477b3d5babd3e00e6ea8 (patch) | |
tree | be3280aafe3db7cca6fd661ee61a4f8d093ebfab /dts | |
parent | 310a0a145a807706e68200be6cf28f18f6886fd0 (diff) |
first attempt i2c driver
Diffstat (limited to 'dts')
-rw-r--r-- | dts/am335x-boneblack-uboot.dts | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/dts/am335x-boneblack-uboot.dts b/dts/am335x-boneblack-uboot.dts index 43c1cfe..9cdeada 100644 --- a/dts/am335x-boneblack-uboot.dts +++ b/dts/am335x-boneblack-uboot.dts @@ -2177,7 +2177,7 @@ #size-cells = <0x01>; ranges = <0x00 0x9c000 0x1000>; - i2c@0 { + i2c2: i2c@0 { compatible = "ti,omap4-i2c"; #address-cells = <0x01>; #size-cells = <0x00>; @@ -2241,6 +2241,12 @@ phandle = <0xbb>; }; }; + + // NOTE: this is in i2c2, so I2C2_SCL = P9.19 and I2C2_SDA = P9.20 + lork { + compatible = "lork-i2c"; // load my driver + addr = <0x22>; // i2c slave address (see ../arduino/main.cpp) + }; }; }; @@ -3892,11 +3898,4 @@ not_available = "/not_available"; vmmcsd_fixed = "/fixedregulator0"; }; - - // this section is visible at runtime under - // /sys/firmware/devicetree/base/lork - lork { - compatible = "gpio-extern"; - gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>; - }; }; |