5.4 Resolution of Child Node Conflicts in FLEXCOM Configuration

The FLEXCOM node defines three child nodes—SPI, I2C, TWI—in the Device Tree Source Include file, but only one of these can be used at a time.

Figure 5-12. FLEXCOM Structure in the SAM9X60 .dtsi File

In the following .dts file, I²C is configured for FLEXCOM0 by setting the mode with atmel, flexcom-mode=<ATMEL_FLEXCOMM_MODE_I2C>. Refer to the specific topic in the Device Tree binding documentation (see References). The I²C interface is used by the EEPROM with the address <0x53>.

Figure 5-13. FLEXCOM Structure in the SAM9X60-Curiosity .dts File