You didn't say which version of OS you were running.
The I2C busses were renumbered in later OS.
Since you mentioned kernel 4.1.15, I will assume that you are running
Debian 8
In Debian 8, I2C2 is pinned out to P9-19 and P9-20 by default. (No device
tree changes necessary.)
Hook your expander there and see if you can see it with i2cdetect.
--- Graham
==
On Tuesday, February 2, 2016 at 4:54:55 AM UTC-6, malkowki_belgium wrote:
>
> Hello all,
>
> I am trying to add the PCA 9535 expander on the i2c2 bus on P9. 23 and
> P9.24 using the device tree but I cannot detect it when booting the board
> with the kernel 4.1.15.
> below the way I declare the device on the DTS.
>
> Do you know what I am doing wrong?
>
> &omap3_pmx_core {
> pinctrl-names = "default";
> pinctrl-0 = <
> &hsusb2_pins
> >;
> i2c2_pins: pinmux_i2c_pins {
> pinctrl-single,pins = <
> 0x18E (PIN_INPUT_PULLUP | MUX_MODE0) /*
> i2c2_scl.gpio_168 */
> 0x190 (PIN_INPUT_PULLUP | MUX_MODE0) /*
> i2c2_sda.gpio_136 */
>
> >;
> };
>
> &i2c2 {
>
> clock-frequency = <400000>;
>
> pca9535: gpio@20 {
> compatible = "nxp, pca9535";
> gpio-controller;
> #gpio-cell = <2>;
> reg = <0x20>;
> status = "okay";
>
> };
>
> gpio@21 {
> compatible = "nxp, pca9535";
> gpio-controller;
> #gpio-cell = <2>;
> reg = <0x21>;
> status = "okay";
>
> };
> gpio@22 {
> compatible = "nxp, pca9535";
> gpio-controller;
> status = "okay";
> #gpio-cell = <2>;
> reg = <0x22>;
>
> };
> gpio@24 {
> compatible = "nxp, pca9535";
> gpio-controller;
> status = "okay";
> #gpio-cell = <2>;
> reg = <0x24>;
>
> };
> };
>
> &gpio5 {
> pinctrl-names = "defaults";
> pinctrl-0 = <
> &gpio_pins
> &i2c2_pins
>
> >;
> };
>
>
>
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.