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: 164383 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp1665809ili; Thu, 16 May 2019 21:06:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6emUNXDev1ZDa95O3yA129P5LalBxhhHL9701GeZLdtRfEyVjcK7LpVEAs+QKf5le+QI0 X-Received: by 2002:a63:d54f:: with SMTP id v15mr12531965pgi.107.1558066010429; Thu, 16 May 2019 21:06:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558066010; cv=none; d=google.com; s=arc-20160816; b=mGVS5RpzpQyI1N1m69b53H/ndc2B05+zfG0Q+2Vd/NeoNVvpO9Y7f68ZzAhLjpcNtD D9BuYgoQz7+fXjwcl7YCjJ24vNZuxAgC4jxcVrsT2/AjcJPayQkWMTVG4v2GPpScLNSa CP1CmluaPUk6v3aOjL0cnHyQKaVrfJTWPc8f6ZUcdIQ6TaVkQfLKnfg0PXnBeHWx0s16 gaXmO7c7AZrHqjTn5xk+AosGFgqpfXMGFg9oJGOTt7CaTmqfAaK4AK+jXYMjotuIW9pC i6fkl3TuFxiQTcr8lHPzQs1CEE5vz4sdUmH0EHDnPmwdqt7UJQB5r8X7qgWB4f2OfuiY FjRA== 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; bh=6yVenyf0a0qIZedfKSCtttpa0WMwEDTZq8Yud/8Uytg=; b=tipYrKb6sLBjA+GQizQgSJJvl2LppdxiMbRrol4XMRWijJywWp1K+3roqMvKlhHDa4 STldU1NrGJ4u3PmKYgI/C5AaEtDTbFG3XezAEc7OkBwsh1r1P+cNfeWhbxXko/JyRqWR weEsR5pbVpFX7n7mnCnBPPu32QNFe2tben2rPEB/4Opk8X8xgjIslceW2Le74aTYqfFz JUIut4TNiPyRSytQbKV1gv1egZgpZFZyP1d2Cst6ZbDM3ubJSu/2eHBua3Jz7eXH5Ib1 Ar9KrTuctKFe0NzOvQFiPEBsGdfeobwUppbrSGTxuDZs6chjotyFV4LVcknLShpUwWmm t3uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kCiLjC1o; 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 p22si6646571plo.341.2019.05.16.21.06.50; Thu, 16 May 2019 21:06:50 -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.s=google header.b=kCiLjC1o; 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 S1727748AbfEQEGp (ORCPT + 30 others); Fri, 17 May 2019 00:06:45 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:46178 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726804AbfEQEGp (ORCPT ); Fri, 17 May 2019 00:06:45 -0400 Received: by mail-pf1-f194.google.com with SMTP id y11so2965017pfm.13 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=OOfc6iuRyKtHsc/S4MQuJhPMW+EIAVzDgCR/NLRibmswDONG/rlTcSXjyxYAfQFMF/ WtTlYYWuz5EDgSg1/54kDakGkMh1LHSEKrFCBAO6rNqekLJ+vjJEgQ7y99I1zmRDHTte va2+2NxcBOfSEdD1QzXffS701QmF6qGgiu/3D7eWTGEDMJ8hatm1A+AnugM9usBJhevO WPtSJu2dzZdTINMcdLcnPOsN4BxhJqR6d+Td79RkKVbotjU+DSdSmE2vmYgFmbHMKw5k HOtEaSenT/kypIDkA+/GbG174aX+lPccNL1XQZQNwrWYxYm94gT4lEU7iJSGOKodKoNV eY+Q== X-Gm-Message-State: APjAAAXusqwvTRwjl4jCS/IT/zQXD1gRzXPoUgC4TyIGNw/JPQVwEkgt yoEmVcBCd6dokAF2OK1K4wWn 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 Cc: linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, ezequiel@collabora.com, tom@vamrs.com, dev@vamrs.com, Manivannan Sadhasivam 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.17.1 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"; };