From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9CB45C77B7D for ; Wed, 10 May 2023 08:31:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236477AbjEJIa7 (ORCPT ); Wed, 10 May 2023 04:30:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236136AbjEJIaz (ORCPT ); Wed, 10 May 2023 04:30:55 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DFB23C02 for ; Wed, 10 May 2023 01:30:53 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-50bc070c557so13250703a12.0 for ; Wed, 10 May 2023 01:30:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683707452; x=1686299452; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ycVbFDvJKMn/ZQ/Sjxa4EA026DOMmlduluDtzGBRPK8=; b=jbw+ByzEda9BliMbGY9HEq5I/RrhS6mjA5ZAszCbu34H0KfK6/qm14nYYc69sxKGej ssRbmkfsRxyavVVVyzETV+5pgOSh0hUmgMeT48fZcT8jXCsOHozyMdUcLJtSnwdDmC7x 9at0/CMH10PidpH9LSeZkOnhtYZ4PQVtS1vBT3rMwY2FdGixiur9vygWFs2E3hcpZC8m 2GUmcFx0P1Z5fOPxPVIJ/WaBT8kTAMc0Z7zXnnMyV4X5VoWBZNx/Br3hHiGP5Rl4/5q6 8OKF3GKxh+yRYeg/HoPC7J6EI1F/Ul2imJkcZbmV1smSuAljge7u10FJbDt8iqlLc73H Z2yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683707452; x=1686299452; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ycVbFDvJKMn/ZQ/Sjxa4EA026DOMmlduluDtzGBRPK8=; b=eUvGiyCByI0+78ua2s7wX9Umnh9y0VyrsTPdnANej762z0LRbmQSw0UQFWpHca9fxz 9Fv9hkn4Y3sLsxsCU1tHBLEYqoMTy0+cCxdZCV8DN+XOO8QI63FJJ1v5PTTN2zpiHLKW hTFsHfw+aBBbKjRtMBdb9XVCFJ+Kucz0WvjshR00RmZcFA8PHU+VEqdlI7rfjuHNKX1f nGWdvnN+HpANoUdDdOg1zRiI/Phm70qM+YKCrZ21kRd5aVJBqeTjQqfb7akz+lIPbz3t GNVGu0eSRqiPEca72F12fdmNqWcs5YEA//rqeI3RKDHcNXrxUjGgRBWsC2FnGMrLVuOk RqVg== X-Gm-Message-State: AC+VfDwaHlNC9AaeKMB804s5thoqk7YIGJJ+baN2uAIjM38/Q4vWCkj4 b6bO0aPnCNIryVyJru36v9DlJQ== X-Google-Smtp-Source: ACHHUZ7F+ZXWaQdztu2Ta5OaQNG0xil5uAK5Tm4AyA6F7SoxpLJulLwH2YMvCEfUBS6Yo/M4ELlyOQ== X-Received: by 2002:a17:906:fd8e:b0:961:a67:28d with SMTP id xa14-20020a170906fd8e00b009610a67028dmr14295990ejb.22.1683707451838; Wed, 10 May 2023 01:30:51 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:c175:a0f9:6928:8c9d? ([2a02:810d:15c0:828:c175:a0f9:6928:8c9d]) by smtp.gmail.com with ESMTPSA id x4-20020a1709060a4400b0095ed3befbedsm2379116ejf.54.2023.05.10.01.30.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 May 2023 01:30:51 -0700 (PDT) Message-ID: <0fcc4617-e706-8743-e65d-1ff99f38ddac@linaro.org> Date: Wed, 10 May 2023 10:30:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 1/2] ASoC: dt-bindings: Add adi,ssm3515 amp schema Content-Language: en-US To: =?UTF-8?Q?Martin_Povi=c5=a1er?= 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 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> <5FC57F67-CC16-4DA4-9A0D-9F9A0539EE67@cutebit.org> From: Krzysztof Kozlowski In-Reply-To: <5FC57F67-CC16-4DA4-9A0D-9F9A0539EE67@cutebit.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 10/05/2023 10:29, Martin Povišer wrote: > > >> On 10. 5. 2023, at 10:23, Krzysztof Kozlowski wrote: >> >> On 10/05/2023 10:15, Martin Povišer wrote: >>> >>>> On 10. 5. 2023, at 9:51, Krzysztof Kozlowski wrote: >>>> >>>> On 09/05/2023 18:38, Martin Povišer wrote: >>>>> Add a DT schema for the SSM3515 amp by Analog Devices. It's a simple >>>>> mono amplifier with digital input. >>>>> >>>>> Signed-off-by: Martin Povišer > >>>>> +additionalProperties: true >>>> >>>> uinevaluatedProperties: false instead, so users can have name-prefix. >>> >>> I actually tweaked this to have the example passing, which has sound-name-prefix, >> >> 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’t enlighten me right away when I looked into it. >> >> 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? Properties can be evaluated by some other referenced schema (e.g. dai-common.yaml). If nothing evaluated them, they are unevaluated, thus unknown and not allowed. Best regards, Krzysztof