1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 # Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries
5 $id: http://devicetree.org/schemas/i2c/atmel,at91sam-i2c.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: I2C for Atmel/Microchip platforms
11 - Alexandre Belloni <alexandre.belloni@bootlin.com>
18 - atmel,at91rm9200-i2c
19 - atmel,at91sam9261-i2c
20 - atmel,at91sam9260-i2c
21 - atmel,at91sam9g20-i2c
22 - atmel,at91sam9g10-i2c
23 - atmel,at91sam9x5-i2c
26 - microchip,sam9x60-i2c
29 - microchip,sama7d65-i2c
30 - microchip,sama7g5-i2c
31 - microchip,sam9x7-i2c
32 - const: microchip,sam9x60-i2c
48 - description: TX DMA Channel Specifier
49 - description: RX DMA Channel Specifier
57 $ref: /schemas/types.yaml#/definitions/uint32
59 Maximum number of data the RX and TX FIFOs can store for
60 FIFO capable I2C controllers.
73 - $ref: /schemas/i2c/i2c-controller.yaml#
81 - microchip,sam9x60-i2c
82 - microchip,sama7d65-i2c
83 - microchip,sama7g5-i2c
91 unevaluatedProperties: false
95 #include <dt-bindings/interrupt-controller/irq.h>
96 #include <dt-bindings/dma/at91.h>
97 #include <dt-bindings/gpio/gpio.h>
100 compatible = "atmel,at91sam9g20-i2c";
101 reg = <0xfff84000 0x100>;
102 interrupts = <12 IRQ_TYPE_LEVEL_HIGH 6>;
103 #address-cells = <1>;
105 clocks = <&twi0_clk>;
106 clock-frequency = <400000>;
109 compatible = "atmel,24c512";
116 compatible = "atmel,sama5d2-i2c";
117 reg = <0xf8034600 0x100>;
118 interrupts = <19 IRQ_TYPE_LEVEL_HIGH 7>;
120 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1))
121 AT91_XDMAC_DT_PERID(11)>,
123 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1))
124 AT91_XDMAC_DT_PERID(12)>;
125 dma-names = "tx", "rx";
126 #address-cells = <1>;
129 atmel,fifo-size = <16>;
130 i2c-sda-hold-time-ns = <336>;
131 pinctrl-names = "default", "gpio";
132 pinctrl-0 = <&pinctrl_i2c0>;
133 pinctrl-1 = <&pinctrl_i2c0_gpio>;
134 sda-gpios = <&pioA 30 GPIO_ACTIVE_HIGH>;
135 scl-gpios = <&pioA 31 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
138 compatible = "atmel,24c02";