This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TCA9535: Device tree config for IO expander

Part Number: TCA9535
Other Parts Discussed in Thread: TCA6424, TCA6416

We are using AM64xx with TCA9535 IO expander which is connected to main i2c0 bus.

Please share the device tree configuration with correct driver compatible string for TCA9535.

&main_i2c0 {
pinctrl-names = "default";
pinctrl-0 = <&main_i2c0_pins_default>;
status = "okay";

exp1: gpio@20 {
compatible = "ti,tca6424";
reg = <0x20>;
gpio-controller;
#gpio-cells = <2>;
gpio-line-names = "GPIO_eMMC_RSTn", "CAN_MUX_SEL",
"GPIO_CPSW1_RST", "GPIO_RGMII1_RST",
"GPIO_RGMII2_RST", "GPIO_PCIe_RST_OUT",
"MMC1_SD_EN", "FSI_FET_SEL",
"MCAN0_STB_3V3", "MCAN1_STB_3V3",
"CPSW_FET_SEL", "CPSW_FET2_SEL",
"PRG1_RGMII2_FET_SEL", "TEST_GPIO2",
"GPIO_OLED_RESETn", "VPP_LDO_EN",
"TEST_LED1", "TP92", "TP90", "TP88",
"TP87", "TP86", "TP89", "TP91";
};

}

  • Hi ,

    We don't normally provide code level support for our I2C devices/portfolio but do provide analog support of our devices. 

    From a register perspective the TCA6416 and the TCA9535 have the same registers and default start up values. The main difference between the two devices is just the level translation that 64xx provides and some minor differences in pinout. The device target address can be the same if you set the hardware addressable pins the same. From this analysis, you should be able to reuse what you have for the TCA6416.

    -Bobby