arm: zynq: Add SCL & SDA GPIO entries for recovery
authorChirag Parekh <chiragp@xilinx.com>
Tue, 27 Dec 2016 16:37:58 +0000 (22:07 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 28 Nov 2017 14:53:07 +0000 (15:53 +0100)
Wire i2c pinmuxing gpio recovery for zc702.

Signed-off-by: Chirag Parekh <chiragp@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/dts/zynq-zc702.dts

index 2696e70a89a776e5d2dc7712df605e99ae10c1b1..7b0c23fa5d260b9345b26f804de889d0260bde49 100644 (file)
 &i2c0 {
        status = "okay";
        clock-frequency = <400000>;
-       pinctrl-names = "default";
+       pinctrl-names = "default", "gpio";
        pinctrl-0 = <&pinctrl_i2c0_default>;
+       pinctrl-1 = <&pinctrl_i2c0_gpio>;
+       scl-gpios = <&gpio0 50 0>;
+       sda-gpios = <&gpio0 51 0>;
 
        i2cswitch@74 {
                compatible = "nxp,pca9548";
                };
        };
 
+       pinctrl_i2c0_gpio: i2c0-gpio {
+               mux {
+                       groups = "gpio0_50_grp", "gpio0_51_grp";
+                       function = "gpio0";
+               };
+
+               conf {
+                       groups = "gpio0_50_grp", "gpio0_51_grp";
+                       slew-rate = <0>;
+                       io-standard = <1>;
+               };
+       };
+
        pinctrl_sdhci0_default: sdhci0-default {
                mux {
                        groups = "sdio0_2_grp";