Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp147537pxb; Thu, 17 Feb 2022 00:27:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6eXs6S7LQ210C6YyvzuCuFKp26j+/nQpMUlovJ8Gv8F2Yz5qcDd1DnKHavXk1ll5o0y0N X-Received: by 2002:a17:902:c950:b0:14f:62e9:d06e with SMTP id i16-20020a170902c95000b0014f62e9d06emr1029066pla.54.1645086443537; Thu, 17 Feb 2022 00:27:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645086443; cv=none; d=google.com; s=arc-20160816; b=PR22UqAGbyP8LUI9a24BVWpytz47IXfU1ZZK2SB3n0zKJbYrmbiaMGb+dBdklmJRI5 4P8nowFj99u+K8Js9dxr3HCRz05ub2zLW9v2GWmaEZsLIyFSgT7oPv2A0M/p/c/4QwYa 6/si6xbnZepS3sXFGa2OkWoYBKPyFYqMoSzK1j0e+mHh8p7iT9HW7OFZySAp76JfWzSi 2y37bN3Sxiv52QeUqN8p88PVMymp+cyPF75/pNrIJOWzwhXjrAg8Q8YV3NTNav5Q9SNw vlMFuz642bEB45Uy83ABJWHMpzsVHfAiF4bsgt3p6KwJKLJ5q4CLiRhNe+EHLN1EIgVl OnaQ== 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=bOMSOK3Y1idg9xzbmwZxwz1f25u3evtM3URKlBHw+8q+b97jYb4bucXUKDdOCpXAc1 th87t2TyCfl7S0KFEJxeD2TfZF82FUXatBIuuXA2u2TbCHwj7aPyRS7tkWonvQqTNcrV 9f6EE2wSTtjIh+90GZK56ERtt78oxx8XtABq8yXIVjPErmnK7yaoXUGizOTRdWE8rTby wDht13TZsFSOM9Xd8l2UANSBvij8Vuj5gncCLNRBaGbTLwJfeTYMuPHuBynUHXZleXAM NE/jHlh8EQJcuH3MjlCKBaugsiMxmiVmwaKDAwQVRFTZvrBBD2X+p9EfBsOhf5uW7m3K 504Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=nzrAenCY; 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 76si8461004pga.429.2022.02.17.00.27.09; Thu, 17 Feb 2022 00:27:23 -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=nzrAenCY; 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 S235343AbiBQGKD (ORCPT + 99 others); Thu, 17 Feb 2022 01:10:03 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235361AbiBQGJt (ORCPT ); Thu, 17 Feb 2022 01:09:49 -0500 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B8712A4A10; Wed, 16 Feb 2022 22:09:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1645078175; x=1676614175; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=kbjwhiK2tTRbM4zrwUQx7sOHj8zt1NylUTymteyHln0=; b=nzrAenCYGVjMEu3IjM8vwALPl4GVLdKKHhBkRWgUL8zBMLGby/y4jyAM CFnhCC9+P/Hx8bOiiicW926BUQB5f+uEb7hVuL++rotJK9C35cGlXU3wH b2mZDc1WKf4zlj/MKO/1TvbdVkq/981FVdyDDMdhsy07OQHtzgv1BRN7E k=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-01.qualcomm.com with ESMTP; 16 Feb 2022 22:09:35 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2022 22:09:33 -0800 Received: from nalasex01b.na.qualcomm.com (10.47.209.197) 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; Wed, 16 Feb 2022 22:09:33 -0800 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Wed, 16 Feb 2022 22:09:27 -0800 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v14 09/10] ASoC: dt-bindings: Add SC7280 lpass cpu bindings Date: Thu, 17 Feb 2022 11:37:45 +0530 Message-ID: <1645078066-9365-10-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1645078066-9365-1-git-send-email-quic_srivasam@quicinc.com> References: <1645078066-9365-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: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) 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