Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1798485lqe; Mon, 8 Apr 2024 23:52:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXAjjWKUjfq02td9RDHfNzYEDMi4uRO7SQgHTVkeqCxXxCIUPudqm7i2qE0gkjzvAFPWglUvBCiXTBsidLnQ9QwDFZIdHK4OBzgyrdewg== X-Google-Smtp-Source: AGHT+IE2Xc0i/V8BDsyyvTs4pafH/2+1V9UQ4usuEjtvpH4Bp/m4dZ6/zFF7rJxexiu/97GsLCq8 X-Received: by 2002:a05:6a00:991:b0:6eb:2b:43b4 with SMTP id u17-20020a056a00099100b006eb002b43b4mr12572455pfg.27.1712645558892; Mon, 08 Apr 2024 23:52:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712645558; cv=pass; d=google.com; s=arc-20160816; b=sIcIfi+KuJxAf4CkQiV7KQ0ZfAf7UBq0Ro8xFK1EPxCjnTUnUk4XgrGBaITAqiMh81 6M5GxKmWRedRpidxnkdxusgCEmxACdtF3rT/VwHJHDbpoNA7hPQlDUTgvRzUj+zFGIuG j6IChKpdWPUO7jZvfPTGzrR7MuUfRmX+xvz4kFIW37ktN/ndtG7mUxYrOFpu9JKkHYTi 8ThiQf3ElgI2ePOn4fFaTJq7WK/klD87TEWtBGbFZupEV167iUZRx0Tw/QnJJH1MUHVH U0BUzm/IEKjQx5unwdY+U/W5OiAoiAU+yAEgG4lbJEm9K1nDE6KBoN9ZsENfSpDD/n87 Sqtg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=b352HOzGF/NbEGXGXSDOWNzIVRBqY7hL8lL0mia73U8=; fh=d/V1HlUNRX1I4lxXHjWcC/NDzZrmi/Z0AboIMUKdhMc=; b=tF1Dn9ifIKcKYMZ0BPD/4sjyZ63NHXL8Lukcwqtdhw6MgXloajOzanP6dw/3nMIR3O cbXLcVeU76jIN7Lho9GGPLBYbx9/2m9aWWMU/vRqpjTyjO6q0ElzAGs7ptp89aQoA4g5 T5Zu9jW4BGmvmAxx5zVQ/Z6UdpDXPVcariIxsuDjc+6xa6PBrkgZuRZCY8NTQXW9rIDW 4AL4OgMcSozOR0cMK5Udx3Z+YdGwrkNGrq6oqUBnYFkolSLCAS9Phn50N1aF3wysBNK/ 1y4R9UGGvBIDoq4laPH4oeWxIlty9jB89FQE225Q5E76LtJbAcWXQ1k8sbSvrz/zbU5U MdMw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="aojo4/BD"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-136325-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136325-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n66-20020a634045000000b005f07209a2efsi7775290pga.760.2024.04.08.23.52.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 23:52:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136325-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="aojo4/BD"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-136325-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136325-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8E5CE283937 for ; Tue, 9 Apr 2024 06:52:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 365F8757F7; Tue, 9 Apr 2024 06:52:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aojo4/BD" Received: from mail-il1-f172.google.com (mail-il1-f172.google.com [209.85.166.172]) (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 E1DC679CC; Tue, 9 Apr 2024 06:52:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712645553; cv=none; b=GK3rosStEUp9BXUF74vLtfzBBlMwFQSnMrKvv9ALJ5QNgDQjbI9H253SBJQ1H4HwalLmAt/5siZKAl5LdFQdwUwglPzFFaB3OCNYknC16j8OFOVhX5stWYXSW532Q16eMhfLCwoSeXuuNtal5dqTsnmx0V2AvR4NDQsybcd0JVU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712645553; c=relaxed/simple; bh=xoULbzlytF5RGrLomSCcvTJXxEPOJ61JtuUKMiYDaX0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Vls1WuvJ6kpTx3+bm4gPRFwbY2PZCzNEKzPgaZkBhiY6YUGExqxeLm/Mx67eJdtuVXT8ruShTKlIfLO8xm+MvMM5y1sLc6wLjYlQi8C1Kw9ui0+TCoEh1KNHtyAw1sIOoju3Uq4gCAu5lGHGDVJIFH/dnr1Om+LO7thJAvpkG5c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=aojo4/BD; arc=none smtp.client-ip=209.85.166.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-il1-f172.google.com with SMTP id e9e14a558f8ab-36a2fcb4075so2209655ab.2; Mon, 08 Apr 2024 23:52:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712645551; x=1713250351; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=b352HOzGF/NbEGXGXSDOWNzIVRBqY7hL8lL0mia73U8=; b=aojo4/BDZvxmy9ZRpJ2jFkxMnncBYVcIO7EeaASKa35NqhK7o9HGxyXMUeM9eXeUCu YNIH0gCcuaAOWa40Ar7NkJzXnTtR7dIOyLp4zAP4goptQ0I+wJ/JXJZkvqzezCYwwOL1 ZkOAh12YgTLrGeWoo6sh6uvcb16bY7pD22Jew7a3+39ZytK/ssuy3Nw80VuKtFyKNNLH LVdFlZDV9EiOtUStmBJScZGimhf368S/WcQbmOqKEBImjuRD1X96hZpHlUVytdZcEZfF zC9T9NK6H3MBHCbDKDQGAfwYYeUBwrgheMB+nv7LEQX3vFb34b6a2yjA/O8Q4qRaXQH6 n5LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712645551; x=1713250351; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=b352HOzGF/NbEGXGXSDOWNzIVRBqY7hL8lL0mia73U8=; b=KA9bxIpjZ8M+Ajcig/bLouN40nyms1YL0yYpN2yIDkb3BWiVG6psuzrfMEyCwI5Loc s+FxIDAbQQHNKOBaC7ijiKtS6T50PlOFC7sY3o3L/7Q+ISP2NZlAsutG/DmG0hxZ4ZIP DvP8KEyfOUVwhTnjazdvil116ApVEqZkDl9y3EUM2LjBi5AiGZm2igd4njot6W6qVL7d 3tHXssMMn4FCizNMvq9QHp/Bupjofzzu0x6lGdpgi9ZHFrm5qxz9XwB8VdjtKLQwGufS 60yYw7nxb+xSAAhxZ5CZI1J93FTfo5MyzTihJl2VMTKHvwjY+BeDarmyglcYaxMhq6WA x8JQ== X-Forwarded-Encrypted: i=1; AJvYcCV7APQwVpFyptlfoV2l1Vk0kPac8VqrPRartncrn/GafZyW2WAuSA+4r23wNXYOpOnCBvUrinXTQUnxi+7bjXxfcXYh4aLgE3TInGNPqWhRMWkGwTxlqTYwTIQv3Jet7WRZDq5XGzD7RClBP9sMPmGnpwAdHXagmoOpzOqeGzPYaVWXuGai X-Gm-Message-State: AOJu0YwnhIn0T4HSKBnDyZfINBxEjkCg2nGeSfLTZVrmbcLkVSzAwT8c mT8c+f7pAlAp2XMmuqB6oqA7vxfsuSrxDVMk/aZt8EGqcbhhloF+6vrSRk0A3cvJbimp3Rhxz56 rJJgr+anmWQwl5ao7+SxMQuEMtpE= X-Received: by 2002:a05:6e02:13a8:b0:36a:2351:60a with SMTP id h8-20020a056e0213a800b0036a2351060amr6153201ilo.25.1712645550968; Mon, 08 Apr 2024 23:52:30 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <1712561233-27250-1-git-send-email-shengjiu.wang@nxp.com> <01734d96-bed2-4f7e-bbba-7068f14c822b@linaro.org> <69ab2bd9-401a-42ff-90fa-6600dd071722@linaro.org> <51e482b3-ffbf-46f9-972d-875d106c2474@linaro.org> In-Reply-To: <51e482b3-ffbf-46f9-972d-875d106c2474@linaro.org> From: Shengjiu Wang Date: Tue, 9 Apr 2024 14:52:19 +0800 Message-ID: Subject: Re: [PATCH v2] ASoC: dt-bindings: imx-audio-spdif: convert to YAML To: Krzysztof Kozlowski Cc: Shengjiu Wang , lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Apr 9, 2024 at 2:30=E2=80=AFPM Krzysztof Kozlowski wrote: > > On 09/04/2024 03:37, Shengjiu Wang wrote: > > On Mon, Apr 8, 2024 at 11:06=E2=80=AFPM Krzysztof Kozlowski > > wrote: > >> > >> On 08/04/2024 10:01, Shengjiu Wang wrote: > >>>>> + > >>>>> +anyOf: > >>>>> + - required: > >>>>> + - spdif-in > >>>>> + - required: > >>>>> + - spdif-out > >>>>> + - required: > >>>>> + - spdif-out > >>>>> + - spdif-in > >>>> > >>>> Do you need the last required block? > >>> > >>> Yes, one of them or both are required. > >> > >> And? It's already there: that's the meaning of any. It is not oneOf... > >> Before answering please test your changes and ideas. I pointed issue > >> here and you responded just to close my comment. That does not make me > >> happy, just wastes my time. > > > > Maybe I didn't express clearly. > > > > we need at least one of them (spdif-in, spdif-out) in the node. which = means > > that we need to select "spdif-in", or "spdif-out", or "spdif-in and > > spdif-out". > > > > So my understanding is that need to use "anyOf", if it is wrong, please= let > > me know. > > Third time: it is wrong. > > Can you test the code instead continuing this discussion Every time I change I definitely do dtbs_check test. But There is no error reported by dtbs_check. But finally I understand that anyOf: - required: - spdif-in - required: - spdif-out - required: - spdif-out - spdif-in is equal to: anyOf: - required: - spdif-in - required: - spdif-out best regards Shengjiu Wang