From patchwork Mon Nov 14 10:50:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 19681 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2077952wru; Mon, 14 Nov 2022 02:54:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf54BTtjGpeW+vF1DKzRgOClBILeW/R2wHvXsOqkQyIR9HLbWRPVI/sRmB2nENhO4shU+4v2 X-Received: by 2002:a63:881:0:b0:46e:c7be:16fc with SMTP id 123-20020a630881000000b0046ec7be16fcmr11119327pgi.462.1668423261689; Mon, 14 Nov 2022 02:54:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668423261; cv=none; d=google.com; s=arc-20160816; b=x0q0OCrNKwAL5GAK/1uhm3Tvc2Uf2xcz8GjsS9SSmi2Wqr2uR2O42YtGR6QmuXcxAv WtEJwMTgv7o72v9a04nzxtkvCiZ+iZnwMlCHXojmuoun8c/BhESaz2BQCIDG7mRzysEQ 0WMHjUd72fq7yJ03Zc+U0Cn/GgP5MvzpEGwfPrLp4rQyDKOfXcA1RJ3gwV/uQKB7fSKO N4MYHy0s/dKfd37eh7q4tTSB3TsOiA6iAbRpYMnD1GO8OyLhsGpFm1IIZoAai+b8tKmo av3NGXN/p8TB/qOEcPASKc6gn1o8wIKRAEqKVCMFvMC9/obPAop0ob5/5xjgQJDEPLv/ qSaQ== 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=O82IdtMN4gU2HPdWYJ4k/Ae4A8assTn2dDMpMVtowGw=; b=mkNGc6mCmcsPM9diKqcb2fsk4mS0ddz6si3NsizgvZUfgQ23/OEJ5m+IDQDI+1woIp 9p+d2EAjcyX7pbRlv4rqoYy2P5kUHvM0ZeHPzozKoJdN4tkrulczhGq+yL2h5Me7HvJu jWz+UZuIKKop7dKcdOKMuM8pGjpX1rbtHz10QXna9InxRxT3x2gKFQylTyD3Pl1j+dK6 PaZha/v65+8qk8O4T97EptZnfJVbIOrecHfwBY32eb6qzII24lXF2BemuFYgCg/M+U43 UKeI20b8+/kY40sk9LUMmxSkscCl66H7LFq2rFhPyCnd+T77HlPYFELJb3Z6E+3Rfl1+ AsGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=txB1X4GT; 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 l9-20020a170903244900b00186ed93fc7fsi10563178pls.206.2022.11.14.02.54.06; Mon, 14 Nov 2022 02:54:21 -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=@linaro.org header.s=google header.b=txB1X4GT; 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 S236233AbiKNKux (ORCPT + 99 others); Mon, 14 Nov 2022 05:50:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236179AbiKNKuw (ORCPT ); Mon, 14 Nov 2022 05:50:52 -0500 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F35E918E0F for ; Mon, 14 Nov 2022 02:50:50 -0800 (PST) Received: by mail-ej1-x635.google.com with SMTP id ud5so27292568ejc.4 for ; Mon, 14 Nov 2022 02:50:50 -0800 (PST) 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=O82IdtMN4gU2HPdWYJ4k/Ae4A8assTn2dDMpMVtowGw=; b=txB1X4GT186dmbeGXeIIwIamZIk2UtUpnIl9NptygNxW0hHhi8FeNkijyxN7OvDPu6 ++YXt0DR11UBd/RSStujeTgzhiB21mBdDRsdsxJl5MXBJlArSj0m8V0NqJoWyPDNkcmb AObqiV9lKX0bB3k7M9c3+U2T2gNgL+7qAyZDuMm1OvqBnZzFGcktGYUQMMup7p1cN+zm qbil9d5nOG7Ebsl9KG1foKZNfZKAAEtgiA5OZcWWXuqLsUXP3gY23BleZZuNs0pO9kNU lg5RnmC0wQgDObRxj5H6RunNTwEyMgocfKVEQgXQU4cROkqO8PpZaYLc4vqBaqKNd1gb TUtA== 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=O82IdtMN4gU2HPdWYJ4k/Ae4A8assTn2dDMpMVtowGw=; b=PcrmFEWLvNBgeL50XPLEJOIDjeEr/ZFStZrpqXipaQgCylGwaDWui6LwGMiRmSUVm7 cWHpX8o58MeGWoudikS7OiLTuUEheELteUG9YtUcGfZrVOkJD1yeEM95kApndF1iHz4T 9e1bHdUit9/TtIg4iCly3gukM0JHoRKFG006FoLF0GAoKbZ0C5wP4+mDNVtXnr5N9ukD lIzHqzuILf+JJbnmdX+x7RHJ8XQUgFW/x3JGhKrVpTL3Qir9GLFMwdGAUvT1llCrD996 way6HV1nZVkvE/HSPzTJ+fj+q3dmWZ0q1Dtp7dcTODGWVM76J7ujWQptcn8vX1joyET1 vnEg== X-Gm-Message-State: ANoB5pkh/KLZw0pyA+1IYh9HBv33N5k9pXhFwvJpbM3rcNeBW1Z42zUT pkCAY4r9t8m5aqxCvSGRnqTNoQ== X-Received: by 2002:a17:906:414d:b0:781:951:2fb with SMTP id l13-20020a170906414d00b00781095102fbmr9849462ejk.64.1668423049581; Mon, 14 Nov 2022 02:50:49 -0800 (PST) Received: from localhost.localdomain ([194.29.137.22]) by smtp.gmail.com with ESMTPSA id kv20-20020a17090778d400b007402796f065sm4037053ejc.132.2022.11.14.02.50.48 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 14 Nov 2022 02:50:49 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: patches@linaro.org, Konrad Dybcio , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Bhupesh Sharma , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/3] dt-bindings: mmc: sdhci-msm: Document the SM6375 compatible Date: Mon, 14 Nov 2022 11:50:41 +0100 Message-Id: <20221114105043.36698-2-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.32.0 (Apple Git-132) In-Reply-To: <20221114105043.36698-1-konrad.dybcio@linaro.org> References: <20221114105043.36698-1-konrad.dybcio@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 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?1749468589993042973?= X-GMAIL-MSGID: =?utf-8?q?1749468589993042973?= Document the compatible for SDHCI on SM6375. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Konrad Dybcio --- No changes in v3. Changes in v2: - pick up rb Documentation/devicetree/bindings/mmc/sdhci-msm.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml b/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml index fc8a6b345d97..12def0f57e3e 100644 --- a/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml +++ b/Documentation/devicetree/bindings/mmc/sdhci-msm.yaml @@ -46,6 +46,7 @@ properties: - qcom,sm6115-sdhci - qcom,sm6125-sdhci - qcom,sm6350-sdhci + - qcom,sm6375-sdhci - qcom,sm8150-sdhci - qcom,sm8250-sdhci - qcom,sm8450-sdhci From patchwork Mon Nov 14 10:50:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 19683 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2078071wru; Mon, 14 Nov 2022 02:54:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf74Ur7hOOWMlXw9DtRQi+QQhKLkAsxXmD/z6JPbYGRBX/vv/AvY3oFYo8jeztJLyZZDni8Y X-Received: by 2002:a17:907:8d1c:b0:782:6505:dec6 with SMTP id tc28-20020a1709078d1c00b007826505dec6mr9638674ejc.505.1668423289254; Mon, 14 Nov 2022 02:54:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668423289; cv=none; d=google.com; s=arc-20160816; b=pf1pT/3BnS4I15nLAh167LqYJPZi+TUvuMic5WOejCUAP7gs/kHmSe/2tpSodfDLbs MfUcFF3IQc69jTBtzTfrrtUmibmZKYi+Cshia7hvtnF5wRi/buNXMv6mYBfBAotLfeog TlxruqvcXi8TiWy54j3PkNtbmSnOepJHotHm+EZVoNbfBq1sH/TLbBLl2sH81ht2H2UJ OMpJCgnVBmJ5mxtEVrXsYiZbxEwGxLxh+b5BVl4usbTvdbC9oPFVBl0sbRcsuvLFxLXw tMgvQLWVFU7JSru44Y3wR9rCsToBQ2Dvj2WDME9YsGgTxGhoni+MSVuzTHFWThcqFZbR iDeg== 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=WJ+8qImc7VzRHMuYxKRoIhoSQ+nTJCDRXzPuvxgENI8=; b=fQ4wA4tAjOjAVVWpmgsOhACHT5apGhWWLmNiSwXTpVKaLxVLL/bmaggy+bWiyhgTxn FecgcsP1dGs7ILGgCKawufioniuCOEIG3tSx/4POEQG4CsfO56I4rxs2PDlVQqbGBP0f PBt/BQfh2otLDLDt3FMK6FdSjU5NJT48Qcs5tdjZVO4NU7OYHLbobFzQpqJs4Wo6AroM sJvQnmpouEHixh1blHRRk2qEvpnwAPogIazcbOd06DmEVRlEYqDrLQMZryMG2NjqPTK5 YXP5jVwoqrfHXW07pQMrT4ydgFWrZ03z/VYM3iOERFa5eQT29umclMmsuItf/gx75B4e DrWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yMYRVak0; 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 w22-20020a056402071600b0043d54ba0a4dsi8667562edx.327.2022.11.14.02.54.25; Mon, 14 Nov 2022 02:54:49 -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=@linaro.org header.s=google header.b=yMYRVak0; 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 S236254AbiKNKu4 (ORCPT + 99 others); Mon, 14 Nov 2022 05:50:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236247AbiKNKuy (ORCPT ); Mon, 14 Nov 2022 05:50:54 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B4521A3B1 for ; Mon, 14 Nov 2022 02:50:52 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id 13so27354504ejn.3 for ; Mon, 14 Nov 2022 02:50:52 -0800 (PST) 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=WJ+8qImc7VzRHMuYxKRoIhoSQ+nTJCDRXzPuvxgENI8=; b=yMYRVak0EffYvJtukQ4qPOso/BXa5clD6zcUa5wrnF+iDrfM/fgzGMYvYS56pFHYEu Iy1bdVimPLjF6xnrzGmudswQ7JfTg40YfIQ4Accaxb7MhG3fqzyw6pzXXMpnUYW8Clks /vBQtMG+LwiXxKAQgzGDni7lek1nYW2Ya7njVXPaMyOMfxEjS5kIzG9V6BsvnktSG2Rr SbZNvpw7uLfGAU73vFbA1nAqogmXoXbPqENP380nr4GS9E8hcDEtWPjJyq7XtChrUZ+n wrjmAA3Atbf6a6wlMGFvZ4xtaB43cg844ZBI4e9z8FNghA1ciqOAJD4zLzthDNEpCfHf PJ4g== 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=WJ+8qImc7VzRHMuYxKRoIhoSQ+nTJCDRXzPuvxgENI8=; b=4GNc5hYVHBvgaucNucVBRA3Orqkgho1tRcFJfIzMNtOA0dABVozkZmY2J86Pf5U0SF ePzb5+DgecMW4BBDhbTGQD7nVHM1a1DwV7XcBT89NXpOE0DHn/cRfwvv9iDwKff5gVlB d9y5U9Y0TT5YO96XdWbckDTRcg2GaRRRwD8FTYmEP32JEfXLFT9l/IJPObCulj5y/Wu/ IViMVouKeVTHBoYv0ZKsWoHkmgFwIShMPTG6lPtopv7bCeIiFKrEz//wSNn2/HOlDq2W 7eGrVE/Sh7p8D9wdJr4WpfBRndzSQJa5wF5w35W9G82DX7g4tNoJ+jfyWH/XMzxAbrN1 dvaQ== X-Gm-Message-State: ANoB5plgqIDHyemxcBBdeX0IzRXCAwxJdK4EBBkerofPaC8sKVxliBXv SM0UjkcrGfkxwC8i9ebwRyUPcg== X-Received: by 2002:a17:906:4e54:b0:78d:a30f:3f3a with SMTP id g20-20020a1709064e5400b0078da30f3f3amr9820547ejw.386.1668423051146; Mon, 14 Nov 2022 02:50:51 -0800 (PST) Received: from localhost.localdomain ([194.29.137.22]) by smtp.gmail.com with ESMTPSA id kv20-20020a17090778d400b007402796f065sm4037053ejc.132.2022.11.14.02.50.49 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 14 Nov 2022 02:50:50 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: patches@linaro.org, Konrad Dybcio , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/3] arm64: dts: qcom: sm6375: Add SDHCI2 Date: Mon, 14 Nov 2022 11:50:42 +0100 Message-Id: <20221114105043.36698-3-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.32.0 (Apple Git-132) In-Reply-To: <20221114105043.36698-1-konrad.dybcio@linaro.org> References: <20221114105043.36698-1-konrad.dybcio@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 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?1749468618722741731?= X-GMAIL-MSGID: =?utf-8?q?1749468618722741731?= Configure the second SDHCI bus controller, which usually the interface used for SD cards. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Konrad Dybcio --- Changes in v3: - pick up rb Changes in v2: - use mmc@ node name instead of sdhci@ arch/arm64/boot/dts/qcom/sm6375.dtsi | 82 ++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6375.dtsi b/arch/arm64/boot/dts/qcom/sm6375.dtsi index 6adffd927a8e..08587c8681b2 100644 --- a/arch/arm64/boot/dts/qcom/sm6375.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6375.dtsi @@ -540,6 +540,46 @@ tlmm: pinctrl@500000 { #interrupt-cells = <2>; #gpio-cells = <2>; + sdc2_off_state: sdc2-off-state { + clk-pins { + pins = "sdc2_clk"; + drive-strength = <2>; + bias-disable; + }; + + cmd-pins { + pins = "sdc2_cmd"; + drive-strength = <2>; + bias-pull-up; + }; + + data-pins { + pins = "sdc2_data"; + drive-strength = <2>; + bias-pull-up; + }; + }; + + sdc2_on_state: sdc2-on-state { + clk-pins { + pins = "sdc2_clk"; + drive-strength = <16>; + bias-disable; + }; + + cmd-pins { + pins = "sdc2_cmd"; + drive-strength = <10>; + bias-pull-up; + }; + + data-pins { + pins = "sdc2_data"; + drive-strength = <10>; + bias-pull-up; + }; + }; + qup_i2c0_default: qup-i2c0-default-state { pins = "gpio0", "gpio1"; function = "qup00"; @@ -630,6 +670,48 @@ rpm_msg_ram: sram@45f0000 { reg = <0 0x045f0000 0 0x7000>; }; + sdhc_2: mmc@4784000 { + compatible = "qcom,sm6375-sdhci", "qcom,sdhci-msm-v5"; + reg = <0 0x04784000 0 0x1000>; + + interrupts = , + ; + interrupt-names = "hc_irq", "pwr_irq"; + + clocks = <&gcc GCC_SDCC2_AHB_CLK>, + <&gcc GCC_SDCC2_APPS_CLK>, + <&rpmcc RPM_SMD_XO_CLK_SRC>; + clock-names = "iface", "core", "xo"; + resets = <&gcc GCC_SDCC2_BCR>; + iommus = <&apps_smmu 0x40 0x0>; + + pinctrl-0 = <&sdc2_on_state>; + pinctrl-1 = <&sdc2_off_state>; + pinctrl-names = "default", "sleep"; + + qcom,dll-config = <0x0007642c>; + qcom,ddr-config = <0x80040868>; + power-domains = <&rpmpd SM6375_VDDCX>; + operating-points-v2 = <&sdhc2_opp_table>; + bus-width = <4>; + + status = "disabled"; + + sdhc2_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-100000000 { + opp-hz = /bits/ 64 <100000000>; + required-opps = <&rpmpd_opp_low_svs>; + }; + + opp-202000000 { + opp-hz = /bits/ 64 <202000000>; + required-opps = <&rpmpd_opp_svs_plus>; + }; + }; + }; + gpi_dma0: dma-controller@4a00000 { compatible = "qcom,sm6375-gpi-dma", "qcom,sm6350-gpi-dma"; reg = <0 0x04a00000 0 0x60000>; From patchwork Mon Nov 14 10:50:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 19682 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2078054wru; Mon, 14 Nov 2022 02:54:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf4oLHwwUUdWeMaWlYMhDw/NpiN3wWcYH+2o5r8ZDP52s45bIuHxy7UhkdaTC7meee1j3mNO X-Received: by 2002:a17:902:b906:b0:188:c63f:4108 with SMTP id bf6-20020a170902b90600b00188c63f4108mr3524283plb.67.1668423287396; Mon, 14 Nov 2022 02:54:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668423287; cv=none; d=google.com; s=arc-20160816; b=sg1mLEIpNGzn4c9Eyr4/5NmUuaHnDrFGDGdcrHc0kytkim4aECc5OdJvFwsyC5PvPk tiklVAMISdyoUeyhw1YE35pSxhOMNYNypMHgj3vevOBUSMh/ae4uSvbWcliqN425ni5r 5cPXQ1rZyzcJG/p/THUlp7kDROmxnlbKTkPGp/4RNo5Md1qX6Aw8e8zOLM7XKAqehJaY HfRBXP5JIPx25v7d/zzsGW3/WPj3xz7aewUHRTMOfklDoXy9N9R1PN0PEcmwHaYvSTts D7qdpzzO0LQAgbAVnc0fKx9d+1CF2mqLUfl9dSTtxx19QnKaa4vXFn5Ajy163WCtVpas TrJQ== 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=2J8KU6i0LNpVXOzmIjyZny4wFnncJ84RnmJbirPKtLU=; b=W5Yi0CmOCshiPl23h3zUwrZIvxH33HBzPIkmyRG0ALyXS0OstqKk3IlWj9MRWvYatZ 317esnrplhfltvFK4nuC/DCk0ASFuVUHYKqCzqoG3kMwUgPJdqrCWghWm+ubObAeqtIO MpgCVv7B7CtHiMFe7fQQM7dmczZwZ+h9LSMBXttmRVvtBdSY+jcmk/JngtdH4gWxtGt6 ToQ+WlOSmjERg5WPR5bvScQS6FhQi3XWaH4Pv4mT1308VPIa2JUMOc5hdugxq+tkUzpR isgVm/PavRn64QG8hJOr1bQBb2ay2oqLFNOYPSLKsAZKPl9zmsE6sEINMn1tKzktCHP8 ilYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Gj/BMvG7"; 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 hk11-20020a17090b224b00b001fd7d02c976si16777551pjb.87.2022.11.14.02.54.34; Mon, 14 Nov 2022 02:54:47 -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=@linaro.org header.s=google header.b="Gj/BMvG7"; 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 S236269AbiKNKvA (ORCPT + 99 others); Mon, 14 Nov 2022 05:51:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236031AbiKNKuy (ORCPT ); Mon, 14 Nov 2022 05:50:54 -0500 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A2BE1D673 for ; Mon, 14 Nov 2022 02:50:54 -0800 (PST) Received: by mail-ed1-x52f.google.com with SMTP id v17so16655120edc.8 for ; Mon, 14 Nov 2022 02:50:53 -0800 (PST) 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=2J8KU6i0LNpVXOzmIjyZny4wFnncJ84RnmJbirPKtLU=; b=Gj/BMvG7+x8u7dhkNTvuxgnGSfDtbLaVdu/ZEtxLq+SUs9TR2afJqm1midawP/WeBk 0srL4kRvIxO05ufvSYlzzFnSDJIptJraXepcrXfFt3KQkP5yQQfpTXOCR5dEDM89CvzV Aa66/8wg2D8cyD7kuez+BvmXJao69cPwRC+cgzb9QhU/PnerOqWxGSLHnZRakBFoZPSa eQuLY2CGIIfqmKUiCLGeWe0znuTIrtCEgMKkQo5me082oVfPI+CERPSKkVHDbzAfQm19 DrsxKjCyaQWaXYkFO6byxL4/raXX0PnuXuc39ujO2POSgn6fSJ3Y3rapK3sSJejsxpG1 EjVg== 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=2J8KU6i0LNpVXOzmIjyZny4wFnncJ84RnmJbirPKtLU=; b=xvka6GXRWDEy7I+atpdJNvaKKJykgPLJoCaBMrF5yV5XNhB8VIAVQRgfTZZTfNXN5R fAN+PKuXA1jO223dJaM5OinLjuuZ6V9oe5ofYdor4ybfMBdqNSOIe+lGGiZmmX8XNt1O rcLA/Mrz2/nE5O8YdA0MDaq9xMjzkZRZ+JA2YJL4Ua5YHo/+Rq9NpH3aY5yS7mLHplRH RtYr7aejLesHy8yj7C8CRIxW8aHIxxO2UkmFbVaDvN5g7At1p+1O/zv4Smp5zQ8/5Tpn gBPiAe3diANzre2LwueVqzXxXKi35W3d0kY2OsNUxzE5S2m7FkEct5a17YMc6rkBaCGy FDIg== X-Gm-Message-State: ANoB5pnabvim2WFuLqviwi1oRk6S5upLlKlTBXUm2thxr7+KdbDYlQQY zTTqsVJb9S1MEic/CLsvn0YMQg== X-Received: by 2002:aa7:ccc2:0:b0:461:bff7:9783 with SMTP id y2-20020aa7ccc2000000b00461bff79783mr10817601edt.200.1668423052646; Mon, 14 Nov 2022 02:50:52 -0800 (PST) Received: from localhost.localdomain ([194.29.137.22]) by smtp.gmail.com with ESMTPSA id kv20-20020a17090778d400b007402796f065sm4037053ejc.132.2022.11.14.02.50.51 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 14 Nov 2022 02:50:52 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: patches@linaro.org, Konrad Dybcio , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 3/3] arm64: dts: qcom: sm6375-pdx225: Enable SD card slot Date: Mon, 14 Nov 2022 11:50:43 +0100 Message-Id: <20221114105043.36698-4-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.32.0 (Apple Git-132) In-Reply-To: <20221114105043.36698-1-konrad.dybcio@linaro.org> References: <20221114105043.36698-1-konrad.dybcio@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 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?1749468617389483359?= X-GMAIL-MSGID: =?utf-8?q?1749468617389483359?= Set SDHCI VMMC/VQMMC to <=2v96 and allow load setting by the SDHCI driver, as required by this use case. Configure the SD Card Detect pin, enable the SDHCI2 controller and assign it the aforementioned regulators. Signed-off-by: Konrad Dybcio --- No changes in v3. Changes in v2: - remove stray newline - pick up r-b .../qcom/sm6375-sony-xperia-murray-pdx225.dts | 33 +++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts b/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts index d18167bcb41f..4741b9120aa2 100644 --- a/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts +++ b/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts @@ -164,7 +164,8 @@ pm6125_l4: l4 { pm6125_l5: l5 { regulator-min-microvolt = <1650000>; - regulator-max-microvolt = <3050000>; + regulator-max-microvolt = <2960000>; + regulator-allow-set-load; }; pm6125_l6: l6 { @@ -246,7 +247,8 @@ pm6125_l21: l21 { pm6125_l22: l22 { regulator-min-microvolt = <2704000>; - regulator-max-microvolt = <3544000>; + regulator-max-microvolt = <2960000>; + regulator-allow-set-load; }; pm6125_l23: l23 { @@ -305,6 +307,33 @@ pmr735a_l7: l7 { }; }; +&sdc2_off_state { + sd-cd-pins { + pins = "gpio94"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; +}; + +&sdc2_on_state { + sd-cd-pins { + pins = "gpio94"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; +}; + +&sdhc_2 { + status = "okay"; + + vmmc-supply = <&pm6125_l22>; + vqmmc-supply = <&pm6125_l5>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + &tlmm { gpio-reserved-ranges = <13 4>;