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"; From patchwork Wed Oct 26 20:03:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11427 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp461975wru; Wed, 26 Oct 2022 13:07:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5SX2Z2P8P4pds6o6rPmxIhi2yn1Tg9BBRMmixj0LX/P+bxYnkU4F8Cw3HmTdiFjffqouNx X-Received: by 2002:a17:907:25c7:b0:77b:c193:9230 with SMTP id ae7-20020a17090725c700b0077bc1939230mr38398479ejc.316.1666814846311; Wed, 26 Oct 2022 13:07:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666814846; cv=none; d=google.com; s=arc-20160816; b=PPLf+557uhHP2VHXeN4yf5zUvLhRcVg4QeHIlW3cZbj13duwjXfwdgcCm4YH87HbkD 4QSzCk0rkM3gB+D0lyLKjVPqi9+0yDaRQPyuo8bsgGVpwr8Dv+FLJgLLoOhWTBd4D5Ix o7nBPoooeepkhC+eL8C+uJlULiKIRl/B78jE4DozbT6pooM6m2jqrYdUNMnX9dgkYJDB yGkNRjjiFP8O6I0WKmvVLmD1R2QX4ZY72ITGEwt1AMgqKiHk0hP4EvdKk3UQr+a587xd 9uS9dbKZBXwqTvr6jt5RXTq4P6Li/LC2+Ww5Y8/0cflhDG/WRcWKpxqIwEylFGrjk0nR L8pg== 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=Pco6XP3zzlzKkHJ/8k4uES/pSob9fk0mMY+1kXvS6TY=; b=bwsIe2IUcxvbyXsodhamwDrkux8Hb7Hr1DvFHktWcLFkzHLoJMvWqflFZDUHHOQHOV GVCKY6+3IyH4QU2WQgFL4Jt9TAsgmL/P0rKeOrB6BJ7+Z2ZEKB12zOL+hGNf0m99/oBF gtlue7eVIVEb5wijls9XVh/DfNof4AlmkQZgQgEvKGnGhCPcuYOk5e4MRaU9tKgEpY+N D5V+d39f+hjl0J4XjkbQ9HCOS1pzi5BuiEy7o9lSXF8F4mT+b1FVcPKdV7UA/2X6v14c EXL7YOyysu7tKzUrgGd+lAbIvF6Sd+kp0x22ilQ7rX37bzO1lLe9tHuEpMXnI2uDPTb+ imjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JwHHwyws; 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 hs1-20020a1709073e8100b007ad855bc09csi1397178ejc.595.2022.10.26.13.07.01; Wed, 26 Oct 2022 13:07:26 -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=JwHHwyws; 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 S234861AbiJZUEh (ORCPT + 99 others); Wed, 26 Oct 2022 16:04:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234821AbiJZUER (ORCPT ); Wed, 26 Oct 2022 16:04:17 -0400 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1610B110B10 for ; Wed, 26 Oct 2022 13:04:15 -0700 (PDT) Received: by mail-qk1-x72a.google.com with SMTP id s17so11503710qkj.12 for ; Wed, 26 Oct 2022 13:04:15 -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=Pco6XP3zzlzKkHJ/8k4uES/pSob9fk0mMY+1kXvS6TY=; b=JwHHwywsMb9iQbsPockEFVNMIDxExD2U8RnZfFgB5sQQbVmOePQhpU9USsB3t6B4/G zkJ3CUAaXNGbx7oJwoAUfWQV7Un5b1XTA3KE6NIZKMy31msSxtkbl/Oz2hbvWn6DSPhg OKS8lKgs2mmDQydn+5wXf+POR5Xxmt7cRj9uhLrvE5RZ8BDRn/eB4VnauOM1i+XixRWS flCvJGUQAQTvC6QWgTxiQ4gBzNzqKTyN74UeL+tpHpOUb5NRuhTPg/vPh/8rpPEGY0Ha TKnai6UGH+K8DOJE2r7vPETcoOjka7kmBg6S5PlWlOAlC5/x8JoaDg3VTYS5mDtywi2I AVuA== 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=Pco6XP3zzlzKkHJ/8k4uES/pSob9fk0mMY+1kXvS6TY=; b=dFbxmsCQo7IdBGsr+PQy+7aNWumg2mDoeLBXtNZy0+IAWiPvbkEc9DHT6vapCWbD8S 6l/ajQ8OwCGELMLbnRYZ/F+vA2wQ6bjfVXLP9AjkBE1pnj5W5m1+QgTT+Fh7m8SjIVVG oqP/ZmVGJUJfSlB63hvW0tZyiOI4xWTsRQUmEKXvLBtYVpi2jrXO0tD9ufGsL19FBTx0 nlMs3TlhLm/MUfQz0d/dKxWk3WFFmYZnn3Pr+EOpZEnEcUWMfgEugWW88yigkLS0wAEN VIivqBC0ahi7oJmoR4Q7uxXXMgc32EhX1fSsMadB/+oo2QfxBQqDlJH3nNFry9avsfbk 9IAQ== X-Gm-Message-State: ACrzQf2ifB9KDkD8q3XrIMM4N3m0Nt0MZE2rzW+5cmgfn050QbQMOJ86 fswNnXukfMg+neiUrvJlhcAj4WYU7c6CNg== X-Received: by 2002:a05:620a:13b6:b0:6ee:cf79:bfa1 with SMTP id m22-20020a05620a13b600b006eecf79bfa1mr32285840qki.15.1666814645256; Wed, 26 Oct 2022 13:04:05 -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.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 13:04:04 -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 2/4] arm64: dts: qcom: sm8450: disable SDHCI SDR104/SDR50 on all boards Date: Wed, 26 Oct 2022 16:03:55 -0400 Message-Id: <20221026200357.391635-3-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=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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747782044280490439?= X-GMAIL-MSGID: =?utf-8?q?1747782044280490439?= SDHCI on SM8450 HDK also has problems with SDR104/SDR50: mmc0: card never left busy state mmc0: error -110 whilst initialising SD card so I think it is safe to assume this issue affects all SM8450 boards. Move the quirk disallowing these modes to the SoC DTSI, to spare people working on other boards the misery of debugging this issue. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx223.dts | 2 -- arch/arm64/boot/dts/qcom/sm8450.dtsi | 3 +++ 2 files changed, 3 insertions(+), 2 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 718c690af8ad..ae8ba297b0b6 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 @@ -556,8 +556,6 @@ &sdhc_2 { pinctrl-1 = <&sdc2_sleep_state &sdc2_card_det_n>; vmmc-supply = <&pm8350c_l9>; vqmmc-supply = <&pm8350c_l6>; - /* Forbid SDR104/SDR50 - broken hw! */ - sdhci-caps-mask = <0x3 0x0>; no-sdio; no-mmc; status = "okay"; diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index 1df5c964c6f7..6800e05a549d 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -3412,6 +3412,9 @@ sdhc_2: sdhci@8804000 { bus-width = <4>; dma-coherent; + /* Forbid SDR104/SDR50 - broken hw! */ + sdhci-caps-mask = <0x3 0x0>; + status = "disabled"; sdhc2_opp_table: opp-table { From patchwork Wed Oct 26 20:03:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11432 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp462529wru; Wed, 26 Oct 2022 13:08:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5am5nEwfgT+DIpd/JCyEN9BnizeeVlrb8G2vGE9qenTOnUTYMb5xLUvRjKv8VSVXLDDBbF X-Received: by 2002:a05:6a00:1da6:b0:56c:318a:f8ab with SMTP id z38-20020a056a001da600b0056c318af8abmr8623353pfw.82.1666814930437; Wed, 26 Oct 2022 13:08:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666814930; cv=none; d=google.com; s=arc-20160816; b=RtzVYBdVGdGX5JqQtFXGsUKEEp+tLX5SuOJBs11Imx0Z0XcRo+s+b3E4993n9uDln6 ZPChiKaxn4sU65py8dD8XTAw1URoFqaYvLZU1zeCkpWbObmpx0F2tK9l9ReaNJOCwfJr z1RatfHI4jDkOBsvr1Q98/cwjrp+2x/9RVIRInKbD329lj5RGVbF2QZORYCaaAJsKnZK XEFlF7EXM3PyMciqXSEEkJSTmeO/zpKTTDOog7+qf2nMmpl6tU/5yff5BPhZYX1fJiD7 NxyU3HqkbnACayoC4jb1rtz/bHrDvoq7wtGhfH2WDWboeoAqKIhAM4Qhxkocg2k1/1Cn gZwg== 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=6I69Zy+eBkLEpLnPbCVtCr+lW3hmKUksCslyxamftAo=; b=EFQsF13BJhpR1bv3eamULoNEMwkslHaaqlzNwnbZeV0xRIc4OPeIxUMwRr1qxQp99R 9OSJDHoohSUTSi0LtaJzV8RE2tXozzvTOvBvL2ut2HA2grNoLNJyzcXqywUhAzd1ccez /cMYGzZ/h9TvnrVZMxczCPJW+0Pyj54rjjjidKwKu4kStTE7aO8hnY7oDjiYkRI/Mdqg Z/BTvdXpW+bIYqltRksxms8BWpV2dRwx6cf4O1IhFU3tErWiZI4Nuwte7+nh0JyaWxgQ Gi+MH9cgMaIarplyDnzOFp/RkN7zRDejPJYLD3d5p97ReFQ8hBd4rHxMOTQC67EaKfZ6 I7Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g1+d1Kw0; 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 j9-20020a170903024900b001869394a38dsi8323266plh.503.2022.10.26.13.08.36; Wed, 26 Oct 2022 13:08:50 -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=g1+d1Kw0; 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 S234775AbiJZUEP (ORCPT + 99 others); Wed, 26 Oct 2022 16:04:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234729AbiJZUEI (ORCPT ); Wed, 26 Oct 2022 16:04:08 -0400 Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F525EE08A for ; Wed, 26 Oct 2022 13:04:07 -0700 (PDT) Received: by mail-qv1-xf2d.google.com with SMTP id j6so8123942qvn.12 for ; Wed, 26 Oct 2022 13:04:07 -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=6I69Zy+eBkLEpLnPbCVtCr+lW3hmKUksCslyxamftAo=; b=g1+d1Kw0pvIFhB+RjVtdnJXxuNZVtmjd4lpFq0YQkzmXp9NSoHt6sgqNHf8KFBAc4I /+sDTgDP40Uyr76x6FgGrFQSQ6ebbaEvKhivMaqLvVyPpOvLA0HvUa51b595dE3YRLqa UGuQz2L5AYWzIQXIy0KgfiERC0C2b5RuV2/4lsce2QkWS/qflExs3KTiWFqBIh4Yg8Kp 54ra0AwK51pYRWHg/kSpKbUSlm/w5wRICMfSZoA3gyaRrHKHHhzrYjL3IXdqGR2vvGLB /4IYLFxDqBbkSwv7AHwsvL4e3l0piWrCjJFgg0KGf+E3QC5OspsSZlWCGIpvLkueyzd8 j5Ag== 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=6I69Zy+eBkLEpLnPbCVtCr+lW3hmKUksCslyxamftAo=; b=2ABfMihKTyd5ycqhu3cdBMNpNXnnFf+SDsrmpPzv/WkyCgn10pn7av0Tn1Qj9zzCyp XmNd7RkkriAl2D0O3psJgyk+PVEaIo4rDf02QfhW1vSgGpOhBzqgT/9JFr8r5vhXqPjP s/u/eJY08EvNSEjQPHNBw9CFXEROh5NhBLuWveTHOHhkaIMFVFw4eiXa4EvFRI6T800x cVtTR7ebmhPwoe9/u/roxHJUAeJHKvPPQMW+weq675h8FzdFNWWS8puOVWnljoJEJi1e CPsxrhFvAic3YAtiFlz+YE6qn6+GMK2FgBB/AsEWPN5osodorUFYIo+y3Bhdzde0F37a YNtw== X-Gm-Message-State: ACrzQf2LqRw8uSY8TJ/tRODelzc3Rxyz1uCZLaSXDePZyjEv4zMFgLGe vF49Qq4Z58hUiTU9GN935DAByg== X-Received: by 2002:a05:6214:2346:b0:496:ba45:bdb0 with SMTP id hu6-20020a056214234600b00496ba45bdb0mr39010792qvb.47.1666814646760; Wed, 26 Oct 2022 13:04:06 -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.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 13:04:06 -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 3/4] arm64: dts: qcom: sm8450-hdk: add SDHCI for microSD Date: Wed, 26 Oct 2022 16:03:56 -0400 Message-Id: <20221026200357.391635-4-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=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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747782132182570593?= X-GMAIL-MSGID: =?utf-8?q?1747782132182570593?= The HDK8450 has microSD card slot. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts index 3ccbdd2ed734..f4a5f1a8e573 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts @@ -426,6 +426,18 @@ &remoteproc_slpi { firmware-name = "qcom/sm8450/slpi.mbn"; }; +&sdhc_2 { + cd-gpios = <&tlmm 92 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_default_state &sdc2_card_det_n>; + pinctrl-1 = <&sdc2_sleep_state &sdc2_card_det_n>; + vmmc-supply = <&vreg_l9c_2p96>; + vqmmc-supply = <&vreg_l6c_1p8>; + no-sdio; + no-mmc; + status = "okay"; +}; + &tlmm { gpio-reserved-ranges = <28 4>, <36 4>; @@ -461,6 +473,13 @@ pinconf { bias-pull-down; }; }; + + sdc2_card_det_n: sd-card-det-n-state { + pins = "gpio92"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; }; &uart7 { From patchwork Wed Oct 26 20:03:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11426 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp461953wru; Wed, 26 Oct 2022 13:07:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM739P0WW0UWm5LwG0vufpZxTV13br4OYiU4hYk4lRw9CTDeBsc3CVF2lorQI54ZAZsJEJ5X X-Received: by 2002:a17:907:2e0b:b0:7a5:fc2e:dc7 with SMTP id ig11-20020a1709072e0b00b007a5fc2e0dc7mr16784791ejc.257.1666814842653; Wed, 26 Oct 2022 13:07:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666814842; cv=none; d=google.com; s=arc-20160816; b=cDrQSVQUX65ymPMZRMGF+t34/SV+h61tJnuhiPbNuDDST6aS6x3Z3Tf9M0nw7t/p1x DxtA6yl8G5R/52xmnushdcNVbpct/diBPHyx0bb943M1KP5MLHjC4XDJEItBC/mfhFBZ MjT5Os+0t9wpLk+RpolynmxvJ1vJZILMyhApRewF1tngpEpZr9+DKPVGm0K/MZ8j+9Fo kOCilwFMgUxSzYRg0WmXjYAbAUvcvcRmKpRdZEwNqWmDlKCdheVVb0BKIs9Vbre/gLyg kRCjj+tzmTvsxIipALuVoH/sjX5S7PwcqcG2zsm7nfpSdwxj0JYpNCQqKUMGZljYAjRp rVtw== 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=M6v/CsZRDA1d2R0cAzGnQgTWkDS1APIaz3UwNgmbIWw=; b=WNZgnE5yLz/+mfp93djJbpsS+Tvpt/sXsX6MJ7SHicaVvNe3wiIclZq/JYsBFnn0iB i/mstynmE61slOpsKHBYhL17TMutmBqvYihGgRAEtSciECJrsXwfOkMPi7tuPyBAQWLG o9L/fM784xCF5eVqKx+HDB4IPol4JO84y76KovdWCbyhmzwFqC2MXj1UGpU6HLCFoNOo DPi0ct8Eop85r7KJrqGkV01W9fJfzl8OshPFLstYhxx1QGUugZ/8xo8+F0GNtSZFUZsG zBvH+KXqPOJW2arIyO2hSLVI46mkhpM78frym4Yy9hoP82UEMPZYzJn+dUOtoc87xed4 3ueA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gnhQwLYx; 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 e14-20020a056402190e00b00458d5d907c6si7923739edz.514.2022.10.26.13.06.57; Wed, 26 Oct 2022 13:07:22 -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=gnhQwLYx; 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 S234730AbiJZUES (ORCPT + 99 others); Wed, 26 Oct 2022 16:04:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234776AbiJZUEN (ORCPT ); Wed, 26 Oct 2022 16:04:13 -0400 Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F96910EA00 for ; Wed, 26 Oct 2022 13:04:09 -0700 (PDT) Received: by mail-qk1-x72c.google.com with SMTP id 8so11542382qka.1 for ; Wed, 26 Oct 2022 13:04:09 -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=M6v/CsZRDA1d2R0cAzGnQgTWkDS1APIaz3UwNgmbIWw=; b=gnhQwLYxwtx7Xdco+gT2KU/NHypeROjgqFu7jLuzg3eNmN6gkbJH07jY4v4xM3+8PC Tf4kXZM5pdqNRqw16IqsZopmK+w+ZEtsEN7fJNK1GcHEJcLk4Pq5bop+y8e94cEqX+EC lmzTeisbs1/ftmTxTtRTnSYIq0inrO5MmZuK8quifr20GWeLExyp3Fv3rVjdtonzciDB gwEoQh/jH8q9YXhv0rRUG6OySYN/DVpSk0RlqbKH6ixeQlKISI/8FlHgPvdbygWJEx1a DsyzuMbUp5k6DXBSNSI943IAqxAt0uL6VmCZlncMmHg/NUt6j1E8wGJ5UrvEWBldLg9P 8Pfg== 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=M6v/CsZRDA1d2R0cAzGnQgTWkDS1APIaz3UwNgmbIWw=; b=6ARaoRKnU1j2bsgkTBCBxg9bprevyzja13rjWN1HNIdrvm2Pk9Wp2o2sdTACqe89fC L64N3EueulNpBORImv55/+M01pNsJ25xNrnojTGV4NBTyXuYQ0/qYFbkepMGkef2lFGZ XlyjVzsLUZnYUy+lM4S6GCz6Ny3slju/yejhbPV0ZXwRwEY8OUkappNrA1y3JuNHZu5F B4qp00aF0i5DUWaR+bB3KEtapGUFLvldCocEZyvcDVBcJq4TxSZB5qqT+lqt/bVSuJOy cE4n1H1qZOqccUriCNrAp0YC56q1ko1LXuDKliAYmPUqGkIyk4Q1/C/r++vGxik6pFiq cLcQ== X-Gm-Message-State: ACrzQf2QmFaB0WefUpI7v1HvCNKmurgeJFngUX8zA5Gk/LtIRcqhIWdO EvlghQjV4OeyJ+5jWoA+C6WuhoXhQTjAGg== X-Received: by 2002:a05:620a:240f:b0:6ec:ffd0:22a4 with SMTP id d15-20020a05620a240f00b006ecffd022a4mr32322478qkn.523.1666814648390; Wed, 26 Oct 2022 13:04:08 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 13:04:07 -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 4/4] arm64: dts: qcom: sm8450-qrd: add SDHCI for microSD Date: Wed, 26 Oct 2022 16:03:57 -0400 Message-Id: <20221026200357.391635-5-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?1747782040406792508?= X-GMAIL-MSGID: =?utf-8?q?1747782040406792508?= Based on downstream DTS, it seems that SM8450 QRD has microSD card slot. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- Not tested. --- arch/arm64/boot/dts/qcom/sm8450-qrd.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450-qrd.dts b/arch/arm64/boot/dts/qcom/sm8450-qrd.dts index 017bc48430ba..c9a08608ccf4 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-qrd.dts +++ b/arch/arm64/boot/dts/qcom/sm8450-qrd.dts @@ -427,6 +427,18 @@ &remoteproc_slpi { firmware-name = "qcom/sm8450/slpi.mbn"; }; +&sdhc_2 { + cd-gpios = <&tlmm 92 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_default_state &sdc2_card_det_n>; + pinctrl-1 = <&sdc2_sleep_state &sdc2_card_det_n>; + vmmc-supply = <&vreg_l9c_2p96>; + vqmmc-supply = <&vreg_l6c_1p8>; + no-sdio; + no-mmc; + status = "okay"; +}; + &spi4 { status = "okay"; }; @@ -474,6 +486,13 @@ pinconf { bias-pull-down; }; }; + + sdc2_card_det_n: sd-card-det-n-state { + pins = "gpio92"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; }; &uart7 {