From patchwork Wed May 17 08:37:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9730451 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 CFC1B602DB for ; Wed, 17 May 2017 08:40:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BD5DB28650 for ; Wed, 17 May 2017 08:40:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B1DF728655; Wed, 17 May 2017 08:40:21 +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 5154828650 for ; Wed, 17 May 2017 08:40:21 +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=nWBEFtG4HyKKnq8feXomukcnRpLWh69tUAuON5BbhEE=; b=DUxGsgEhKrc/OvGsgYkHftateb 5kalkqFE1jp90PvB5ItDcJ0RFaIIGeddQ1hbLJdz2MRSmlAhfdVdGE3MzfsitlmQwpYxLVOvNNmr8 CW0in29yGVE/XmaVofn2KYusdv9uurXgnQ2xsiXjI/RfwZ3CaR5n6DOrVQeoV6mHCDPFZuanLyPIo 3ZP8Rv2i+DJeCUd3bnB/GtBKLIV5NqR1wnPRvMtD6dNBL/smjrgWwBlKHEOvHs5vMJ2L/n9JHxuM6 cfU4+TIeYsCQ+Y85A0F4YuCScpUIuxJe4Hk7slOJczo6fClY91WaW/ha6h/BTsl7pld50nCSAxQoO PDgqkuuQ==; 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 1dAuVI-00035V-Qy; Wed, 17 May 2017 08:40:20 +0000 Received: from mail-pf0-x233.google.com ([2607:f8b0:400e:c00::233]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dAuUK-0000mQ-Bh for linux-arm-kernel@lists.infradead.org; Wed, 17 May 2017 08:39:23 +0000 Received: by mail-pf0-x233.google.com with SMTP id 9so3988973pfj.1 for ; Wed, 17 May 2017 01:38:59 -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=vfDjHX293So3G2mdRY3yAUp8IVSJKZ24RbDr0ba+bkA=; b=B8rnaR5YdXhcgiHZGYh/sBuZlZ0pgn0oh4CrZGhju5BU3BCIICR50s/za5jKK8jLBV Lx1WByePldsoBE4/6I/rA7VNbrRmftzd1ya6Q6o/uOdrWS2KNeB2D01rVwnvRhMPXi7C wsyHZtOLpK+xVIultk2uvUvuNbEfVEwtzJVv0= 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=vfDjHX293So3G2mdRY3yAUp8IVSJKZ24RbDr0ba+bkA=; b=JPaSwrK//ovt4YgpQZfdSbG30rV/y4qvaRw5KBjZLrAGv3Ny51abV7cBpz3zrCjp2h q7g720z3gor6emczNskkG9Y4nUBSeHRe5o2oziMWaoZnTaXmVy0kfCQQXHzl20ojhS0W HFU4upu6suaOClJNsDJDXmuCJwNns6uUJruJAspasYcLGD89ykDuLJqcZ589Wwz3+Mct Tnp1Y146yh9vO8nlOsxB+3Vzw++dUlgfjFIbxbLH3RI5ahWmasuUj4bjfjNT1XoAguAy v5FYwGCNogfaIf4UqE5toabEOXJ5Fu16bWhiGanEU0GpSZaibgnEkaYP9k3MBm/kUERi mXyA== X-Gm-Message-State: AODbwcCmBv43XP10BNTvRmlozUj7iiXfbcqs9Hd/InEJSQYwy9n5bsPT B9DbkZXoA23JxzA/ X-Received: by 10.99.55.68 with SMTP id g4mr1960631pgn.115.1495010339404; Wed, 17 May 2017 01:38:59 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.164]) by smtp.gmail.com with ESMTPSA id u9sm3029519pgn.55.2017.05.17.01.38.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 May 2017 01:38:58 -0700 (PDT) From: Guodong Xu To: robh+dt@kernel.org, xuwei5@hisilicon.com, catalin.marinas@arm.com, will.deacon@arm.com, wangkefeng.wang@huawei.com, puck.chen@hisilicon.com, xuejiancheng@hisilicon.com, devicetree@vger.kernel.org Subject: [PATCH 10/12] arm64: dts: hi3660: add spi device nodes Date: Wed, 17 May 2017 16:37:43 +0800 Message-Id: <20170517083745.24479-11-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170517083745.24479-1-guodong.xu@linaro.org> References: <20170517083745.24479-1-guodong.xu@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170517_013920_609493_3A693105 X-CRM114-Status: UNSURE ( 8.58 ) 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: Guodong Xu , Wang Xiaoyin , linux-kernel@vger.kernel.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 | 8 ++++++ arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 30 +++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts index 69aa207..79735ee 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -69,3 +69,11 @@ &uart6 { status = "okay"; }; + +&spi2 { + status = "okay"; +}; + +&spi3 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index c2bca5d..48da97f 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi @@ -728,5 +728,35 @@ clock-names = "apb_pclk"; status = "ok"; }; + + 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"; + }; }; };