Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: i2c: at91: document optional bus recovery properties

The at91 I2C controller can support bus recovery by re-assigning SCL
and SDA to gpios. Add the optional pinctrl and gpio properties to do
so.

Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com>
[codrin.ciubotariu@microchip.com: rebased]
Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>

authored by

Kamel Bouhara and committed by
Wolfram Sang
19e5cef0 f8788d86

+10
+10
Documentation/devicetree/bindings/i2c/i2c-at91.txt
··· 28 28 "atmel,sama5d4-i2c", 29 29 "atmel,sama5d2-i2c", 30 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 31 35 - Child nodes conforming to i2c bus binding 36 + 32 37 33 38 Examples : 34 39 ··· 69 64 clocks = <&flx0>; 70 65 atmel,fifo-size = <16>; 71 66 i2c-sda-hold-time-ns = <336>; 67 + pinctrl-names = "default", "gpio"; 68 + pinctrl-0 = <&pinctrl_i2c0>; 69 + pinctrl-1 = <&pinctrl_i2c0_gpio>; 70 + sda-gpios = <&pioA 30 GPIO_ACTIVE_HIGH>; 71 + scl-gpios = <&pioA 31 GPIO_ACTIVE_HIGH>; 72 72 73 73 wm8731: wm8731@1a { 74 74 compatible = "wm8731";