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: 9785795 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9541E602D9 for ; Wed, 14 Jun 2017 08:41:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7913928560 for ; Wed, 14 Jun 2017 08:41:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D89F26E39; Wed, 14 Jun 2017 08:41:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F2CF326E39 for ; Wed, 14 Jun 2017 08:41:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=F/mGBr/WUJuiHJPz9c6c48miTmLbcLDqvqCVR+cb3zI=; b=O++xuk7A7HZA0+wSRvlgCxHm0B y04YpO91ivFwPITEBtxRqLM9Tr5lOBBuVh8J0Nem9Pq6mYTAJCbGgUvtr4bytV28RkQ0AjTeBHt34 nFoBRIXjkMvuiI+thPPnia/aFJ12wMAPug5wCNLsFIrwz+eZ4NwsZobOwW4zgQ7f5MQVzkivDbSaJ GIs2qLyVhoQgW3B3LbOIk39ZfK/l+gCl9++qCkjMqZjrqX31vjrS2x89CpUhua9xMRUu03Z926/nb BzGG3MIaiQWW/G8jE+jF/em5IqsYojNjsKzugWWRiSmPW9oZ7vbe+R5xDbtRBhN9dxOw0ksPGQwr4 MR502VUw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dL3s0-0006J8-P5; Wed, 14 Jun 2017 08:41:44 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dL3rS-0005Fh-2k for linux-arm-kernel@bombadil.infradead.org; Wed, 14 Jun 2017 08:41:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=W4L2d8u22c6yygXQJRk+Sqhtqu9yLqxVCuULdrLlfyQ=; b=DGoVuPf/AOsn3lrvlCPsDAWIg JgTwSA2g0yaW74aMi4qLYu7Ftfw5TbL1CAyZwEXci6+t3RBBdEsSedq9j7RAZUD44gcg4Gd4Xc+BR HLZVW1Ry4NOxwLGhliFTzFPn3af/chy+0/Xq2cOi04NeSzHs/KbevpQp3tp+jqnXmdeLlpS7zQ39/ TjLIA0OFRagL7Uw+rsdPnNxCv5PZ0A/B7dIDB1N8AxiYAG2C1Ccv5QFZRSOmbR+tvU5wIRKrvYII0 9NrtOCs/jrP1NR4oj/NOuxz+gnzG25cW+30mnSDVgFk3hLwWktshgg2t4DJ+acgscDvgm6Bqn68UR SQD97UEzg==; Received: from mail-pf0-x236.google.com ([2607:f8b0:400e:c00::236]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dL3cH-0002BC-BX for linux-arm-kernel@lists.infradead.org; Wed, 14 Jun 2017 08:25:31 +0000 Received: by mail-pf0-x236.google.com with SMTP id x63so80804857pff.3 for ; Wed, 14 Jun 2017 01:25:08 -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=mjlqoNtKMT8tPjaZpglPnt7GfVZAuNM+ZdMQlYOfB+lAaoRQP+vyk8X8gTTgnHys1F msiKeiCvCNIao4mwSbj7jkl+SxRTtw7hsYhYHp4YO4ckV/codCDK4a2SIlwDhM/DPiEV wiZG24KJ/G5Gd3q8mDRcCm69GcGyk2b2Ia8FZLDTpHBuy1ApFf3cUl9xtUz/hq9c98cI CT3Aq0ggKoMMV1XUsmeJn79Bzr/B9CC5ZLcS78UTbnRD/SAwPS6NVKFTXMbr5fDkYNSh 3/duz20RC1pxnrmJR3Db+Nhj0rBEj9V0Wyw1aTd03OnKPnSDNylshJmB3KdVHn3xV1n/ nv7Q== X-Gm-Message-State: AKS2vOzKou7nVBGtnBGSquQomzwmbMmVEJ8CvCI5GToajhtIqQA8QWvL lyUjFUwf797dn2te 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170614_092529_591974_CF9F6675 X-CRM114-Status: UNSURE ( 9.10 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Guodong Xu , linux-pci@vger.kernel.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Wang Xiaoyin , zhangfei.gao@linaro.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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"; + }; }; };