From patchwork Wed Jul 19 19:28:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 704344 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 C6349C001DC for ; Wed, 19 Jul 2023 19:28:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231133AbjGST2Q (ORCPT ); Wed, 19 Jul 2023 15:28:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229604AbjGST2Q (ORCPT ); Wed, 19 Jul 2023 15:28:16 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABDAD1FD2 for ; Wed, 19 Jul 2023 12:28:14 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-991ef0b464cso256039366b.0 for ; Wed, 19 Jul 2023 12:28:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689794893; x=1692386893; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=uPoArgRK0ePPhHkMiGjMoj/J8C1a6a2nFfrrtKfK41Q=; b=w/i1U45+liuN+7k3F7LG/5hR+D6RXzrX3aWtCAoz6HbWRoQnApjOXh9G4ECBbOuSAP xJ1c4RWCvEbABPJzovFvL+1dF2LF2wAAshkdsc9kAwwJXo9vWlH6EUuSyAQFDAdqJX43 8IE1o8ao7Py4uEqQ7KDGtckj7N3+u7b3Pj36n622LgxUA6zUv03h2aeRtNQQwbxramOt SDn3k4ooAul4JOH9pJ8+Hs9I9F+F9ug7cQsMTrtbz6ndqOEcS+nkkEoAa17/pr2cq9Ce 8+bi5TJleHV4ujTNZLHC1B6oYWwsEtGp47grDydSldNhsZYvNcHfwuyAIl9tte5c5xhF i4IA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689794893; x=1692386893; 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=uPoArgRK0ePPhHkMiGjMoj/J8C1a6a2nFfrrtKfK41Q=; b=F1nR7jXLyY1E2K8pS+/hR8vWdlV27Xoc8sIHwKmqQiVHz1d5QrZ7cAbs6RvcCLre+g OFjQRSgHPKbb7SoeKhH5BonqIOdY+OrT060P56fOAIpe64xgpw0797YJp8gtZJR+bSUA g9HjNXe3PyfUT6g2nXq75W1pWNy+ZU0EIOiCtN6ORvplv7H+qVWfRGs4wZCtbAeXTBmN qDjl8V3OzuFDm4WUaOMsRmcD2L2bOdGOKHdvFisaqYwnq/R7a6K1MQ1kYRusHKR0ocM/ 0Hun052G1+12+Y8ciaZjUz+byuKubJ3PswcIz6Dd0xzAIisHzZs7IueVzoZ9ZI1WoZwn a64w== X-Gm-Message-State: ABy/qLZAg6cGH5g2ToQ6yin35lV/8gUGL/sDwOC+LDdhsPFMyQw/ErF7 RStdPP0hr9N2T0dMgMaOQnroXg== X-Google-Smtp-Source: APBJJlF+y4nvtoJttbysvyj57guiGA5ZQiUlcaYu+GQGAVt0Qi34Mbnk7AeL9aUgHhtcHI6J6eKA7Q== X-Received: by 2002:a17:906:77d9:b0:993:da87:1c81 with SMTP id m25-20020a17090677d900b00993da871c81mr3882864ejn.20.1689794893206; Wed, 19 Jul 2023 12:28:13 -0700 (PDT) Received: from krzk-bin.. ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id n26-20020a170906119a00b00991e2b5a27dsm2720966eja.37.2023.07.19.12.28.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 12:28:12 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 1/3] arm64: dts: qcom: sm8350-hdk: include PMK8350 Date: Wed, 19 Jul 2023 21:28:07 +0200 Message-Id: <20230719192809.434709-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org HDK8350 comes with PMK8350 PMIC, so include relevant DTSI. This also allows to use reboot reason. Reviewed-by: Konrad Dybcio Signed-off-by: Krzysztof Kozlowski --- Changes in v2: 1. Add Rb --- arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts index ad381d64d558..94e923962700 100644 --- a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts @@ -7,6 +7,7 @@ #include #include "sm8350.dtsi" +#include "pmk8350.dtsi" / { model = "Qualcomm Technologies, Inc. SM8350 HDK"; From patchwork Wed Jul 19 19:28:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 705400 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 35A14C001DF for ; Wed, 19 Jul 2023 19:28:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230100AbjGST2T (ORCPT ); Wed, 19 Jul 2023 15:28:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229655AbjGST2R (ORCPT ); Wed, 19 Jul 2023 15:28:17 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 933511FD2 for ; Wed, 19 Jul 2023 12:28:16 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-992e22c09edso8635366b.2 for ; Wed, 19 Jul 2023 12:28:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689794895; x=1692386895; 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=oXORDHgGhZ0UNUEfOGNvNVT4D4Hu/uTaxuOqQHkAbdc=; b=mtBQ06YHDjGD1HTOpO6/bWft1bPcY5CjVFMBEn0GXmOxdMlSMgt0pCHQEBkqKwBIa9 giDYD8tEbuR21B8jMesh+mEOXXKEsXy+o9tWMsXPDnSCqlbcma5+EeKJqw7FWFzmLOjL 2xykcP1olnehWFO7aJ93vJk3s4KwoZGz/EvpogRxMxVPBQq1weXLr+G/aJXAxczIBKC0 gFUIxTmzkkSvwoV+RzYkM+yA9UODtgT/k2gC5Z80mklzds7rRdC/lgo34g9bFmsIt1Km VAkQ199XT20mfDJjwvuOGME+gqSl6M/5vVoUnGajs5r8WhT7fr1Gqt/lxK/qEZkKboqY DKWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689794895; x=1692386895; 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=oXORDHgGhZ0UNUEfOGNvNVT4D4Hu/uTaxuOqQHkAbdc=; b=bNnu3zkvhgmYBn9FA+l3BxbeUtlt+6pHrJzZzUk2sv9oMmsq3/YCX59rk3nWPu4e2g iihsq9d9n6bUTLJms84qaajqi6p7qNJspmrqVdqaY4GIxC7QwLsmpbsUm/O2LAMciFI8 KWgR09drmB8wgaRQEUbqnZjqsV1J8wjSkpM/yiI62hLRRF+WotLLOVYiTLATNRgKrl9N SfjD/iVQGLy+hLy2Nc2y/13jQVvod4CxAQwVlwdblyU0EJ7uni/l7Warzh0JreMD/4hx llU92IPX5JTy0viy4hfEfLHAgvaUNjQ8N7fDS/CI+G/T0KzVk8Ac46riMfjCLokEJFkp JLlA== X-Gm-Message-State: ABy/qLaLTbnNaMPyVMnNAiPMK4I6sp2FFFkoBtbjaOwdb1jED4MAuAuP FOIfwgG9FX3Thc4G0GQdwImlLw== X-Google-Smtp-Source: APBJJlEgGgmpGVrHEX9XLHujnSQpbhecvErcWD7txG7y/st29hNQEf7W5HzDhgqBZGQC7X+XqemC0w== X-Received: by 2002:a17:906:f9c2:b0:989:34a0:45b0 with SMTP id lj2-20020a170906f9c200b0098934a045b0mr2878863ejb.49.1689794894977; Wed, 19 Jul 2023 12:28:14 -0700 (PDT) Received: from krzk-bin.. ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id n26-20020a170906119a00b00991e2b5a27dsm2720966eja.37.2023.07.19.12.28.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 12:28:14 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 2/3] arm64: dts: qcom: sm8350-hdk: add uSD card Date: Wed, 19 Jul 2023 21:28:08 +0200 Message-Id: <20230719192809.434709-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230719192809.434709-1-krzysztof.kozlowski@linaro.org> References: <20230719192809.434709-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add uSD card to HDK8350. Reviewed-by: Konrad Dybcio Signed-off-by: Krzysztof Kozlowski --- Changes in v2: 1. Add Rb --- arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts index 94e923962700..79d832058cfe 100644 --- a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts @@ -468,6 +468,18 @@ &qupv3_id_2 { status = "okay"; }; +&sdhc_2 { + cd-gpios = <&tlmm 92 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_default_state &sdc2_card_det_n>; + pinctrl-1 = <&sdc2_sleep_state &sdc2_card_det_n>; + vmmc-supply = <&vreg_l9c_2p96>; + vqmmc-supply = <&vreg_l6c_1p8>; + no-sdio; + no-mmc; + status = "okay"; +}; + &slpi { status = "okay"; firmware-name = "qcom/sm8350/slpi.mbn"; @@ -726,6 +738,13 @@ wake-pins { bias-pull-up; }; }; + + sdc2_card_det_n: sd-card-det-n-state { + pins = "gpio92"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; }; &uart2 { From patchwork Wed Jul 19 19:28:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 704343 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 4CE2EC001DE for ; Wed, 19 Jul 2023 19:28:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231199AbjGST2U (ORCPT ); Wed, 19 Jul 2023 15:28:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229776AbjGST2T (ORCPT ); Wed, 19 Jul 2023 15:28:19 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36B5C1FCE for ; Wed, 19 Jul 2023 12:28:18 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-9922d6f003cso13077766b.0 for ; Wed, 19 Jul 2023 12:28:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689794896; x=1692386896; 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=TcNmIsuW97qQDEgueal6oZwyfTvcbga5wSv8p96tsDE=; b=AeiVpxzYqw1J8CS8ahzshvssmNLZoPlbRPOo3TE+s8oOGabZx7kYQEzFJTJxvFm6NN 2eJOZRGqri+1pGvHfmmqo0VWoduIACmzb7LIHYfavPRma3b49mzs+G0WmXUNjbmg1F4r AT9KwRb+mSAfjHETLFzacqSPXjpuby7p9V10CmYNx/I3V998/6YnTN00nAsfwPgm1G3d UDFjeUynmwYCD+DE8rOmBg/FfmU63ZsYt7F0SeWkGCg8OJla7FHncHhl7AoYjyffobfz qzmDc5rz/tsA8feYW6Wukpw0FLEEscGL5Lm9si/qztMPRUTaALAXFfwxb7dhKnd8T+BT ia5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689794896; x=1692386896; 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=TcNmIsuW97qQDEgueal6oZwyfTvcbga5wSv8p96tsDE=; b=T61fxLLwxptpQtFVA1mE8G1besTWKOKEjqq37UBp6svDTvnqPjIaoh7QrgpVleqKBp JmDqbKx0NzL6KunRGlbyeiMGtCi4E2yxtheOqq+1NaXTwBs43WpoTupxc4MoqDxzZjQT Ki1sWwqcfgCn/BOXDDrm1arr2H8dXLIVztyGy8bj+bAA1oussUF+SI6zDhjOHqAOYE3d BOxA9+JDe+m9b4lTgi+8sXpCh+JWfFtxyQW7uIB0Yz2x47mau8BIfxIlFLlf9hm3Ko8A JP1uOZX9zFY5sTTe3ye/4fqylBFdNI3gR0OACmyAAi3mbRWiObGnYzraKi66hZibECOu 4swA== X-Gm-Message-State: ABy/qLbbr3wSL1xecnpzJZKjwuiXZm0h4z569dfKjLIgSiW8vDtJkw4M 58eorh1knoo9NsihGwcqiidU0Q== X-Google-Smtp-Source: APBJJlEhpxysmSlsUa5KsviCsOAPYZaY2KzsGJpRjCmWaqkRbLK3f4l4BX361s9nVHpem2OwAYRbtg== X-Received: by 2002:a17:906:151:b0:992:ef60:aae0 with SMTP id 17-20020a170906015100b00992ef60aae0mr3392724ejh.54.1689794896644; Wed, 19 Jul 2023 12:28:16 -0700 (PDT) Received: from krzk-bin.. ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id n26-20020a170906119a00b00991e2b5a27dsm2720966eja.37.2023.07.19.12.28.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 12:28:16 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 3/3] arm64: dts: qcom: sm8350: add APR and LPASS TLMM Date: Wed, 19 Jul 2023 21:28:09 +0200 Message-Id: <20230719192809.434709-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230719192809.434709-1-krzysztof.kozlowski@linaro.org> References: <20230719192809.434709-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add audio-related nodes: the APR in the ADSP (same as on SM8250) and LPASS TLMM pin controller. Signed-off-by: Krzysztof Kozlowski --- Bindings for SM8350: https://lore.kernel.org/linux-arm-msm/20230616185742.2250452-1-krzysztof.kozlowski@linaro.org/T/#t Changes in v2: 1. Use "0" as size in "reg" (Konrad). 2. Add missing blank lines between child nodes (Konrad). --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 85 ++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index 557a3d8e889b..84044d0610fc 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -15,7 +15,9 @@ #include #include #include +#include #include +#include #include #include @@ -1814,6 +1816,20 @@ tcsr_mutex: hwlock@1f40000 { #hwlock-cells = <1>; }; + lpass_tlmm: pinctrl@33c0000 { + compatible = "qcom,sm8350-lpass-lpi-pinctrl"; + reg = <0 0x033c0000 0 0x20000>, + <0 0x03550000 0 0x10000>; + + clocks = <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names = "core", "audio"; + + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&lpass_tlmm 0 0 15>; + }; + gpu: gpu@3d00000 { compatible = "qcom,adreno-660.1", "qcom,adreno"; @@ -3223,6 +3239,75 @@ IPCC_MPROC_SIGNAL_GLINK_QMP label = "lpass"; qcom,remote-pid = <2>; + apr { + compatible = "qcom,apr-v2"; + qcom,glink-channels = "apr_audio_svc"; + qcom,domain = ; + #address-cells = <1>; + #size-cells = <0>; + + service@3 { + reg = ; + compatible = "qcom,q6core"; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + }; + + q6afe: service@4 { + compatible = "qcom,q6afe"; + reg = ; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + + q6afedai: dais { + compatible = "qcom,q6afe-dais"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + }; + + q6afecc: clock-controller { + compatible = "qcom,q6afe-clocks"; + #clock-cells = <2>; + }; + }; + + q6asm: service@7 { + compatible = "qcom,q6asm"; + reg = ; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + + q6asmdai: dais { + compatible = "qcom,q6asm-dais"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + iommus = <&apps_smmu 0x1801 0x0>; + + dai@0 { + reg = <0>; + }; + + dai@1 { + reg = <1>; + }; + + dai@2 { + reg = <2>; + }; + }; + }; + + q6adm: service@8 { + compatible = "qcom,q6adm"; + reg = ; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + + q6routing: routing { + compatible = "qcom,q6adm-routing"; + #sound-dai-cells = <0>; + }; + }; + }; + fastrpc { compatible = "qcom,fastrpc"; qcom,glink-channels = "fastrpcglink-apps-dsp";