From patchwork Mon May 1 10:58:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 13227443 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71247C77B73 for ; Mon, 1 May 2023 10:58:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232340AbjEAK6x (ORCPT ); Mon, 1 May 2023 06:58:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232243AbjEAK6r (ORCPT ); Mon, 1 May 2023 06:58:47 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD6A81B5 for ; Mon, 1 May 2023 03:58:45 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1aaff9c93a5so2492025ad.2 for ; Mon, 01 May 2023 03:58:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682938724; x=1685530724; 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=qZJiKllDLItsVzxcb83bHoOkbBzdRY7lgMq5/jA57JA=; b=DX4W5o6b4PrQ+p3HT7nrCoJI0e/LN+NRyrQ0OmB6UgMctDiA9oBPAB7lu0xkunK68m k6CnYzurg60J+iH61Va0au3DiQj5v4MT04jFWHbhDpk0n3yV/YJYm9zmw6My8r340Xav GXNILD+SvP0uqtuYhMmOCOk0CMmBoNzmoswauN/UTp2TrDxN1n1vlPxyo91z+wfIMRNY r6E4jaIQfWM6/B6/Sl7H8kmum4WkfuOuiRbbhOfzT1wWtFzhzwstMmQC+tr6CL0OvrQm xX7RQrkoVXubqXNGfZegVSOVxlbDAle0o/eiWbdu3+/QBQ8Cnu+ir2tKT97M+QglnX3J nfig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682938724; x=1685530724; 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=qZJiKllDLItsVzxcb83bHoOkbBzdRY7lgMq5/jA57JA=; b=CKAi+gAADtV2hubll1nSREUTi4535FxTQ8DY+KF02lyxRZtS1Xd4uobnTkXo113iyt wHfzj7o+tSrjblbb82s3tWnHMok+j5gaP7u0EtJLUJXBSpfbLKpCW360cWH2mgiY/32n EY0pfBwYHjX8udiqAIN/ux93Iacs9ww7Mx/35GVB57CJ93bzp8et40Kr3txhtHmoPLBS OkAyhk+FacZs0ZvFOt1JQ1hWF50y/kDCe1gJPzZXZLHPzutoblSNusrVVsLiYwnXO26A IW8OIhIumZ7kZCNNDZQ1N4iziDdP4xqZeZ2mauwWSsKXkuLgvxwaEDglMbJ+2gxcdLji KIoA== X-Gm-Message-State: AC+VfDyGuyWmhNseLYBbwXf56Gzz+sE1LUaWpobEqETLqG/NikNzLEQz 4bslDJS0dIIrrCf2ibTCiNwIZcbg0l8JqSmhRI8= X-Google-Smtp-Source: ACHHUZ6G7Ey9aufkK3qYq+UCXc5fkm16hoPgraeAg/qAkSi3+QpT55VbGj912UpCaLOPsIAgZDbRHg== X-Received: by 2002:a17:903:1cb:b0:1a9:86ca:38cd with SMTP id e11-20020a17090301cb00b001a986ca38cdmr16722680plh.2.1682938724678; Mon, 01 May 2023 03:58:44 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3b:58fa:39f6:37e1:bb9a:a094]) by smtp.gmail.com with ESMTPSA id c24-20020a170902849800b001a50ae08284sm17569516plo.301.2023.05.01.03.58.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 03:58:44 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com, bhupesh.sharma@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski@linaro.org, devicetree@vger.kernel.org Subject: [PATCH v2 1/3] arm64: dts: qcom: qrb4210-rb2: Add SD pinctrl states Date: Mon, 1 May 2023 16:28:30 +0530 Message-Id: <20230501105832.1185477-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230501105832.1185477-1-bhupesh.sharma@linaro.org> References: <20230501105832.1185477-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the default and sleep pinctrl states for SDHC1 & 2 controllers on QRB4210 RB2 board. Signed-off-by: Bhupesh Sharma Reviewed-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts index dc80f0bca767..5a5294cc6e45 100644 --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts @@ -190,6 +190,10 @@ vreg_l24a_2p96: l24 { }; &sdhc_1 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_state_on>; + pinctrl-1 = <&sdc1_state_off>; + vmmc-supply = <&vreg_l24a_2p96>; vqmmc-supply = <&vreg_l11a_1p8>; no-sdio; @@ -200,6 +204,10 @@ &sdhc_1 { &sdhc_2 { cd-gpios = <&tlmm 88 GPIO_ACTIVE_HIGH>; /* card detect gpio */ + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_state_on &sdc2_card_det_n>; + pinctrl-1 = <&sdc2_state_off &sdc2_card_det_n>; + vmmc-supply = <&vreg_l22a_2p96>; vqmmc-supply = <&vreg_l5a_2p96>; no-sdio; @@ -216,6 +224,13 @@ &tlmm { <49 1>, <52 1>, <54 1>, <56 3>, <61 2>, <64 1>, <68 1>, <72 8>, <96 1>; + + sdc2_card_det_n: sd-card-det-n-state { + pins = "gpio88"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; }; &uart4 { From patchwork Mon May 1 10:58:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 13227444 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4FE37C7EE21 for ; Mon, 1 May 2023 10:58:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232303AbjEAK64 (ORCPT ); Mon, 1 May 2023 06:58:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232333AbjEAK6x (ORCPT ); Mon, 1 May 2023 06:58:53 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B4791A1 for ; Mon, 1 May 2023 03:58:49 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-2474e09fdcfso2422029a91.0 for ; Mon, 01 May 2023 03:58:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682938728; x=1685530728; 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=/pXnRK2b3RixHzpaps5p4VYQKZZN8MYbqwqZth/e4To=; b=hlznR5LySl+UK2ZLlJct3GOXpPUghZFAT5FJ6Tbok0XhGHi5JbMr0jt3firDYM753r D0SVsdL6FPZQdukNYjo2zpJvaOjx73opafsEDTf71X+0+ruBIEXNsIFQi4u7iobKHlHk kgMPN+iR4a5yWG4Fq3Mrkbyjr84u7SYPJeb3fyGjaeHPla0v4GT/oxRzpx0683EwA8qo oe4tuPuuZeE86e45VdTRn7q6KuhOs1KrrAU0c/f3Q0XU3SjqoQQY/+3wBYJKJt3LR7hj RAMGbjfqTwXPQ5rpOopSC5eRlopJgs2Q78RDUYsM7dUdr9neDEjcbxm2yebw596gli3y srGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682938728; x=1685530728; 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=/pXnRK2b3RixHzpaps5p4VYQKZZN8MYbqwqZth/e4To=; b=LDHb/OcH/HvjuYs0Hn0XHxijuGGvwZjvBubOCBJo9sZeovX8yqYC41HbocZvssHuQE RqOIJYjD29fUn07euqus75P4ZrYYvtnCwXADMZ4fhEAWK74/YjHPOIGeU2Ldnt4NG/N8 QnRi8ubDlG+w9aBGeFX0iDscZwZ6RbdNtJbz7vrSRANouF9ZFMLMRGDrgmZOaUrmR+FF aN0X5Eg5ceCpNcunCwKgqyOUBKeaO2dwHB3D57fIdGsBLFScHDqZn0SHchkYTFqvGIZH BzbK7+ceK9922Sghj9XNagUDAvVCTJtHwvW2SNqCLXKRGe/HoNL0+4RZW1w0NHWtg0hW +vCw== X-Gm-Message-State: AC+VfDzHQF/wCot0mgj0vykura6wrFGgZjuBUMaF7XVk/SsPTJ+fiIQX F+NJ/+4Ts+uh4FUkOmNh5bfYkLcwrqwcr2xcpGY= X-Google-Smtp-Source: ACHHUZ6OXsWA6+RtZrgvZBclz8f2I3x5h1gpBhK0DFTK8p7UXR1PlKsBxsVW6+ym1p4obsHM0XM/nA== X-Received: by 2002:a17:902:7790:b0:19c:dbce:dce8 with SMTP id o16-20020a170902779000b0019cdbcedce8mr13652032pll.15.1682938728576; Mon, 01 May 2023 03:58:48 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3b:58fa:39f6:37e1:bb9a:a094]) by smtp.gmail.com with ESMTPSA id c24-20020a170902849800b001a50ae08284sm17569516plo.301.2023.05.01.03.58.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 03:58:48 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com, bhupesh.sharma@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski@linaro.org, devicetree@vger.kernel.org Subject: [PATCH v2 2/3] arm64: dts: qcom: qrb4210-rb2: Fix CD gpio for SDHC2 Date: Mon, 1 May 2023 16:28:31 +0530 Message-Id: <20230501105832.1185477-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230501105832.1185477-1-bhupesh.sharma@linaro.org> References: <20230501105832.1185477-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Card-Detect (CD) gpio for SDHC2 is an active GPIO line. Fix the same. This allows the uSD card to be properly detected on the board. Fixes: 8d58a8c0d930 ("arm64: dts: qcom: Add base qrb4210-rb2 board dts") Signed-off-by: Bhupesh Sharma Reviewed-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts index 5a5294cc6e45..bff6ba1d689f 100644 --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts @@ -203,7 +203,7 @@ &sdhc_1 { }; &sdhc_2 { - cd-gpios = <&tlmm 88 GPIO_ACTIVE_HIGH>; /* card detect gpio */ + cd-gpios = <&tlmm 88 GPIO_ACTIVE_LOW>; /* card detect gpio */ pinctrl-names = "default", "sleep"; pinctrl-0 = <&sdc2_state_on &sdc2_card_det_n>; pinctrl-1 = <&sdc2_state_off &sdc2_card_det_n>; From patchwork Mon May 1 10:58:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 13227445 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E99AAC7EE22 for ; Mon, 1 May 2023 10:59:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232332AbjEAK67 (ORCPT ); Mon, 1 May 2023 06:58:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232369AbjEAK6z (ORCPT ); Mon, 1 May 2023 06:58:55 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D17BB1703 for ; Mon, 1 May 2023 03:58:53 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1a6ebc66ca4so17089885ad.3 for ; Mon, 01 May 2023 03:58:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682938732; x=1685530732; 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=jOc5TkBBFvhPYDtl6ktWA3NEqkqqyBYzt0eDjS+Sk2A=; b=OLxTFE+/bHywEhGnTp0KfaxlPToVPdkVvcxEKvTctVIEVcJ/+CEwwcB/FOgPdaPoyC mrlb17WqnqVIxwUt/W0bDwZWotaHH9xwvmZTYagJDqjx/z7ZCSqgWkkHLGxCUJERqayC s3qPgGrxNrXEAXR2BIc0GAWjPSmf7CZzwxT8NRQFTqVcPzQ/tRZMwJQSjuHuQm8SUY47 1LP8IqqwUD/SmF5q25gmvkf1GEhmCsEU80t5ohvkphdyq6mwe9XsJzf4Zhu80YaG2oIW gK91bD4kzDY5pvaz9zBXb2CFaOwagEsKjfDhXr/jkAUoAONh9RlRXK5ZH9lAqmmAGlN6 eu2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682938732; x=1685530732; 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=jOc5TkBBFvhPYDtl6ktWA3NEqkqqyBYzt0eDjS+Sk2A=; b=XrE++8GOQw/77va4ebJsAG3GGBKLv8ogWCBgbDM6bkJ3iMVVzdrscyl84YcgkbRinq hZBRyTDyFCd9OfwjOfpH9HsXRnfCVAujv+56CLGw/cdwqAbIsQolze+mOL9wPfVscaeP C+MlDgbDlRCJvQav4NF77JWCzwMDR5LitCMR5E0BLIzgUoccOZdouv6HSd8U9wNtPmTY 7nGdEIRrFI+cgmWi7gB6X6Uap4E9kLeQxtyD5dCDW1uUEVhPaZ2GUz5SNifHeoEy97b5 25Kusj6tsfdPWdI1CMWzrqExQO1fdAJGHiWwaa7Uc6tJhJy3yfhGTafUo1jf1xaNYRdR MlOQ== X-Gm-Message-State: AC+VfDzJp9HTUvEptXXyEhQ8tURJcA+kyh1UWzWbrFq2jp+pBv3rtcyD YwxyGEruHVv8QV+M3yQLZ31qnnJnv0/Ch60k6Dw= X-Google-Smtp-Source: ACHHUZ5kWIDXe2cVbE/Bd06XNCjBzznw8QhrgiL632m4i3Uexc/PgFAvw+SP6c1fY13CnkxyOv+0ZQ== X-Received: by 2002:a17:902:d4c7:b0:1aa:e6ff:d978 with SMTP id o7-20020a170902d4c700b001aae6ffd978mr6779153plg.48.1682938732570; Mon, 01 May 2023 03:58:52 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3b:58fa:39f6:37e1:bb9a:a094]) by smtp.gmail.com with ESMTPSA id c24-20020a170902849800b001a50ae08284sm17569516plo.301.2023.05.01.03.58.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 03:58:52 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com, bhupesh.sharma@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski@linaro.org, devicetree@vger.kernel.org Subject: [PATCH v2 3/3] arm64: dts: qcom: qrb4210-rb2: Enable aDSP and cDSP remoteproc nodes Date: Mon, 1 May 2023 16:28:32 +0530 Message-Id: <20230501105832.1185477-4-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230501105832.1185477-1-bhupesh.sharma@linaro.org> References: <20230501105832.1185477-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Enable the aDSP and cDSP remoteproc nodes on Qualcomm QRB4210 RB2 board. Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts index bff6ba1d689f..3ab46499d3fa 100644 --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts @@ -34,6 +34,16 @@ &qupv3_id_0 { status = "okay"; }; +&remoteproc_adsp { + status = "okay"; + firmware-name = "qcom/sm6115/adsp.mdt"; +}; + +&remoteproc_cdsp { + status = "okay"; + firmware-name = "qcom/sm6115/cdsp.mdt"; +}; + &rpm_requests { regulators { compatible = "qcom,rpm-pm6125-regulators";