Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp815239rwb; Thu, 15 Dec 2022 02:51:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXshQLACfrAPrrE63PoUAsV3diXA8cUSagCLEe5A7GOOkCwtNZ9d8c3iY0YlR5ttnBPV6P04 X-Received: by 2002:aa7:d6da:0:b0:474:c69:9ada with SMTP id x26-20020aa7d6da000000b004740c699adamr1715923edr.24.1671101504833; Thu, 15 Dec 2022 02:51:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671101504; cv=none; d=google.com; s=arc-20160816; b=XCL53+5nVDqYCi2gloAepYQnnLTBstNwCTWp1zcApYaQDEnjtZ61hhtStDQbVmDQ+9 Y7yJWHezl5M/8o0qzRAi8L6paOG/TGyIZv/77nP8e+IHS4o45YkM77aI50QQVsWW8/rD zeLqAmSlq3ZEoiUmhFAW+UxBpyJ6RdarLoQHCToR9FVdymYRH6x/jPyg+3v1P9fL9cQA ExA7MQMquRbl1QGR19dkGYG7X+i/GWFANLQudw2Upfs4uCmuY1+oeDv8mjRmCbH+HMqv 8y/a0bn4dOUthXTb7Cp6OPt7aID1EKImiPxeuJBSGj4JO5m9n8fF9+cKbBOimzM31Xh4 ONJg== 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=fxHeoxWEeq2uWXh5bg+Js6MgPXnp0klhXiPaj2cG7g4=; b=rGY+51TBY8x4Fh4x/pTgmaTizav76e+OXkI6rahBMKBRxR9AWq5ORx0YY+P6H/vD9a Cc+FXvqUECltHaSfFWd3rMvgpWxzhE1CEf0Ac73rLI+O5NNEanrjCw2aAVBGa40GwFfB 5Nom4KMRl5bAsj1+EtfUjrWU+IJbZbg1RhDMPDEMBtLMTtkoA1AxuxZqZwzn9CFzFnVX dbhJKvqKpAQ0/FWL2rN6MaoQ7AHUOtrsb+6FfJ+FtS6wPpYJsZJf1mYboARl7ZRm8dgD pN7BP5A10vz5EvMSmRQKxaq3TwGPgzp3bSVYvEyRNafmEeB1xVafNBvOqP0vJV8MGOJe 1f1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=L4Z7LHOP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m5-20020a056402050500b0046885dfa380si13240361edv.247.2022.12.15.02.51.28; Thu, 15 Dec 2022 02:51:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=L4Z7LHOP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229979AbiLOKUM (ORCPT + 68 others); Thu, 15 Dec 2022 05:20:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbiLOKUJ (ORCPT ); Thu, 15 Dec 2022 05:20:09 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50A41273; Thu, 15 Dec 2022 02:20:08 -0800 (PST) Received: from xps.home (82-65-172-229.subs.proxad.net [82.65.172.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: aferraris) by madras.collabora.co.uk (Postfix) with ESMTPSA id 17D716602C5F; Thu, 15 Dec 2022 10:20:06 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1671099606; bh=WLY57/vsBcQcsEyV40fycSi6IdmeLYRjKEbqIxSuVAE=; h=From:To:Cc:Subject:Date:From; b=L4Z7LHOP1m/pl9kidybLzd95BeF3YuK9yATRCRR4ZcXNjaSFVYLRe181UFXJXFwFN lPWMylYVLsX3qzBscLwrhwGTB+wtWerzfx6cIiYsX4cE4HT+eIjBrQRPs6tqsUBZac T3PAIPwE1fuJEL1AZ+QWSJar6g4ed5Ynx+KOmYeHgyjVdwnp9KAso2VYTBTdg9m9JC qJfcCjPNj+UXyo2Fh0cRbYBZWsmarMFrYoNzsZuu/TPu19NXve+4WOGGb8DWGbm18G +yAuQMRM1LcwE1cWE0SQjzimBAMpwtE/h+OQ9ag5DyZ/ceWA6DrjVhSzqlemMcgzDx ImC/Ev/aZV72w== From: Arnaud Ferraris To: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Caleb Connolly , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kernel@collabora.com, Arnaud Ferraris Subject: [PATCH] arm64: dts: rockchip: fix input enable pinconf on rk3399 Date: Thu, 15 Dec 2022 11:19:47 +0100 Message-Id: <20221215101947.254896-1-arnaud.ferraris@collabora.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When the input enable pinconf was introduced, a default drive-strength value of 2 was set for the pull up/down configs. However, this parameter is unneeded when configuring the pin as input, and having a single hardcoded value here is actually harmful: GPIOs on the RK3399 have various same drive-strength capabilities depending on the bank and port they belong to. As an example, trying to configure the GPIO4_PD3 pin as an input with pull-up enabled fails with the following output: [ 10.706542] rockchip-pinctrl pinctrl: unsupported driver strength 2 [ 10.713661] rockchip-pinctrl pinctrl: pin_config_set op failed for pin 155 (acceptable drive-strength values for this pin being 3, 6, 9 and 12) Let's drop the drive-strength property from all input pinconfs in order to solve this issue. Fixes: ec48c3e82ca3 ("arm64: dts: rockchip: add an input enable pinconf to rk3399") Signed-off-by: Arnaud Ferraris --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 92c2207e686c..59858f2dc8b9 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -2221,13 +2221,11 @@ pcfg_input_enable: pcfg-input-enable { pcfg_input_pull_up: pcfg-input-pull-up { input-enable; bias-pull-up; - drive-strength = <2>; }; pcfg_input_pull_down: pcfg-input-pull-down { input-enable; bias-pull-down; - drive-strength = <2>; }; clock { -- 2.35.1