lkml.org 
[lkml]   [2018]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 05/15] MIPS: dts: img: pistachio_marduk: Enable SPIM0
Date
SPIM0 supplies SPI pins on the mikroBUS and Raspberry Pi B+ connectors.

Signed-off-by: Andreas Färber <afaerber@suse.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
\
 
 \ /
  Last update: 2018-07-22 23:21    [W:0.163 / U:1.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site