From patchwork Tue Dec 1 15:37:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 335135 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp212718ilb; Tue, 1 Dec 2020 07:40:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/S3srHfGBNyIGsVfECDHN/ZdVDI+kEB9p7+pxTNR4b0YaASVU/NIkkI0TnClKoiMTeVeV X-Received: by 2002:a05:6402:1ad1:: with SMTP id ba17mr3585211edb.51.1606837201221; Tue, 01 Dec 2020 07:40:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606837201; cv=none; d=google.com; s=arc-20160816; b=sl6uG+QlBTWjxmke8vk+Zz59RV8ezbX0wkVVN25Av5aDnSHW0A7YJQ1+ZkqLv+6uGj /uXovvpvli7/svmtSId0pkh8EeHsRZC/vkvxksUdkow3yQd6NNSr74upSdfjFXb6QxNl ei9L2ed1vN2dT56p8DHKxXHJT/0j5v0az2xQ9WlmjjtnlZe7DYVBx2pwb3JNJg16+USV 8ftvReTLt5SrE0ANyix3BDa9CqQWSoJpze2AgY6r2QSMI91G03pEgI4Q0zSe3oTBK9Qf n6+aauYwaYojhbPCMWkIpHzfy4U4JIVnfsbGBXBn9lGLqHhuCank9rUK6PLD5zx+uy2V 2akg== 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=lRg3pwqDu/VoieERe7nqqzEqQSkTOmr6u0qBR4l6xpE=; b=XOmbi1bOzyp/3l/M/7s5eUxRbW3bVvHAnYQKxcP/j6IVOlvczL8xXvCwezOuy3nNqZ t0FitNz3bYtaCxOo10U6KeWsxJ99UYVDfUsk7+YKlyGn6AO+tGSRdyLeY49WQTIG2D5E U1LUQhS1ZEo+QO6amHHcyoa10u0ZRoXODw6ThsVW/fulEL1c2cN39TC/GdSoRE3WqKHJ gq2mCxhq+lHCSqkHgBbhMAmlwTlah+UC18ykHjZruuN2mbjVMM7JA4hahxC1uHg3qHbe dlxrZyBhmmkYHIpQpWxx3PLBzs0HmEp+GBgF0YzPBVGnOPcGk6AOU+bqu2vbEV1PnNua ptdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rG06myb+; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l9si104532edi.199.2020.12.01.07.40.01; Tue, 01 Dec 2020 07:40:01 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rG06myb+; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S2391875AbgLAPip (ORCPT + 6 others); Tue, 1 Dec 2020 10:38:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391850AbgLAPim (ORCPT ); Tue, 1 Dec 2020 10:38:42 -0500 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 320ACC061A4E for ; Tue, 1 Dec 2020 07:37:28 -0800 (PST) Received: by mail-wr1-x443.google.com with SMTP id 64so3267333wra.11 for ; Tue, 01 Dec 2020 07:37:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lRg3pwqDu/VoieERe7nqqzEqQSkTOmr6u0qBR4l6xpE=; b=rG06myb+y4BTb4pXflRO0w2jwQhacHqbLmRYJEZPdaXT9sHju16t0xk92wf4gjXyEv 43RL/jJZ0irQY5w+91x3FdIdviotfsb7Ms5BKGTnnctgb112Kt3FR/echxIA/00j3YrL zxqQpHWpSfQE1dxZ0zpg334ewXVMa8K5UaPBoXhl7hwjjLwHNQAU3NSUKFLMS3jkqBQO Kv+Oqy3pW882x7aeE9e8eTCG4G50u8UdZSZcF8Brb646zOCbQvAYzRBm9t6AKAy8/cZT 1k/MAGNy2F+VMIdgJ3LM1fiVvNV1jNPpvbWuBqp1gh0zGL3HWfiabEtC4m8lM0Mt7pMF jGnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lRg3pwqDu/VoieERe7nqqzEqQSkTOmr6u0qBR4l6xpE=; b=LXZ5dbNEcKTpMixdn3XcebjPC5J1TnaCNLJ8kAOIhTQP9fF3mOsDkto7N06iZIRv3O Z1GN7YzLSNmYXoMGrtwirRGpWjho5YYIVzE7mDCajLa5ClOhlDaPNoMeizd+Y1+h+7qB zBYPVdnU+gsXWXgBq16dbe53386yPBkaZJynkuFZGw2AGeH+1/ha/aGClLT253Y8VHIG lF7y7NMVrsVs5jQUbu0AkvNMsmVkxOF8zcgGO6EmssEB/Pvow9aOwCwJ6CQlL/XgpHQe mczXS8C9dbtnVFndlVlYyC9ho/X3HAnjYiWucWlKlr8zy3r9udr/Pw+9W3DX+GQBU3VR xMdg== X-Gm-Message-State: AOAM530PQ4qGg/q4R0MkYIjIUcMydvCFC16U9Qx8dowQSDCrAxsn/QA7 PCu6I7uoYIYspE+CTsFb4BQ1KQ== X-Received: by 2002:a05:6000:187:: with SMTP id p7mr4531496wrx.240.1606837046877; Tue, 01 Dec 2020 07:37:26 -0800 (PST) Received: from srini-hackbox.lan (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.gmail.com with ESMTPSA id y7sm302171wmb.37.2020.12.01.07.37.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 07:37:26 -0800 (PST) From: Srinivas Kandagatla To: bjorn.andersson@linaro.org Cc: linux-arm-msm@vger.kernel.org, agross@kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH 4/6] arm64: dts: qcom: sm8250: add wsa and va codec macros Date: Tue, 1 Dec 2020 15:37:04 +0000 Message-Id: <20201201153706.13450-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20201201153706.13450-1-srinivas.kandagatla@linaro.org> References: <20201201153706.13450-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add support for WSA and VA codec macros along with WSA soundwire controller required for getting audio on RB5. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 56 ++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) -- 2.21.0 diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 4e1309b6571e..19dd7460e586 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2702,6 +2702,62 @@ }; }; + wsamacro: codec@3240000 { + pinctrl-names = "default"; + pinctrl-0 = <&wsa_swr_clk_active &wsa_swr_data_active>; + + compatible = "qcom,sm8250-lpass-wsa-macro"; + reg = <0 0x3240000 0 0x1000>; + clocks = <&audiocc LPASS_CDC_WSA_MCLK>, + <&audiocc LPASS_CDC_WSA_NPL>, + <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&aoncc LPASS_CDC_VA_MCLK>, + <&vamacro>; + + clock-names = "mclk", "npl", "macro", "dcodec", "va", "fsgen"; + + #clock-cells = <0>; + clock-frequency = <9600000>; + clock-output-names = "mclk"; + #sound-dai-cells = <1>; + }; + + swr0: soundwire-controller@3250000 { + reg = <0 0x3250000 0 0x2000>; + compatible = "qcom,soundwire-v1.5.1"; + interrupts = ; + clocks = <&wsamacro>; + clock-names = "iface"; + + qcom,din-ports = <2>; + qcom,dout-ports = <6>; + + qcom,ports-sinterval-low = /bits/ 8 <0x07 0x1F 0x3F 0x07 0x1F 0x3F 0x0F 0x0F>; + qcom,ports-offset1 = /bits/ 8 <0x01 0x02 0x0C 0x06 0x12 0x0D 0x07 0x0A >; + qcom,ports-offset2 = /bits/ 8 <0xFF 0x00 0x1F 0xFF 0x00 0x1F 0x00 0x00>; + qcom,ports-block-pack-mode = /bits/ 8 <0x0 0x0 0x1 0x0 0x0 0x1 0x0 0x0>; + + #sound-dai-cells = <1>; + #address-cells = <2>; + #size-cells = <0>; + }; + + vamacro: codec@3370000 { + compatible = "qcom,sm8250-lpass-va-macro"; + reg = <0 0x3370000 0 0x1000>; + clocks = <&aoncc LPASS_CDC_VA_MCLK>, + <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + + clock-names = "mclk", "macro", "dcodec"; + + #clock-cells = <0>; + clock-frequency = <9600000>; + clock-output-names = "fsgen"; + #sound-dai-cells = <1>; + }; + adsp: remoteproc@17300000 { compatible = "qcom,sm8250-adsp-pas"; reg = <0 0x17300000 0 0x100>;