Path: blob/main/sys/contrib/device-tree/Bindings/i2c/i2c-at91.txt
48375 views
I2C for Atmel platforms12Required properties :3- compatible : Must be one of:4"atmel,at91rm9200-i2c",5"atmel,at91sam9261-i2c",6"atmel,at91sam9260-i2c",7"atmel,at91sam9g20-i2c",8"atmel,at91sam9g10-i2c",9"atmel,at91sam9x5-i2c",10"atmel,sama5d4-i2c",11"atmel,sama5d2-i2c",12"microchip,sam9x60-i2c".13- reg: physical base address of the controller and length of memory mapped14region.15- interrupts: interrupt number to the cpu.16- #address-cells = <1>;17- #size-cells = <0>;18- clocks: phandles to input clocks.1920Optional properties:21- clock-frequency: Desired I2C bus frequency in Hz, otherwise defaults to 10000022- dmas: A list of two dma specifiers, one for each entry in dma-names.23- dma-names: should contain "tx" and "rx".24- atmel,fifo-size: maximum number of data the RX and TX FIFOs can store for FIFO25capable I2C controllers.26- i2c-sda-hold-time-ns: TWD hold time, only available for:27"atmel,sama5d4-i2c",28"atmel,sama5d2-i2c",29"microchip,sam9x60-i2c".30- scl-gpios: specify the gpio related to SCL pin31- sda-gpios: specify the gpio related to SDA pin32- pinctrl: add extra pinctrl to configure i2c pins to gpio function for i2c33bus recovery, call it "gpio" state34- Child nodes conforming to i2c bus binding353637Examples :3839i2c0: i2c@fff84000 {40compatible = "atmel,at91sam9g20-i2c";41reg = <0xfff84000 0x100>;42interrupts = <12 4 6>;43#address-cells = <1>;44#size-cells = <0>;45clocks = <&twi0_clk>;46clock-frequency = <400000>;474824c512@50 {49compatible = "atmel,24c512";50reg = <0x50>;51pagesize = <128>;52}53}5455i2c0: i2c@f8034600 {56compatible = "atmel,sama5d2-i2c";57reg = <0xf8034600 0x100>;58interrupts = <19 IRQ_TYPE_LEVEL_HIGH 7>;59dmas = <&dma060(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1))61AT91_XDMAC_DT_PERID(11)>,62<&dma063(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1))64AT91_XDMAC_DT_PERID(12)>;65dma-names = "tx", "rx";66#address-cells = <1>;67#size-cells = <0>;68clocks = <&flx0>;69atmel,fifo-size = <16>;70i2c-sda-hold-time-ns = <336>;71pinctrl-names = "default", "gpio";72pinctrl-0 = <&pinctrl_i2c0>;73pinctrl-1 = <&pinctrl_i2c0_gpio>;74sda-gpios = <&pioA 30 GPIO_ACTIVE_HIGH>;75scl-gpios = <&pioA 31 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;7677wm8731: wm8731@1a {78compatible = "wm8731";79reg = <0x1a>;80};81};828384