Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4616736pxb; Tue, 5 Oct 2021 06:56:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIyn5RJ2prBS/ACgr87mH20yHWz+smomR/6NYGclmT14+Xv3z8QJQF6Ize0/NXr3hzVkhy X-Received: by 2002:a17:902:650c:b0:13d:baac:1da5 with SMTP id b12-20020a170902650c00b0013dbaac1da5mr5515165plk.20.1633442172734; Tue, 05 Oct 2021 06:56:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633442172; cv=none; d=google.com; s=arc-20160816; b=wOL1/GSfl9JpkQWOhQCgJWUUP7mgKeYgXbp1dthSzHJV94EHUO1gp6THAfJlw9SuZO yrC2yjOp9/j7X11KA6q7dGsSqGDvGN7gCEwFyqDVXCaL06VKIm1e2yxjTtSaCpouIJrc 9p1w0XGkgGUcQkRzs42yFWqOuLXpyHnrIMKASLkD5EsOkkMcSUJ278gFasr0I0xtNauF RDqLyZnwMY9/c8SpITuSECyZN3fOrEaaY/A/OgddjRc9MvsAVKs/I12sVxO2hSfpg7sV iTtcpVXw6LV5mAmY6w5QXWHLvhFxPVCfZu6svep74YyO2ImAu3wsHdOBnA9HcGW9Eg2H GQQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dmarc-filter:sender:dkim-signature; bh=SIh3UOKJFyUcz7e0W0YNJa7fYKCz5HvDT8H7RKm+2KY=; b=FP4Ync6y/GgNF4PZJCsm2aoe87uFzuc1q88OsxuUefFjLW6oumdiPKbFNIBJlSYoyK Zg9h79/XtGWAQdqc/Cz/tRgoaXLIYDFgW/5JKsCd2ytyvAcpYF1weKla25Wu5KsXmmHE +h/ttFl6qm59Y7h1xjEKAYV5H5Y/zF0neeO83r9goC0Wt6GjJYHd+tymU4vLA2SGESCD 7+2wzXWyOwh2Gfu7jtC3nMNrC65tWr+3zap8VYFBvD5o1vgigkp1kv4JReq5U3X5cKCy 6Bdbe1xEfkf8XJ/fUL0GGViBilUGkc/Q8wxAjtEZZzJlw1Yiz2E4GCSNrcwllATerP+l OHSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=mj0If67B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i21si21437672pgb.57.2021.10.05.06.55.58; Tue, 05 Oct 2021 06:56:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@mg.codeaurora.org header.s=smtp header.b=mj0If67B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235858AbhJEN46 (ORCPT + 99 others); Tue, 5 Oct 2021 09:56:58 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:53534 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235816AbhJEN4L (ORCPT ); Tue, 5 Oct 2021 09:56:11 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1633442061; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=SIh3UOKJFyUcz7e0W0YNJa7fYKCz5HvDT8H7RKm+2KY=; b=mj0If67BXNRfqCmrq/lWkPF+Sq5Zp2MCzkrH+v/Ida56Il4UjEjK1rcP8bxEeJAX15j84z/y /i3Kz9qkmJ7FU7Hti5KkiWcznXTY3K8BpOcIaHY2HgVb+Biu8evFnJSRrncEYlf/jhfxNDBS AH+j4bItVrOmbJdZF5tI8t6Lpsg= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-east-1.postgun.com with SMTP id 615c58f5713d5d6f967c578f (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 05 Oct 2021 13:53:57 GMT Sender: srivasam=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 00801C18E50; Tue, 5 Oct 2021 13:53:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from hu-srivasam-hyd.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: srivasam) by smtp.codeaurora.org (Postfix) with ESMTPSA id 9AFF7C48B2A; Tue, 5 Oct 2021 13:53:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 9AFF7C48B2A Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org From: Srinivasa Rao Mandadapu To: agross@kernel.org, bjorn.andersson@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, plai@codeaurora.org, bgoswami@codeaurora.org, perex@perex.cz, tiwai@suse.com, srinivas.kandagatla@linaro.org, rohitkr@codeaurora.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, swboyd@chromium.org, judyhsiao@chromium.org Cc: Srinivasa Rao Mandadapu , Venkata Prasad Potturu Subject: [PATCH v2 6/9] ASoC: dt-bindings: Add SC7280 sound card bindings Date: Tue, 5 Oct 2021 19:22:51 +0530 Message-Id: <1633441974-15353-7-git-send-email-srivasam@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1633441974-15353-1-git-send-email-srivasam@codeaurora.org> References: <1633441974-15353-1-git-send-email-srivasam@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add bindings for lpass sc7280 based soundcards which supports audio over i2s based speaker, soundwire based headset, msm dmics and HDMI Port. Signed-off-by: Venkata Prasad Potturu Signed-off-by: Srinivasa Rao Mandadapu --- .../devicetree/bindings/sound/qcom,lpass-cpu.yaml | 69 +++++++++++++++++++--- 1 file changed, 61 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..0f5a57c 100644 --- a/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.yaml @@ -22,35 +22,36 @@ properties: - qcom,lpass-cpu - qcom,apq8016-lpass-cpu - qcom,sc7180-lpass-cpu + - qcom,sc7280-lpass-cpu reg: - maxItems: 2 + maxItems: 5 description: LPAIF core registers reg-names: - maxItems: 2 + maxItems: 5 clocks: minItems: 3 - maxItems: 6 + maxItems: 7 clock-names: minItems: 3 - maxItems: 6 + maxItems: 7 interrupts: - maxItems: 2 + maxItems: 4 description: LPAIF DMA buffer interrupt interrupt-names: - maxItems: 2 + maxItems: 4 qcom,adsp: $ref: /schemas/types.yaml#/definitions/phandle description: Phandle for the audio DSP node iommus: - maxItems: 2 + maxItems: 3 description: Phandle to apps_smmu node with sid mask power-domains: @@ -69,7 +70,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 +175,58 @@ allOf: - iommus - power-domains + - if: + properties: + compatible: + contains: + const: qcom,sc7280-lpass-cpu + + then: + properties: + clock-names: + oneOf: + - items: #for I2S + - const: lpass_aon_cc_audio_hm_h_clk + - const: lpass_core_cc_sysnoc_mport_core_clk + - const: lpass_core_cc_ext_if1_ibit_clk + - items: #for Soundwire + - const: lpass_aon_cc_audio_hm_h_clk + - const: lpass_audio_cc_codec_mem0_clk + - const: lpass_audio_cc_codec_mem1_clk + - const: lpass_audio_cc_codec_mem2_clk + - items: #for HDMI + - const: lpass_aon_cc_audio_hm_h_clk + + 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-cdc-lpm + - const: lpass-rxtx-lpaif + - const: lpass-va-lpaif + - const: lpass-hdmiif + - const: lpass-lpaif + 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-vaif + - const: lpass-irq-rxtxif + - const: lpass-irq-hdmi + + required: + - iommus + - power-domains + examples: - | #include -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.