From patchwork Tue Dec 1 15:37:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 336186 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F454C71156 for ; Tue, 1 Dec 2020 15:38:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 087F52151B for ; Tue, 1 Dec 2020 15:38:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="OHq3343W" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387532AbgLAPh6 (ORCPT ); Tue, 1 Dec 2020 10:37:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388069AbgLAPh6 (ORCPT ); Tue, 1 Dec 2020 10:37:58 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAD70C0617A7 for ; Tue, 1 Dec 2020 07:37:17 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id f190so6123221wme.1 for ; Tue, 01 Dec 2020 07:37:17 -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=7gChBksxn1qEPSD3R08ZEmaSNW2wV6LYIITXUj3191A=; b=OHq3343W+aiwvjBes5ZnNTv3M3FuJ79KnBXcTqKWgT0cciUJ6pU+4mU6xulFiZjo78 VDnDZ/QiFFwV8GUqiE4se8aPBNP2v8jsPkhz4H07Z2M0h5+m05NrCPbd67wKB5HRZSsi 17A7NsnoCEZPlUj6YMLiows5Hyx2DIZWGQOqcwPpfCcovw1qE75wWOrHbZ+4ZyvlcYa+ MMXTWv1VRZd5RdKXeYX43Gc8+e1WfjbOlUHLzlJ2viPvVU6ov5mGVr8TcHRiwDoPW0jL GMlEj1DkbF7z1mDE229gxeZvk6yhdV/lnCF1SqqKPSRrOS5j58vWXWGwxuGvE/SYWaC/ PZ8g== 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=7gChBksxn1qEPSD3R08ZEmaSNW2wV6LYIITXUj3191A=; b=T5OEgS9N5b5ddKrsE9DLtLcm0BrpAY7bMUoMExFlZ+si64nbVPk+PlfMkMmpTCqkNe HPXVHGzFl39zcv4mZiKHl4xEavkyx/KmBeh4lNKwGxM1E1bJXjp15PQkl633u32angAq OaoL6G+y+GL1F7pkUo8kfy3u0jSy5vrzvfm2WOvjtkvsv2fp8Mppgx3E8sgYWXdVjA/B dFPGY8PkTIwnsMb42fVL0rQmyAeVB6r6oJ0VLT/CvH/7SWH6WfBsx+RXXhaUb/OCZwnw RkQOb0KL0A+HJEOufSZxCEAoP2cQNfVsZRdnM78VNYjqZjQTIUBBW29ax4GTwgr7mYKS SCcQ== X-Gm-Message-State: AOAM531hjxlCcFBk+slu9eLCOfJUD8Hy9a+AeYLIX/pVUDN4eS70cH5v vCswdVkCJCquRmF9QfRa/aCG+Q== X-Google-Smtp-Source: ABdhPJyvUOqxTG2bB4Si4yZtrjPlvnby1exWonhRpHIQNC99ydXThu1nAChjuanY5zDT+pE9pRCBXQ== X-Received: by 2002:a05:600c:ce:: with SMTP id u14mr3310247wmm.150.1606837036532; Tue, 01 Dec 2020 07:37:16 -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.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 07:37:15 -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 1/6] arm64: dts: qcom: sm8250: add apr and its services Date: Tue, 1 Dec 2020 15:37:01 +0000 Message-Id: <20201201153706.13450-2-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 apr node and its associated services required for audio on RB5. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 56 ++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 65acd1f381eb..3b4e98b13d36 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -11,6 +11,8 @@ #include #include #include +#include +#include #include #include @@ -2620,6 +2622,60 @@ label = "lpass"; qcom,remote-pid = <2>; + apr { + compatible = "qcom,apr-v2"; + qcom,glink-channels = "apr_audio_svc"; + qcom,apr-domain = ; + #address-cells = <1>; + #size-cells = <0>; + + apr-service@3 { + reg = ; + compatible = "qcom,q6core"; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + }; + + q6afe: apr-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: cc { + compatible = "qcom,q6afe-clocks"; + #clock-cells = <2>; + }; + }; + + q6asm: apr-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>; + }; + }; + + q6adm: apr-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"; From patchwork Tue Dec 1 15:37:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 335134 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp212681ilb; Tue, 1 Dec 2020 07:39:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJyG3ioo17n0rSLIcwFeAn4oPQq5wymmcG1WgV3JvIjPqRiGiZK3I71mjc7yw0E6sPnUlZz2 X-Received: by 2002:a17:906:378f:: with SMTP id n15mr3472003ejc.263.1606837198520; Tue, 01 Dec 2020 07:39:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606837198; cv=none; d=google.com; s=arc-20160816; b=n3/NfVSvWmHJQbKYFoDi4I0KrVzOxxtPBWqeAxvvtgp6DpncV/4m5bNdt3BwZ3nxJO 7UfOVDqbHcW9jyY6ti20XvaHcKQeeF8GWpJDKGKpwzxOZzXrDTxy55BL5VMYhujjoNyR PrjnRm38K9r5V+bB3I535eXWh6U18OntrAswNDXY8lS7TioGCeeTcGxB0A7c2UZHJba1 /23h0MtC5vtFPipTvMlohz66cKbOBuv77OZX0hjRp8GlpcwWOMpUAuyzAWUwwPpD0NCR oLT82NO/st7AnVU9wWZrV0j6SdQQO+oLWbeLYyIR2JD/jXtXCJgQNXRw7nhshocX910V 6dhA== 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=KIHgb8fdd+Pz02Bd0nEwBeV7zsJRfiJajUBhZJqVTbc=; b=qnYX7oZeS//tZxivlIe+UaFwKzX2xhnKiz3zyQTwheQo5DwhUzUgF5kO4lHM+wxjQ3 be1fm5++fyL9RditeaGuW8mZ+n5QueriDkdXYlXfx2LWXgHTDlq4uiF19fB+8XJGSi1X X++Z+rkgOvvHVB6S5ve1PlXHakixiqseiejiXuwjrSDDalD8wCsiXBAfR/iqAUUXzk8F dE4i8D97bzPbV3r0WeYHfpQ+UAVRUTGq6bvZL3/FY7pFenxCf1LN1tx4sinombCkQSru KDIggS95sUhNzPgQ4o0bc93jUdxQIeYvtgQTkxa0HNSL3FNXDUOAaxSLZalnyV9fZwrB ybxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hJ2xUF+i; 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.39.58; Tue, 01 Dec 2020 07:39:58 -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=hJ2xUF+i; 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 S2391825AbgLAPij (ORCPT + 6 others); Tue, 1 Dec 2020 10:38:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387663AbgLAPii (ORCPT ); Tue, 1 Dec 2020 10:38:38 -0500 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5FCFC061A48 for ; Tue, 1 Dec 2020 07:37:25 -0800 (PST) Received: by mail-wm1-x341.google.com with SMTP id h21so6112358wmb.2 for ; Tue, 01 Dec 2020 07:37:25 -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=KIHgb8fdd+Pz02Bd0nEwBeV7zsJRfiJajUBhZJqVTbc=; b=hJ2xUF+iuAw0FHIflFts7a3mYNfAl/QwZOV2gFcw+ZUNMyeLrhFSmRtRQ5axv9lwOz KSYpS7NKx/7txNZYj/t1itXvprHH+dg4/3dzDKMFz4bEgALCsrPYN/KjEADn04z+sDOo wKDQFJZw8qz07eJbqQry3/449zialwZsnQJVqkg5B4mG3vK9acfHOaJB52K+6ehN1uER 0RkF2dNBSvjJmlQeVqTpCGbdmxOOMu/JyYVMPclnxF6KTdHLNkCEK98Uax+/qmfJgrFa q0IG2iYSkp6ZKKPApS8ZcyySMZFrZhGte45NpHwaZsBM7LOGyHPtve1NuPejLwkgpbLh Z22g== 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=KIHgb8fdd+Pz02Bd0nEwBeV7zsJRfiJajUBhZJqVTbc=; b=fYbzxTw7pof45gsA21Yjm/C+bTrpu/yupzx39DaazkHYIZpjqtqOBGVZOk6+PWkFYI HOegMsz7WGmg+KGHySd4J+GuHDukbm/lqwbbPX0mNOjvpJQbrSvb2hEQillNh6eVqJIi dLQhf7VGi8T02+nH0MfSSwTySMG0ZRO3x0Pdo8pNECEAPIeWd1UL+IEcDZ6LTjvEurSr NrjS/t2EdNVUL0t+puD5sNERGi1PiFjrovIppUq6j6dPNi9HrqXXjolDC8cQ8JLbH9+P EVJGDFRi8sSfy51vryvvQ40louSb57vSVmo9BX/6wP5LBcbwfnogrcK/5MTHyuQXRxA5 xoIg== X-Gm-Message-State: AOAM532sBJOAcF5+jSN39vhWj9xALr6DJLRK33e4xaZKz03rGlvW0rvg gAJKkywOjt05gbJ2YuYvf8vtb2M46kCczzQo X-Received: by 2002:a1c:bc02:: with SMTP id m2mr3235175wmf.59.1606837037869; Tue, 01 Dec 2020 07:37:17 -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.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 07:37:17 -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 2/6] arm64: dts: qcom: sm8250: add audio clock controllers Date: Tue, 1 Dec 2020 15:37:02 +0000 Message-Id: <20201201153706.13450-3-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 audiocc and aoncc clock controller nodes required for audio on RB5. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) -- 2.21.0 diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 3b4e98b13d36..ec5b53b8f656 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -6,6 +6,8 @@ #include #include #include +#include +#include #include #include #include @@ -2585,6 +2587,26 @@ ; }; + audiocc: clock-controller@3300000 { + compatible = "qcom,sm8250-lpass-audiocc"; + reg = <0 0x03300000 0 0x30000>; + #clock-cells = <1>; + clocks = <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_CLK_ID_TX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names = "core", "audio", "bus"; + }; + + aoncc: clock-controller@3380000 { + compatible = "qcom,sm8250-lpass-aoncc"; + reg = <0 0x03380000 0 0x40000>; + #clock-cells = <1>; + clocks = <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_CLK_ID_TX_CORE_NPL_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names = "core", "audio", "bus"; + }; + adsp: remoteproc@17300000 { compatible = "qcom,sm8250-adsp-pas"; reg = <0 0x17300000 0 0x100>; From patchwork Tue Dec 1 15:37:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 335133 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp212674ilb; Tue, 1 Dec 2020 07:39:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtzkhEFyichHRQPMtVvKY9ki/umAWkFDAmk+3Rn6z6OHZ9Q3BBAXEpKdYDftvZ5uPmTQbe X-Received: by 2002:a17:906:6d0b:: with SMTP id m11mr3447453ejr.230.1606837197488; Tue, 01 Dec 2020 07:39:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606837197; cv=none; d=google.com; s=arc-20160816; b=b6e9DqNNSZvrFxMlOTEFNiRCFRDDNN2qyy78DN0UPVNTqyHlNkxXRmoV/unHUC9wnh gcKe11Xrx0DrWxLUyUFz5Toux6Cxn+/6NztNO3AlZ54g4itvnvzRp4vjpAg7MwPxDETO xTsyvCNfSwKxZ7bVrvCw8fUyyZN4aloRS+ZXNQzrl9L2g+jgg0tA1TE48dh+9zXls7rr c1awooAWsQqj7ZszW9rNtV76M3HVrMtInvlq5wSn3U88ZiVLc2nKhHt32gv+/SpMD7kM b9/rWvUMX2KJNAMuSA2C7UuQR9e0Uk8MuaOV2WbBpfkN9ejZrd7KqHjuc4odh75GSNG6 kgPQ== 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=kJcaGNZBGsHMeZykogFq86M34T6M8SXdsetUo9MhrkE=; b=wn22gn0U+dgT7jCU+N2lDi5H/YEd4FebEruF+oWBbxydDzV1fMmksBzvUhMcCaSWBR OqFTmf2W7xkGoHLtcQYLulZZbtNP7DGISsT8vKiJIS/Jxw5+cid8Bo3uOChmb9LF61oO 6mXMnqZkrU+pw8vyce+9VP6sc/4oQBZDlWHMhxWnyPCog3qFknuABmBcf1VQpzWOBlFQ zrbTK//lxE/HRR8M51opzlxsMQqXBnKhJpIAllKjZ360y8xdR+MbecQWaplbZNXDI0L9 alH4yKHw44tMNqpHbyQ83jiU13XQc33ItmbYjriHT4y46O49Xkur2Yqe+4tnQ7iawNGb gsGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=buTxQDpb; 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.39.57; Tue, 01 Dec 2020 07:39:57 -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=buTxQDpb; 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 S2391281AbgLAPij (ORCPT + 6 others); Tue, 1 Dec 2020 10:38:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390566AbgLAPii (ORCPT ); Tue, 1 Dec 2020 10:38:38 -0500 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7924C061A4A for ; Tue, 1 Dec 2020 07:37:26 -0800 (PST) Received: by mail-wr1-x442.google.com with SMTP id k14so3300866wrn.1 for ; Tue, 01 Dec 2020 07:37:26 -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=kJcaGNZBGsHMeZykogFq86M34T6M8SXdsetUo9MhrkE=; b=buTxQDpbYVAsi1CaU0F23z++LRUjSLD33FuvRbhYdR3i5zYmUnuL5nRW1agjQ6EKcD FV2imeVMQz2CCh4BPAIJyrobyjdOiGbiEzVtrf8Auy3reP6rFVlLu76q+JXewvnNBCQ4 8Z9IeJjaXGh6ZOmri24r8yT8RG5CBO+JOzgu5bX22J3hxCriLFguxxEOQC3Xm6J0sqis zkU1oTSLAx7w549yg8aDuROCn1T0wRUhFznTq6UgN2+XY3vDPSSuxA/ceT7NsjtlnEhk 1gebS2dk/lWEi3o17WpGKfr4z47Ze8VSPNEi4ChPQDksKa82bTCC4VsfrWTz31JKKmKz QSXQ== 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=kJcaGNZBGsHMeZykogFq86M34T6M8SXdsetUo9MhrkE=; b=Fh9cN0+kOonAWaj/Vk9/GwgtLKCGeN0oB5PrFDUrAwJ6nEPJfJtFQRGseBAT8sDzR9 AjAK+Mor38MQS37i6Dn505NRw5n05aOX/0wtUzop7sjCQ91hKlyeA/1QFpU9EzcfurKg SCxsNzgvPX4gg49RHQLj3lajomN/M9CnjDxgWuzW49YB/+nxuZZ6nGQP3tfDFvdgORsC mlPAWDrRO6tpgiAuqviDk+VmhVpiIn5hKdT8jVbf+NszXz7j3TlKIVlhsEGR8/lSVjd0 gornbJjVETZ5maHPNyHO15b7ihKbqquDjmhv3tTo3GkVcvQusCDE/QtdCuy0B7d/Vlqp c73Q== X-Gm-Message-State: AOAM530qiOM/8qNw0kyc6b+b1BZG5Pso0p4mt/aZuW2SqqopM7esRI9y U+DAc13jLySQXo9Vtx78IcW7qg== X-Received: by 2002:a5d:530d:: with SMTP id e13mr4646676wrv.92.1606837045510; Tue, 01 Dec 2020 07:37:25 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 07:37:24 -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 3/6] arm64: dts: qcom: sm8250: add lpass lpi pin controller node Date: Tue, 1 Dec 2020 15:37:03 +0000 Message-Id: <20201201153706.13450-4-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 LPASS LPI pinctrl node required for Audio functionality on RB5. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 95 ++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) -- 2.21.0 diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index ec5b53b8f656..4e1309b6571e 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2607,6 +2607,101 @@ clock-names = "core", "audio", "bus"; }; + lpass_tlmm: pinctrl@33c0000{ + compatible = "qcom,sm8250-lpass-lpi-pinctrl"; + reg = <0 0x33c0000 0x0 0x20000>, + <0 0x3550000 0x0 0x10000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&lpass_tlmm 0 0 14>; + + 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"; + + wsa_swr_clk_pin { + wsa_swr_clk_sleep: wsa_swr_clk_sleep { + mux { + pins = "gpio10"; + function = "wsa_swr_clk"; + drive-strength = <2>; + input-enable; + bias-pull-down; + }; + }; + + wsa_swr_clk_active: wsa_swr_clk_active { + mux { + pins = "gpio10"; + function = "wsa_swr_clk"; + drive-strength = <2>; + slew-rate = <1>; + bias-disable; + }; + }; + }; + + wsa_swr_data_pin { + wsa_swr_data_sleep: wsa_swr_data_sleep { + mux { + pins = "gpio11"; + function = "wsa_swr_data"; + drive-strength = <2>; + input-enable; + bias-pull-down; + }; + }; + + wsa_swr_data_active: wsa_swr_data_active { + mux { + pins = "gpio11"; + function = "wsa_swr_data"; + drive-strength = <2>; + slew-rate = <1>; + bias-bus-hold; + }; + }; + }; + + cdc_dmic01_data_active: dmic01_data_active { + mux { + pins = "gpio7"; + function = "dmic1_data"; + drive-strength = <8>; + input-enable; + }; + }; + + cdc_dmic01_data_sleep: dmic01_data_sleep { + mux { + pins = "gpio7"; + function = "dmic1_data"; + drive-strength = <2>; + pull-down; + input-enable; + }; + }; + + cdc_dmic01_clk_active: dmic01_clk_active { + mux { + pins = "gpio6"; + function = "dmic1_clk"; + drive-strength = <8>; + output-high; + }; + }; + + cdc_dmic01_clk_sleep: dmic01_clk_sleep { + mux { + pins = "gpio6"; + function = "dmic1_clk"; + drive-strength = <2>; + bias-disable; + output-low; + }; + }; + }; + adsp: remoteproc@17300000 { compatible = "qcom,sm8250-adsp-pas"; reg = <0 0x17300000 0 0x100>; 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>; From patchwork Tue Dec 1 15:37:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 335136 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp212723ilb; Tue, 1 Dec 2020 07:40:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJyErP19nx2QjCjwMmpaCjAEYjzMisOgb/QpGeah/9JisNZLa5BbRvSu1o9tRhh9ONGruvux X-Received: by 2002:a17:906:1412:: with SMTP id p18mr3710316ejc.480.1606837201625; 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=PEN7h8UAl+Pj0pdKzwI0COxxePcH6f7H8esr8k8pd76B2DvM3dmED7BuZOBf/saP/s 7SOJWkajXueSjzs4YfBd4uR9HwzfDgH7VWxnlnhtZ9GLQ+3lUsajBWO4rzqEMT0J9jeh J1b1fTODXjPH8faMT0rIjJUxN1Qpb0tLtrH6yagnqe48EX3AuKnk5Tnpf++SHryKm3fE Jcl/nldtsBQp1l4Imw84OXvDoIXTtyyWLkoSNWSM5aSPjBzaBmO7qR5e0UZtWTLShZ8Q Hkeg1rePiJOs3OITGn/SqIapMcXAg70M1UJdM//Xpto3qFawG5helEW1yCIr2MJpiHVW sMiQ== 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=6vXiT5FpPdzP+F5sPQwMF6j9EVgTdZPYADmNV8Tr/zQ=; b=bTK+hqFQiM+/FiFu5MAKcaLHSAUaPG85Ph5vnV/8hIVd5i4QZ3CxR4lVc04bhKCkWY lR0aa+euld2BfgKAEXrUFKeIz/+bY5tQWigz4ZWzozhg0W1uMM0uB6ow/pLakNajnoIH 8gaidi0MPr1NRr7xMQZNkDbb03Mgjjfx5/bMXZ3xfNvhTyove9HtrSy23yUZNjXD3u3z JYEmRCE7yGU85Ml1z7iklj8f49Y5WSm+6MRTQO3QmVLc12s6aKAWgSFTwHh91M43Roib 55GhLFcq0rVnx3Rm6KFOoR3fv2ljbdBTDzzf2iO379/pMA4oA4QYaaqzNE/q2t8USNIh JGYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TbVdQfZd; 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=TbVdQfZd; 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 S2391901AbgLAPiw (ORCPT + 6 others); Tue, 1 Dec 2020 10:38:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391840AbgLAPiv (ORCPT ); Tue, 1 Dec 2020 10:38:51 -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 611BBC061A51 for ; Tue, 1 Dec 2020 07:37:29 -0800 (PST) Received: by mail-wr1-x443.google.com with SMTP id s8so3258036wrw.10 for ; Tue, 01 Dec 2020 07:37:29 -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=6vXiT5FpPdzP+F5sPQwMF6j9EVgTdZPYADmNV8Tr/zQ=; b=TbVdQfZdGXdVxc/qIYtd7/2RnLmbhk9iHaPbVGxFpQrpBDSS/iC/zhk0Mpty5j2yvd MMejl3MDG9f106+i9JnkxzHN38reC3FB6VXryJ2wlyRDzUO5GjqtVJoFLuXNu34ISPU0 ViPvsutDNP180YEf8K195Sb1Pjbz1nCCKGjKEvwru2GmOyhrOy03li0QpF2cVn6J8GwV orv5Gme+c3L862r4n05I0S/iTEwgG7tTdurW4841H4DihC3tch67vtZH/t1QQuuXmy8r jRM7Ac0fTReQi/OmH/sTr01B1qkhCwjQU9fDW3/nlIYyA74wSEQCej/TTYryuPdEGMPH AqDQ== 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=6vXiT5FpPdzP+F5sPQwMF6j9EVgTdZPYADmNV8Tr/zQ=; b=s2XjDUK51gyMaXTn3n1Rd6fUqTtJhybcARUlwAmBbZV0AGxfMNd8nq9cuyU3CarAlM ERj/XbTDZjpsxexjEvxFDOJuXmtQxdYIdxc4dim2rQfcJPLDP5fq6glVcefFLaeeoBub 9fQV25I3tKnE9s77bv7U8+HWU05un0rMIcxFqqkUgqZwy7DbU47nv/3uEAbZRYYjpY/k fADUzWdfbceTCZbYZprMqAewQvic8e6I/9hPFakVc35QhphaID/s0zwnhIpJuLGe3iPW FY0ktfKH7q0nDp9HxBFQaajL4N4QZigFdJpwLCr/Vy3pHXs8Kv7Vdj0O3l4v/F/kEDg5 YG4A== X-Gm-Message-State: AOAM532Nit5Fz/zGX+/OWbM56g7GGUjKp/4RyuJpqfG5ts7ik5iVZMz9 NBQfHjfNIKewKIIfZgyu1RFNNQ== X-Received: by 2002:a5d:4dd0:: with SMTP id f16mr4445405wru.8.1606837048122; Tue, 01 Dec 2020 07:37:28 -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.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 07:37:27 -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 5/6] arm64: dts: qcom: sm8250: add mi2s pinconfs Date: Tue, 1 Dec 2020 15:37:05 +0000 Message-Id: <20201201153706.13450-6-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 primary and tertinary mi2s pinconfs required to get I2S audio. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 98 ++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) -- 2.21.0 diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 19dd7460e586..a87940e157be 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -1561,6 +1561,9 @@ }; }; + sound: sound { + }; + usb_1_hsphy: phy@88e3000 { compatible = "qcom,sm8250-usb-hs-phy", "qcom,usb-snps-hs-7nm-phy"; @@ -1884,6 +1887,60 @@ gpio-ranges = <&tlmm 0 0 180>; wakeup-parent = <&pdc>; + pri_mi2s_sck_active: pri-mi2s-sck-active { + mux { + pins = "gpio138"; + function = "mi2s0_sck"; + }; + + config { + pins = "gpio138"; + drive-strength = <8>; + bias-disable; + output-high; + }; + }; + + pri_mi2s_ws_active: pri-mi2s-ws-active { + mux { + pins = "gpio141"; + function = "mi2s0_ws"; + }; + + config { + pins = "gpio141"; + drive-strength = <8>; + output-high; + }; + }; + + pri_mi2s_sd0_active: pri-mi2s-sd0-active { + mux { + pins = "gpio139"; + function = "mi2s0_data0"; + }; + + config { + pins = "gpio139"; + drive-strength = <8>; + bias-disable; + output-high; + }; + }; + + pri_mi2s_sd1_active: pri-mi2s-sd1-active { + mux { + pins = "gpio140"; + function = "mi2s0_data1"; + }; + + config { + pins = "gpio140"; + drive-strength = <8>; + output-high; + }; + }; + qup_i2c0_default: qup-i2c0-default { mux { pins = "gpio28", "gpio29"; @@ -2480,6 +2537,47 @@ function = "qup18"; }; }; + + tert_mi2s_sck_active: tert-mi2s-sck-active { + mux { + pins = "gpio133"; + function = "mi2s2_sck"; + }; + + config { + pins = "gpio133"; + drive-strength = <8>; + bias-disable; + output-high; + }; + }; + + tert_mi2s_sd0_active: tert-mi2s-sd0-active { + mux { + pins = "gpio134"; + function = "mi2s2_data0"; + }; + + config { + pins = "gpio134"; + drive-strength = <8>; + bias-disable; + output-high; + }; + }; + + tert_mi2s_ws_active: tert-mi2s-ws-active { + mux { + pins = "gpio135"; + function = "mi2s2_ws"; + }; + + config { + pins = "gpio135"; + drive-strength = <8>; + output-high; + }; + }; }; apps_smmu: iommu@15000000 { From patchwork Tue Dec 1 15:37:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 335137 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp212730ilb; Tue, 1 Dec 2020 07:40:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6kRQgHPRf3QCPG+IqGBs783EM5ZXYOCRJKkwDPga+maUhf6QrHrS8poKAbN2fEKYvRoKx X-Received: by 2002:a17:906:94d4:: with SMTP id d20mr3574295ejy.475.1606837202016; Tue, 01 Dec 2020 07:40:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606837202; cv=none; d=google.com; s=arc-20160816; b=maTvTcDX4ErAdvwB+5e7xI7P2iyL300Mo+Vpta51iUrdSrd7i9jTFiyushL2Cekxau iP4wUqrUx92h4GPDdUPxkWNvw9BN3spHFRPFqFEAXEJNH9Pcq4QcwRi6jbKF/QIQsa4l e21422vEDkUJU4R+GtG35M1AHNw66kzVVTiS9iEuUpY1mp0iMLEG6R3POeAncqpkNvTK jHF8gbISC0xlU1OS90QqDFpraAg45GMlwh4PPhUhhXxlCGdG9QiGAGXeyiqYddMw97P0 nikRhcwyQnYrjaf/KFl5pWy1QAr4bUfP0gtwIcf50PlEFrAtiWsUusdD4vWvWxbW8urg JUxQ== 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=AnsMipShbEp5shIcSQnSsR/KPaRGHHYiZS/KJVFuEzU=; b=GGTs4UMqAxJLs/NChFRBCkkGLlHHPCJLQJnYaR7kOMlV/q/hStvMTpVtxJ2vjkQlSp ljIbsYY02By0XzGgcQEe06lJUvbzVcFL4Kb5fTvILGb3DVqKtSpA050BDb1Hps5a6aop 4emPOsLExOisrYTqvQ5UbNiYmoWHp6kXYOsLYT6JqdkZw3Ty5wO+7XSDXXTzPXQhwOug 4ZnPrR1NDE5evO8humHVX1lILnsVYiuJbTY0n2n/bhjTO2z9J26KYwazIWygyJdEvuTG vcdJsYSxedqGB5i7asC0b6Ksq0DTz06xYPjAewF1w2Qd+A+kKjHMzAUDHxXPAikdvzCn NLVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d3V33ds+; 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:02 -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=d3V33ds+; 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 S2391908AbgLAPiy (ORCPT + 6 others); Tue, 1 Dec 2020 10:38:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391906AbgLAPiy (ORCPT ); Tue, 1 Dec 2020 10:38:54 -0500 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF243C061A55 for ; Tue, 1 Dec 2020 07:37:30 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id s8so3258166wrw.10 for ; Tue, 01 Dec 2020 07:37:30 -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=AnsMipShbEp5shIcSQnSsR/KPaRGHHYiZS/KJVFuEzU=; b=d3V33ds+V2uGSuK1Is8LyL+zdVqoj2udYUXfK4dLGmW2Bu0VXwd6Sj3QW7fRQkkU61 xeCDUXF7bmZbbXy6FJAepXvT+L7qt7YmfYXMlM6RoU36fxpIX412g1D75jtmKLAJzEUT a6R35abPN7caHzjaUW49Fh4bB72Zqlm12q1Axl82i31TjFrnel64kHCu1cv+Hy/Z0IKe KO++BNLnVTQJqWUoAdg8EuonQx8kXDLdLHMFaPaCXth25PGK1cSt7C983M0fgT2zTYNj EU4/OntdFvIGOPbnTDJDMuhAQlnwy4/HPaYJcKgaN9ROWfani0vDRlvsXdpjYa4CEOmL INMA== 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=AnsMipShbEp5shIcSQnSsR/KPaRGHHYiZS/KJVFuEzU=; b=krFiAVFMHQVSjvLrbC/DsAoVGouFEkcJa98kK0XkozOMWf0BVmm01Rl/9nhjUV2JTJ C3Y2sViJjE30Qcp5RwOu4IXhCAiXHjkUoZ8u0hNn2iaf0fHh7U7NBZLVDxXgMQHwcrBE RxnQEX++aeyMmPNjsbleOoRA6NsH/+20iLc1svDt2DzFgJmPG2/s0IqDWnbHfgBm/Ua6 Va0d3t9F60RrvoXhlWN5dIB/C5T+Qyuzgz/jTkyDGZbyel+hH+qnQt3cmbngfsDGhjUy iQumYzVdzaM/HhVQZJ4XMja6eBDwfPd0EY5BI5UgTQXssciL7I6rVhwObLSsPZZ/RYNN FpuQ== X-Gm-Message-State: AOAM530SasO7XzWzeewcQ9nEvTHb/iLY8hwbKwvKsg+XuEPa3RYjKZ0O pUo735ZVxC+kNN6jAFV3gqz6DA== X-Received: by 2002:a5d:6503:: with SMTP id x3mr4647417wru.151.1606837049436; Tue, 01 Dec 2020 07:37:29 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 07:37:28 -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 6/6] arm64: dts: qcom: qrb5165-rb5: Add Audio support Date: Tue, 1 Dec 2020 15:37:06 +0000 Message-Id: <20201201153706.13450-7-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 This patch add support for two WSA881X smart speakers attached via Soundwire and a DMIC0 on the main board. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 125 +++++++++++++++++++++++ 1 file changed, 125 insertions(+) -- 2.21.0 diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index ce22d4fa383e..03229d5cb9d3 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -7,6 +7,8 @@ #include #include +#include +#include #include "sm8250.dtsi" #include "pm8150.dtsi" #include "pm8150b.dtsi" @@ -120,6 +122,11 @@ }; }; +&adsp { + status = "okay"; + firmware-name = "qcom/sm8250/adsp.mdt"; +}; + &apps_rsc { pm8009-rpmh-regulators { compatible = "qcom,pm8009-rpmh-regulators"; @@ -483,6 +490,35 @@ status = "okay"; }; +&q6afedai { + qi2s@16 { + reg = <16>; + qcom,sd-lines = <0 1 2 3>; + }; +}; + +/* TERT I2S Uses 1 I2S SD Lines for audio on LT9611 HDMI Bridge */ +&q6afedai { + qi2s@20 { + reg = <20>; + qcom,sd-lines = <0>; + }; +}; + +&q6asmdai { + dai@0 { + reg = <0>; + }; + + dai@1 { + reg = <1>; + }; + + dai@2 { + reg = <2>; + }; +}; + &sdhc_2 { status = "okay"; pinctrl-names = "default"; @@ -497,6 +533,88 @@ no-emmc; }; +&swr0 { + + left_spkr: wsa8810-left{ + compatible = "sdw10217211000"; + reg = <0 3>; + powerdown-gpios = <&tlmm 130 GPIO_ACTIVE_HIGH>; + #thermal-sensor-cells = <0>; + sound-name-prefix = "SpkrLeft"; + #sound-dai-cells = <0>; + }; + + + right_spkr: wsa8810-right{ + compatible = "sdw10217211000"; + reg = <0 4>; + powerdown-gpios = <&tlmm 130 GPIO_ACTIVE_HIGH>; + #thermal-sensor-cells = <0>; + sound-name-prefix = "SpkrRight"; + #sound-dai-cells = <0>; + }; +}; + +&sound { + compatible = "qcom,qrb5165-rb5"; + pinctrl-0 = <&tert_mi2s_sck_active + &tert_mi2s_sd0_active + &tert_mi2s_ws_active>; + pinctrl-names = "default"; + model = "Qualcomm-RB5-WSA8815-Speakers-DMIC0"; + audio-routing = + "SpkrLeft IN", "WSA_SPK1 OUT", + "SpkrRight IN", "WSA_SPK2 OUT", + "VA DMIC0", "vdd-micb", + "VA DMIC1", "vdd-micb", + "MM_DL1", "MultiMedia1 Playback", + "MultiMedia3 Capture", "MM_UL3"; + + mm1-dai-link { + link-name = "MultiMedia1"; + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + }; + + mm3-dai-link { + link-name = "MultiMedia3"; + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>; + }; + }; + + dma-dai-link { + link-name = "WSA Playback"; + cpu { + sound-dai = <&q6afedai WSA_CODEC_DMA_RX_0>; + }; + + platform { + sound-dai = <&q6routing>; + }; + + codec { + sound-dai = <&left_spkr>, <&right_spkr>, <&swr0 0>, <&wsamacro 0>; + }; + }; + + va-dai-link { + link-name = "VA Capture"; + cpu { + sound-dai = <&q6afedai VA_CODEC_DMA_TX_0>; + }; + + platform { + sound-dai = <&q6routing>; + }; + + codec { + sound-dai = <&vamacro 0>; + }; + }; +}; + /* CAN */ &spi0 { status = "okay"; @@ -792,3 +910,10 @@ vdda-phy-supply = <&vreg_l9a_1p2>; vdda-pll-supply = <&vreg_l18a_0p92>; }; + +&vamacro { + pinctrl-0 = <&cdc_dmic01_clk_active &cdc_dmic01_data_active>; + pinctrl-names = "default"; + vdd-micb-supply = <&vreg_s4a_1p8>; + qcom,dmic-sample-rate = <600000>; +};