From patchwork Fri May 5 07:53:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 679627 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 8362CC77B7C for ; Fri, 5 May 2023 07:57:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231453AbjEEH55 (ORCPT ); Fri, 5 May 2023 03:57:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231425AbjEEH5r (ORCPT ); Fri, 5 May 2023 03:57:47 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFF2516364 for ; Fri, 5 May 2023 00:57:46 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-6439e6f5a33so287774b3a.2 for ; Fri, 05 May 2023 00:57:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683273466; x=1685865466; 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=ASPdjssv+eJExTJTXyWCjTmaIC0fu4B7/nrk3o0mOEg=; b=JO3IyNFcmDL44htRKeFX9ji2ce7HYjosvtXJLzpdTuZX/HhgldZpNvJB9A+WwWFeBo BOwe4n9fLnLZdvhLj2LInmcQc21xq6CybXg8HNQLci/+i2oLiOkBFe7vNJGvzKfEGQdU 7z2UkWMxfzjpt9MejWRihxEn4/MrxsFPfPCSRTLOUaghWJPGSz0o5QWrzG7rFvr4tggf PfTlbhFaRkwb+lvZhMSMx3kbl8+5QJ1bRShl7zZSbuYkIfsfCiBG8dPK2Znz+sD099P0 LjJGjA335PHEWIbGdWV1xLA6fB7dAcwKvTCSyKPNeScO9dkrmrItM+FUys7fs1YcsTiH 8gpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683273466; x=1685865466; 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=ASPdjssv+eJExTJTXyWCjTmaIC0fu4B7/nrk3o0mOEg=; b=byDAQDQiYmY9z4Gl4nLVwoq9ZZgJrYhWcHncu2Ep0SNRwmpgFNRe9hx0zZ9COWVI3H 1/b7th7AbO+g3zMVRBavQrKYQuNFE4ieHRbuTEgU8uMeA1uYt5hIFhu387qt3aTCxsR0 m3HdSKkF50Be0d+k/8Q26mc4w9aGL74W4K/WEj9jDyEKgXJTM5hFuvVn0AlJGFY+ZhDM fJQCMXkV7b1erhE4W67MUdvJ1f1Vq8evDN/iU7M8dJDCLWt2zVMr+LvHrfODPk+fPlJX MMAu+aDwwUvvOPiNyH+bFfK9GKSTi1JqrLs69A75W2w82qPoBnw36QODalPT3j99aC0S T0iA== X-Gm-Message-State: AC+VfDwYzziR2Edit33iB8N71it6qyq+yN1PizDzzIiyS5/UwGyADe+i I2y0Xkfx4MZig9fbdcRZiLcs09PrCEXWdPBM9Qs= X-Google-Smtp-Source: ACHHUZ7kOB/JqKHCpHc6VTD5WpkBCzZ6f7xeWwCnqK0kZ7AXFH771D8TByr/oA5bNRnWUhUR4cm7XQ== X-Received: by 2002:a05:6a00:815:b0:640:defd:a6de with SMTP id m21-20020a056a00081500b00640defda6demr1449038pfk.5.1683273465830; Fri, 05 May 2023 00:57:45 -0700 (PDT) Received: from localhost.localdomain ([223.233.65.180]) by smtp.gmail.com with ESMTPSA id p17-20020aa78611000000b006242f4a8945sm988873pfn.182.2023.05.05.00.57.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 00:57:45 -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 v3 1/3] arm64: dts: qcom: qrb4210-rb2: Add SD pinctrl states Date: Fri, 5 May 2023 13:23:52 +0530 Message-Id: <20230505075354.1634547-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230505075354.1634547-1-bhupesh.sharma@linaro.org> References: <20230505075354.1634547-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. Reviewed-by: Konrad Dybcio Reviewed-by: Krzysztof Kozlowski Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts index dc80f0bca767..504543ad1a1b 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-0 = <&sdc1_state_on>; + pinctrl-1 = <&sdc1_state_off>; + pinctrl-names = "default", "sleep"; + vmmc-supply = <&vreg_l24a_2p96>; vqmmc-supply = <&vreg_l11a_1p8>; no-sdio; @@ -200,6 +204,11 @@ &sdhc_1 { &sdhc_2 { cd-gpios = <&tlmm 88 GPIO_ACTIVE_HIGH>; /* card detect gpio */ + + pinctrl-0 = <&sdc2_state_on &sdc2_card_det_n>; + pinctrl-1 = <&sdc2_state_off &sdc2_card_det_n>; + pinctrl-names = "default", "sleep"; + vmmc-supply = <&vreg_l22a_2p96>; vqmmc-supply = <&vreg_l5a_2p96>; no-sdio; @@ -216,6 +225,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 Fri May 5 07:53:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 679405 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 CA062C77B7F for ; Fri, 5 May 2023 07:58:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231436AbjEEH6B (ORCPT ); Fri, 5 May 2023 03:58:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231437AbjEEH5w (ORCPT ); Fri, 5 May 2023 03:57:52 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3D2218854 for ; Fri, 5 May 2023 00:57:50 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-643465067d1so1179025b3a.0 for ; Fri, 05 May 2023 00:57:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683273470; x=1685865470; 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=+JCViBdbMluKpXvpRwGUbaOGVsHxAxvw+9V3H+vfUho=; b=QugLlhRxXPi0EKqKheBYLUZy2i/olV0zZ6Jd04TZx41AhIdNvdLq66sRfmjxOv5Eb+ bxiAMlG7vApTVC6Tj1AhPRXa01z5A8AgVksJjMYe7JE8un2yhoo8QAEQBdPxGQvB2dC7 LPcIfCfqnlo6Z+0FAdQ3Zp1aK6XVQNL9M9yNwj57eR/Bz5v72h2bpZn1Nh9vPKG0T3fg hiT6Uzqs3pmIMMJZDdcVbtx+k1S9KawL1KF2sMenDKd0S8RfWCQYxi7KE2eaeHMDhxF1 rO8DwC6vKZbgtggeFIhx5Q2QJCgaSPceHadn0EFEtXd6E3pW5Yp5uwWeCS/FN8mphaCb ir7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683273470; x=1685865470; 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=+JCViBdbMluKpXvpRwGUbaOGVsHxAxvw+9V3H+vfUho=; b=kJXcL4Nmrsmcp8X9+QA/SUIcKybrZwiTdfBBndAYH0M8bQXBesZKJ6sLzrbUQIYqbD Cx3MUBR7oHt5rSNpZ8UZ9NaxutwFpZHA5CKkXCbtx+RC2roLvBpEHYSWpsq6sCm0yvC9 0eI/UhzgqnPILcmHsXK3RjnQxzEthUbg8wY/IMfJVpdqZFHUJsLt932wHzAA6KV+FEK5 0/Z42/1+WhqIYDGGEYFlrU7PTucRpfuTpAxRkC8eFhuEAH+ANmW4GDlAz1jWR3QnK79Y 16d/fQTNdoqGwTFJrVUb253Q0wFC7eRy7XtwvRQjdH4tn0wGJoOBK9JwMHlsiXQnoU8l kHhg== X-Gm-Message-State: AC+VfDzJZZLvEqinYB7SruCVf4UEpeDTXpsW5Erg5pPWXCt6Rhyo001M Z66c8hDiFAXaPzR/6HZdeY+FOWRM7sR1Kz/TON0= X-Google-Smtp-Source: ACHHUZ6ZWQObC2JZZ8ajX6cy4UUZR7ZmXpQZHa8IGlB2PMHcdAbQDTId6sbH+gEDMegeUqLDsnWdEQ== X-Received: by 2002:a05:6a00:2e8f:b0:63d:2343:f9b with SMTP id fd15-20020a056a002e8f00b0063d23430f9bmr1242587pfb.19.1683273469814; Fri, 05 May 2023 00:57:49 -0700 (PDT) Received: from localhost.localdomain ([223.233.65.180]) by smtp.gmail.com with ESMTPSA id p17-20020aa78611000000b006242f4a8945sm988873pfn.182.2023.05.05.00.57.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 00:57:49 -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 v3 2/3] arm64: dts: qcom: qrb4210-rb2: Fix CD gpio for SDHC2 Date: Fri, 5 May 2023 13:23:53 +0530 Message-Id: <20230505075354.1634547-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230505075354.1634547-1-bhupesh.sharma@linaro.org> References: <20230505075354.1634547-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") Reviewed-by: Krzysztof Kozlowski Signed-off-by: Bhupesh Sharma Reviewed-by: Dmitry Baryshkov --- 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 504543ad1a1b..abea44fd369d 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-0 = <&sdc2_state_on &sdc2_card_det_n>; pinctrl-1 = <&sdc2_state_off &sdc2_card_det_n>; From patchwork Fri May 5 07:53:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 679626 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 684DBC77B7D for ; Fri, 5 May 2023 07:58:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231489AbjEEH6J (ORCPT ); Fri, 5 May 2023 03:58:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231448AbjEEH54 (ORCPT ); Fri, 5 May 2023 03:57:56 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0A251885B for ; Fri, 5 May 2023 00:57:54 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-6436dfa15b3so1030686b3a.1 for ; Fri, 05 May 2023 00:57:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683273474; x=1685865474; 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=GD6YbDZJJDCG3Q5EdUcKmwfee5oU9TXm3B1yJ9ZVarQ=; b=N1TugOu6fhexCXgNCR5Maq3QrUAZ66h96UWDhvmdBaRm7Ua3+mAADc7WA+HKuk2fSq IlZdjnIq6SiBa8G33g+2c/DHK47vfAvA8YQQR0eF4eAXaA9lpKf7K6hAIW6swx6EwMvN rFvASjyBhqRRb90KTXKESqI0rBcsJ0cvtiGpis7DAQsXxyIgN+2WIJ+i57EnNwbkdCu/ jPSHyvBxAqdqL3ENIPHEdB/2/EDmzhx5Q0MB+x76S7zh7VogpPs4ziVbPpVbTuZB21jv bNVgX/wPL5k86SSIkRn9A0e32BQg1mxc1KFIj+5u5A2RW6pWZDlnqOjOgbxq+oIdwfhZ TYfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683273474; x=1685865474; 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=GD6YbDZJJDCG3Q5EdUcKmwfee5oU9TXm3B1yJ9ZVarQ=; b=Y5T/TUUPQZd2jOhZsZHjRlYOFbUXsrHSnbB4KObaABn0fpdrSItLPKMeIs8IwAovhI 4eixp8LttwRlXfAQEACDGB0HRllzJyufXCgbqKhJ5M/OnnlRl+x/ibn85Nl/11nI6Frj XGWvpBIozyicUxqTvPoSIQYdbZlopdFEXvu/FRHib7y2xR2gFfTBHA/EKWyKzrRAVeGl t/hFJTppwwVcaiUodCl1iveibt/hVjd/cRi7pEE76Wf+kvhdKPmQqAqOXgTUfYdKVxdF QTOSV3bwL8o1AjAzJty0Yv+MU0yratnqbPx85hIJ1fZLd6rHXZixaUEG5/gGe1C5mHRX tT/g== X-Gm-Message-State: AC+VfDwvmGc5Uq1j6frBPBnFYeJEPrz8XcdRfMFy4JvV3mwhlWwvsuwE 5i9FGGUAOHgv7HKtxajjwXybHeuXjhrPse1dFns= X-Google-Smtp-Source: ACHHUZ58rGOnzG8XteNveNsjh99imnsda89PwBgCattqqQeSOK7NDttTHPHxNTkEnvAFf11gZ2caTg== X-Received: by 2002:a05:6a00:2401:b0:63d:3339:e967 with SMTP id z1-20020a056a00240100b0063d3339e967mr1299592pfh.19.1683273474272; Fri, 05 May 2023 00:57:54 -0700 (PDT) Received: from localhost.localdomain ([223.233.65.180]) by smtp.gmail.com with ESMTPSA id p17-20020aa78611000000b006242f4a8945sm988873pfn.182.2023.05.05.00.57.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 00:57:53 -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 v3 3/3] arm64: dts: qcom: qrb4210-rb2: Enable aDSP and cDSP remoteproc nodes Date: Fri, 5 May 2023 13:23:54 +0530 Message-Id: <20230505075354.1634547-4-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230505075354.1634547-1-bhupesh.sharma@linaro.org> References: <20230505075354.1634547-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 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts index abea44fd369d..3e8ace0ceebc 100644 --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts @@ -34,6 +34,18 @@ &qupv3_id_0 { status = "okay"; }; +&remoteproc_adsp { + firmware-name = "qcom/qrb4210-rb2/adsp.mbn"; + + status = "okay"; +}; + +&remoteproc_cdsp { + firmware-name = "qcom/qrb4210-rb2/cdsp.mbn"; + + status = "okay"; +}; + &rpm_requests { regulators { compatible = "qcom,rpm-pm6125-regulators";