summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Goger <klaus.goger@theobroma-systems.com>2015-07-29 08:17:31 +0200
committerKlaus Goger <klaus.goger@theobroma-systems.com>2015-07-30 18:56:30 +0200
commit1f405e8d76e2d6ad3f723be13f066cdc565afe8f (patch)
treed189a0811d1a4e10935f3eff6bc8d8f87cb75f4b
parentdbbb4669c72bcfac7c145d4dcbc2899700f4929c (diff)
ARM: dts: pangolin: enable spi and add spi nor
adds missing pin configuration to the a31 dtsi Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
-rw-r--r--arch/arm/boot/dts/sun6i-a31-pangolin.dts13
-rw-r--r--arch/arm/boot/dts/sun6i-a31.dtsi7
2 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun6i-a31-pangolin.dts b/arch/arm/boot/dts/sun6i-a31-pangolin.dts
index 99064c5b74c..059ce65eac7 100644
--- a/arch/arm/boot/dts/sun6i-a31-pangolin.dts
+++ b/arch/arm/boot/dts/sun6i-a31-pangolin.dts
@@ -212,6 +212,19 @@
};
};
+&spi0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&spi0_pins_a>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";
+ flash: mx25l@0 {
+ compatible = "macronix,mx25l4005a";
+ reg = <0>;
+ spi-max-frequency = <16000000>;
+ };
+};
+
&gpu {
status = "okay";
};
diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi
index 2816fc883a7..84bee3cfe40 100644
--- a/arch/arm/boot/dts/sun6i-a31.dtsi
+++ b/arch/arm/boot/dts/sun6i-a31.dtsi
@@ -744,6 +744,13 @@
allwinner,drive = <SUN4I_PINCTRL_40_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
+
+ spi0_pins_a: spi0@0 {
+ allwinner,pins = "PC0", "PC1", "PC2", "PC27";
+ allwinner,function = "spi0";
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+ };
};
ahb1_rst: reset@01c202c0 {