aboutsummaryrefslogtreecommitdiff
path: root/dts
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-15 18:17:15 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-15 18:17:15 +0200
commit5254cc646177e0934db75550b44e297b4337ea75 (patch)
treee8b0235bfe650234912ebe4dc280f07f4260abf9 /dts
parentdc3e1220a3bc60c2f845477b3d5babd3e00e6ea8 (diff)
i2c driver load + probe works
Diffstat (limited to 'dts')
-rw-r--r--dts/am335x-boneblack-uboot.dts10
1 files changed, 6 insertions, 4 deletions
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
};
};