From patchwork Wed Feb 10 13:34: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: 380229 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp1165147jah; Wed, 10 Feb 2021 05:37:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLuW88UaKdG07hYuZ7a6k/L/OUHSo8lepxx3pxp0JVIlyLObU4h3PlYOu7eODQopaEEsBl X-Received: by 2002:aa7:d3c7:: with SMTP id o7mr3156032edr.23.1612964260287; Wed, 10 Feb 2021 05:37:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612964260; cv=none; d=google.com; s=arc-20160816; b=VH2aMXIVEbW28IkdsFFdzySPTd8N44dZSpUnrGV/hT5gtGdNJJPtsUzymsFfkjl1Kd duFaiv2gk+oIYjeRy7Fh90ILrqgvy1TeTz72+n/Kv1aBgkgTN2RYj7d48dSdMSGwC5AT uPKsmegBvty3MJE1QYFxzueVpe0eiOlQctsU3SBlGwW6EX4jvq3Pa0o4CqExJdR0mKly AmV3zA1Wn4CQw2+vpo8C1dQPbwAA4oa4iQbSy5S/9DCP2IlhNQlss34UHC8tjygF8Ue7 PljWN84pDpKj0OwlUuTVoYwF37plUtDjuP5/3k5sXkxuAXfAbPYHyCT0YMJb9Obm7ADB vR7g== 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=aK1zZXBJUAesiTcZ2DdzeHPqINgLI3zWwLdAC92qVXs=; b=x308JeM1cNZIzwbTnPeo1z9N0cwDYt3GoLb7picQ4NFCsEZjUKku/3bNv0USPnd5pA lKzro4be8mz0E3lLs5u0rX2bMb/kylBqPewnaF0Yu2+j1D7Nj/20jAqdW7bjY0CWoetR wOn615nvuOOgSzY2jel1ikU8wDApqWqfceG6L2K3P32POMSRIepBXyNNBEV9ryy9st// UpuTM97Zdyr6MC6lX7UMqvdP5UOVl3Q+8gyCi0ykUHduzNL71KCzoieZN0mUDWp2jLug f1dOt4TA9i40Rs4X+NtlKcNzP5lObjZ2EnVJNqw0LCCnROsg5vitsn/FSO3i9xIg9fGC hVPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KTF5zhmc; 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 n26si1274684ejg.362.2021.02.10.05.37.40; Wed, 10 Feb 2021 05:37:40 -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=KTF5zhmc; 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 S230229AbhBJNhi (ORCPT + 16 others); Wed, 10 Feb 2021 08:37:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229862AbhBJNhf (ORCPT ); Wed, 10 Feb 2021 08:37:35 -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 D18F2C061788 for ; Wed, 10 Feb 2021 05:36:49 -0800 (PST) Received: by mail-lj1-x22c.google.com with SMTP id f8so2866098ljk.3 for ; Wed, 10 Feb 2021 05:36:49 -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=aK1zZXBJUAesiTcZ2DdzeHPqINgLI3zWwLdAC92qVXs=; b=KTF5zhmcXC+u7osPF4gL6tC+difgIzOS6ivNlP0vnlzryyP6e9S/LX/cC2hMQrUAoS 4xCncqO7WvpMOITDojVvQJH5Q8j64lpszJxR1DENYvLK9Y8QPauziyHLe1/uJV8WyWdT 5kq68rMeBhs1KXmzzL3V4ouN46Vdynd9dCIe2m67S2MU04H68puWDQ5v4Dl/BvRNvAGB AxR5iBwZHeV7Zy0GzTi/cX++JXeMBGFuD8VFEaFA/IcqCWipob8qiLSuICDjz9t9TnIj mKctACrLG7xDigYNmkj1pRmxc2bjyrTXj0UcJf3C6qa3tg5X+uw+m1YQrsqj9xO8JQW1 YOmA== 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=aK1zZXBJUAesiTcZ2DdzeHPqINgLI3zWwLdAC92qVXs=; b=KKaC3ZYGzK97i5G0swzzbphR9hg5/JJuUaUFgxkpvKsIPxd4iDV+QYQgp0l6pgTgM4 zElVFlGMlRPc7jgp5/BsHgIeUk2S6uUj269zdCKidnX5H/U9Cp5buu6qFEfdPIHpJp/z wgjTELe9M/6PurHwBlu+yC+9bPjmbim0kEgKI0NAaVbhbMzoamE+HpSs5qZE2lpw5AR7 BY2KNQXRPuQOgK5hMNgYIumsT8jX4SRf0+EoCa+qX+PRaXc59ux6Zp7nYDwYcDY9U0QN bjoDAcZoMkrUAirlXNu1mH0Q9WqE+fHJQ2x1nq3W4O7e4ThYMDSxCdnPsF2BeHALUzCI 1xaQ== X-Gm-Message-State: AOAM532vmaXNltcbKEiAVRYg5obw84JUQ+I8W1xXJDlScDJ/4XrKqMvi C6m/gdtRRN3bmveA4fSgqW6/bWgj8jr+no96 X-Received: by 2002:a2e:ba18:: with SMTP id p24mr1910103lja.488.1612964208422; Wed, 10 Feb 2021 05:36:48 -0800 (PST) Received: from eriador.lan ([94.25.229.138]) by smtp.gmail.com with ESMTPSA id c8sm332629lfb.168.2021.02.10.05.36.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Feb 2021 05:36:47 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Doug Anderson Cc: linux-arm-msm@vger.kernel.org Subject: [PATCH v4 4/4] arm64: dts: qcom: qrb5165-rb5: switch into using GPIO for SPI0 CS Date: Wed, 10 Feb 2021 16:34:58 +0300 Message-Id: <20210210133458.1201066-5-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210210133458.1201066-1-dmitry.baryshkov@linaro.org> References: <20210210133458.1201066-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On the GENI SPI controller is is not very efficient if the chip select line is controlled by the QUP itself (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 Reviewed-by: Douglas Anderson --- 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 638231f48388..f18c703d024a 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -953,7 +953,8 @@ codec { &spi0 { status = "okay"; pinctrl-names = "default"; - 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"; @@ -1356,7 +1357,7 @@ &vamacro { }; /* PINCTRL - additions to nodes defined in sm8250.dtsi */ -&qup_spi0_cs { +&qup_spi0_cs_gpio { drive-strength = <6>; bias-disable; };