
cpp
i2c0: i2c@1c2ac00 { // ← 对应 i2c_adapter
compatible = "allwinner,sun6i-a31-i2c";
reg = <0x01c2ac00 0x400>;
interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
eeprom@50 { // ← 对应 i2c_client
compatible = "atmel,24c02";
reg = <0x50>; // I2C 设备地址
};
};



