From patchwork Wed Oct 26 20:03:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11429 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp462071wru; Wed, 26 Oct 2022 13:07:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4y0eJ6ykKlZ58ZK3uLVrNq3bX/9JVGvxLF9f9feKWg42v5ofBJtzGd99AyE0v4sVr/ka/a X-Received: by 2002:a17:906:9745:b0:78d:480f:cee7 with SMTP id o5-20020a170906974500b0078d480fcee7mr38860872ejy.192.1666814861196; Wed, 26 Oct 2022 13:07:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666814861; cv=none; d=google.com; s=arc-20160816; b=CiCUGGWeFIoB+ZEP01mLzznzG4cA2KozWlZePd7GxIGTsx+zp6QWQz0RAxcIg9tkZm STqfP2tO4/V/3PVNqM49XxPp0ia7Z3f9emEhX4TUb9JZBb9jCybOGh/mx8yvt6iyKv6D WE/2AYKzLUy8zL2Q16ZPXEbCUj1KslK1iMUqXzhync144Qlxnj13gQYpHqFwG86y4h27 Sdxg9iq8LUCX4Sx/UFKgNHTJTyUeYKq/O597elRoG4WRrYHQbJIegX4tNQh8tJUfFPWY rKaEnX2ZHrnNMHhGuBow2ysPxQBwfy+V+TFd58QPd0qr1cYYlZaJh9JUx7k3JiEMXISW IqIg== 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=FCMOew4GYhYa9VutNSyEqOxm0n7KKviZV3m1tbrXNe8=; b=ZCgbq30lWvdDBP7bCBNxYjXUPJ9eaS7pAjBQhH1Hc4Sn44D3ns+IUs5TAiv4QYnTuO AFGkxpgsAjVW+058AVH/NFWdZh5wm2mGRYn7W55T68DgD9cMB2+RuqgDm1P21z+GElDn S85A/QuUL9mqn7X1TXAFkSu2fPua96FNayzW7DYIKXSTZlTUHUUwrBSayIDo5bLD/7im cLbywPciITsPUI4anvo8ams2k0bH6omBmOs4Ycgdy25Ac1KCJ3OvmHdliwDyQKeeA/nG FGaE9KBSfSW4gYe1M+YzRmifCAM+tnhvjrN6K3oQUjBB1w5kuEtpDCPXJkhS6i2+bduI vocw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sTTWAIo5; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb15-20020a1709071c8f00b0078cffd3ce3esi6614120ejc.654.2022.10.26.13.07.16; Wed, 26 Oct 2022 13:07:41 -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=@linaro.org header.s=google header.b=sTTWAIo5; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234740AbiJZUEI (ORCPT + 99 others); Wed, 26 Oct 2022 16:04:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233614AbiJZUEF (ORCPT ); Wed, 26 Oct 2022 16:04:05 -0400 Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EA6D10B7BD for ; Wed, 26 Oct 2022 13:04:04 -0700 (PDT) Received: by mail-qk1-x736.google.com with SMTP id l9so8988719qkk.11 for ; Wed, 26 Oct 2022 13:04:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=FCMOew4GYhYa9VutNSyEqOxm0n7KKviZV3m1tbrXNe8=; b=sTTWAIo5k27JetB031FERfXCHBmgKPyJ72n2o8UpQU7LPPUKLhGV/CDya5o/7qVF1q uOqEOdGauhJkk9EAWfkObzamE1fBwkEZ4wJLVDNagbXvR6JivctG6utnuSdEvbzDW3AB zW/kLgrUcuHCMiczttSb93NiRVPpXwBweiOq8DN+AZmFjpVoBhwVZ+zGiI2LTfE0hqG0 XzQKPjTLJtg2L99KsgK9xZDOOgDGsSVXxBhFqB+sfbOBJFkBZ51g6UidteeNMBK/VMDh dlElAojwU9/5R+8NwyACsGYei27bywaB2tavQdvwraMhkBaOUVMcbM1ryfp3Wfq8SNlk bXPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FCMOew4GYhYa9VutNSyEqOxm0n7KKviZV3m1tbrXNe8=; b=4TYpXUZy6xFatYGo6dcEhkm86+MqrZVeXteF1lENSdU4evkj1QQ0MCQHIhZjK/BKmg NvSZEa1cljVMKkjcYneztLx02Sxgror4l+9SM1dCONn3m07sFJvm3AZ6IO+o8/ep6w6g MaAmyk0QTzbWjfkfyyEQF6sK0xejxATOmLLsxffavs4e5XALGmhic5YLlNPsHAdokDpa zniiAeLgSA38SyZ1RW3ynL9rX8PVs9IYsUkvj0yYaA4ao64ufAkWWV0zGGF4XaW0JKPD FxzvofCkPLECsj09uMAfsgNWtTUodJULNnhREpAP1B8Hvb7jX+kI23s+eO0Jr1KBFbzY epmA== X-Gm-Message-State: ACrzQf3GsVenk5e/SUhBkjzcwB3bhMSutENhVvfUdO1JG7b458pXDAFT tM1HezlhdV9xee8yzXr6OHqUHA== X-Received: by 2002:a05:620a:4487:b0:6ee:bcfd:bd38 with SMTP id x7-20020a05620a448700b006eebcfdbd38mr31661442qkp.468.1666814643576; Wed, 26 Oct 2022 13:04:03 -0700 (PDT) Received: from krzk-bin.. ([64.57.193.93]) by smtp.gmail.com with ESMTPSA id de30-20020a05620a371e00b006e99290e83fsm2942089qkb.107.2022.10.26.13.04.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 13:04:02 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Dmitry Baryshkov Subject: [PATCH 1/4] arm64: dts: qcom: sm8450: move SDHCI pin configuration to DTSI Date: Wed, 26 Oct 2022 16:03:54 -0400 Message-Id: <20221026200357.391635-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221026200357.391635-1-krzysztof.kozlowski@linaro.org> References: <20221026200357.391635-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747782059527589313?= X-GMAIL-MSGID: =?utf-8?q?1747782059527589313?= The SDHCI pin configuration/mux nodes are actually common to all upstreamed boards, so define them in SoC DTSI to reduce code duplication. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- In theory drive strength belongs to the board DTS, not SoC DTSI, but I am following the advice here: https://lore.kernel.org/lkml/CAD=FV=VUL4GmjaibAMhKNdpEso_Hg_R=XeMaqah1LSj_9-Ce4Q@mail.gmail.com/ --- .../qcom/sm8450-sony-xperia-nagara-pdx223.dts | 20 ------------------- arch/arm64/boot/dts/qcom/sm8450.dtsi | 20 +++++++++++++++++++ 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx223.dts b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx223.dts index 82918c2d956f..718c690af8ad 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx223.dts +++ b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx223.dts @@ -572,26 +572,6 @@ &spi10 { &tlmm { gpio-reserved-ranges = <28 4>; - sdc2_default_state: sdc2-default-state { - clk-pins { - pins = "sdc2_clk"; - drive-strength = <16>; - bias-disable; - }; - - cmd-pins { - pins = "sdc2_cmd"; - drive-strength = <16>; - bias-pull-up; - }; - - data-pins { - pins = "sdc2_data"; - drive-strength = <16>; - bias-pull-up; - }; - }; - ts_int_default: ts-int-default-state { pins = "gpio23"; function = "gpio"; diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index 1d1775334575..1df5c964c6f7 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -2515,6 +2515,26 @@ tlmm: pinctrl@f100000 { gpio-ranges = <&tlmm 0 0 211>; wakeup-parent = <&pdc>; + sdc2_default_state: sdc2-default-state { + clk-pins { + pins = "sdc2_clk"; + drive-strength = <16>; + bias-disable; + }; + + cmd-pins { + pins = "sdc2_cmd"; + drive-strength = <16>; + bias-pull-up; + }; + + data-pins { + pins = "sdc2_data"; + drive-strength = <16>; + bias-pull-up; + }; + }; + sdc2_sleep_state: sdc2-sleep-state { clk-pins { pins = "sdc2_clk";