From patchwork Wed Jun 14 08:23:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 105478 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp180381qgd; Wed, 14 Jun 2017 01:25:34 -0700 (PDT) X-Received: by 10.99.2.70 with SMTP id 67mr3321537pgc.61.1497428734501; Wed, 14 Jun 2017 01:25:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497428734; cv=none; d=google.com; s=arc-20160816; b=Pl8XtrgZNpXmkrHdRs50wYLsMFnyvdQdZFYqjYiMVNwaSrxdpa4McP+OcefDGCC78f D+dyjK35fhVj3AVRMdI6RMnhhMZQK1+EAnI0md9GXTDzdwJefexzZc3Q5oMbhnxcLlXH eJnz0GRevnMpCaIDm02qrXE/RfSB8xjnUJUYG60j57iXLDv0gGDX+3dS3RIlYaFkSyEp 6A/QZcXsGvDtNCi9ntfDS0Am4nJnehUrpxMeDVt/NPsl/PgIp32Kb8eh1C4MoyE+MiJw S3Z5xFc+ybqKDBf0ohTkR/spmFe6GgoZEXvCStL7mZCXoDcL3MhtYKMaYcvz+AJtAwYL 0JBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=W4L2d8u22c6yygXQJRk+Sqhtqu9yLqxVCuULdrLlfyQ=; b=FA5V0iaGEIxr/84baE6mrpdkr5Ei4lf2xCe+QvJovgEWk7bGlFaim9sW6PeYWIq7rl KDs67TMfWErRp+dXIAlgmEWzU2aIykn2w+5rm5W5rp7s8xNdflpbCcgl90nDB9sY6EtP r+qtM5Ws7uQrXbKxuJDDpDaJkUt4EanevcT2qPi0GovjCdAFmK7ZS1H0C6jGLfO/dHPj ncqfVGmtHIwCPAMGvKnWSeRXbC4WGf1nsLQMZ9RY/X/HvEiWGgpS3Tfe+3l5Uw0COinv Q4bnHN8qXwLrugrjBJbvqQDQxNcbzVeEeeThXaFayD4NTc1sgoXc0mKwfF+Mrg62MDxF ERJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=Ndv+51Fp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33si168406plk.159.2017.06.14.01.25.34; Wed, 14 Jun 2017 01:25:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.b=Ndv+51Fp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932093AbdFNIZX (ORCPT + 25 others); Wed, 14 Jun 2017 04:25:23 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:34967 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754683AbdFNIZM (ORCPT ); Wed, 14 Jun 2017 04:25:12 -0400 Received: by mail-pf0-f174.google.com with SMTP id l89so80806803pfi.2 for ; Wed, 14 Jun 2017 01:25:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=W4L2d8u22c6yygXQJRk+Sqhtqu9yLqxVCuULdrLlfyQ=; b=Ndv+51FpyOPZ4V3+rExQ2HrAesm8ryU7kFGAbaow/uIX0HFe0FYgWkzmzN0+amJOcJ zWQLPlATiPCp9FEO1fRPth+RIT6SL/+oP4aZQx2QoAPVVklIWI/+gnD4cWOKfLejiD7S 91RB64o+7SEa7f88q88ASfmjiGhyVf16erT3M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=W4L2d8u22c6yygXQJRk+Sqhtqu9yLqxVCuULdrLlfyQ=; b=qwrI1exN3pZmMNPUdnARDFkywIYIJ9mVyC/z2TzoujhGzBQ1wAsjN+FS4yKP7u6kWT oSrCJ93do4sRC+y02fBnycaoRvIis7FJkJomkz8HRrp0aQSZp/q6iFri6Jtj/C7TF0AH q/6WIrKpDDCh/umxBpeKF/TJ4mI4kotU+S0FcJHr3INgNuCS6MA/MnDTlgh787OLGzqU DXTfeSwKxKqMVBss+TN906dc+jywRp18+boGM0TQhgewAnTjo68f5XQTn7P+OH8Sx5lB dOnR0vO5IgdhD8n6Dg0x8Lq3vn/W4TKcxX4GbGqbFXg0L7khQ3pSdEYL0F02Xsi0HMNE YhBQ== X-Gm-Message-State: AKS2vOyurgCR9XP95g0oPPKvIK2WRexI7wiX2zPY5UUWGHSp6hfxi8w2 k6hcIsyCnd+whpx5 X-Received: by 10.99.173.75 with SMTP id y11mr3192959pgo.108.1497428707095; Wed, 14 Jun 2017 01:25:07 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.99]) by smtp.gmail.com with ESMTPSA id h14sm766802pfh.71.2017.06.14.01.25.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Jun 2017 01:25:06 -0700 (PDT) From: Guodong Xu To: robh+dt@kernel.org, mark.rutland@arm.com, xuwei5@hisilicon.com, catalin.marinas@arm.com, will.deacon@arm.com, wangkefeng.wang@huawei.com, xuejiancheng@hisilicon.com, peter.griffin@linaro.org, puck.chen@hisilicon.com, lee.jones@linaro.org, ulf.hansson@linaro.org, bhelgaas@google.com, arnd@arndb.de Cc: zhangfei.gao@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, linux-pci@vger.kernel.org, Wang Xiaoyin , Guodong Xu Subject: [PATCH v3 12/21] arm64: dts: hi3660: add spi device nodes Date: Wed, 14 Jun 2017 16:23:29 +0800 Message-Id: <20170614082338.15673-13-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170614082338.15673-1-guodong.xu@linaro.org> References: <20170614082338.15673-1-guodong.xu@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wang Xiaoyin 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 Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 12 +++++++++ arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 30 +++++++++++++++++++++++ 2 files changed, 42 insertions(+) -- 2.10.2 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 = ; + 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 = ; + 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"; + }; }; };