Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devicetree using deprecated gpios entry for i2c_gpio #170

Open
herbertp opened this issue Aug 18, 2020 · 1 comment
Open

Devicetree using deprecated gpios entry for i2c_gpio #170

herbertp opened this issue Aug 18, 2020 · 1 comment

Comments

@herbertp
Copy link
Member

Currently the devicetree contains an entry like this ...

    i2c_gpio: zed_i2c_gpio {
        #address-cells = <1>;
        #size-cells = <0>;
        compatible = "i2c-gpio";
        bus-id = <2>;
        gpios = <&gpio0 9 0 /* sda */
                 &gpio0 0 0 /* scl */ >;

... while it should be ...

        sda-gpios = <&gpio0 9 0>;
        scl-gpios = <&gpio0 0 0>;
@herbertp
Copy link
Member Author

I also propose to change the delay to 3us because this roughly gives 125kHz on the I2C bus which is perfectly fine for all I2C devices there and set a timeout of 100ms to prevent lockups.

        i2c-gpio,delay-us = <3>;   /* ~125 kHz */
        i2c-gpio,timeout-ms = <100>;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant