From patchwork Mon May 1 10:20:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 89019 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2600859vqo; Mon, 1 May 2023 03:34:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4u8urjOq/3sdPjoQ+E7VtSJTcmKXLY90Hm5/oskpJMux81rcmqv6uvPF386MV3I4fucgmg X-Received: by 2002:a05:6a20:2302:b0:f2:13cc:2914 with SMTP id n2-20020a056a20230200b000f213cc2914mr12843213pzc.16.1682937271483; Mon, 01 May 2023 03:34:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682937271; cv=none; d=google.com; s=arc-20160816; b=A7MouWmZLdNp7fLpPhWFYiEdPYnXvzm/J9CjJX9oNNHKmRBIeSgs3DE7ZHdbd0gJSf A/Ay+z+pD8X3/bK8Sk49BXxUh+i9EC3t0/+eXQU014L948xSqLOz9L9mEs8tW75JOsCH +6kCuL08nv6hG2+fFtSj8XyHi93wtKf21p2fhxgLFv2URCe0sEhi+h09/OR9lkz7THXy OVbT+ECFaIZe/5pg9ASUd3pm8WZ/Z5gpzUWUXzkvn1S1OOt/l/MTEPtiKLYDgGuN80mO hMf1n8QXK5tFDWrjQCGUKhi4fzOe9vX9J6bLQEQKsM1LncfmoVZLja67Tc/EslKnx7td 3YyA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=380yTQfyf1kIhmDwtCqc51zaHbJPWsGW9xsWD9WICFk=; b=oRW2YhxOtWOW2PAsujT2A0/S/CHCFE510RGOL4z0q6god4xrawP40V0HcLilq1i1A0 LhwhJvEo/VVm+c9f7yhZE1+wFUmjoXDxyJtwhcCWH5Ey6ZWA5dg/L5LXDt+ds3JK5bgF jwXZTv/6nUjZQ5GVvt3kRK06yZrgivsY7nTxwPZ7Nk+yrU73LFU2URcLtjfPLCOuvG+w 4i0Zm8LyRhtxw8C6AyIo2HjN3iSuy36E+e3SxP+vfjo42QimpKJoOBg4+ILIG1spuR/o S4GjQx4H0QJgQeyVNsU847i0jfmmaVK0Hp7bH96nyN+3OLp9vx/2l+TGrie6WOiqIadU 2isg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="h/y3juOS"; 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 e18-20020a63e012000000b0051b5fc497e9si26880895pgh.739.2023.05.01.03.34.19; Mon, 01 May 2023 03:34:31 -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="h/y3juOS"; 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 S230139AbjEAKVK (ORCPT + 99 others); Mon, 1 May 2023 06:21:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbjEAKVH (ORCPT ); Mon, 1 May 2023 06:21:07 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0BF510DB for ; Mon, 1 May 2023 03:20:51 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-63b7588005fso1814966b3a.0 for ; Mon, 01 May 2023 03:20:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682936451; x=1685528451; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=380yTQfyf1kIhmDwtCqc51zaHbJPWsGW9xsWD9WICFk=; b=h/y3juOSd6/vq5PkD8g1lfgt7gRr2G4qvTvcRjGxmyhskKd3nLwXcPUfMXwf5SJIKS rJYU5eU7EykSblwIzRMnPP85C+O3rP6cnjNNvPl4qAZzVTdkLczyT0AjH4ncHhx2tUGW rN/wPqEtJL1QlVC7RFgWrq7HiSf1EqwcnEdRqHbVKSd7epM5uiWdELxdQrfrUiGqzwP4 6vJ1dV15d0lk34hgUGIRk4WihZ45MJFfYOeUg3l/wARbcmosHv8vv+fSZ1bVIRko+DGQ dUsHoamsdBNuCMzPE/zrFb8Uk34hVsftMB4yAu/zQuGCO9GHMiHJwx4BWwsj19RDlaV2 oqSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682936451; x=1685528451; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=380yTQfyf1kIhmDwtCqc51zaHbJPWsGW9xsWD9WICFk=; b=L8ZL6M/bBLjqjjmIrGjSeI3BsEJpVaob+ZkBXfuJz85YT99nbEWy9DNjzA0C2RtKHc N6ssCPthQYy4B6PfQet6I/fUUd4XOuXDihpGAUw8QVAo4d1r/0Q9KdkRh58wx1YYRSkW sIRli64rh7W2PrCbfm8OEe0RfC6/wGIDLrLFAXtx97rYjDA+Uy9ezcUKgn6goiZ1NpNY aJAoUqnXLbHW7NfXcS/C0sbWL47MQVoSq1IKPVJZYhlGGXfw19JSZSlr0pk6gmlBeaBo OHnx5fpqvmSGNvzJUI4QtCSeuvij3ZJL029v2uFDf/S6FOIedpotOe851ItaRIYIJx+k HFHw== X-Gm-Message-State: AC+VfDxmp1cZ4ApNN+XKYsYqbrWqgc7abIQprm/g9/hxU0iEQfgUcqGO u/o7k6zsPPjZQWBHxm19nGbVNVKP6nZXxqkCQto= X-Received: by 2002:a05:6a00:1916:b0:641:3ca2:1aec with SMTP id y22-20020a056a00191600b006413ca21aecmr11446875pfi.27.1682936450993; Mon, 01 May 2023 03:20:50 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3b:58fa:39f6:37e1:bb9a:a094]) by smtp.gmail.com with ESMTPSA id k16-20020aa788d0000000b00625616f59a1sm19198903pff.73.2023.05.01.03.20.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 03:20:50 -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 1/2] arm64: dts: qcom: qrb4210-rb2: Add SD pinctrl states & fix CD gpio Date: Mon, 1 May 2023 15:50:34 +0530 Message-Id: <20230501102035.1180701-1-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 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,T_SCC_BODY_TEXT_LINE 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?1764687632209458121?= X-GMAIL-MSGID: =?utf-8?q?1764687632209458121?= Add the default and sleep pinctrl states for SDHC1 & 2 controllers on QRB4210 RB2 board. While at it also fix the Card-Detect (CD) gpio for SDHC2 which allows the uSD card to be detected on the board. Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts index dc80f0bca767..bff6ba1d689f 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; @@ -199,7 +203,11 @@ &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>; + 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:20:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 89018 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2600804vqo; Mon, 1 May 2023 03:34:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7i8j8dGXg7rPn64YiXyZx4XSTXe36GNyJpru2J8Um8T0DoMJfOqhl+00ikAifSJnp3hdbJ X-Received: by 2002:a17:90a:9c9:b0:246:634d:a89c with SMTP id 67-20020a17090a09c900b00246634da89cmr13679087pjo.41.1682937263708; Mon, 01 May 2023 03:34:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682937263; cv=none; d=google.com; s=arc-20160816; b=Xku8YpOFaaSYGvkycbJVLO7hLTYbVOFGqW31kE97YjhQem2CFasEmlI26jKkqLltoC 34oLuKYZDo5/pJAmJbWNN9kFvLlz0XsHbPB6YXc3oJry9BP1J0W48s+ktZDhKdWG/mGc diL/UKGJOFUbJUPa43wUVE6q3u3p/w4lQYpQsVskoTIreZisWDzjjYxY5j9ydsUu3ZEP Hu+1Xw+CoNtbaQFYdfSqxYwNN8Tm6CZsteLmT9EelDZejLx/0NdPDWQvOHi4DwVPJyId jR4tuABiq5ZY+gySY2yR3komH4h+lfWg837LMnMTZM3wofo4Y7Uj2Wss9CLagyLayx5N qjAg== 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=SHlYfVSIlUv7hGQmE6g33A1D+HGAd8m4wWI+iWluRyQ=; b=wo0RaBz5hN3wEdZWSI7pP+IhoqA2EFqU3ZrYq0zQJhSIdW/afbwPrYs/3HWnDlmwBW rO8RYFcaovb4+DqUhu2LVJG0AQ0O2SJCWHptA+UZysn5aa/SUlgEhmUdYdkTnemX+cco Sz6uCrPQQdwoswv1ebcWsRl7QxOeAfTZbm8JZT/TMTE5Z/D9uJms92Cwn/rbemLRSBPt WWLZ5XsiQXKDtilpMQjMe2mKpCUL1zvdYXcOfgYymsKMXAfJsOvRlhvMEYF+u6b+qM1K 0Sefb7t0VU7RghAf3J6aB988DIYCkf6WntOyFR3USK4FefcC48347pWG83kGUcbE2d8e L+lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kyb9iYRW; 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 v11-20020a17090a898b00b00247a63b7bdfsi29202484pjn.43.2023.05.01.03.34.12; Mon, 01 May 2023 03:34:23 -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=kyb9iYRW; 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 S232369AbjEAKVS (ORCPT + 99 others); Mon, 1 May 2023 06:21:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232353AbjEAKVH (ORCPT ); Mon, 1 May 2023 06:21:07 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A255C10E0 for ; Mon, 1 May 2023 03:20:55 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-63b5c4c76aaso1600342b3a.2 for ; Mon, 01 May 2023 03:20:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682936455; x=1685528455; 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=SHlYfVSIlUv7hGQmE6g33A1D+HGAd8m4wWI+iWluRyQ=; b=kyb9iYRWJ0T9GXYIoXJ9Etz6KGQwlOAM30OZvmRMZklQGGszXI456Kx7O2qp6EsXpH Qe/PiK+RVIMDGk7bc7Bwkrh7MI+Nn9U8MRKW5umCgZNPxQCcOwdO8fO61uL10cq/xL8J 8wJG3SCzE2zAIass8SHiqmAnPqydtOlhz5W9WMxvcI2Gnrel2NfLAOH2uPw6bZtimM+2 rHi9TB8HB1+k33xJqN43BZwqfkjjYUmpZDfa+1xyXQLwmf5mpgEUsVu+9mEvWpF5J4JK fD19OKi7L33tMRJa7atgRYrv2cjpmezqvukDFubI+VywUi8aF1JPiBB8SrLQ0+foQGY5 ur+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682936455; x=1685528455; 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=SHlYfVSIlUv7hGQmE6g33A1D+HGAd8m4wWI+iWluRyQ=; b=fItDDsdCFgQKV6lnBEWZRmO5poXkjkwU92i8tdWWc5KEfZmLPF2597mFYtdg/7GFgQ ZhXqiqGLYZptayPcNcKxBG5mndBDztySFObwoW3vAExyFKffKi8p3KjP/6q6Zsm+k0T2 BAN6oKWUiJ5aGQcD8/xlgNXCnNaXW5IHCViaRUyk9Ep21AsooaTzV/QdsLglGuCDxuQm /4aEUG7oksubwU2aJjg75+x4mOgGaiuShbDTZjXiNbGEyai0Nlzei3e1rPNmXCDac143 tpFgw6mcMkhto+uQBNE0w2yPrxvjRxoYQCpy1K4LVcfR/xJ1sYiJiLfYUgAyzvviC+rd hmsQ== X-Gm-Message-State: AC+VfDyUb27b7W5kOJ/JJaKYkLofwz+sdAelN73nK/vYLrovEh7Cj+S2 lUMFk2WrTTycv/cRvrrD7XvgzA== X-Received: by 2002:a05:6a00:21c3:b0:63d:489c:971 with SMTP id t3-20020a056a0021c300b0063d489c0971mr18732922pfj.24.1682936454992; Mon, 01 May 2023 03:20:54 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3b:58fa:39f6:37e1:bb9a:a094]) by smtp.gmail.com with ESMTPSA id k16-20020aa788d0000000b00625616f59a1sm19198903pff.73.2023.05.01.03.20.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 03:20:54 -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 2/2] arm64: dts: qcom: qrb4210-rb2: Enable aDSP and cDSP remoteproc nodes Date: Mon, 1 May 2023 15:50:35 +0530 Message-Id: <20230501102035.1180701-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230501102035.1180701-1-bhupesh.sharma@linaro.org> References: <20230501102035.1180701-1-bhupesh.sharma@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,T_SCC_BODY_TEXT_LINE 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?1764687624200423072?= X-GMAIL-MSGID: =?utf-8?q?1764687624200423072?= Add aDSP and cDSP remoteproc nodes for 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";