Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to use TCA9548A using zephyr. The following code returns error that "Device is not ready". I have connected the hardware properly i.e. SDA/SCL/GND/Vcc are connected properly between my processor and TCA9548A
Any help in what is not correct here?
const struct device *i2c_dev = device_get_binding(DEVICE_DT_GET(DT_NODELABEL(ch0)));
if (!device_is_ready(i2c_dev)) {
printk("Device is not ready.\n");
return;
}
The overlay file is as follows
&i2c0 {
status = "okay";
mux: tca9548a@70 {
compatible = "ti,tca9548a";
reg = <0x70>;
status = "okay";
label = "i2c_mux";
#address-cells = <1>;
#size-cells = <0>;
};
Beta Was this translation helpful? Give feedback.
All reactions