ARM: dts: apq8064: add spi5 device node.
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tue, 23 Feb 2016 14:14:33 +0000 (14:14 +0000)
committerAndy Gross <andy.gross@linaro.org>
Fri, 26 Feb 2016 19:15:48 +0000 (13:15 -0600)
This patch adds spi5 device node, spi5 is used on ifc6410 on the
expansion connector.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm/boot/dts/qcom-apq8064-pins.dtsi
arch/arm/boot/dts/qcom-apq8064.dtsi

index ce15c674690feda0287fbd642e7ca02354d052ad..0b7b10e8ba5cce2dc9aa991fee65bf2f65457bf3 100644 (file)
                };
        };
 
+       spi5_default: spi5_default {
+               pinmux {
+                       pins = "gpio51", "gpio52", "gpio54";
+                       function = "gsbi5";
+               };
+
+               pinmux_cs {
+                       function = "gpio";
+                       pins = "gpio53";
+               };
+
+               pinconf {
+                       pins = "gpio51", "gpio52", "gpio54";
+                       drive-strength = <16>;
+                       bias-disable;
+               };
+
+               pinconf_cs {
+                       pins = "gpio53";
+                       drive-strength = <16>;
+                       bias-disable;
+                       output-high;
+               };
+       };
+
+       spi5_sleep: spi5_sleep {
+               pinmux {
+                       function = "gpio";
+                       pins = "gpio51", "gpio52", "gpio53", "gpio54";
+               };
+
+               pinconf {
+                       pins = "gpio51", "gpio52", "gpio53", "gpio54";
+                       drive-strength = <2>;
+                       bias-pull-down;
+               };
+       };
+
        gsbi6_uart_2pins: gsbi6_uart_2pins {
                mux {
                        pins = "gpio14", "gpio15";
index 7ed7999f4cb18109542251c35cf97bab929feee6..d46d460d621e4a459731fcd90efcfee358c4805c 100644 (file)
                                #address-cells = <1>;
                                #size-cells = <0>;
                        };
+
                };
 
                gsbi2: gsbi@12480000 {
                                clock-names = "core", "iface";
                                status = "disabled";
                        };
+
+                       gsbi5_spi: spi@1a280000 {
+                               compatible = "qcom,spi-qup-v1.1.1";
+                               reg = <0x1a280000 0x1000>;
+                               interrupts = <0 155 0>;
+                               pinctrl-0 = <&spi5_default &spi5_sleep>;
+                               pinctrl-names = "default", "sleep";
+                               clocks = <&gcc GSBI5_QUP_CLK>, <&gcc GSBI5_H_CLK>;
+                               clock-names = "core", "iface";
+                               status = "disabled";
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                       };
                };
 
                gsbi6: gsbi@16500000 {