Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp637568rwd; Thu, 8 Jun 2023 05:59:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4jmRVr5YDXjZb0gqNBjBJLDjxIewpMJu8gSd7gkIqzcVSbUw76/109mZ9R6OhgL2CiOg0M X-Received: by 2002:a17:903:41c6:b0:1b1:ac87:b47a with SMTP id u6-20020a17090341c600b001b1ac87b47amr9585490ple.65.1686229143815; Thu, 08 Jun 2023 05:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686229143; cv=none; d=google.com; s=arc-20160816; b=kS5x2MB22/B5HpFTGm8+o2oufy/+giVZg0q3wtC3nbqdD7B2r8XTUsyPW+aVLd9/qJ PXt/3BqdtqvkiuIfPzvG3X79qqbqBi+nqV17N+tUO8LoS4pH3bXG53tgTVMLwZbEcBsB VQgcavn+wEGXohiajCZjifCB355BtH6V3btdEvC5ShEvWF9A4WYSMMQ0/+NEo2l2/FsD RTxsJzmpRtSLuAI0/+QNHZBRtkm2sQduc/Y5P3paEjcMX1kHJPOb8bKVGhl7rh3kW3/R /5qK3mRSn4lF/8CUhDieCNR2KDeOHQwLZMk+Tf4Qqq2kRoISjEVXnD3fgvFgHsLmIwVj 7LHg== 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=YziHmynId4IR2Mgz/ERaoYyCAyNCy8u3tHZC018mD34=; b=bAKnZA+xCzIYB5kuE6tyCZpswNbAc3gMTLmfBfACOs4vZc77MbN7OCIhts2T80LH5d N9+t5oCWXz/+Kog+GXX7S/OeImG4fNOBWwVPOQV3rsOZXXFVLtKmQgDsTyI+Phmns4S2 hlkFlizYDcFPvOSM3L0Xc0vtmbZ+2gMwFyZlnjWwSwpgp7mU3Ubplv4wNN4M73Ab8FAl IjcW/xKTvdOwJWGU/rC7ujHstrxgBYDSFg8DJtdTRjIvpwnGpd+ztBIhDfULXuoTPMi5 Zc94ofXHkSzHTp2TLNK1o2qFoxju09JN8L695xxa+vw1IM4rQtwcuhp7cOU41BgwXXce 8VMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GmeKnsJN; 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 i14-20020a17090ad34e00b0025691c00096si1020550pjx.140.2023.06.08.05.58.49; Thu, 08 Jun 2023 05:59:03 -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=GmeKnsJN; 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 S236706AbjFHMxx (ORCPT + 99 others); Thu, 8 Jun 2023 08:53:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236583AbjFHMxi (ORCPT ); Thu, 8 Jun 2023 08:53:38 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A3F42D65 for ; Thu, 8 Jun 2023 05:53:27 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3f7ebb2b82cso5245365e9.2 for ; Thu, 08 Jun 2023 05:53:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686228806; x=1688820806; 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=YziHmynId4IR2Mgz/ERaoYyCAyNCy8u3tHZC018mD34=; b=GmeKnsJNkH9RgaU5I6GNV2jUY/27u/Q+UISP0gAJd/UouxtIkVuvvV30YjprH6vWrY 8YUIS85NUSmwCeE+WqwDBw9jp4irOsN4MsN8QxNJ1p3Jj9FBMkOztrK+7foF9kyWW0w7 AgWz+ejXqS6Kv9uxcdrttSIzfuPTAEcDpoGFOprm/GVCkCvm6IrDGZsbFhLrZ8WXAZya sWWSGwot9gL4wEyFYGfIOC9Pm1Tw4yM84e7P8wNVgSyMD9rTG2z06rdNObdEEjnVTEoe 5AvPSbcuPBjfUJCpbHU6CFNakw6X2r8aoqVK78qjtp+8E5CsDUgN0kMDue8wXq3+Q0wi 2B/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686228806; x=1688820806; 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=YziHmynId4IR2Mgz/ERaoYyCAyNCy8u3tHZC018mD34=; b=l6ZMWI6muyUkTO/CBwb0xj2bpMmg3XnN7gd8nmN0wywFAKqD10wxD4wGs3XQo21O8W LUjdZW2egTfaKYTPPrIQnpGRF50m1l+E7IQUsaVW3UEKKZjqUwNRbxIGzUgdyOpdy+w6 BCHLqYFUS30yteQMjHFzuyHX1CD3rnimwESCINe+m45Y79iTShSogr9ViqspFWa2v7jz 6W15t+oX3zv54JBPumiEAQmIRgMOtjHOqk199dmaAKQ6OOoMK1KlltF6BVzSuEUrp74Q kBR23qVKh9wc1d4x6nsjW2sqCKyui6cSLPut7ATVCEdcvrpVOfqTHMq51qARwUcE9ST8 LUqw== X-Gm-Message-State: AC+VfDxPdFm868b/39WCDkG/TSBlZis0U2avfyUnAZj+MRyZEHmcfg6z AbdYPtAHmakePIqYq5hvI1eVdA== X-Received: by 2002:a7b:ca46:0:b0:3f7:34ee:413f with SMTP id m6-20020a7bca46000000b003f734ee413fmr1265342wml.5.1686228805846; Thu, 08 Jun 2023 05:53:25 -0700 (PDT) Received: from localhost.localdomain ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id m22-20020a7bce16000000b003f7e4d143cfsm1894032wmc.15.2023.06.08.05.53.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 05:53:25 -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 v3 5/6] arm64: dts: qcom: sc8280xp: add resets for soundwire controllers Date: Thu, 8 Jun 2023 13:53:14 +0100 Message-Id: <20230608125315.11454-6-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230608125315.11454-1-srinivas.kandagatla@linaro.org> References: <20230608125315.11454-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=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 Soundwire controllers on sc8280xp needs an explicit reset, add support for this. Signed-off-by: Srinivas Kandagatla Reviewed-by: Johan Hovold --- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi index 6730349e34f4..6b1bb203b1d1 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -2560,6 +2561,8 @@ swr1: soundwire-controller@3210000 { interrupts = ; clocks = <&rxmacro>; clock-names = "iface"; + resets = <&lpass_audiocc LPASS_AUDIO_SWR_RX_CGCR>; + reset-names = "swr_audio_cgcr"; label = "RX"; qcom,din-ports = <0>; @@ -2634,6 +2637,8 @@ swr0: soundwire-controller@3250000 { interrupts = ; clocks = <&wsamacro>; clock-names = "iface"; + resets = <&lpass_audiocc LPASS_AUDIO_SWR_WSA_CGCR>; + reset-names = "swr_audio_cgcr"; label = "WSA"; qcom,din-ports = <2>; @@ -2656,6 +2661,13 @@ swr0: soundwire-controller@3250000 { status = "disabled"; }; + lpass_audiocc: clock-controller@32a9000 { + compatible = "qcom,sc8280xp-lpassaudiocc"; + reg = <0 0x032a9000 0 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + swr2: soundwire-controller@3330000 { compatible = "qcom,soundwire-v1.6.0"; reg = <0 0x03330000 0 0x2000>; @@ -2665,6 +2677,8 @@ swr2: soundwire-controller@3330000 { clocks = <&txmacro>; clock-names = "iface"; + resets = <&lpasscc LPASS_AUDIO_SWR_TX_CGCR>; + reset-names = "swr_audio_cgcr"; label = "TX"; #sound-dai-cells = <1>; #address-cells = <2>; @@ -2858,6 +2872,13 @@ data-pins { }; }; + lpasscc: clock-controller@33e0000 { + compatible = "qcom,sc8280xp-lpasscc"; + reg = <0 0x033e0000 0 0x12000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + sdc2: mmc@8804000 { compatible = "qcom,sc8280xp-sdhci", "qcom,sdhci-msm-v5"; reg = <0 0x08804000 0 0x1000>; -- 2.25.1