Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5371927pxb; Sun, 13 Feb 2022 18:55:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJyB3kKIpgKMwncLXcSFKh79ZBxUlrTziNzSWXeHuj5/5c0Ijf8M4vfv5YuP6jF8Hstuir9j X-Received: by 2002:a17:906:d7:: with SMTP id 23mr5842238eji.172.1644807331572; Sun, 13 Feb 2022 18:55:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644807331; cv=none; d=google.com; s=arc-20160816; b=k+eA/WVqTmjvD//AnStRgmoqvdt5VPpvIeKHnu9O9boCit3qa8AFDkPiYsuq4u6EeR ZtHfD4DEItXN7Efucu22PJZsmV6uCw/PpPGc7bYGtYjX27rd4oLT6kHpPiN47dXB6JyM wP83XPAkmJ3qn1fBEzfSMCYtjV8szVg3JcSJWrk94VgCMh1l6MnLjAZagQYwer7slySr k2VM0vMF2V2Zc8AYvIa9awW1/9evs3t5vMKIguxAMgTmmX+j3ptNDi7z/9JpwgCuY0M+ eB+ex/P+cYFZk9oqOB8ZXgs5I2gVuHyx0ZTXJqIKx+tyu5reBLbWgdxytgp7ExyvLrbj 3cWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=kbjwhiK2tTRbM4zrwUQx7sOHj8zt1NylUTymteyHln0=; b=hT62jNGka+099D5HsDXH5oz3k7u2/jj+WIxmQGpnsLDvFgeiNoxJ7qq/VoY3Quap01 Jh9RSF//igxFZi2gAuhAYbHmjAlkwFX7tHoDNMddgzwCnjWkv1EupgMZIaz/3KrMgriP d2Y4s/brWNwEc2UTatxSYflhvRRgaTLA/pYsX/JDcb4sgTj5WKhYCH+W5obTX9z6GKgM TpYWFNY7qjcbagzc/JZFFKaBh5lHrCryZ4Rh7PPNZP314+n8DKLIOaAd4kUPhILSWQSN wJe39NzvXIHQOgsUrlyesmMbmM4E+zTHdlk8SNvUW68RF1qE6+UBzvIO9m1AKxLg442e KZsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=omXo49gf; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p4si3849785edc.390.2022.02.13.18.55.09; Sun, 13 Feb 2022 18:55:31 -0800 (PST) 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=@quicinc.com header.s=qcdkim header.b=omXo49gf; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234359AbiBLL0W (ORCPT + 99 others); Sat, 12 Feb 2022 06:26:22 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:39870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234502AbiBLL0M (ORCPT ); Sat, 12 Feb 2022 06:26:12 -0500 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3702426572; Sat, 12 Feb 2022 03:26:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1644665166; x=1676201166; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=kbjwhiK2tTRbM4zrwUQx7sOHj8zt1NylUTymteyHln0=; b=omXo49gfZM5qZY6YHvMtzXHvZlRgJGNosgJtUqUh7KBn3QgUjkV3imN7 OAS5bvAQcRZGnmWm/aWPKtvzw5Ejy0sPJ3UAAVT8zpG1zn8X0nBMOdzjj tqrWT7/bZHJEbsTUvv7TMVGIEdLOcuSNOqgY9qCjAuTox2Wz7pU9i7U0u w=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-02.qualcomm.com with ESMTP; 12 Feb 2022 03:26:05 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2022 03:26:05 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Sat, 12 Feb 2022 03:26:05 -0800 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Sat, 12 Feb 2022 03:25:59 -0800 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v11 09/10] ASoC: dt-bindings: Add SC7280 lpass cpu bindings Date: Sat, 12 Feb 2022 16:54:52 +0530 Message-ID: <1644665093-4695-10-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1644665093-4695-1-git-send-email-quic_srivasam@quicinc.com> References: <1644665093-4695-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Add bindings for sc7280 lpass cpu driver which supports audio over i2s based speaker, soundwire based headset, msm dmics and HDMI Port. Signed-off-by: Srinivasa Rao Mandadapu Co-developed-by: Venkata Prasad Potturu Signed-off-by: Venkata Prasad Potturu Reviewed-by: Rob Herring --- .../devicetree/bindings/sound/qcom,lpass-cpu.yaml | 75 +++++++++++++++++++--- 1 file changed, 67 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.yaml b/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.yaml index 1e23c0e..2c81efb 100644 --- a/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.yaml @@ -22,35 +22,41 @@ properties: - qcom,lpass-cpu - qcom,apq8016-lpass-cpu - qcom,sc7180-lpass-cpu + - qcom,sc7280-lpass-cpu reg: - maxItems: 2 + minItems: 2 + maxItems: 6 description: LPAIF core registers reg-names: - maxItems: 2 + minItems: 2 + maxItems: 6 clocks: minItems: 3 - maxItems: 6 + maxItems: 7 clock-names: minItems: 3 - maxItems: 6 + maxItems: 7 interrupts: - maxItems: 2 + minItems: 2 + maxItems: 4 description: LPAIF DMA buffer interrupt interrupt-names: - maxItems: 2 + minItems: 2 + maxItems: 4 qcom,adsp: $ref: /schemas/types.yaml#/definitions/phandle description: Phandle for the audio DSP node iommus: - maxItems: 2 + minItems: 2 + maxItems: 3 description: Phandle to apps_smmu node with sid mask power-domains: @@ -69,7 +75,7 @@ patternProperties: "^dai-link@[0-9a-f]$": type: object description: | - LPASS CPU dai node for each I2S device. Bindings of each node + LPASS CPU dai node for each I2S device or Soundwire device. Bindings of each node depends on the specific driver providing the functionality and properties. properties: @@ -174,6 +180,59 @@ allOf: - iommus - power-domains + - if: + properties: + compatible: + contains: + const: qcom,sc7280-lpass-cpu + + then: + properties: + clock-names: + oneOf: + - items: #for I2S + - const: aon_cc_audio_hm_h + - const: core_cc_sysnoc_mport_core + - const: core_cc_ext_if1_ibit + - items: #for Soundwire + - const: aon_cc_audio_hm_h + - const: audio_cc_codec_mem0 + - const: audio_cc_codec_mem1 + - const: audio_cc_codec_mem2 + - items: #for HDMI + - const: aon_cc_audio_hm_h + + reg-names: + anyOf: + - items: #for I2S + - const: lpass-lpaif + - items: #for I2S and HDMI + - const: lpass-hdmiif + - const: lpass-lpaif + - items: #for I2S, soundwire and HDMI + - const: lpass-hdmiif + - const: lpass-lpaif + - const: lpass-rxtx-cdc-dma-lpm + - const: lpass-rxtx-lpaif + - const: lpass-va-lpaif + - const: lpass-va-cdc-dma-lpm + interrupt-names: + anyOf: + - items: #for I2S + - const: lpass-irq-lpaif + - items: #for I2S and HDMI + - const: lpass-irq-lpaif + - const: lpass-irq-hdmi + - items: #for I2S, soundwire and HDMI + - const: lpass-irq-lpaif + - const: lpass-irq-hdmi + - const: lpass-irq-vaif + - const: lpass-irq-rxtxif + + required: + - iommus + - power-domains + examples: - | #include -- 2.7.4