hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/Documentation/devicetree/bindings/i2c/i2c-at91.txt
....@@ -1,9 +1,16 @@
11 I2C for Atmel platforms
22
33 Required properties :
4
-- compatible : Must be "atmel,at91rm9200-i2c", "atmel,at91sam9261-i2c",
5
- "atmel,at91sam9260-i2c", "atmel,at91sam9g20-i2c", "atmel,at91sam9g10-i2c",
6
- "atmel,at91sam9x5-i2c", "atmel,sama5d4-i2c" or "atmel,sama5d2-i2c"
4
+- compatible : Must be one of:
5
+ "atmel,at91rm9200-i2c",
6
+ "atmel,at91sam9261-i2c",
7
+ "atmel,at91sam9260-i2c",
8
+ "atmel,at91sam9g20-i2c",
9
+ "atmel,at91sam9g10-i2c",
10
+ "atmel,at91sam9x5-i2c",
11
+ "atmel,sama5d4-i2c",
12
+ "atmel,sama5d2-i2c",
13
+ "microchip,sam9x60-i2c".
714 - reg: physical base address of the controller and length of memory mapped
815 region.
916 - interrupts: interrupt number to the cpu.
....@@ -17,9 +24,16 @@
1724 - dma-names: should contain "tx" and "rx".
1825 - atmel,fifo-size: maximum number of data the RX and TX FIFOs can store for FIFO
1926 capable I2C controllers.
20
-- i2c-sda-hold-time-ns: TWD hold time, only available for "atmel,sama5d4-i2c"
21
- and "atmel,sama5d2-i2c".
27
+- i2c-sda-hold-time-ns: TWD hold time, only available for:
28
+ "atmel,sama5d4-i2c",
29
+ "atmel,sama5d2-i2c",
30
+ "microchip,sam9x60-i2c".
31
+- scl-gpios: specify the gpio related to SCL pin
32
+- sda-gpios: specify the gpio related to SDA pin
33
+- pinctrl: add extra pinctrl to configure i2c pins to gpio function for i2c
34
+ bus recovery, call it "gpio" state
2235 - Child nodes conforming to i2c bus binding
36
+
2337
2438 Examples :
2539
....@@ -33,7 +47,7 @@
3347 clock-frequency = <400000>;
3448
3549 24c512@50 {
36
- compatible = "24c512";
50
+ compatible = "atmel,24c512";
3751 reg = <0x50>;
3852 pagesize = <128>;
3953 }
....@@ -55,6 +69,11 @@
5569 clocks = <&flx0>;
5670 atmel,fifo-size = <16>;
5771 i2c-sda-hold-time-ns = <336>;
72
+ pinctrl-names = "default", "gpio";
73
+ pinctrl-0 = <&pinctrl_i2c0>;
74
+ pinctrl-1 = <&pinctrl_i2c0_gpio>;
75
+ sda-gpios = <&pioA 30 GPIO_ACTIVE_HIGH>;
76
+ scl-gpios = <&pioA 31 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
5877
5978 wm8731: wm8731@1a {
6079 compatible = "wm8731";