Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1187747lqe; Mon, 8 Apr 2024 00:58:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXp1o/nQ1VL3FERzbWU/xJfyC8TGhSul18UZc5KhsiYFijObvJM82Az9J2xzyxB38ye4Pw2X9UcOPMbLGQoJ0bsXiNfzGYoXp4Jzs9Z1A== X-Google-Smtp-Source: AGHT+IHIlbGsiW7j1a+TSkz0L8e9cjeonk88SpG2N5BtAIYVV/9Lq+yyAzRgaeaaVo9NWJfL6V0Y X-Received: by 2002:a05:6214:501e:b0:69b:17b2:fe16 with SMTP id jo30-20020a056214501e00b0069b17b2fe16mr3590718qvb.39.1712563102457; Mon, 08 Apr 2024 00:58:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712563102; cv=pass; d=google.com; s=arc-20160816; b=0XL+ecPm91zuorOCvwyscWiiCoOQA74N9cmS8V/uITg1SPZOKk9YK9sOPSMBsePzYK HG+/XEPi+4sZwUhVhPUC4Ewxp59W6T12a9wj9yMlfQl31J/7kEeQiahetRp2hUlz9mhb 01WQyvd+0z+IIZLThOEInY/nF3pWHC3pvi87fhpPvZ1oukLapwglWqblBIRAnDmGlSMp W8EY664ZfFbA2RJW6aDhf9J+oLG3IabLUlZzeFmvW9PqN/Ji39TPa9MmSLuN6L0o3vAf DbXKABX4SVH4OFVuLMMVpaCYxrThkmWfKj+vsPlQNl7we7lYLgu7YhE8eZccEp1Xmmem O5Ow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=uGVKRsfzElZhuiOUBPoS8tlbXX9PErhVKCskk8TAVI8=; fh=lhcj5ScOa70teJzOv7KUST4tlnN4vS6hZbp76ApFOcM=; b=eQhA21ddK0+WUwKmD/CZ1oa8YxyM412glHaEL7ZV/t7XYBT/MB1Tjd7NTQTgGRz4Cz uSNqto+c8vGZgG8A3sxjvFnvCovuu+knNu9x0kMEklHYX2B3b0KUUEbVMborL8bzQzZH 5n1c44qCoM4HchKoTEgdibEU9ATa+HJiavx/VwvK1aSHvRts/Enl/2x48p1tXf/z+zDM WTZ8SvurPgQ3pxFdzqMzjZeRRcuWofcZz3W4wfYhfkKx5B5bsQbJApN8yqHWn5/dmWCS yPxZiLqZEYrAyiz7fsKQ+mj8voC51XWAMy6JngkjORIpTdP6oQ9SJWJaaecrdgrS5JT3 a3pQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NHD0i1Hj; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-134973-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134973-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j2-20020a0cae82000000b006967a8daf00si7667093qvd.78.2024.04.08.00.58.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 00:58:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134973-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NHD0i1Hj; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-134973-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134973-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 425A91C2175F for ; Mon, 8 Apr 2024 07:58:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B09639ACB; Mon, 8 Apr 2024 07:55:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="NHD0i1Hj" Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2805838DD9 for ; Mon, 8 Apr 2024 07:55:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712562942; cv=none; b=uhLb2oU59RTIJOAtnI9mtwMT0LJdl4jLQckWBV3YJa1kqJXgDerV4TsXBRTQQVgXcT7iKX+egd8jLZ9GeVxxIkVi/sUs3pH5J9Nj/oh4D6HewCrs6/AhsepQ4B2dJ5SaN3mVceioyVYv6MqvgNbpMH/1Wi0PAs2qGrykch3L1ws= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712562942; c=relaxed/simple; bh=bOYdvGgOXEu+B9DwkxPE7PclZR6s+7HiNzNdrJ6GbiI=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=osAVPWbc58hdG4oKYP4tW3Le60koRCDh7+ZG5BE98WyLeQBn495wiVf42nW+HgC0VRkPK5Kqftj5cm9Yuzf4ZRcgtIJ4qhdigdv66cgTqkjsTfYhS51775ZFbsfTvfkwQNmfGf/TAzqsVwAsLruwJqhM+np0BuX77Vn2JMIVtoc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=NHD0i1Hj; arc=none smtp.client-ip=209.85.167.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-516d47ce662so4351530e87.1 for ; Mon, 08 Apr 2024 00:55:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712562938; x=1713167738; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=uGVKRsfzElZhuiOUBPoS8tlbXX9PErhVKCskk8TAVI8=; b=NHD0i1HjAqfzSxx+Cffi4ifQ+LENbObBmSOUoFrBrZi1hx3zSd31E6eBXvuL4n8n0L IlpazIBtzYj2iYV12uE6BjT9lZT3ueMW9t5DehtVjlq4l+vMbCR13X9NzBVYib17Pvqa Ea7U+pYWAhy4fXH9OqVj98xzZYq3YdIIbXR1MQ5rH82sBeod375VMJnldu49IC1ZO4kl /qaTZ2ltwCFCZ62tuxVFZrQSyPuGHxyZ4i5eZmTUOzX5nihWRLA7X7oW+P2jG8bxVxLQ FIsRD6UsyjxFtueTjYcDsNy3/XjaaWKcUItohrwFnxfXyAffXM6njDM1GWsuqTY9gJuC u+eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712562938; x=1713167738; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uGVKRsfzElZhuiOUBPoS8tlbXX9PErhVKCskk8TAVI8=; b=vbA9szxvVY300zBPQ5HWpKg6c5bNai20ZISAlL0Eud+rR9LPVP/CyQFZtdZXY+oCv5 XOlGi6BJ1svuS6x1XbbQHZxoiX6BTm4oOmBYig9qU+sEh+lRmy0VbFtIqOEOFVrFkTiD a6hVCHNY1L3QKVthDrR7LldS/gs0LznUogP9KhOqYFU/xwVicuV4yu9Yq/gn2hYamSNw AM1nATt+1fY95O1hwFOKMRJNvIhqvtdOh2GtKGQbPABYCWk4eKaj7izBpI9VrSgzoaAe TfCr2TEDrUCfyCF/VeuqN58CiWDnTrpXsiVbwR1yPYqch5ps/9NJ5vTyjnOCZNqPSaA5 HpZg== X-Forwarded-Encrypted: i=1; AJvYcCVe9ttLo6RZ1HLTh8pZTvjQzfLsRoFcNf+Xr6oBgu6hWkhXQdewDHNpuSu9fEI7rTHZznHBrzRE0OR5UkvEM/Z5H5vYKHjqsF3bUdjw X-Gm-Message-State: AOJu0YyIc1dn1tc4iq8tEbMxwLxeA90Yt6DBxO0E8EMp+pMtIKc3WgZk HUOjR+llL/GZe6jOQfgRkaBfEIV9Noz2aIcMjV6++N4QCDYRM2lgrtZVVWmYQxw= X-Received: by 2002:ac2:489b:0:b0:516:a6b2:f9eb with SMTP id x27-20020ac2489b000000b00516a6b2f9ebmr5761546lfc.69.1712562938010; Mon, 08 Apr 2024 00:55:38 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id z16-20020a17090665d000b00a4e9cb0b620sm4109828ejn.158.2024.04.08.00.55.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Apr 2024 00:55:37 -0700 (PDT) Message-ID: <01734d96-bed2-4f7e-bbba-7068f14c822b@linaro.org> Date: Mon, 8 Apr 2024 09:55:35 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] ASoC: dt-bindings: imx-audio-spdif: convert to YAML To: Shengjiu Wang , lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shengjiu.wang@gmail.com, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org References: <1712561233-27250-1-git-send-email-shengjiu.wang@nxp.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+W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qEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <1712561233-27250-1-git-send-email-shengjiu.wang@nxp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 08/04/2024 09:27, Shengjiu Wang wrote: > Convert the imx-audio-spdif binding to YAML. > > When testing dtbs_check, found below compatible strings > are not listed in document: > > fsl,imx-sabreauto-spdif > fsl,imx6sx-sdb-spdif > > So add them in yaml file to pass the test. > > Signed-off-by: Shengjiu Wang > --- > changes in v2: > - change file name to imx-spdif.yaml How does your compatible look like? fsl,imx-audio-spdif, so use that. > - remove | > - add anyof for spdif-in and spdif-out requirement > - change example name to sound > > diff --git a/Documentation/devicetree/bindings/sound/imx-spdif.yaml b/Documentation/devicetree/bindings/sound/imx-spdif.yaml > new file mode 100644 > index 000000000000..beb214b51a50 > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/imx-spdif.yaml > @@ -0,0 +1,70 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/imx-spdif.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Freescale i.MX audio complex with S/PDIF transceiver > + > +maintainers: > + - Shengjiu Wang > + > +properties: > + compatible: > + oneOf: > + - items: > + - enum: > + - fsl,imx-audio-spdif> + - enum: > + - fsl,imx-sabreauto-spdif > + - fsl,imx6sx-sdb-spdif This does not make much sense. You have mixed fallback with specific compatible. I suggest you to fix your DTS and submit proper bindings. > + - enum: > + - fsl,imx-audio-spdif > + > + model: > + $ref: /schemas/types.yaml#/definitions/string > + description: User specified audio sound card name > + > + spdif-controller: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: The phandle of the i.MX S/PDIF controller > + > + spdif-out: > + type: boolean > + description: > + If present, the transmitting function of S/PDIF will be enabled, > + indicating there's a physical S/PDIF out connector or jack on the > + board or it's connecting to some other IP block, such as an HDMI > + encoder or display-controller. > + > + spdif-in: > + type: boolean > + description: > + If present, the receiving function of S/PDIF will be enabled, > + indicating there is a physical S/PDIF in connector/jack on the board. > + > +required: > + - compatible > + - model > + - spdif-controller > + > +anyOf: > + - required: > + - spdif-in > + - required: > + - spdif-out > + - required: > + - spdif-out > + - spdif-in Do you need the last required block? > + > +additionalProperties: false > + > +examples: > + - | > + sound { That's a random change... Instead of sending two patches per day, please carefully address the feedback. > + compatible = "fsl,imx-audio-spdif"; > + model = "imx-spdif"; > + spdif-controller = <&spdif>; > + spdif-out; > + spdif-in; > + }; Best regards, Krzysztof