Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6967857rwr; Wed, 10 May 2023 01:47:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6u0WopY08aIy+jaXbAD+oruMrXfDRxoNexcYka2rM+h5YdRipY+oKF+DS4ezO4jlm8mD+P X-Received: by 2002:a05:6a20:394f:b0:ef:c5b6:b6b9 with SMTP id r15-20020a056a20394f00b000efc5b6b6b9mr21844304pzg.23.1683708479485; Wed, 10 May 2023 01:47:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683708479; cv=none; d=google.com; s=arc-20160816; b=iBKr3D6+YK89FpRpKpyfPkyTPwCpvGdMo03RkUkvo6wevpVe3KBuLn/NfmMI4ukKcq KK0Z0e0RvqncSGSmfmOQE9aDhOTWvY+grAEo0x9n17FfuhfBchFZoXImONhyGpkc45Uw Zh/8BshXq54sNODE/CP1vMOUAneHHCkq5m7AnlNfDFoA/tTjcAtouNW9uM02Rn3kk+xu fD11ZdVfOP2oXvnEBDmykgAmMWrw69t9T0M5iHpvlgwiOoxVif4Zzy+p37FMen4aLR0p yR4+7z3g1CYVbjLE+3mJuzWMzKAGnku+4wgECmKtJCzSANpDCkHSZSAv1LKvzECoNoVl dJyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=5RZw6OLzkF81T9qBCgl/kjGdza5GpI9DB8+PLpboHg8=; b=cc/L4QexuOKo8cKrvqqgEHufMIy5wBO4psXesjioBca2KSWAz22uEKEHlLeCkDqtVO s0rXSTW/Mpzpo63vlbpR+MGvZHOc1kTZXGcgYPbUtvdfUlrGxYEyB9kAprvtjHY+27z6 meSeBz+NbC5SfTUr/ZOXhgmCjc1CLqlZ15jpHECtOFCIXc202xh6VT0fSn1+RU/04V1b BahATyDzXlkSWYhqZNBUZYgITfD/N0GGMDoxvsStb5YN0RPdZtrFKCkYQ6h4Rq7WNEvX dqHxbJq5wpsLAYvj9PsWPPU8q7JtFkIeoq8L/Wq2x8fjRAkdC81TIeilGLxGi6fheQZc 6b+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=rUOzP4+D; 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=cutebit.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z23-20020aa79597000000b0063b85b18764si4546841pfj.219.2023.05.10.01.47.45; Wed, 10 May 2023 01:47:59 -0700 (PDT) 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=@cutebit.org header.s=mail header.b=rUOzP4+D; 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=cutebit.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236247AbjEJI3t (ORCPT + 99 others); Wed, 10 May 2023 04:29:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229580AbjEJI3e (ORCPT ); Wed, 10 May 2023 04:29:34 -0400 Received: from hutie.ust.cz (unknown [IPv6:2a03:3b40:fe:f0::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C33828F; Wed, 10 May 2023 01:29:20 -0700 (PDT) Content-Type: text/plain; charset=utf-8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cutebit.org; s=mail; t=1683707358; bh=5RZw6OLzkF81T9qBCgl/kjGdza5GpI9DB8+PLpboHg8=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=rUOzP4+D/25FepXKIIga+lR4GsBEH1La1wV6TDHRT5M83z9wFU6j5d+t8JsYygVbw FdAGJxdzxWb0beuPIAYW2bJGb9pb6ye6hg893N0j3iczva7DTriLXEMsQVRA1u2r5C pukl8a3drROy3U7JgZwV3YBrXcZ+jKS4W5UxbUPk= Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: [PATCH 1/2] ASoC: dt-bindings: Add adi,ssm3515 amp schema From: =?utf-8?Q?Martin_Povi=C5=A1er?= In-Reply-To: <627f1739-98b4-9576-4b11-887c8f7e0c52@linaro.org> Date: Wed, 10 May 2023 10:29:17 +0200 Cc: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , Lars-Peter Clausen , =?utf-8?Q?Nuno_S=C3=A1?= , asahi@lists.linux.dev, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <5FC57F67-CC16-4DA4-9A0D-9F9A0539EE67@cutebit.org> References: <20230509163828.86003-1-povik+lin@cutebit.org> <7b8c22e3-75c1-8803-fb32-097d12fbde78@linaro.org> <04BB0158-6C7B-400C-A87A-6E9B2835FDC7@cutebit.org> <627f1739-98b4-9576-4b11-887c8f7e0c52@linaro.org> To: Krzysztof Kozlowski X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_FAIL,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 > On 10. 5. 2023, at 10:23, Krzysztof Kozlowski = wrote: >=20 > On 10/05/2023 10:15, Martin Povi=C5=A1er wrote: >>=20 >>> On 10. 5. 2023, at 9:51, Krzysztof Kozlowski = wrote: >>>=20 >>> On 09/05/2023 18:38, Martin Povi=C5=A1er wrote: >>>> Add a DT schema for the SSM3515 amp by Analog Devices. It's a = simple >>>> mono amplifier with digital input. >>>>=20 >>>> Signed-off-by: Martin Povi=C5=A1er >>>> +additionalProperties: true >>>=20 >>> uinevaluatedProperties: false instead, so users can have = name-prefix. >>=20 >> I actually tweaked this to have the example passing, which has = sound-name-prefix, >=20 > true is not allowed anyway - it makes your schema simply not effective > almost at all as it allows anything... That makes sense. >> which I guess is what you have in mind. Not that I exactly understand = what these >> options do (both additionalProperties and unevaluatedProperties), the = schema docs >> didn=E2=80=99t enlighten me right away when I looked into it. >=20 > The way to go and to start always is to look at example-schema. It = tells > you explicitly to use additionalProperties:false and switch to > unevaluated "If and only if another schema is referenced". OK. While I have you on the line, what does unevaluated do? In what = sense are props unevaluated? > Best regards, > Krzysztof Regards, Martin=