Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1665565

[PATCH v3 12/21] arm64: dts: hi3660: add spi device nodes

From Guodong Xu <guodong.xu@linaro.org>
Newsgroups linux.kernel
Subject [PATCH v3 12/21] arm64: dts: hi3660: add spi device nodes
Date 2017-06-14 10:30 +0200
Message-ID <tSbQD-2Ni-37@gated-at.bofh.it> (permalink)
References <tSbQB-2Ni-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Wang Xiaoyin <hw.wangxiaoyin@hisilicon.com>

Add spi2 and spi3 device nodes for hi3660, and enable them for hikey960.

On HiKey960:
 - SPI2 is wired out through low speed expansion connector.
 - SPI3 is wired out through high speed expansion connector.

Signed-off-by: Wang Xiaoyin <hw.wangxiaoyin@hisilicon.com>
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
---
 arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 12 +++++++++
 arch/arm64/boot/dts/hisilicon/hi3660.dtsi         | 30 +++++++++++++++++++++++
 2 files changed, 42 insertions(+)

diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
index 9ecf6c6..ca448f0 100644
--- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
+++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
@@ -142,3 +142,15 @@
 	label = "LS-UART1";
 	status = "okay";
 };
+
+&spi2 {
+	/* On Low speed expansion */
+	label = "LS-SPI0";
+	status = "okay";
+};
+
+&spi3 {
+	/* On High speed expansion */
+	label = "HS-SPI1";
+	status = "okay";
+};
diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
index 3b2a3a7..a6b91f1 100644
--- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
+++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
@@ -713,5 +713,35 @@
 			clocks = <&sctrl HI3660_PCLK_AO_GPIO6>;
 			clock-names = "apb_pclk";
 		};
+
+		spi2: spi@ffd68000 {
+			compatible = "arm,pl022", "arm,primecell";
+			reg = <0x0 0xffd68000 0x0 0x1000>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&crg_ctrl HI3660_CLK_GATE_SPI2>;
+			clock-names = "apb_pclk";
+			pinctrl-names = "default";
+			pinctrl-0 = <&spi2_pmx_func>;
+			num-cs = <1>;
+			cs-gpios = <&gpio27 2 0>;
+			status = "disabled";
+		};
+
+		spi3: spi@ff3b3000 {
+			compatible = "arm,pl022", "arm,primecell";
+			reg = <0x0 0xff3b3000 0x0 0x1000>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			interrupts = <GIC_SPI 312 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&crg_ctrl HI3660_CLK_GATE_SPI3>;
+			clock-names = "apb_pclk";
+			pinctrl-names = "default";
+			pinctrl-0 = <&spi3_pmx_func>;
+			num-cs = <1>;
+			cs-gpios = <&gpio18 5 0>;
+			status = "disabled";
+		};
 	};
 };
-- 
2.10.2

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 00/21] arm64: dts: hi3660: add device nodes Guodong Xu <guodong.xu@linaro.org> - 2017-06-14 10:30 +0200
  [PATCH v3 12/21] arm64: dts: hi3660: add spi device nodes Guodong Xu <guodong.xu@linaro.org> - 2017-06-14 10:30 +0200
  [PATCH v3 19/21] dt-bindings: mmc: dw_mmc-k3: add document of hi3660 mmc Guodong Xu <guodong.xu@linaro.org> - 2017-06-14 10:30 +0200
    Re: [PATCH v3 19/21] dt-bindings: mmc: dw_mmc-k3: add document of  hi3660 mmc Ulf Hansson <ulf.hansson@linaro.org> - 2017-06-19 14:50 +0200
      Re: [PATCH v3 19/21] dt-bindings: mmc: dw_mmc-k3: add document of  hi3660 mmc Wei Xu <xuwei5@hisilicon.com> - 2017-06-19 15:20 +0200
  [PATCH v3 02/21] arm64: dts: hisilicon: update compatible string for hikey960 Guodong Xu <guodong.xu@linaro.org> - 2017-06-14 10:30 +0200
  [PATCH v3 21/21] arm64: dts: hi3660-hikey960: add nodes for WiFi Guodong Xu <guodong.xu@linaro.org> - 2017-06-14 10:30 +0200
  [PATCH v3 14/21] arm64: dts: hi3660: enable idle states Guodong Xu <guodong.xu@linaro.org> - 2017-06-14 10:30 +0200
    Re: [PATCH v3 14/21] arm64: dts: hi3660: enable idle states Leo Yan <leo.yan@linaro.org> - 2017-06-15 02:30 +0200
      Re: [PATCH v3 14/21] arm64: dts: hi3660: enable idle states Guodong Xu <guodong.xu@linaro.org> - 2017-06-15 05:00 +0200
  [PATCH v3 06/21] arm64: dts: hi3660: add gpio dtsi file for Hisilicon Hi3660 SOC Guodong Xu <guodong.xu@linaro.org> - 2017-06-14 10:30 +0200
  [PATCH v3 01/21] dt-bindings: arm: hisilicon: add bindings for HiKey960 board Guodong Xu <guodong.xu@linaro.org> - 2017-06-14 10:30 +0200
  [PATCH v3 08/21] arm64: dts: hikey960: add WL1837 Bluetooth device node Guodong Xu <guodong.xu@linaro.org> - 2017-06-14 12:00 +0200
  [PATCH v3 05/21] arm64: dts: Add I2C nodes for Hi3660 Guodong Xu <guodong.xu@linaro.org> - 2017-06-14 12:00 +0200
  [PATCH v3 03/21] arm64: dts: hikey960: pinctrl: add more pinmux and pinconfig Guodong Xu <guodong.xu@linaro.org> - 2017-06-14 12:00 +0200
  [PATCH v3 07/21] arm64: dts: hi3660: Add uarts nodes Guodong Xu <guodong.xu@linaro.org> - 2017-06-14 12:00 +0200
  [PATCH v3 11/21] arm64: dts: hikey960: add LED nodes Guodong Xu <guodong.xu@linaro.org> - 2017-06-14 12:00 +0200

csiph-web