Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp847440rwd; Thu, 18 May 2023 04:59:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4/JnzYANmaUIIQCIKlFkPquP46t9uYBAfQt9IXE3ZiRoQXsqilLhWRZP7/MFcZgqqlZmM9 X-Received: by 2002:a17:90b:1098:b0:253:340d:77d8 with SMTP id gj24-20020a17090b109800b00253340d77d8mr2113739pjb.33.1684411191142; Thu, 18 May 2023 04:59:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684411191; cv=none; d=google.com; s=arc-20160816; b=E4ozz+6N5eRJ6kfLXaz2wznu674EU8e0K1GS77TMlIfbyp1oK11izPqJMalooHaZET uPKmNiON/LooWw1+3gMZV4oQ9o9g0KPkqL2lltBhCuJiH4uW11QmPO8XG880tgH1tFkr kdxnqCJf9x0GwpdPYZWeQfr3IKK9MBuP5t5HP6CeCGDpK0hzkpJtQVYLUV+qwZ5W9P48 upVIPNSFXUXXKhd4CSA0sj8oFi7PdunakaQ1Qj2WpPQ1zgejsNVs9Od1z/TTrb8RSNNw 3f98U0CIT+hQ0a9GgIjQ91Nk6gFgPRqDCu/e5muIUrrY5214jYNxmnZYfXL91u1XLLS/ FDtg== 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=8Frmz6BUTi78qNKAnyUDI2sB3xiLlUUZ/RRfE43Q8FQ=; b=FnsGUrcpDbux8akZ02/IDYw8BSVirQ/m/tljdnWFLPE/oEU1cExfUrHJBE+wXiS1MP XqZDtDUoeKVj3jQZ2dQKZ8YCx3yn7IDru0akg5n7WS6Ael5i5US407ipC6apGnpiRazR 5KPTdadcOKZVtCC4OCDgJviYleZtA+BxIczMRVrkng/6Q5huswzW5j8i6XfaXLaoJgc8 MvKFclMFOu0YzItYd4ans43uylZdWyI2j7wIXNTc+c4j4aul01QUUzBvtk8oahmUQr0A a+mZ2Hlqudx9ndQGRu+Iufc7G85tkQZfqHk8Wj34yj1PzVFUwTwxzS060gxl6OMcMSnI gwVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U9NIAkhV; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q28-20020a638c5c000000b005304a8af2acsi1333075pgn.546.2023.05.18.04.59.35; Thu, 18 May 2023 04:59:51 -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=U9NIAkhV; 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 S230453AbjERLkz (ORCPT + 99 others); Thu, 18 May 2023 07:40:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231431AbjERLkv (ORCPT ); Thu, 18 May 2023 07:40:51 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25FAF1BC5 for ; Thu, 18 May 2023 04:40:25 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3f509ec3196so71537655e9.1 for ; Thu, 18 May 2023 04:40:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684409998; x=1687001998; 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=8Frmz6BUTi78qNKAnyUDI2sB3xiLlUUZ/RRfE43Q8FQ=; b=U9NIAkhVvca0066Yr4djQhpo9mqifAnkmKHo59xN7p73oSprjOddei8gVDX7VPy6uI hH/3uHvoBwTLr0rhZ7EFG3R1bZZakNQxL4t7doVa3eavQ7d/c011pxox65vYCOBOIB1n JzpBKWgiXeG1loBrTy4r7ODkSyxhzxlOUpllYVruO7WKTvNgZLz6GY/1YO7XvJkQ4Gy3 iugZRGsSSL6vdfZhORce41I4+XUjx0gToqBQxR52GmTDWiql/DdPtBcdKxv1bI5+MX1f wt2eDGhGR678wkQsBz+ZBdGRhUDpygdTAu9bhhPnLewabSCxicdCuin9C9jE7EmhgKL/ fY3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684409998; x=1687001998; 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=8Frmz6BUTi78qNKAnyUDI2sB3xiLlUUZ/RRfE43Q8FQ=; b=PD0wjm+ALf1ya7Y8OqF//DtNJ4HyVaHG3LB7PSakve8A0NhAqBZidyp5znGkPLQOmW 9MBuBtVTzYrQJFmLyVR2XpI7Sq0OclAyrFXnha9ylzwvXJWFI2xhnQmIq2STXdjX1cZC N3twobG5TXgeV4mhKq9TU88q8eY6R5LPyoYdecuhPPaIRLQGQX/pExh0wv4GkyvSgwYN dMBdqfnb7lIve0q7K0GwQxbYYSaw3XAoNIQI8dD2DxRZGL844K+9tyWHZwf7YhTgYInN zymHOlRmR9NaExI0wR2zMytp42rDqi+479gn+aMXfGYrS7fbxu/Ia9tmfvepvGSZ1M8J YuTg== X-Gm-Message-State: AC+VfDxq3xhZuuXkBRzCrhPKuTbkIdw9k8inz/HZ6tNrv8yQun2l4l1X Xsyc+VF9lazwYkvQsJ91esPsPA== X-Received: by 2002:a5d:51c5:0:b0:307:7959:6461 with SMTP id n5-20020a5d51c5000000b0030779596461mr1191839wrv.31.1684409998195; Thu, 18 May 2023 04:39:58 -0700 (PDT) Received: from localhost.localdomain ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id f14-20020a5d568e000000b003047d5b8817sm1897135wrv.80.2023.05.18.04.39.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 May 2023 04:39:57 -0700 (PDT) From: Srinivas Kandagatla To: andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: johan+linaro@kernel.org, agross@kernel.org, konrad.dybcio@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, conor+dt@kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH 5/5] arm64: dts: qcom: sc8280xp: add resets for soundwire controllers Date: Thu, 18 May 2023 12:38:00 +0100 Message-Id: <20230518113800.339158-6-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230518113800.339158-1-srinivas.kandagatla@linaro.org> References: <20230518113800.339158-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Soundwire controllers on sc8280xp needs an explicit reset, this patch adds support for this. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi index d2a2224d138a..a2d0f8abe23d 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -6,6 +6,7 @@ #include #include +#include #include #include #include @@ -2548,6 +2549,8 @@ rxmacro: rxmacro@3200000 { swr1: soundwire-controller@3210000 { compatible = "qcom,soundwire-v1.6.0"; reg = <0 0x03210000 0 0x2000>; + resets = <&lpass_audiocc LPASS_AUDIO_SWR_RX_CGCR>; + reset-names = "swr_audio_cgcr"; interrupts = ; clocks = <&rxmacro>; clock-names = "iface"; @@ -2647,6 +2650,13 @@ swr0: soundwire-controller@3250000 { status = "disabled"; }; + lpass_audiocc: clock-controller@3300000 { + compatible = "qcom,sc8280xp-lpassaudiocc"; + reg = <0 0x032a9000 0 0x1000>; + #reset-cells = <1>; + #clock-cells = <1>; + }; + swr2: soundwire-controller@3330000 { compatible = "qcom,soundwire-v1.6.0"; reg = <0 0x03330000 0 0x2000>; @@ -2654,6 +2664,8 @@ swr2: soundwire-controller@3330000 { ; interrupt-names = "core", "wakeup"; + resets = <&lpasscc LPASS_AUDIO_SWR_TX_CGCR>; + reset-names = "swr_audio_cgcr"; clocks = <&txmacro>; clock-names = "iface"; label = "TX"; @@ -2849,6 +2861,13 @@ data-pins { }; }; + lpasscc: clock-controller@33e0000 { + compatible = "qcom,sc8280xp-lpasscc"; + reg = <0 0x033e0000 0 0x21000>; + #reset-cells = <1>; + #clock-cells = <1>; + }; + usb_0_qmpphy: phy@88eb000 { compatible = "qcom,sc8280xp-qmp-usb43dp-phy"; reg = <0 0x088eb000 0 0x4000>; -- 2.25.1