[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180722212010.3979-6-afaerber@suse.de>
Date: Sun, 22 Jul 2018 23:20:00 +0200
From: Andreas Färber <afaerber@...e.de>
To: linux-mips@...ux-mips.org
Cc: Ralf Baechle <ralf@...ux-mips.org>,
Paul Burton <paul.burton@...s.com>,
James Hogan <jhogan@...nel.org>, linux-kernel@...r.kernel.org,
Andreas Färber <afaerber@...e.de>,
Rahul Bedarkar <rahulbedarkar89@...il.com>,
James Hartley <james.hartley@...drel.com>,
Rob Herring <robh+dt@...nel.org>,
Mark Rutland <mark.rutland@....com>, devicetree@...r.kernel.org
Subject: [PATCH 05/15] MIPS: dts: img: pistachio_marduk: Enable SPIM0
SPIM0 supplies SPI pins on the mikroBUS and Raspberry Pi B+ connectors.
Signed-off-by: Andreas Färber <afaerber@...e.de>
---
arch/mips/boot/dts/img/pistachio_marduk.dts | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/arch/mips/boot/dts/img/pistachio_marduk.dts b/arch/mips/boot/dts/img/pistachio_marduk.dts
index 5557a6ad61c3..d723b68084c9 100644
--- a/arch/mips/boot/dts/img/pistachio_marduk.dts
+++ b/arch/mips/boot/dts/img/pistachio_marduk.dts
@@ -123,6 +123,14 @@
pins = "mfio17", "mfio18", "mfio19", "mfio20";
};
+&pin_spim0 {
+ drive-strength = <2>;
+};
+
+&pin_spim0_clk {
+ drive-strength = <2>;
+};
+
&pwm {
status = "okay";
@@ -137,6 +145,21 @@
disable-wp;
};
+&spfi0 {
+ status = "okay";
+
+ pinctrl-0 = <&spim0_pins>,
+ <&spim0_cs0_alt_pin>,
+ <&spim0_cs2_alt_pin>,
+ <&spim0_cs3_alt_pin>,
+ <&spim0_cs4_alt_pin>;
+ pinctrl-names = "default";
+ cs-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>, <0>,
+ <&gpio1 12 GPIO_ACTIVE_HIGH>,
+ <&gpio1 13 GPIO_ACTIVE_HIGH>,
+ <&gpio1 14 GPIO_ACTIVE_HIGH>;
+};
+
&spfi1 {
status = "okay";
--
2.16.4
Powered by blists - more mailing lists