Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2019235rwb; Fri, 11 Nov 2022 04:02:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf4g9GWUm9LAvCDA0Yr1VAHBko53MHfX1P6lf/8nMjYoGC1P1MWI5RD0RKKV7RpNOCME+x/l X-Received: by 2002:aa7:c987:0:b0:461:e8c4:d21f with SMTP id c7-20020aa7c987000000b00461e8c4d21fmr1172528edt.186.1668168155299; Fri, 11 Nov 2022 04:02:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668168155; cv=none; d=google.com; s=arc-20160816; b=LdmkLz/jcx9UfXwjRJi98i6QmyFEPgcf8PkDqBUXE0idoBMoA92GRThciV8uNhHGd+ silLV1IoMg1w5ApWTW56RGyIa5oButZ1uEMYc6JoyS/GEsMC7GXlVSwyv/tzjxW9r/RP pgRQG0H5320JgZohVq+JvJRjowQfWG73ABZEcf3fRthWNRTTzaehbnO55RF2oNU+Vtqk ypFNPYC3Oj8hqQxWpva0d6iIVMZoAdpqkBarHS0d9izmPVDjQDOzfaJO8hvBeLNzNNb6 yew2TGJOCnMQw52aEYdAhFJ4Mh2ZizpiNMhVuuRQP2lQDEZVMk4pfJSePi5lpbC85Yun 2TUg== 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=iso5JkYpW6A/jFTmsvAqcjCGN6f9RRbfN9V5NFqceLU=; b=hyuJ5ABGmS2mP79QRn/nQCe1psS3ycQXGY433QhqyA7iQwn3gdNV2rPSkZguvjKfXP IsCLMKotzLX4G1Wzqj9F2QJqiHmuI9NqatPxbCfmUMiA02hRZ6fWzkVR+Cn0PqTC/w8T a+Ns3kxYD1kG+UUFx6noGhI6lxlFHgZwIXXPxoWeKznpoKA3QfN/PlQ6IJUCZDkg+u4/ bj7n9m0Z0EXeUKQj5P+C77tO9Nd9Uhke5BtDAuKi23wvNxGJn+fxldT92RH2DDK5CSCi 2joSMOpFSBoRySwPwKpf+0/QOlInAd77FoSDY7XnPf92D3KCcxi5cqcRk1eT6/1vbjxs XlTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LXbPVuet; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt18-20020a1709072d9200b0079744630e4asi1974441ejc.780.2022.11.11.04.02.10; Fri, 11 Nov 2022 04:02:35 -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=LXbPVuet; 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 S233296AbiKKLga (ORCPT + 92 others); Fri, 11 Nov 2022 06:36:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233553AbiKKLgQ (ORCPT ); Fri, 11 Nov 2022 06:36:16 -0500 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A28A787B8 for ; Fri, 11 Nov 2022 03:36:15 -0800 (PST) Received: by mail-lj1-x229.google.com with SMTP id a15so4216049ljb.7 for ; Fri, 11 Nov 2022 03:36:14 -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=iso5JkYpW6A/jFTmsvAqcjCGN6f9RRbfN9V5NFqceLU=; b=LXbPVuetFmLz/utAf11ouZCa4kV24qXPKUpeSNelWVl0B6ejXUZpjeKWSlEwluruEV BmZk9vtldLG4J9gWoE2FfuptSUoE0Yd0pjmUlU+d/DYju9SbH+tpUXp+nVWOZ3hvOox5 5kPGHAhHd5Vm6Rnl9eBkGSmnHDA2Z6OUge+sqngmG8beRQBPSdO/RtfiabGBRgS/TP20 XXdF6oSI2nI336sGhLmvjTD43e4Y/mh6M9CqS9P5CV1xtu92Fql7EsRlfEen+R9yvtVP 5mIM4LuKFazVAmQWay6FprRf3g2LJpDAmWlAic48BFqBoyNI4x0FrdhdfSvwzNJn9cP1 ahAw== 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=iso5JkYpW6A/jFTmsvAqcjCGN6f9RRbfN9V5NFqceLU=; b=CTFTPbVS0Pz+A7qF5UOea0gNe2XOwuKiD/vHidmBxn0TGJ3ywzFiVfsN7E5OxB1Ee2 xm2lkcBEpkhvDIWn20oLB0xy6S2prpE1gf50aGN2VT864Tlw1/LJi5d62byWFze0Jlig Kju+ej9HStoL9aK82HtUQb285WBbmHq9BnrDvS80ODMbCcHeMjQDvP6rR33mgr9tBYgR v8yVrhOg97qtzDuGIsZKH99Qke1sINxqwEF5YCbVgtll8qHeOa354O/BURgvzEF1opzH kBEruk42BE91c/03W4BU/lU8PSL89BgRnX2+0DCVhB2PZd59uscTU8GagzKBsgdffpTp ZbVg== X-Gm-Message-State: ANoB5pk8vR3Gm4GCy4q+VhRy88v6ZMy0DIQZau7fPRsmCBtVLjZWyDk6 5SxIV1S77w8LfMUzQ8epPSdmFw== X-Received: by 2002:a2e:b711:0:b0:278:a461:cb7d with SMTP id j17-20020a2eb711000000b00278a461cb7dmr507235ljo.246.1668166573304; Fri, 11 Nov 2022 03:36:13 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142199.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.199]) by smtp.gmail.com with ESMTPSA id bi30-20020a0565120e9e00b004acb2adfa1fsm274970lfb.307.2022.11.11.03.36.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Nov 2022 03:36:12 -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: Patrick Lai , Srinivasa Rao Mandadapu , Krzysztof Kozlowski Subject: [PATCH 04/10] ASoC: dt-bindings: qcom,q6apm: Split to separate schema Date: Fri, 11 Nov 2022 12:35:41 +0100 Message-Id: <20221111113547.100442-5-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221111113547.100442-1-krzysztof.kozlowski@linaro.org> References: <20221111113547.100442-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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=unavailable 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 The APR/GPR bindings with services got complicated so move out the Q6APM 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 --- .../bindings/sound/qcom,q6apm-dai.yaml | 19 ++----- .../devicetree/bindings/sound/qcom,q6apm.yaml | 51 +++++++++++++++++++ 2 files changed, 54 insertions(+), 16 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6apm.yaml diff --git a/Documentation/devicetree/bindings/sound/qcom,q6apm-dai.yaml b/Documentation/devicetree/bindings/sound/qcom,q6apm-dai.yaml index 24f7bf2bfd95..73a4afad5a74 100644 --- a/Documentation/devicetree/bindings/sound/qcom,q6apm-dai.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,q6apm-dai.yaml @@ -27,20 +27,7 @@ additionalProperties: false examples: - | - #include - gpr { - compatible = "qcom,gpr"; - #address-cells = <1>; - #size-cells = <0>; - qcom,domain = ; - - service@1 { - compatible = "qcom,q6apm"; - reg = <1>; - - dais { - compatible = "qcom,q6apm-dais"; - iommus = <&apps_smmu 0x1801 0x0>; - }; - }; + dais { + compatible = "qcom,q6apm-dais"; + iommus = <&apps_smmu 0x1801 0x0>; }; diff --git a/Documentation/devicetree/bindings/sound/qcom,q6apm.yaml b/Documentation/devicetree/bindings/sound/qcom,q6apm.yaml new file mode 100644 index 000000000000..7acb832aa557 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,q6apm.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,q6apm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Audio Process Manager (Q6APM) + +maintainers: + - Krzysztof Kozlowski + - Srinivas Kandagatla + +allOf: + - $ref: /schemas/soc/qcom/qcom,apr-services.yaml# + +properties: + compatible: + enum: + - qcom,q6apm + + dais: + type: object + $ref: /schemas/sound/qcom,q6apm-dai.yaml# + unevaluatedProperties: false + description: Qualcomm DSP audio ports + +required: + - compatible + - dais + +unevaluatedProperties: false + +examples: + - | + #include + + gpr { + #address-cells = <1>; + #size-cells = <0>; + + service@1 { + reg = ; + compatible = "qcom,q6apm"; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + + dais { + compatible = "qcom,q6apm-dais"; + iommus = <&apps_smmu 0x1801 0x0>; + }; + }; + }; -- 2.34.1