]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
qcom: ipq4019: add spi node to ipq4019 SoC and DK01 device tree
authorMatthew McClintock <mmcclint@codeaurora.org>
Wed, 23 Mar 2016 22:05:07 +0000 (17:05 -0500)
committerAndy Gross <andy.gross@linaro.org>
Wed, 20 Apr 2016 02:42:16 +0000 (21:42 -0500)
This will allow boards to enable the SPI bus

Signed-off-by: Matthew McClintock <mmcclint@codeaurora.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi
arch/arm/boot/dts/qcom-ipq4019.dtsi

index 223da1afd89ad9afb4c8a2682d1954f1a1a42422..21032a8c86f6fa604009bf89b67c93d02c1c71d0 100644 (file)
                                        bias-disable;
                                };
                        };
+
+                       spi_0_pins: spi_0_pinmux {
+                               pinmux {
+                                       function = "blsp_spi0";
+                                       pins = "gpio55", "gpio56", "gpio57";
+                               };
+                               pinmux_cs {
+                                       function = "gpio";
+                                       pins = "gpio54";
+                               };
+                               pinconf {
+                                       pins = "gpio55", "gpio56", "gpio57";
+                                       drive-strength = <12>;
+                                       bias-disable;
+                               };
+                               pinconf_cs {
+                                       pins = "gpio54";
+                                       drive-strength = <2>;
+                                       bias-disable;
+                                       output-high;
+                               };
+                       };
+               };
+
+               spi_0: spi@78b5000 {
+                       pinctrl-0 = <&spi_0_pins>;
+                       pinctrl-names = "default";
+                       status = "ok";
+                       cs-gpios = <&tlmm 54 0>;
+
+                       mx25l25635e@0 {
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+                               reg = <0>;
+                               compatible = "mx25l25635e";
+                               spi-max-frequency = <24000000>;
+                       };
                };
 
                serial@78af000 {
index acb851d55a194e5597880d0419a0ad1c49578d42..99e64f4881bc3c5b4e558aee91e7ec33fd78c2a0 100644 (file)
 
 #include "skeleton.dtsi"
 #include <dt-bindings/clock/qcom,gcc-ipq4019.h>
+#include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/interrupt-controller/irq.h>
 
 / {
        model = "Qualcomm Technologies, Inc. IPQ4019";
        compatible = "qcom,ipq4019";
        interrupt-parent = <&intc>;
 
+       aliases {
+               spi0 = &spi_0;
+       };
+
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;
                        interrupts = <0 208 0>;
                };
 
+               spi_0: spi@78b5000 {
+                       compatible = "qcom,spi-qup-v2.2.1";
+                       reg = <0x78b5000 0x600>;
+                       interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&gcc GCC_BLSP1_QUP1_SPI_APPS_CLK>,
+                                <&gcc GCC_BLSP1_AHB_CLK>;
+                       clock-names = "core", "iface";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "disabled";
+               };
+
                 acc0: clock-controller@b088000 {
                         compatible = "qcom,kpss-acc-v1";
                         reg = <0x0b088000 0x1000>, <0xb008000 0x1000>;