From patchwork Tue Nov 15 12:02:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 20335 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2678696wru; Tue, 15 Nov 2022 04:04:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf5mdm7yG9/6ONh8b0ACc+b/I59ZriJjCLEG6LmJaZsr/q/INfX0kT7wasHaWz7NWDgKjoMb X-Received: by 2002:a17:907:2957:b0:7ae:1826:b27b with SMTP id et23-20020a170907295700b007ae1826b27bmr12632341ejc.692.1668513876352; Tue, 15 Nov 2022 04:04:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668513876; cv=none; d=google.com; s=arc-20160816; b=gm2Z5Z/JuI56X1DVMfhb90EzDmQuqwcGcrjleOGQwFkhyyOQyZmL4YlRRgiWLsN8HO C5Io5WYAT+H1lYNqoJ7tiRdzB8/3Uvhd8ea7eGUHgCCgkfMGqjSnh3iCdpw9ciPrzpLz Kc7C79siMLRw1Z5K73voDVP2XcpmyFFKViIkiqSKnnTqbvalap9m/nhT0mus/HNgVSG3 U180swmtPHSiHFHUkK4K6Frz6Qy8hEpy4EQIO2S58fUakq7jtOswojHoEVvLlAfTtTb8 YohUrVlbHCx0LE6WvF61voJf8wmH97UcBMHXexwrHnwBpucRjhnuvwK6G7LH1qJq0A8C Jy/A== 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=LyyakI8dI31KMumI0zAq/rZxHMG6g0EuWRPy/j4igio=; b=PBDNLlq3wQupqJ4MbIqX06yiexMNl5GtvoyXEg95C2hojSqK7oAgTsYyEE5LLfaGPy xD23rkSrdoDffyrop7JuOBJzsQocQIsgOV1tlS1eC68bGiGC7H82eemlDu2y6C9QAMJw a6C1fBqABFNez77BYTmy28pNehjlcTt0GpRBxgjwjNLQ/cpTP+AYQD6siVIpnsPR5Wd4 idRi+FuJZsXmuDF9hRB0tOdjCGfITi0uAQxIo1EnZbOumikU1KN3rv5XLlmEwQSAus6+ spMj7MdwTZGh07TefBkxFNGLejXEhhYO9WM0QBF0A+IAfrwqttWmaYyE08EvBMnxiieh almw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Iu64cV54; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y12-20020a056402440c00b00463a83ce065si12995192eda.420.2022.11.15.04.04.10; Tue, 15 Nov 2022 04:04:36 -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=@linaro.org header.s=google header.b=Iu64cV54; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232976AbiKOMD1 (ORCPT + 99 others); Tue, 15 Nov 2022 07:03:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232860AbiKOMDC (ORCPT ); Tue, 15 Nov 2022 07:03:02 -0500 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2818A2610C for ; Tue, 15 Nov 2022 04:02:53 -0800 (PST) Received: by mail-lj1-x22d.google.com with SMTP id u2so17212118ljl.3 for ; Tue, 15 Nov 2022 04:02:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LyyakI8dI31KMumI0zAq/rZxHMG6g0EuWRPy/j4igio=; b=Iu64cV54PeAH+y/r9d6d4/HeQob4vBfJ64H84jjELeyS9b5bxUoVuI3BMmpmsaP2cv hK0iGmlf4Fm3993w0XqR/eZXs8Fb82A7zdbUNxam+AsKsLM6jPUxWmkSxEvGYTxfgikz lTe9KOJKr6UN1p1Z7Sl1T9obWYxc3sENNxGQsSGmwMh9gsE4+h+99wwDjnL1PuhLAqA/ VEsZjdFSthpo5PgpJ2lePY6O99dsF/PfngqhiWGh7UA6V3bwgrdzc2eYAQxDpLYtVWFl 0D0bHKzzMYQK1pkz7I7EGOu4KdIkuXEVtvGvl5h+Upd1vnmUccvodWJt31qEDdK0PLIJ PWNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LyyakI8dI31KMumI0zAq/rZxHMG6g0EuWRPy/j4igio=; b=6Rbi6cRM97uU8NsBQKQKPM9QicTLHNfvwUT4D34MeH53DEZL0nISHE6Y3/kBcLyjuO WDA1Xu13FE+SaEhOeOwU+jSSQn8zyMJEog0KOY0B6Zq7H3NH4OppPCACOoEvkLmXPQsY g17ucDUqhB8hINPfvhEJGj7SJux/R70kXl9JY/bPqdNMlRErbPxK/xaYLHDUfCVtUHLk L4MmZbGMLmackk4zmMLY1rATyVxwUIGyc8wslyQ9w03E2CyWkVvUfBzv61gQRHxrl6lF rrCROdXfHX/8Zy3ls0lTcAH5fGgw9l9S17qRbTVeCDzzzsukmfAKyWhQKuhqo3V2uifj WrDA== X-Gm-Message-State: ANoB5pn2572/qAU0pi/g5+xyuCemOu4T7foZzGYCa6M2zbGooWPYe1C/ vChE1L1iJtXEE7cPuASu2kGMHg== X-Received: by 2002:a2e:9ec2:0:b0:26e:768c:11ed with SMTP id h2-20020a2e9ec2000000b0026e768c11edmr6117310ljk.436.1668513772696; Tue, 15 Nov 2022 04:02:52 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id i13-20020ac25d2d000000b004b0b2212315sm2176233lfb.121.2022.11.15.04.02.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Nov 2022 04:02:52 -0800 (PST) From: Krzysztof Kozlowski To: Srinivas Kandagatla , Banajit Goswami , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Liam Girdwood , Mark Brown , alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , quic_srivasam@quicinc.com, quic_plai@quicinc.com Subject: [PATCH v2 06/11] ASoC: dt-bindings: qcom,q6adm: Split to separate schema Date: Tue, 15 Nov 2022 13:02:30 +0100 Message-Id: <20221115120235.167812-7-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221115120235.167812-1-krzysztof.kozlowski@linaro.org> References: <20221115120235.167812-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749563606503075276?= X-GMAIL-MSGID: =?utf-8?q?1749563606503075276?= The APR/GPR bindings with services got complicated so move out the Q6ADM service to its own binding. Previously the compatible was documented in qcom,apr.yaml. Move most of the examples from its children to this new file. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- Cc: quic_srivasam@quicinc.com Cc: quic_plai@quicinc.com --- .../bindings/sound/qcom,q6adm-routing.yaml | 22 ++------ .../devicetree/bindings/sound/qcom,q6adm.yaml | 51 +++++++++++++++++++ 2 files changed, 54 insertions(+), 19 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6adm.yaml diff --git a/Documentation/devicetree/bindings/sound/qcom,q6adm-routing.yaml b/Documentation/devicetree/bindings/sound/qcom,q6adm-routing.yaml index d0f7a79e240a..b7ed2d3f21f9 100644 --- a/Documentation/devicetree/bindings/sound/qcom,q6adm-routing.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,q6adm-routing.yaml @@ -30,23 +30,7 @@ additionalProperties: false examples: - | - #include - #include - - apr { - compatible = "qcom,apr-v2"; - qcom,domain = ; - #address-cells = <1>; - #size-cells = <0>; - - service@8 { - compatible = "qcom,q6adm"; - reg = ; - qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; - - routing { - compatible = "qcom,q6adm-routing"; - #sound-dai-cells = <0>; - }; - }; + routing { + compatible = "qcom,q6adm-routing"; + #sound-dai-cells = <0>; }; diff --git a/Documentation/devicetree/bindings/sound/qcom,q6adm.yaml b/Documentation/devicetree/bindings/sound/qcom,q6adm.yaml new file mode 100644 index 000000000000..fe14a97ea616 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,q6adm.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/qcom,q6adm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Audio Device Manager (Q6ADM) + +maintainers: + - Krzysztof Kozlowski + - Srinivas Kandagatla + +allOf: + - $ref: /schemas/soc/qcom/qcom,apr-services.yaml# + +properties: + compatible: + enum: + - qcom,q6adm + + routing: + type: object + $ref: /schemas/sound/qcom,q6adm-routing.yaml# + unevaluatedProperties: false + description: Qualcomm DSP LPASS audio routing + +required: + - compatible + - routing + +unevaluatedProperties: false + +examples: + - | + #include + + apr { + #address-cells = <1>; + #size-cells = <0>; + + service@8 { + compatible = "qcom,q6adm"; + reg = ; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + + routing { + compatible = "qcom,q6adm-routing"; + #sound-dai-cells = <0>; + }; + }; + };