Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2885025rwb; Mon, 15 Aug 2022 13:17:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR6D1Yekh6+IBvNw5XQXd/XgMdPDixnbCQHQKc4WjVaAmZyNXwaKrHud4lxKPaE+nO0x+oY0 X-Received: by 2002:a17:90b:3b4f:b0:1f5:82c1:4f46 with SMTP id ot15-20020a17090b3b4f00b001f582c14f46mr30476674pjb.71.1660594655769; Mon, 15 Aug 2022 13:17:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660594655; cv=none; d=google.com; s=arc-20160816; b=rlOBOLQbP0SwFfun/EfT78nYc8W5aOG60xjYYgDX2uhKzXoyOmTTlfMgnGg15xo6iZ LsIcZm5YQm/3ucrcsM0SlKN0vpZJests+4RjpikjcoNcVPHSqwSdLeMMY13gDcFbvODu q08qKlaB64BAgSfXVXtJ6UkvBMM1ac4M1C0kewhbg1MIWZQNFNCHt6okRlBqL1W7kvvo HfTBZrxpiBqOLNT9+Jfdk3UcJGjPFEf+N+HqkT4Nm4gI64qK0FBVrIk5Jx+l6340j2gC 5voLGdH2PgAxwErejp9EoVWP0C4jEoL2IxppJZgBBYu2FOdSf/tVtCua3FfeK9sclXE2 Kv4w== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5BXawLj8E3zJwlBPMoUt4RvvHIhP84zXe3DVW7oHITQ=; b=DGu+tm0sD2GKYdocba/EXuoldFv0rVkJL01Fg70EOcYXfgkmA76MZDdxvidNHND4ca UjKvwYbnnYCSF/fjyCPKwuG9+jg3QNyaUiBmJseeaTXtPHiyJbOFLO0VhvLbICAfnM82 D5UBIlAZEPZc1yeCoUTwbgjThrTySYqHyfXsyZZwlTjfIBMUG//fHN77AhmVz8KcC1Sk IVhy6mGckcP8DMfAXTG1ODtgnte6Nott7gzIxVtZSpa9MrVcpymZsWI9c/NmmUwwrXjH NXOHDL//a6eDosyRDBndlwM4Q7zzrXBzrlsH5PMzaX4mrcdESKgjfb+DpFNDsOx7CuzQ T+rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nmcgc8fb; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k10-20020a056a00134a00b0052b29ffa4c9si12361740pfu.347.2022.08.15.13.17.21; Mon, 15 Aug 2022 13:17:35 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=nmcgc8fb; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243532AbiHOSiX (ORCPT + 99 others); Mon, 15 Aug 2022 14:38:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243775AbiHOShJ (ORCPT ); Mon, 15 Aug 2022 14:37:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE2622DAAC; Mon, 15 Aug 2022 11:23:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2BC16606A1; Mon, 15 Aug 2022 18:23:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B32BC433D6; Mon, 15 Aug 2022 18:23:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660587798; bh=n9VQORGWzPhc/kcOX70pgDknOoffLZq6lASHL1R9My4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nmcgc8fbYghOrUEei5nogD4aMqmPis1IxlyEzBdwm4iqN+AjRm7qsgpz5Gv5r/nhV 7dnTfZmmlqtQfn7OEzLCge4i/+Atd/7amvAlwJ27+8CRMGKishlO287c6SAOwDE1z/ L/BqwFYxU3Ovhkf269jSgqn2MXaqyCJYOePGT3Jg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marijn Suijten , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.15 199/779] arm64: dts: qcom: sm6125: Move sdc2 pinctrl from seine-pdx201 to sm6125 Date: Mon, 15 Aug 2022 19:57:23 +0200 Message-Id: <20220815180345.778148429@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Marijn Suijten [ Upstream commit 6990640a93ba4e76dd62ca3ea1082a7354db09d7 ] Both the sdc2-on and sdc2-off pinctrl nodes are used by the sdhci@4784000 node in sm6125.dtsi. Surprisingly sdc2-off is defined in sm6125, yet its sdc2-on counterpart is only defined in board-specific DT for the Sony Seine PDX201 board/device resulting in an "undefined label &sdc2_state_on" error if sm6125.dtsi were included elsewhere. This sm6125 base dtsi should not rely on externally defined labels; the properties referencing it should then also be written externally. Since the sdc2-on pin configuration is board-independent just like sdc2-off, move it from seine-pdx201.dts into sm6125.dtsi. The SDCard-detect pin (gpio98) is however board-specific, and remains as an overwrite in seine-pdx201.dts for both the on and off state. As a drive-by cleanup, reorder bias- and drive-strength properties. Fixes: cff4bbaf2a2d ("arm64: dts: qcom: Add support for SM6125") Fixes: 82e1783890b7 ("arm64: dts: qcom: sm6125: Add support for Sony Xperia 10II") Signed-off-by: Marijn Suijten Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20220508100336.127176-1-marijn.suijten@somainline.org Signed-off-by: Sasha Levin --- .../qcom/sm6125-sony-xperia-seine-pdx201.dts | 34 +++++-------------- arch/arm64/boot/dts/qcom/sm6125.dtsi | 24 +++++++++++-- 2 files changed, 30 insertions(+), 28 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts b/arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts index 58b6b2742d3f..d4f0a15b763d 100644 --- a/arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts +++ b/arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts @@ -91,8 +91,16 @@ &hsusb_phy1 { &sdc2_state_off { sd-cd { pins = "gpio98"; + drive-strength = <2>; bias-disable; + }; +}; + +&sdc2_state_on { + sd-cd { + pins = "gpio98"; drive-strength = <2>; + bias-pull-up; }; }; @@ -102,32 +110,6 @@ &sdhc_1 { &tlmm { gpio-reserved-ranges = <22 2>, <28 6>; - - sdc2_state_on: sdc2-on { - clk { - pins = "sdc2_clk"; - bias-disable; - drive-strength = <16>; - }; - - cmd { - pins = "sdc2_cmd"; - bias-pull-up; - drive-strength = <10>; - }; - - data { - pins = "sdc2_data"; - bias-pull-up; - drive-strength = <10>; - }; - - sd-cd { - pins = "gpio98"; - bias-pull-up; - drive-strength = <2>; - }; - }; }; &usb3 { diff --git a/arch/arm64/boot/dts/qcom/sm6125.dtsi b/arch/arm64/boot/dts/qcom/sm6125.dtsi index 9f476e3d0720..cc16c05a2856 100644 --- a/arch/arm64/boot/dts/qcom/sm6125.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6125.dtsi @@ -339,20 +339,40 @@ tlmm: pinctrl@500000 { sdc2_state_off: sdc2-off { clk { pins = "sdc2_clk"; - bias-disable; drive-strength = <2>; + bias-disable; }; cmd { pins = "sdc2_cmd"; + drive-strength = <2>; bias-pull-up; + }; + + data { + pins = "sdc2_data"; drive-strength = <2>; + bias-pull-up; + }; + }; + + sdc2_state_on: sdc2-on { + clk { + pins = "sdc2_clk"; + drive-strength = <16>; + bias-disable; + }; + + cmd { + pins = "sdc2_cmd"; + drive-strength = <10>; + bias-pull-up; }; data { pins = "sdc2_data"; + drive-strength = <10>; bias-pull-up; - drive-strength = <2>; }; }; }; -- 2.35.1