summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Goger <klaus.goger@theobroma-systems.com>2015-10-07 07:37:31 +0200
committerKlaus Goger <klaus.goger@theobroma-systems.com>2015-11-05 10:38:52 +0100
commit5f8ec7d9299c12d3bb5f6a7f90a18c8a29cb41f4 (patch)
treef06f826d1bab86c991d07dc3bf81ad5a58ba3b13
parent2bcbfea6fcd76a7947a639c13b41be50f1e5f6c8 (diff)
ARM: dts: pangolin: enable spi1 and spidev
added devicetree entry for spi1 also added a spidev entries to create spi devices for the spidev userland interface Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
-rw-r--r--arch/arm/boot/dts/sun6i-a31-pangolin.dts18
-rw-r--r--arch/arm/boot/dts/sun6i-a31.dtsi7
2 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun6i-a31-pangolin.dts b/arch/arm/boot/dts/sun6i-a31-pangolin.dts
index 682a44b3727..0fe6f71f49f 100644
--- a/arch/arm/boot/dts/sun6i-a31-pangolin.dts
+++ b/arch/arm/boot/dts/sun6i-a31-pangolin.dts
@@ -253,6 +253,24 @@
};
};
+&spi1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&spi1_pins_a>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";
+ spidev@0x00 {
+ compatible = "spidev";
+ spi-max-frequency = <16000000>;
+ reg = <0>;
+ };
+ spidev@0x01 {
+ compatible = "spidev";
+ spi-max-frequency = <16000000>;
+ reg = <1>;
+ };
+};
+
&gpu {
status = "okay";
};
diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi
index 84bee3cfe40..238f11b0355 100644
--- a/arch/arm/boot/dts/sun6i-a31.dtsi
+++ b/arch/arm/boot/dts/sun6i-a31.dtsi
@@ -751,6 +751,13 @@
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
+ spi1_pins_a: spi1@0 {
+ allwinner,pins = "PG12", "PG13", "PG14", "PG15", "PG16";
+ allwinner,function = "spi1";
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+ };
+
};
ahb1_rst: reset@01c202c0 {