diff mbox

[RFCv2,2/2] dts: arm: genmai: Add MAXDESREF4x spidev

Message ID 1480929605-28564-3-git-send-email-jacopo@jmondi.org (mailing list archive)
State RFC
Delegated to: Simon Horman
Headers show

Commit Message

Jacopo Mondi Dec. 5, 2016, 9:20 a.m. UTC
Add device node for the MAX11100 evaluation board connected to Genmai's
CN2.
The evaluation kit is connected to 3 GPIO lines configured as bitbanged
SPI master interface.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
---
 arch/arm/boot/dts/r7s72100-genmai.dts | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
diff mbox

Patch

diff --git a/arch/arm/boot/dts/r7s72100-genmai.dts b/arch/arm/boot/dts/r7s72100-genmai.dts
index 233908b..659efbf 100644
--- a/arch/arm/boot/dts/r7s72100-genmai.dts
+++ b/arch/arm/boot/dts/r7s72100-genmai.dts
@@ -46,6 +46,23 @@ 
 		};
 	};
 
+	spi-gpio {
+		compatible = "spi-gpio";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		gpio-miso = <&port11 10 GPIO_ACTIVE_HIGH>;
+		gpio-sck = <&port11  9 GPIO_ACTIVE_HIGH>;
+		num-chipselects = <1>;
+		cs-gpios = <&port11 11 GPIO_ACTIVE_HIGH>;
+		status = "ok";
+
+		maxrefdes4x@0 {
+			compatible = "spidev";
+			reg = <0>;
+			spi-max-frequency = <240000>;
+		};
+	};
 };
 
 &extal_clk {
@@ -123,3 +140,7 @@ 
 		spi-max-frequency = <5000000>;
 	};
 };
+
+&port11 {
+	status = "okay";
+};