From patchwork Wed Nov 9 14:26:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 17600 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp364232wru; Wed, 9 Nov 2022 06:28:09 -0800 (PST) X-Google-Smtp-Source: AMsMyM6XVayU8udBu9Dy7Ya3v8rZS7m7cb8duORhj0g0Ix138mz17CUlE5WRT11gGLzcC00rArkQ X-Received: by 2002:a50:871a:0:b0:461:52a9:1da6 with SMTP id i26-20020a50871a000000b0046152a91da6mr59253663edb.94.1668004087093; Wed, 09 Nov 2022 06:28:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668004087; cv=none; d=google.com; s=arc-20160816; b=b3IwDBZKsX3+oEAaKmRHyWPEUVc737INutuWluD58k/v+jpY1ikc5Uq56tQQD5GXMk e4wXlz/YeRq+4B6barTMdlztPult4/L4ktH4GmP+saQIEb8QeCfrUFWC6w3Oui0Mdg8O 4v0+t/CJWD0Tl/yOCmI9Iukzt2aKFq3Uf0s0BHy/AO/CDGqrxbl33lrY6Byj8Gz0rVnu BxxWnR8u00xKOaYkYv/FldxrKDORaWUmkQLzdTeXVnmIx3WOak1kYRFzsMOJK6+GELsk AnpS5KH9PiZL8F/+9Amze2ugSQ5hvq8pK11Ifx9lLTlaOwqbdpHQwNMtcK/5g/ZjWy/2 XnhQ== 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=1puYbvV3BBw2uUHTBpwVqMdBJxbx12reSCzoMBBxdjY=; b=pixvG3cG2JF+6xK9y7Ri5HRnPAwWqwpXeuQx5bBBnH2u1SIeh5roPdFDhv2nKbfS4G IN6HDjBTYyVkcZJssMhiLfVZJvaBhjdS9lLli+EN4YWH1qeus/EDC0VXaI66oAu26Vjs XkE0yDoUgAzzcBqJGTGUxSznHMnjsamvrIqlLxoWdLmsJKh6WdDmdamWmRb5Miwx0VIv Up+jmDoWKVyuG5+WrQzX2O4tyHf1kiE1z23RjWKWrhJQj4iVJGMWbsO8f6hNoMiAG7lt T1pV0wJH0+KQWST7SptGSzVbVzeeAMh29pNmaL3AtrGH4m9sMZBSMl2IjMzU4/12vN4A fLaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kzu1EyV1; 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 o7-20020a056402038700b00461b5ba9933si12655454edv.132.2022.11.09.06.27.43; Wed, 09 Nov 2022 06:28:07 -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=kzu1EyV1; 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 S231244AbiKIO1S (ORCPT + 99 others); Wed, 9 Nov 2022 09:27:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231583AbiKIO05 (ORCPT ); Wed, 9 Nov 2022 09:26:57 -0500 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42736DEFC for ; Wed, 9 Nov 2022 06:26:37 -0800 (PST) Received: by mail-lj1-x22d.google.com with SMTP id u2so26052287ljl.3 for ; Wed, 09 Nov 2022 06:26:37 -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=1puYbvV3BBw2uUHTBpwVqMdBJxbx12reSCzoMBBxdjY=; b=kzu1EyV1aV2pofuK4QdBWzRGgFDw5fmb4qNQ5LyCgF9VeZuC29FD6FufF0WBQjlWko FibfHH/v9WPCxRVR/1dmUaqrslwECLe5QWYqmy4XjifcvmEyKHGXHtDKj8TfN/lIVQlz i3z3lrs/t6hbHbSzxvYsJC68bchQkOpcTgIBPFj6cyJMHAMZTTbBZoMmLVKdIekRvs0G 9Vc3DtYaFyD0PKQBkHW/jSMkYepUlXkv0xogTE/zt48AfGseD7sdouvEXDoww5xhu+xM Z5DQyVyuz+EkXoMfgLx5G2q6D5B+j55Jerac6cGyJBGAp8+xJtfaJXLun2hzaM6FDeyd GAkA== 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=1puYbvV3BBw2uUHTBpwVqMdBJxbx12reSCzoMBBxdjY=; b=Np5cKINxj1tggvkEDmeYeJQzGgvCMT8HfFMVdRks5Kr0pvW1Qa9DnYvjNlsdOaWzgx qh4qxe4Jd4Rp1+aAHMzx9fGZVNoWfHx0umUQ71CFw6F2Fe+shCaDLUSE9IObhFSsfLY2 QEwhIzDHm0gwtDgxs9QuiGKyKWseoVZ8nIm0tqxDap2fZS8Ud2EwL/HCcK8KWxQQHa+H mJs9LAnvI85WSJvAVoLqAW//lfb9udwD/Rqz/QM58a0d9HTzolIi4X9ePR99T/Cga8LH JpkkfTB8J8Ld9SMe5D/Ur+PvbPyVhZB4urEDiMaS7VDeff22CPApwPBjG0M9DrXFNgNz qPqg== X-Gm-Message-State: ACrzQf0XRTkbR38l18khEQvf0j5tSCQi/9tI6dkMubinoWY5sD+Bz7SM 9QEpxRwWSJHSBjDvUmgWB5Pfug== X-Received: by 2002:a05:651c:98a:b0:26d:fd1f:10 with SMTP id b10-20020a05651c098a00b0026dfd1f0010mr21197490ljq.323.1668003995514; Wed, 09 Nov 2022 06:26:35 -0800 (PST) Received: from localhost.localdomain ([194.29.137.22]) by smtp.gmail.com with ESMTPSA id q18-20020a056512211200b004a2ae643b99sm2241008lfr.170.2022.11.09.06.26.33 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 09 Nov 2022 06:26:35 -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 1/3] dt-bindings: mmc: sdhci-msm: Document the SM6375 compatible Date: Wed, 9 Nov 2022 15:26:21 +0100 Message-Id: <20221109142623.53052-2-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.32.0 (Apple Git-132) In-Reply-To: <20221109142623.53052-1-konrad.dybcio@linaro.org> References: <20221109142623.53052-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?1749029053370173512?= X-GMAIL-MSGID: =?utf-8?q?1749029053370173512?= Document the compatible for SDHCI on SM6375. Signed-off-by: Konrad Dybcio Reviewed-by: Krzysztof Kozlowski --- 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 Wed Nov 9 14:26:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 17601 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp364530wru; Wed, 9 Nov 2022 06:28:42 -0800 (PST) X-Google-Smtp-Source: AMsMyM7u9wFpOMcvIrF0wq0PrOard/vLwTbtET60Yo+iUVYli2wSl0zfnQiCxEe8n8kNncGaqdh4 X-Received: by 2002:a05:6402:606:b0:463:bef9:b64a with SMTP id n6-20020a056402060600b00463bef9b64amr1119999edv.422.1668004122248; Wed, 09 Nov 2022 06:28:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668004122; cv=none; d=google.com; s=arc-20160816; b=SeKgmPJzD+LbTPblQ2iXtBngMIH0ez7QK8dlSOFL7B4GXJtJ4HS5+WH9l+xcCJbzC4 wJdoRuIq9AUJmeH0wipGPxO8M/W6BDt5/C/rEqzGOSUG/4JEH+AmCwJSZwx1m7bB/mih AMPrMdEz7cpzJ82DTM9/+tV9wasjnb4ENo0GS4Ib/0S8M4i7ElRkLLbVqj0gzq2YGt68 8ZJpJNtEPwPzKMbbFrQARhvzJ82eLtv0boDxuVd4ckFMFaHVdgYALrWftxGEVspVw8Ru aFav+urQPYZcO1M9Arl+8iYrXEfJAOq9iaAf52baPhrof+hwIC/St/MlPDLm6UJxRgmv M4Uw== 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=jyPspQoNicHjcD9jCvm90DnQiKaOFAYO68AFEeI+Gjo=; b=aZy8ne8K1KZtypn8bn5dESetw33dpYgv7joEpy+IIeAwU+yOpsSIGf5O7AsVdvk2Gq 9Elx66LWmsFoWGs9jlJyVWvHafXTI7QGlyal4Taup127pHOQPyPk1suOjH8hvSmSbuVs s3PmdabZovt7/82HHo3uyQdSYiHUXNmPkwZ+rj6vUmEeXJYjM5NWilU1LAj57I9ZvtTN TwyLo79cjaRzDRxQkj9TtpUE7tSCjp6l49QXqCCd3yiTMoqioh6gmDiygSgxCGiWTANZ cf6fwlGvoH8C1b2fSuEq54lvjuCUjjiwvXK/67EvB7pQy18Y8JSsg3RIEHzFBIf1PZTq hmqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E3COATcW; 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 l14-20020a1709066b8e00b0078d1dc1b64csi11884060ejr.170.2022.11.09.06.28.17; Wed, 09 Nov 2022 06:28:42 -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=E3COATcW; 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 S231313AbiKIO1V (ORCPT + 99 others); Wed, 9 Nov 2022 09:27:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231588AbiKIO05 (ORCPT ); Wed, 9 Nov 2022 09:26:57 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C7F213CF5 for ; Wed, 9 Nov 2022 06:26:39 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id j4so25890874lfk.0 for ; Wed, 09 Nov 2022 06:26:39 -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=jyPspQoNicHjcD9jCvm90DnQiKaOFAYO68AFEeI+Gjo=; b=E3COATcWr9NTlWee+vYb/aRT+T2a/w34cY4tfkG3GL4W7ELpIQ0MXNhn+seoLSnVZS h2Tid36bp4RkP9Hp/Bps7QtonStw0YCGuR88cgBOAaD79LEJgIbCWgjGhx8OKuycpNkc nNNCfGRiFgxPqSU6itzhfPzLsyP//5EdBoYQ3GHdI7tcQM06R6XST8RgHxdYJC0Na8I5 SpYAfiSEnbkQQrWItueFoa4YTp49X7TabvqFOs5H72v3WhnjSRmGtXZPAAp+EhWfoIUY RYT3hN/WZBQr0Em2ZkqmmbGiV/qnN9VzwA5koLhas8RONE5eEOsDkTTt0eAV0znYzCXc IzhA== 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=jyPspQoNicHjcD9jCvm90DnQiKaOFAYO68AFEeI+Gjo=; b=dkiIXMWrDOahnw4g8Pc4+hSv2yCEKiXMFj/KzkH4Gm/F4c0lfByNtUyaz/hEjxvnRT J40kqOT8kYlojDA7OhhhRntjZmqVngnuCK4pqpuS7N6QcBKIEZyrju8lNn1EA16VSQwx Cm+WuhQrwTN7onf6yDZw8iSOxYj1uDPsdqJ4IaN0TF+vRQ5Was/e/p7iUlz4d3qJ9BxG AQ6/ZdDZbTNQiacSTp7+pvZsGh389jAzo4NcTg9dPN5FyCkCz2CAOmHljXnVoyMz8S71 OjOiqBniy3Ys+npntk0dzcoDZkQTITnhdsqZIPZ18WMWOlrZnmSXHMD328ndgURPl3Bq iOmg== X-Gm-Message-State: ACrzQf3wm/tHNR3ZCY+b4RMABVDiCht3gBXkNRnXYzVhXcM1AklPxHCg 9quuNNRfID0GnflCpDakcAXtKA== X-Received: by 2002:a19:f812:0:b0:4a4:1c92:2736 with SMTP id a18-20020a19f812000000b004a41c922736mr19828340lff.441.1668003997461; Wed, 09 Nov 2022 06:26:37 -0800 (PST) Received: from localhost.localdomain ([194.29.137.22]) by smtp.gmail.com with ESMTPSA id q18-20020a056512211200b004a2ae643b99sm2241008lfr.170.2022.11.09.06.26.35 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 09 Nov 2022 06:26:37 -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 2/3] arm64: dts: qcom: sm6375: Add SDHCI2 Date: Wed, 9 Nov 2022 15:26:22 +0100 Message-Id: <20221109142623.53052-3-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.32.0 (Apple Git-132) In-Reply-To: <20221109142623.53052-1-konrad.dybcio@linaro.org> References: <20221109142623.53052-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?1749029090771698311?= X-GMAIL-MSGID: =?utf-8?q?1749029090771698311?= Configure the second SDHCI bus controller, which usually the interface used for SD cards. Signed-off-by: Konrad Dybcio --- 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..483202e60cd7 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: sdhci@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 Wed Nov 9 14:26:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 17602 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp364675wru; Wed, 9 Nov 2022 06:28:58 -0800 (PST) X-Google-Smtp-Source: AMsMyM4K7Lr7E/iwjIcKE6Y2CJoFVDJl4WoK4zMRmWG3jD/QQmkmdzOCoGRG6ngN3HQs7Iqs4IM6 X-Received: by 2002:a17:907:3fa7:b0:7ad:e0cf:417d with SMTP id hr39-20020a1709073fa700b007ade0cf417dmr44309855ejc.577.1668004138139; Wed, 09 Nov 2022 06:28:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668004138; cv=none; d=google.com; s=arc-20160816; b=H8+7FF837jCk5StAzNy7dNESevqecy50d0Q4YXrTBK/sub/0fJcqqh3LzXJhQyZn3E Woa6Q+cxzo0NsBGn8iVTroEdKPNtDwDqjZIQk4C1UA7pgP615hPDX3jcaQ2y7vHkwYo7 fd3JA1EG/wAcrqK8kC9E158pS32WONVDal+LfmAZw5nwmhsu0PPBBeFFn9nYm3ju/nXt ou5BqVMpg1v6IKBxWq5wdaR7tam4pAEzH0BIysvGzJKMiB8zqgYMCwiRNnxG19HH5LNU HM8i1RgHLoLZXk49R+neHyoAETpbdhQpDrjHnkdCLRqiZ9fnbNCS0i4dNUIa1uoRH8OS fQOQ== 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=sVFLp+q4rqPPv5pDBxdXoy+mEvkQOdHCoCkRlHx+cFM=; b=cTbCHhtj0OTDfZ7FMnkaitOI6SrAJ+xxlzlCTyANNq5EExyMJLgol+DzC3j/lZpRsq E5c/+kCtzVwqqgydD2kgnqjCOYwy4MgLpB/r7ki4sKU8DqRwP22yM1lfuyKIRKa1YvBd 5NzGP/Ut5GUbQvTX2Jz/cN2Y7j7rJrlLvZu+Fnn3DZrKY+EYXt4cXbm0q5RZptlVrlUv QWTz/tYsMisaf0rafUUyx01bsJd1HLontCDAnt3F8/OLkGO0stIdWK8IJX01vel30aLe +7fC5lT5F7f1LtklLAzruNIJD8+cGRYsQoPjZz9vMRwYyODqlAJxtCWu/MCKvSLzNXNc v91A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hQXvkdke; 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 b20-20020a056402279400b0045b265a1712si18449937ede.595.2022.11.09.06.28.34; Wed, 09 Nov 2022 06:28:58 -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=hQXvkdke; 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 S231386AbiKIO1Y (ORCPT + 99 others); Wed, 9 Nov 2022 09:27:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231598AbiKIO06 (ORCPT ); Wed, 9 Nov 2022 09:26:58 -0500 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECA5413F85 for ; Wed, 9 Nov 2022 06:26:39 -0800 (PST) Received: by mail-lj1-x235.google.com with SMTP id c25so26012445ljr.8 for ; Wed, 09 Nov 2022 06:26:39 -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=sVFLp+q4rqPPv5pDBxdXoy+mEvkQOdHCoCkRlHx+cFM=; b=hQXvkdkeQ8u8kPUKFMCQApvuYe9GpGtkWjHCtda1yfJxJ7ZnyIzkzL4evgRQSijRFH AH7L+eKgUWqVxBq50aYzZVEcpENiexoYxYdLbt3eUPwiamVSuFrN7fzBuuXUv68t+UR2 ESObtMbfkS+lMmDhhWgNHOQopKN1jr8cAULe+MaA57sW/Dgma7ZmyE1VRq3fXt24/6zR kkHYjWONQRsNxLhxam8MmEo8ICtm9pTkPtevmoYgpw5ox9NXn6UB5z7Ep2GeiZ9AoTHz PbK7Lwlf6g5M9JWDfg1Jk6Q9J9oNjycGU9RHEr00GOCrShYN6eOHQ76vbvCE88AjOtIr oT9A== 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=sVFLp+q4rqPPv5pDBxdXoy+mEvkQOdHCoCkRlHx+cFM=; b=VElfomwmPLsuT/hq4qR7SYMMbvMpm6MULuiqRKCY0ua7+JFvUNo+pt6cRdbQpwAiQ9 9I2LjZx6PKmuR3uCudqGEQQJV8e5kuoBai8IJ2rCksrVJhBFb9qo+E2qlkuwVsfLlANU uZqNIE8/yGinWwP95JHv/HevCE177qe9AP5/+99OGtjwyGB/1cds6Rl/nObAwras2OcG 3tb7T2mLYAGHT7o3hvd4EczjMJ4HZsBIGR3ilj3IDmrOMQzKCMEXPYEtWloljJCy/rTM LrqxzaErojO2YhAhZMgq5b+Ds5eYwMNoKtYgNP697/dNHtLHuV/6xvALFj3A3RjPOLwx +Mig== X-Gm-Message-State: ACrzQf2U4sj2tSx48Bjzt+SDZuuMz18FnJC8E5CVMa3qJGKrUVHoqjP6 WsP2Amx9HXPWlxfGIGw0aCTVBw== X-Received: by 2002:a2e:5054:0:b0:277:389e:8877 with SMTP id v20-20020a2e5054000000b00277389e8877mr21556714ljd.165.1668003999539; Wed, 09 Nov 2022 06:26:39 -0800 (PST) Received: from localhost.localdomain ([194.29.137.22]) by smtp.gmail.com with ESMTPSA id q18-20020a056512211200b004a2ae643b99sm2241008lfr.170.2022.11.09.06.26.37 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 09 Nov 2022 06:26:39 -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 3/3] arm64: dts: qcom: sm6375-pdx225: Enable SD card slot Date: Wed, 9 Nov 2022 15:26:23 +0100 Message-Id: <20221109142623.53052-4-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.32.0 (Apple Git-132) In-Reply-To: <20221109142623.53052-1-konrad.dybcio@linaro.org> References: <20221109142623.53052-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?1749029107119372150?= X-GMAIL-MSGID: =?utf-8?q?1749029107119372150?= 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 Reviewed-by: Krzysztof Kozlowski --- .../qcom/sm6375-sony-xperia-murray-pdx225.dts | 34 +++++++++++++++++-- 1 file changed, 32 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 33083f18755b..c4181476f3b8 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 @@ -153,7 +153,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 { @@ -235,7 +236,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 { @@ -302,6 +304,34 @@ &qupv3_id_1 { status = "okay"; }; +&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>;