From dc3e1220a3bc60c2f845477b3d5babd3e00e6ea8 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 15 Jun 2024 17:03:57 +0200 Subject: first attempt i2c driver --- dts/am335x-boneblack-uboot.dts | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'dts') 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>; - }; }; -- cgit v1.2.3