From patchwork Tue Feb 9 12:47:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 379349 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp192071jah; Tue, 9 Feb 2021 04:50:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwUnCa9ntUgS1TpiEEZ13/5A3s5wH+7UUWtsLGXrEXmY4bJTvX8QMcO+MttLt8QzkqVqKb X-Received: by 2002:a05:6402:b8c:: with SMTP id cf12mr22412948edb.320.1612875036237; Tue, 09 Feb 2021 04:50:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612875036; cv=none; d=google.com; s=arc-20160816; b=yTFB8g3JUEVrARaaimTtwtOxeylEZakVPmnjhaDoKqUsKMlSeWAuScAN5DPBT3n73H huJ+x95OiJpFcIhP7DHhrfitMKAOBnz/kSiYCvk+1GrppOGDEuC9eroUSi2wFbPXpWlr aDYoCUug7UI+uWa3Yrk8yDp8nmV4ZqoagCIIhY+FwBy7ncblc77lktAEFTX5w+uzc745 /epI08oLF8/Rwvqc5LtvuSkMVWnIuG9mDk9TdIVKl2ZXC2x7SBEjRaQGLqSFFLcSWrcn Le2ga9h2fePgJCLW437Bf8edd0nCPnuMvcHdbGxh+kipLAngaK5bjz+i3PTb9YKEa6B7 LS6w== 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=D4TIjkothfdEPJmp+jtQjnJHdWaAiiHT9uw9NxP1nxU=; b=L1kuBdl+rgdhKIqIiROi17ImunWyvUqg7ZNb7RQpXEdL5vo7RtOLTNq/0bZW3+ysm6 YDjcwO9TQVPWWQenBRLiLMr2OEfJ+tSR16qSoSQ/Z52sZuIuftseYqTCSsbk1aSzGI2J 4EuctU63aqc+M9h4L6vvlNWMNnTrVtcmCPCnCo+P/ZItUYAHP80LpRtaD1KGLFnSKPMO GNdu5eiqjC1YD9nfNPZjkvc3/tgnpiugsKh02vNhvujBFCVkp8k2HQRwPyQdUSSOtV1D HweYEEpaL0OcBJHs5YvMXg2r9jVaP93ZF2lhosKVJT22IBA6KW2Pv73sNlcTtwQWlY4F Nm+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Rbf2dZTJ; 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 q7si14328136edt.86.2021.02.09.04.50.36; Tue, 09 Feb 2021 04:50:36 -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=Rbf2dZTJ; 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 S230077AbhBIMua (ORCPT + 16 others); Tue, 9 Feb 2021 07:50:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230155AbhBIMtF (ORCPT ); Tue, 9 Feb 2021 07:49:05 -0500 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3ADEDC061793 for ; Tue, 9 Feb 2021 04:48:21 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id w36so14515342lfu.4 for ; Tue, 09 Feb 2021 04:48:21 -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=D4TIjkothfdEPJmp+jtQjnJHdWaAiiHT9uw9NxP1nxU=; b=Rbf2dZTJHnSqnhP5r8mq8jFsiFlTvtGHjFEpEfqqMFx5cZKTcam+1cL3esN7cCwWq+ F7krbkkzlSOuZtkWR+JC/VPDaALlT+tYIDaS3NzAfpCjOB0jBncirMraoUIVfC4B9lz4 /MR2eHah9uuaKfGTZ6McedDx/ohc+Me7GFE9Ulkhn+0JzPab+Mz4oP11pf4Xf7LSjRUU TKTh/uT6tpwck66VGbmy/X6tpND+Yfok1tS/YBttuQqATCxSoheKFEbVmueJNUnxhKZJ QOe7izNzL2IHYj/gWitedk79MR6IVWKfAaW/WUVwzyU0frVVmKMjR7/TERqKmxz8XVdh 2CGA== 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=D4TIjkothfdEPJmp+jtQjnJHdWaAiiHT9uw9NxP1nxU=; b=NnmwkiGxWYSrKWIjow/INiWBVBHjJCdzvSrhlirMCLxWwKj54yW/0Bge1TJ5Ejtl6q r2ErrcCxhxBdoxI5ESsG0bxhZ669Zk5t+KOy+2Rd2cyRLk0wQ4vW3xICPIWv8fuXbVLA hohj/yJKRBXPZoLt3lej/wpuu1OBt1+VuIbIogg+RMoWZNr6QOvGXn2sMmTAIVBQP7M8 uBHe5amRTtG8dlsVWXZurxg3lF0J7G0yhF56B2SJjIQ+G315NZx2iElJZ6ECBHrHBQqE 9nVmIv8AeqgK+vnvZrT9wK9nPxgcFm2dkoM5etVHldq0oKFZpo+QtN8GuqhwwEQcjs6t NZSw== X-Gm-Message-State: AOAM531Ypteb+DXl50cIoTZU88bFEp19hB5poYfQ9uPNoVmYuXonuDIu rjd1bfyhE087EuPTR8gEeZyOCg== X-Received: by 2002:ac2:5e90:: with SMTP id b16mr12790403lfq.122.1612874899716; Tue, 09 Feb 2021 04:48:19 -0800 (PST) Received: from eriador.lan ([94.25.229.138]) by smtp.gmail.com with ESMTPSA id e16sm1220653ljn.105.2021.02.09.04.48.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Feb 2021 04:48:19 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Doug Anderson Cc: linux-arm-msm@vger.kernel.org Subject: [PATCH v2 4/4] arm64: dts: qcom: qrb5165-rb5: switch into using GPIO for SPI0 CS Date: Tue, 9 Feb 2021 15:47:58 +0300 Message-Id: <20210209124758.990681-5-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210209124758.990681-1-dmitry.baryshkov@linaro.org> References: <20210209124758.990681-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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.30.0 diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index dd0ec0676258..4888ac47cc1d 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -815,7 +815,7 @@ &pm8150_rtc { status = "okay"; }; -&qup_spi0_cs { +&qup_spi0_cs_gpio { drive-strength = <6>; bias-disable; }; @@ -962,7 +962,8 @@ codec { /* CAN */ &spi0 { status = "okay"; - pinctrl-0 = <&qup_spi0_data_clk>, <&qup_spi0_cs>; + pinctrl-0 = <&qup_spi0_data_clk>, <&qup_spi0_cs_gpio>; + cs-gpios = <&tlmm 31 GPIO_ACTIVE_LOW>; can@0 { compatible = "microchip,mcp2518fd";