From patchwork Thu Feb 4 20:49:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 376332 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp1613168jah; Thu, 4 Feb 2021 12:50:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZgRSh2Q+yAP5N/HfilhqjyKD2+/Gd2i8TpRV68zBkPoffLYdExCbiAMnY+aSZkpztAmIc X-Received: by 2002:a05:6402:186:: with SMTP id r6mr454517edv.234.1612471833982; Thu, 04 Feb 2021 12:50:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612471833; cv=none; d=google.com; s=arc-20160816; b=v+IWNYHyh10j/QAOm2JRTjnAwr6w5yu6kpCL2VGACFAR5fFD01pvF6GMQ2h55vO9Hc Gu4aw3xdMsoUiE/I+SdGWLfhAPfYhqA0aoHpTUqmSg2AXEJzfUMoyXZJPOpRa2OCnylr 1n70A1DhMTnUnn4H8DMMJBFJF9DMQjR2SANLkstcQaQwisgQHXpE6ZBW7sIyJbwg58Ov KavsDf1LjutkExUcXzdj/wIYWOiRxJyq07UX47vAGVQ9sveQDQami//yyFqCN1swVA1x oFWxRaipV0MmRuxISdo491lGkVrxTzWvXPNrv56CfF50p5rW96fL9Cy1P5edWbxd1lGr UwLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=gSjMG7FbTcrxCgmEoKvYDCrpeSeW/Mk2gd8D+uT/01E=; b=vawPBNnYSuy3ax2fyIjQy0qiZ+cWmUd1/cqFBhOO3Wp3lqO16d4Sqabe89xv7OOaly sJMVzMuXCLf9DGu/NRR3ISkFyeRX0TiixlXzEfxh6sOJ4GKgZ3QY5f7r/6lxZ0NqpnV1 L0vzb02S3e1IOaTdNHaQB6SK6juHXr38byaBVpC1PUv47BFhxlMoB5LwxIZ0SKNJUVHQ unyI2disEIYUu+4FW5vCIt4vJHcjNC87TFYCrPrdEzXTjXCB8Fe5CJAI8bJPAeNqfUgv z3EVGxxtxv4nbkGmXzgQ3Nz9QYUbgza8UL9I0oSxex16fPhnFTj5DcsrAxTXq5GzXac1 gmJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fZWhUZnv; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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. [23.128.96.18]) by mx.google.com with ESMTP id e17si3406360ejr.533.2021.02.04.12.50.33; Thu, 04 Feb 2021 12:50:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fZWhUZnv; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S229721AbhBDUtt (ORCPT + 16 others); Thu, 4 Feb 2021 15:49:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbhBDUts (ORCPT ); Thu, 4 Feb 2021 15:49:48 -0500 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CBFDC0613D6 for ; Thu, 4 Feb 2021 12:49:08 -0800 (PST) Received: by mail-lj1-x22c.google.com with SMTP id m22so5111846ljj.4 for ; Thu, 04 Feb 2021 12:49:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gSjMG7FbTcrxCgmEoKvYDCrpeSeW/Mk2gd8D+uT/01E=; b=fZWhUZnviySiKyEBiCe5eGEpRTCq0KA24KzEXmy/ULzqYehzqtMby8yRXsLc9bygLB YJvBlPUhFG767xXoYnkVLHqPo8mZJE0YU6ujIgn1di/Qgfm+irRyEpFLI6M38xxdnINU qWDb17QtnrCb3wAh9qwcDsoiK2h3qi/7ULRc47LNj1i1mY60I37Spzl+XoxNy5eQivOB PYR18S3vfEp0JsYdfLy+A8eHVJ5dHRUSE0V7GFG3XVIyn9Dl9tpSCxNYrRi6Pa4Rtq6E mH/hCXXa0s4mtishlwiZHseaidzNGdwNE8aPhu1kdh9ebLeeOa2c4XqM1HsU86om9XdV Lwpw== 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:mime-version :content-transfer-encoding; bh=gSjMG7FbTcrxCgmEoKvYDCrpeSeW/Mk2gd8D+uT/01E=; b=dcJ+253qYgTiAd8zP/+SHcCBdzHlPJZLPdDIxm3NyTh/9S8lQopkxcYbEnQOfxyqNN 20w/SIrq4E0S9S6sUAH4LWvvzCF6Ns1YKoPejnEujcc8YKQlWnAQFBd62Q2p5cu77rhc amK8bSfxWDhPPIKmE9b5E/Ki81X8hopv6mdsR+UmAMUnnACbesgnjQvBI4w9Ev2pJOJn PWME4DtVbUK33/vFUf25t3nv1xqWNK+MJUNPOhrAe/rXQlBRNQHADz1Iyc8//jHm0oJQ bp4Gjp38TSxwmj0ZgxbnBze77AsCFCzU3WWpMptik0gIIY6484okssv50Vf/Z6gydCKl MbcQ== X-Gm-Message-State: AOAM531rpt22NlPn/rdpqs3rcK5eVk7qEVdZ6hmPeRpJ07Rxg5NC6tkg 34JeHEVNE65TIGDe8DBiQifaYEYyw0LMvqzO X-Received: by 2002:a2e:988d:: with SMTP id b13mr658077ljj.176.1612471746759; Thu, 04 Feb 2021 12:49:06 -0800 (PST) Received: from eriador.lan ([188.162.64.67]) by smtp.gmail.com with ESMTPSA id g25sm759958ljj.64.2021.02.04.12.49.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 12:49:06 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org Subject: [PATCH 1/2] arm64: dts: qcom: sm8250: add pinctrl for SPI using GPIO as a CS Date: Thu, 4 Feb 2021 23:49:03 +0300 Message-Id: <20210204204904.294555-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org GENI SPI controller shows several issues if it manages the CS on its own (see 37dd4b777942 ("arm64: dts: qcom: sc7180: Provide pinconf for SPI to use GPIO for CS")) for the details. Provide pinctrl entries for SPI controllers using the same CS pin but in GPIO mode. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 380 +++++++++++++++++++++++++++ 1 file changed, 380 insertions(+) -- 2.30.0 diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 3cea28058a91..03015174ec06 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -3046,6 +3046,25 @@ config { }; }; + qup_spi0_cs_gpio: qup-spi0-cs-gpio { + mux { + pins = "gpio28", "gpio29", + "gpio30"; + function = "qup0"; + }; + + cs { + pins = "gpio31"; + function = "gpio"; + }; + + config { + pins = "gpio28", "gpio29", "gpio30", "gpio31"; + drive-strength = <6>; + bias-disable; + }; + }; + qup_spi0_default: qup-spi0-default { mux { pins = "gpio28", "gpio29", @@ -3061,6 +3080,25 @@ config { }; }; + qup_spi1_cs_gpio: qup-spi1-cs-gpio { + mux { + pins = "gpio4", "gpio5", + "gpio6"; + function = "qup1"; + }; + + cs { + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio4", "gpio5", "gpio6", "gpio7"; + drive-strength = <6>; + bias-disable; + }; + }; + qup_spi1_default: qup-spi1-default { mux { pins = "gpio4", "gpio5", @@ -3076,6 +3114,25 @@ config { }; }; + qup_spi2_cs_gpio: qup-spi2-cs-gpio { + mux { + pins = "gpio115", "gpio116", + "gpio117"; + function = "qup2"; + }; + + cs { + pins = "gpio118"; + function = "gpio"; + }; + + config { + pins = "gpio115", "gpio116", "gpio117", "gpio118"; + drive-strength = <6>; + bias-disable; + }; + }; + qup_spi2_default: qup-spi2-default { mux { pins = "gpio115", "gpio116", @@ -3091,6 +3148,25 @@ config { }; }; + qup_spi3_cs_gpio: qup-spi3-cs-gpio { + mux { + pins = "gpio119", "gpio120", + "gpio121"; + function = "qup3"; + }; + + cs { + pins = "gpio122"; + function = "gpio"; + }; + + config { + pins = "gpio119", "gpio120", "gpio121", "gpio122"; + drive-strength = <6>; + bias-disable; + }; + }; + qup_spi3_default: qup-spi3-default { mux { pins = "gpio119", "gpio120", @@ -3106,6 +3182,25 @@ config { }; }; + qup_spi4_cs_gpio: qup-spi4-cs-gpio { + mux { + pins = "gpio8", "gpio9", + "gpio10"; + function = "qup4"; + }; + + cs { + pins = "gpio11"; + function = "gpio"; + }; + + config { + pins = "gpio8", "gpio9", "gpio10", "gpio11"; + drive-strength = <6>; + bias-disable; + }; + }; + qup_spi4_default: qup-spi4-default { mux { pins = "gpio8", "gpio9", @@ -3121,6 +3216,25 @@ config { }; }; + qup_spi5_cs_gpio: qup-spi5-cs-gpio { + mux { + pins = "gpio12", "gpio13", + "gpio14"; + function = "qup5"; + }; + + cs { + pins = "gpio15"; + function = "gpio"; + }; + + config { + pins = "gpio12", "gpio13", "gpio14", "gpio15"; + drive-strength = <6>; + bias-disable; + }; + }; + qup_spi5_default: qup-spi5-default { mux { pins = "gpio12", "gpio13", @@ -3136,6 +3250,25 @@ config { }; }; + qup_spi6_cs_gpio: qup-spi6-cs-gpio { + mux { + pins = "gpio16", "gpio17", + "gpio18"; + function = "qup6"; + }; + + cs { + pins = "gpio19"; + function = "gpio"; + }; + + config { + pins = "gpio16", "gpio17", "gpio18", "gpio19"; + drive-strength = <6>; + bias-disable; + }; + }; + qup_spi6_default: qup-spi6-default { mux { pins = "gpio16", "gpio17", @@ -3151,6 +3284,25 @@ config { }; }; + qup_spi7_cs_gpio: qup-spi7-cs-gpio { + mux { + pins = "gpio20", "gpio21", + "gpio22"; + function = "qup7"; + }; + + cs { + pins = "gpio23"; + function = "gpio"; + }; + + config { + pins = "gpio20", "gpio21", "gpio22", "gpio23"; + drive-strength = <6>; + bias-disable; + }; + }; + qup_spi7_default: qup-spi7-default { mux { pins = "gpio20", "gpio21", @@ -3166,6 +3318,25 @@ config { }; }; + qup_spi8_cs_gpio: qup-spi8-cs-gpio { + mux { + pins = "gpio24", "gpio25", + "gpio26"; + function = "qup8"; + }; + + cs { + pins = "gpio27"; + function = "gpio"; + }; + + config { + pins = "gpio24", "gpio25", "gpio26", "gpio27"; + drive-strength = <6>; + bias-disable; + }; + }; + qup_spi8_default: qup-spi8-default { mux { pins = "gpio24", "gpio25", @@ -3181,6 +3352,25 @@ config { }; }; + qup_spi9_cs_gpio: qup-spi9-cs-gpio { + mux { + pins = "gpio125", "gpio126", + "gpio127"; + function = "qup9"; + }; + + cs { + pins = "gpio128"; + function = "gpio"; + }; + + config { + pins = "gpio125", "gpio126", "gpio127", "gpio128"; + drive-strength = <6>; + bias-disable; + }; + }; + qup_spi9_default: qup-spi9-default { mux { pins = "gpio125", "gpio126", @@ -3196,6 +3386,25 @@ config { }; }; + qup_spi10_cs_gpio: qup-spi10-cs-gpio { + mux { + pins = "gpio129", "gpio130", + "gpio131"; + function = "qup10"; + }; + + cs { + pins = "gpio132"; + function = "gpio"; + }; + + config { + pins = "gpio129", "gpio130", "gpio131", "gpio132"; + drive-strength = <6>; + bias-disable; + }; + }; + qup_spi10_default: qup-spi10-default { mux { pins = "gpio129", "gpio130", @@ -3211,6 +3420,25 @@ config { }; }; + qup_spi11_cs_gpio: qup-spi11-cs-gpio { + mux { + pins = "gpio60", "gpio61", + "gpio62"; + function = "qup11"; + }; + + cs { + pins = "gpio63"; + function = "gpio"; + }; + + config { + pins = "gpio60", "gpio61", "gpio62", "gpio63"; + drive-strength = <6>; + bias-disable; + }; + }; + qup_spi11_default: qup-spi11-default { mux { pins = "gpio60", "gpio61", @@ -3226,6 +3454,25 @@ config { }; }; + qup_spi12_cs_gpio: qup-spi12-cs-gpio { + mux { + pins = "gpio32", "gpio33", + "gpio34"; + function = "qup12"; + }; + + cs { + pins = "gpio35"; + function = "gpio"; + }; + + config { + pins = "gpio32", "gpio33", "gpio34", "gpio35"; + drive-strength = <6>; + bias-disable; + }; + }; + qup_spi12_default: qup-spi12-default { mux { pins = "gpio32", "gpio33", @@ -3241,6 +3488,25 @@ config { }; }; + qup_spi13_cs_gpio: qup-spi13-cs-gpio { + mux { + pins = "gpio36", "gpio37", + "gpio38"; + function = "qup13"; + }; + + cs { + pins = "gpio39"; + function = "gpio"; + }; + + config { + pins = "gpio36", "gpio37", "gpio38", "gpio39"; + drive-strength = <6>; + bias-disable; + }; + }; + qup_spi13_default: qup-spi13-default { mux { pins = "gpio36", "gpio37", @@ -3256,6 +3522,25 @@ config { }; }; + qup_spi14_cs_gpio: qup-spi14-cs-gpio { + mux { + pins = "gpio40", "gpio41", + "gpio42"; + function = "qup14"; + }; + + cs { + pins = "gpio43"; + function = "gpio"; + }; + + config { + pins = "gpio40", "gpio41", "gpio42", "gpio43"; + drive-strength = <6>; + bias-disable; + }; + }; + qup_spi14_default: qup-spi14-default { mux { pins = "gpio40", "gpio41", @@ -3271,6 +3556,25 @@ config { }; }; + qup_spi15_cs_gpio: qup-spi15-cs-gpio { + mux { + pins = "gpio44", "gpio45", + "gpio46"; + function = "qup15"; + }; + + cs { + pins = "gpio47"; + function = "gpio"; + }; + + config { + pins = "gpio44", "gpio45", "gpio46", "gpio47"; + drive-strength = <6>; + bias-disable; + }; + }; + qup_spi15_default: qup-spi15-default { mux { pins = "gpio44", "gpio45", @@ -3286,6 +3590,25 @@ config { }; }; + qup_spi16_cs_gpio: qup-spi16-cs-gpio { + mux { + pins = "gpio48", "gpio49", + "gpio50"; + function = "qup16"; + }; + + cs { + pins = "gpio51"; + function = "gpio"; + }; + + config { + pins = "gpio48", "gpio49", "gpio50", "gpio51"; + drive-strength = <6>; + bias-disable; + }; + }; + qup_spi16_default: qup-spi16-default { mux { pins = "gpio48", "gpio49", @@ -3301,6 +3624,25 @@ config { }; }; + qup_spi17_cs_gpio: qup-spi17-cs-gpio { + mux { + pins = "gpio52", "gpio53", + "gpio54"; + function = "qup17"; + }; + + cs { + pins = "gpio55"; + function = "gpio"; + }; + + config { + pins = "gpio52", "gpio53", "gpio54", "gpio55"; + drive-strength = <6>; + bias-disable; + }; + }; + qup_spi17_default: qup-spi17-default { mux { pins = "gpio52", "gpio53", @@ -3316,6 +3658,25 @@ config { }; }; + qup_spi18_cs_gpio: qup-spi18-cs-gpio { + mux { + pins = "gpio56", "gpio57", + "gpio58"; + function = "qup18"; + }; + + cs { + pins = "gpio59"; + function = "gpio"; + }; + + config { + pins = "gpio56", "gpio57", "gpio58", "gpio59"; + drive-strength = <6>; + bias-disable; + }; + }; + qup_spi18_default: qup-spi18-default { mux { pins = "gpio56", "gpio57", @@ -3331,6 +3692,25 @@ config { }; }; + qup_spi19_cs_gpio: qup-spi19-cs-gpio { + mux { + pins = "gpio0", "gpio1", + "gpio2"; + function = "qup19"; + }; + + cs { + pins = "gpio3"; + function = "gpio"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2", "gpio3"; + drive-strength = <6>; + bias-disable; + }; + }; + qup_spi19_default: qup-spi19-default { mux { pins = "gpio0", "gpio1", From patchwork Thu Feb 4 20:49:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 376333 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp1613185jah; Thu, 4 Feb 2021 12:50:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpKSMvvThasi/2xvt8Xae5D8ZjXrRgXwiYuZ3mp9FSqGLF1pj7t5l5E2rHyggYrawcOC9A X-Received: by 2002:a17:906:118f:: with SMTP id n15mr866281eja.497.1612471835417; Thu, 04 Feb 2021 12:50:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612471835; cv=none; d=google.com; s=arc-20160816; b=aP+nNu2+AX3Vs/UYPeDGa06dqBmO55MEoSBl3EYXew8rPYips792lPqZ1NuQKq1mSy 6T4GxAAwqZCaejWVz5kgLTiR4G9XNzwKd5xYwxOErwUl7xdJQRO0XYuNeDBK0ywrUy5u OCpj6Npt3sPAs4otiARUBSSTEdYrpy85F7SiydVEbFsKv6yVmwyvRG+G/Mr21YSsVENQ 1E+pt6Fzhe2JJGcsVf/MauGoAtAfGlB2qHm6Di4Wd8Gd6hbFNOJWXX4eBHDqsbdNrixB 9uaKZAQBBcC/VZZmbNAIcy1eU9SxJrBJ7GLsBaj97i8QOBV1DBY2vzHzntYO5+wUZnpI iOPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=T+BkYTpir1J+WMle84+eAWl7vJ45bkuj6clu7v/nPaA=; b=zYfUsDc2mqIOnnylWSr5EalLBa4dS87Y+wO/8e2ITl0tgBpEHgZLuiPHaA9yl5ZgAu /561d8GQIb884iFHCLNkqwY0QZhm63AFmM2ykIutuy+dCsik4Abkr42+Ed/ykhX6WHEA 1lZdpeh9n3Wls2Hdd5bzPjHZMFbHSz84YJcOFakgEeCLmk2VtyDoFNRP4BoDYILyXAkV YS70e236FOGq7UAya8g5K5dNR4aZWCsuPKowrx9Mwtga4HcpruVf7VkU5BYJ20eT6o8k Ydo/GO9pTNIcvZeGiYc0Kg1PrnmVOTyyJJ+0mBnfikCrA1uqOhFCQLs3R/jreaAtTMqw mjGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uqJ0mSGD; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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. [23.128.96.18]) by mx.google.com with ESMTP id e17si3406360ejr.533.2021.02.04.12.50.34; Thu, 04 Feb 2021 12:50:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uqJ0mSGD; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S229790AbhBDUtu (ORCPT + 16 others); Thu, 4 Feb 2021 15:49:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbhBDUtu (ORCPT ); Thu, 4 Feb 2021 15:49:50 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98BEFC061786 for ; Thu, 4 Feb 2021 12:49:09 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id f1so6642136lfu.3 for ; Thu, 04 Feb 2021 12:49:09 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=T+BkYTpir1J+WMle84+eAWl7vJ45bkuj6clu7v/nPaA=; b=uqJ0mSGDZUXwXd/9NrPr7sCbnyL3BOoFa/jliHcKhTcBOIjW/7TX4ZcDnvpvX9DQR8 3Abj1d+OsRrctJSyxcyuevNlVNCI4y1MAeOFGR+wJlRLxzCqMCY34+Z4XRqYJs0nICpw bC2nZaxtlH8Ebb5dAp35JjNHq3KPoP+whbSrm3Y9VJIXjA5DHBK31RyCRr+TUs2qi0VQ WZKjDr+pLi9+eNFtUVGmmR8d7CZkqNYUMVEBGlsdIuRNzawxJk5cn5oo3Sm34cr3IBIz AesnKAO7BV/zezKSX5h0JZSJ6oNrgJvDYwJC547n7mD1II4CQrQovdu9HmHraIWpyY9z vAjQ== 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:mime-version:content-transfer-encoding; bh=T+BkYTpir1J+WMle84+eAWl7vJ45bkuj6clu7v/nPaA=; b=FTKzPp/kKfen8Jzw+S4P7FDtRVRyba8JNoWBtQAwMsCoM5h3DrmXGbMwTUjCEpa/7k 8IQHPM5eiRgZGOlN/sAgOuzchtJTBYLfSAKFmnfFcFgT7vKFtWDJcmTYu/65nl2wPUcX XgE7VpxGLRaqPDWfPRR4+3Z3h+hZzy5hv+2S7U+JZsU0mMV5no3vtOw4xdSO41CyfGGs VUBpBt8PTasIeNTeQmy+dBDZK5uzryMpsNZaWTlDCOi9rgynx0lDBqNgKU9w95qxNO8m Y7vfjTehQ/ZDOPYMvXPB+U4bzUBIoSvZoQC035DOArbmTk5kVZYBzSNVBI7IgPnTiW4F 8/kA== X-Gm-Message-State: AOAM533i49EJq98tM9STfI/xhOfkOXBT+lO6STkcwjTvu9FIc5WJ0Dnv n8trO+3LnCR2pT/Pec3I7ThFFw== X-Received: by 2002:a05:6512:308d:: with SMTP id z13mr605908lfd.71.1612471748137; Thu, 04 Feb 2021 12:49:08 -0800 (PST) Received: from eriador.lan ([188.162.64.67]) by smtp.gmail.com with ESMTPSA id g25sm759958ljj.64.2021.02.04.12.49.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 12:49:07 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: qcom: qrb5165-rb5: switch into using GPIO for SPI0 CS Date: Thu, 4 Feb 2021 23:49:04 +0300 Message-Id: <20210204204904.294555-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210204204904.294555-1-dmitry.baryshkov@linaro.org> References: <20210204204904.294555-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org GENI SPI controller shows several issues if it manages the CS on its own (see 37dd4b777942 ("arm64: dts: qcom: sc7180: Provide pinconf for SPI to use GPIO for CS")) for the details. Configure SPI0 CS pin as a GPIO. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 2 ++ 1 file changed, 2 insertions(+) -- 2.30.0 diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index 50f94460c970..6098ccba85de 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -1129,6 +1129,8 @@ &slpi { /* CAN */ &spi0 { status = "okay"; + pinctrl-0 = <&qup_spi0_cs_gpio>; + cs-gpios = <&tlmm 31 GPIO_ACTIVE_LOW>; can@0 { compatible = "microchip,mcp2518fd";