From patchwork Fri May 17 04:06:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10947319 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 90D46912 for ; Fri, 17 May 2019 04:06:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7DE921FFFF for ; Fri, 17 May 2019 04:06:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6C4D22012F; Fri, 17 May 2019 04:06:53 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 0329F1FFFF for ; Fri, 17 May 2019 04:06:52 +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: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:In-Reply-To: References:List-Owner; bh=jOq9Pmub/Tv8t5PH75hvYzSiyMDIc5yKV1bR8TnnZS0=; b=XRp 94eG+9M+bau6pUJTMMBxL7SZT8rkDMQfelyzbL33DOV6H0ntsE8XsP1xZGZCwLoxjvC56fD8Zk5Z5 qxCG2T+R2rbQHsSVpus1XbBZcDAGsjTgo9r2KfjReglwxWWBYPc2n2Abtq6DTYXYj9OvSSwR4G+sR Cctn3BBU+e2uOJBjGKpxdCpjYcQF8tm4pn4q1w47PKglBTGqAsnyZ/obuTv5ezz0FN237X7Ng0fiR e7UeuaXsTxnyE4VGkeVQ0XEUYnBTXtYAU/S8/VIJdApdrBm9tWPx/rCL1sc4mgNnjLMJY73EUww7u X5CyZU6a35f8fo/7c/69SW4JgWi3QrA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hRU8u-0005Sw-0r; Fri, 17 May 2019 04:06:48 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hRU8m-0005LA-PG for linux-rockchip@lists.infradead.org; Fri, 17 May 2019 04:06:42 +0000 Received: by mail-pf1-x444.google.com with SMTP id q17so2976758pfq.8 for ; Thu, 16 May 2019 21:06:40 -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; bh=YUNM61SbavGzuv3ZLziasFZlDP0wZTIm2rUlcIBaEc4=; b=yIDpDUlKX448aC7IJW7/WLegcIQtNfcka6iCLmWv+QC8U8/MdB2bGFG1VyVS4kpSpw /BO6E+als7fmAJI30vpohsn/1kZAGU+w8hBEM8/jPi5X6BWJckMO70rGA3WR0/ysroC7 +Bqe/diruvyW7cYtdcSbqqvjegR3HmFUmeZFKadkyKGTUoOV/xU7JeqKRPkOLKtLavDV 5aZumrHxYHdRzO67Oxw1vY9zTqo6oT3XnyuBePyIawE6U4y0cIBf9hJGqEM3AM+Byhcw k5ZiNGp9FBVlgawHroO+EHAMFT6unmCgJUCQM0P2TTZUsJvBcsVZ2N/auobicxfEMTaV GvXg== 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; bh=YUNM61SbavGzuv3ZLziasFZlDP0wZTIm2rUlcIBaEc4=; b=VSatlq8p99w94M62/WuOBvwa7W9AWzR+ubAMWM2b7dhYk5JatplGscwOYZN+jVKwe9 8drHJGfDdbYJELcWF/sjldzlBaU4Kk9LLrcPdI6Vp1aRb0sQPcHUSWxcuPq/+nP/Rfyz JlVf/gryYSnWnMJkHZb/GgWOBADO1AeREAW5lXUD2Elynd7dJqzzi4rVGKifIaEdcDpd xdRSwQf8bDbqoTUteF9Toa5hfsqnKVFAvIYf50rxO7X42MQbUmKh6ZPK82dTXEEIs/AC t9uVkhA0CleN2nuKxpFSHC2RDdZU+z/BsZhcRnZC+DW2/BshZ+hGUNDmxF5JGKexMuGV SY7g== X-Gm-Message-State: APjAAAXKaQAFGkVq1sofk4yGcE0NxKUSWjFGCAGJ6qptebp7w270pJtt NOR5tWETRC1qBMok4bjKs90S X-Google-Smtp-Source: APXvYqz7kfN3pi13qegdwYdYgGYpAj2q8K5JcWDOsEo7Y6jybA2FcawPknW8Ht4RsODvS+LMWZrI0Q== X-Received: by 2002:a62:bd0e:: with SMTP id a14mr38891835pff.44.1558065999551; Thu, 16 May 2019 21:06:39 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:6390:5018:b478:7b0e:49e:16a3]) by smtp.gmail.com with ESMTPSA id d3sm8628927pfn.113.2019.05.16.21.06.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 May 2019 21:06:39 -0700 (PDT) From: Manivannan Sadhasivam To: heiko@sntech.de Subject: [PATCH v2 1/2] arm64: dts: rockchip: Enable SPI0 and SPI4 on Rock960 Date: Fri, 17 May 2019 09:36:24 +0530 Message-Id: <20190517040625.14607-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190516_210640_982692_A88A55C9 X-CRM114-Status: GOOD ( 10.88 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tom@vamrs.com, linux-kernel@vger.kernel.org, dev@vamrs.com, linux-rockchip@lists.infradead.org, Manivannan Sadhasivam , ezequiel@collabora.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Enable SPI0 and SPI4 exposed on the Low and High speed expansion connectors of Rock960. Signed-off-by: Manivannan Sadhasivam --- Changes in v2: * Dropped the label property since it is not part of SPI binding arch/arm64/boot/dts/rockchip/rk3399-rock960.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock960.dts b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dts index 12285c51cceb..c624b4e73129 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock960.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dts @@ -114,6 +114,16 @@ }; }; +&spi0 { + /* On Low speed expansion (LS-SPI0) */ + status = "okay"; +}; + +&spi4 { + /* On High speed expansion (HS-SPI1) */ + status = "okay"; +}; + &usbdrd_dwc3_0 { dr_mode = "otg"; }; From patchwork Fri May 17 04:06:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10947323 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5BDDA912 for ; Fri, 17 May 2019 04:07:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C9801FFFF for ; Fri, 17 May 2019 04:07:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2DF2A2012F; Fri, 17 May 2019 04:07:08 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 D3F3820072 for ; Fri, 17 May 2019 04:07:07 +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=IIrYkKYetJf7exBTGF7hJmdEZNQyi+3izBSQbAmpjyw=; b=ubYETknyvXSAdIrQQKydaFe8Xr ZSOvade/0lLRWTTv0AEcZuWfTz6UL/YftcYnkiOHE4NO1j7pJxQV6HGNpEFbmT278EQNfjmXtxtRd 05nFUtz5c0OCSLCyjwcFqu0zu2aVSPdKbGqix7xRZQbBYKch6ko7wo3/7Ppugv1j1IhdwmIh5FfZu jauBLiuCuO53jcYRXj+wHZ+BgFrz6b4DjtoV7Tl1eUNSAi0tI2dkC0yk1VnVpqXoqMniXbTlwBnX+ 9xv2GYmsnWu1/S2eqb1o12owEyZfo8fRu0JY8Ubr+8LhbgspJYWrn6Z03oG0R7ngg87ImfAXHQysu CugpHsYg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hRU99-0005p6-Cd; Fri, 17 May 2019 04:07:03 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hRU8r-0005Nr-AE for linux-rockchip@lists.infradead.org; Fri, 17 May 2019 04:06:48 +0000 Received: by mail-pf1-x441.google.com with SMTP id q17so2976850pfq.8 for ; Thu, 16 May 2019 21:06:44 -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=6yVenyf0a0qIZedfKSCtttpa0WMwEDTZq8Yud/8Uytg=; b=kCiLjC1owHy+UsjeF60cBtcatNacrggyR9r2TuoTOmaWEe3JT5GGpL6NQCaDV36Umb y/uBj3UO2rVyb7LmO0nPT1LDJ13jKkSjsa+1zBQ8ueyJ9FmLUfe5S/lk0Om0Rfr0OqhB udBzRgih+ZPFfi/pgEjD43225Heo+dB1r0fyB8XDYOUslZvLWhrEHS68MQPN4itx5QCF 5G2Si0cxb+SIySRKcJ89o6NK+bzeiKjUPq+YcDJWlujIPilrDaYpFLTrbyPSXFh2hj+S mx9VVpsW1bVQZmZ2Ze6IzHvT3dT9kfO2aRLIUQ1PQFdbLc/kn+Ctg79zCJGwc4LhM4IF pBvw== 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=6yVenyf0a0qIZedfKSCtttpa0WMwEDTZq8Yud/8Uytg=; b=ijL87lDPMCH3fX1U3xBq8aLaC3tbLlyAtzLmyuDF2H+1AawmRetfVzs6GGO0xz+svJ XVEckh09KcxaEJbsuxwwSk/1xPPh1WgdhL165DmmhCDjkeedAGH0obr0fPcf2T3O7O/v vv71hxbinBANlUCRaB8JTtBOk392oApshnzLvFx5yuZG4Zu8WiCTkzCtNz0Nm894oNvt jmc5FAbJFo6yXmxrr8vtCx2m+iU3mHzXEoLamGiSYhW1kidLZZgq3mxOiAYgNf2QNYVH rvjy3uLIkMuy3BOkvWA+qBHYYX3Rw6Urn6k8+OQMQ1xEGBbbltNHB2gY6J+4dYMUNQXK 37mg== X-Gm-Message-State: APjAAAULE5whraFfuiexctj5eoCFKYRkIc0qk+padaQ3I3tx+H336XM/ IdCbKJOo+7CjNLzQsCvKmOln X-Google-Smtp-Source: APXvYqyVaMd+FX1grTr8/UOs0JxoMs+1pdWe8hTBQCYVIxmgR63mOxmsGCZ0sfjQ08bGQHR+ZiNFjw== X-Received: by 2002:a62:e718:: with SMTP id s24mr58695777pfh.247.1558066004331; Thu, 16 May 2019 21:06:44 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:6390:5018:b478:7b0e:49e:16a3]) by smtp.gmail.com with ESMTPSA id d3sm8628927pfn.113.2019.05.16.21.06.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 May 2019 21:06:43 -0700 (PDT) From: Manivannan Sadhasivam To: heiko@sntech.de Subject: [PATCH v2 2/2] arm64: dts: rockchip: Enable SPI1 on Ficus Date: Fri, 17 May 2019 09:36:25 +0530 Message-Id: <20190517040625.14607-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190517040625.14607-1-manivannan.sadhasivam@linaro.org> References: <20190517040625.14607-1-manivannan.sadhasivam@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190516_210645_824496_2CCE5645 X-CRM114-Status: GOOD ( 10.18 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tom@vamrs.com, linux-kernel@vger.kernel.org, dev@vamrs.com, linux-rockchip@lists.infradead.org, Manivannan Sadhasivam , ezequiel@collabora.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Enable SPI1 exposed on both Low and High speed expansion connectors of Ficus. SPI1 has 3 different chip selects wired as below: CS0 - Serial Flash (unpopulated) CS1 - Low Speed expansion CS2 - High Speed expansion Signed-off-by: Manivannan Sadhasivam --- Changes in v2: * Used pin constants instead of hardcoding cs-gpios arch/arm64/boot/dts/rockchip/rk3399-ficus.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-ficus.dts b/arch/arm64/boot/dts/rockchip/rk3399-ficus.dts index 027d428917b8..9af02d859dcd 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-ficus.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-ficus.dts @@ -146,6 +146,12 @@ }; }; +&spi1 { + /* On both Low speed and High speed expansion */ + cs-gpios = <0>, <&gpio4 RK_PA6 0>, <&gpio4 RK_PA7 0>; + status = "okay"; +}; + &usbdrd_dwc3_0 { dr_mode = "host"; };