18c2ecf20Sopenharmony_ciBroadcom iProc I2C controller 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciRequired properties: 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci- compatible: 68c2ecf20Sopenharmony_ci Must be "brcm,iproc-i2c" or "brcm,iproc-nic-i2c" 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci- reg: 98c2ecf20Sopenharmony_ci Define the base and range of the I/O address space that contain the iProc 108c2ecf20Sopenharmony_ci I2C controller registers 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci- clock-frequency: 138c2ecf20Sopenharmony_ci This is the I2C bus clock. Need to be either 100000 or 400000 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci- #address-cells: 168c2ecf20Sopenharmony_ci Always 1 (for I2C addresses) 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci- #size-cells: 198c2ecf20Sopenharmony_ci Always 0 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ciOptional properties: 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci- interrupts: 248c2ecf20Sopenharmony_ci Should contain the I2C interrupt. For certain revisions of the I2C 258c2ecf20Sopenharmony_ci controller, I2C interrupt is unwired to the interrupt controller. In such 268c2ecf20Sopenharmony_ci case, this property should be left unspecified, and driver will fall back 278c2ecf20Sopenharmony_ci to polling mode 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci- brcm,ape-hsls-addr-mask: 308c2ecf20Sopenharmony_ci Required for "brcm,iproc-nic-i2c". Host view of address mask into the 318c2ecf20Sopenharmony_ci 'APE' co-processor. Value must be unsigned, 32-bit 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ciExample: 348c2ecf20Sopenharmony_ci i2c0: i2c@18008000 { 358c2ecf20Sopenharmony_ci compatible = "brcm,iproc-i2c"; 368c2ecf20Sopenharmony_ci reg = <0x18008000 0x100>; 378c2ecf20Sopenharmony_ci #address-cells = <1>; 388c2ecf20Sopenharmony_ci #size-cells = <0>; 398c2ecf20Sopenharmony_ci interrupts = <GIC_SPI 85 IRQ_TYPE_NONE>; 408c2ecf20Sopenharmony_ci clock-frequency = <100000>; 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ci codec: wm8750@1a { 438c2ecf20Sopenharmony_ci compatible = "wlf,wm8750"; 448c2ecf20Sopenharmony_ci reg = <0x1a>; 458c2ecf20Sopenharmony_ci }; 468c2ecf20Sopenharmony_ci }; 47