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: 164382 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp1665662ili; Thu, 16 May 2019 21:06:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwK5jbjfUn6zlN95wUIxyP+y9yiaxMt4b4XD8MwxHH8jiUPLtaDXdCXkWoq/m21tgBEJJ/2 X-Received: by 2002:aa7:8dc3:: with SMTP id j3mr57977481pfr.141.1558066003589; Thu, 16 May 2019 21:06:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558066003; cv=none; d=google.com; s=arc-20160816; b=nVNcd8tV9p5IP66BZ5ZGoUpgM7ugFSMYkLzH5F2DtO2BU4k5KtsaAwhZ7KeTTtraPM brPCOe8zkGdsWVKuB8qLQbXMWIaBrYk3XrzFEvRHMZW9Bd9Mw7s39PCYUl+2ZeSzRyV7 GwZ7hf7hW6MTsBssbmTN5qFCmeKwTswYdg1tOyrZg1fHRQKUIHxdIPV+o6Bbojf5ycSt Uw5NpfRwxd5+YXfoMlRY/MC8UV5dRFRcDtZUn6fSfbN6sqdtvXVb/ptjOkFmAf/FW/vd Dy8dd366QbEoT0471fo/DYbxcsV7TDcmDffZEQIAtzo85XuQslZ8vVAcyACzOqtekHZY 5FGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=YUNM61SbavGzuv3ZLziasFZlDP0wZTIm2rUlcIBaEc4=; b=r+d8DEF4QXULBtikyrHENt/btoTh0O5G0jqoT9yYEwOHoThu+uWjtChIvlNF9Fkyms qvf6o/LGhv60QBj12Now14RYsBsBPrcmP7H0l8GB1+MdwMQ7yEOCDJ7r7/BrJXkObnOI tCvYCZndvbs2/bCiXbFF1WUcARltkjrMjQATZj9ubxqN2L0ipMiPCHEVwahDhWRAVaHi Wt9yyZ7dvEWCBUlBwkDv7svU+vSbbLcWHue4mquepfVFclqbWZICDTOgFWc2AnRlJE43 5bD88XH2JHd8E0kYMIG63oo2r/Fl3fDTtRctSV800Hn2YnkOvzVfzIW1Rgigic+0qyoa 1D9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yIDpDUlK; 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 b67si7029276plb.206.2019.05.16.21.06.43; Thu, 16 May 2019 21:06:43 -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=yIDpDUlK; 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 S1727422AbfEQEGk (ORCPT + 30 others); Fri, 17 May 2019 00:06:40 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:36218 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726804AbfEQEGk (ORCPT ); Fri, 17 May 2019 00:06:40 -0400 Received: by mail-pg1-f195.google.com with SMTP id a3so2632235pgb.3 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=QS/c+VV0FlHYujVheiVgLp4O6xPRGheGSW/P0srVui8GOX7NBKLYxpPTo5TuCw206m Nlw1ZITKN0UrKH7X3NYMTw4Qcg5jLv+elqYkcDk29O/NNKZioEdprThSi9J0J4tYtvCw 8iRjqoBDrbpKLg7kpicHfwxODwZE1UJIPnlDgOVOvEn0t8K9K+GMs2MinSK7eJAi9BPx V4CNjkj8zv29y/FE6Pubgo8dFbM1KTElKa9uJsG32GCbqWRTAs5tyoJpPSenfoJZ9yGH V9n3a8b0DtCv20B3K3fvGAvkCjjh6CvCw6QkRmxLw8KoN80aUuXtfG7Qvqzslr7UIqlF K+ew== X-Gm-Message-State: APjAAAUZ33PpmEhrcXZT8muDm4Q2KdAjelVx1FQsThIIvzF+RQFBxUie LPQmDel9f2yk7a1CU9iye1Nh89jRAA== 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 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 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.17.1 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: 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"; };