From 5254cc646177e0934db75550b44e297b4337ea75 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 15 Jun 2024 18:17:15 +0200 Subject: i2c driver load + probe works --- dts/am335x-boneblack-uboot.dts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'dts') diff --git a/dts/am335x-boneblack-uboot.dts b/dts/am335x-boneblack-uboot.dts index 9cdeada..64f2cea 100644 --- a/dts/am335x-boneblack-uboot.dts +++ b/dts/am335x-boneblack-uboot.dts @@ -2242,11 +2242,13 @@ }; }; - // 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) + // node name must match one in ../driver/main.h i2c_device_id struct + // reg and node address must match i2c address (see ../arduino/main.cpp) + lork_i2c: lork@22 { + compatible = "lork-i2c"; + reg = <0x22>; }; + // NOTE: this is in i2c2, so I2C2_SCL = P9.19 and I2C2_SDA = P9.20 }; }; -- cgit v1.2.3