Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp525158rwn; Thu, 8 Sep 2022 05:24:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR6cuLWUq7q/HN0Oskw8bQVZmN85Zt2F+yTPxYdtAco/a6n4fxhl0E0ICnaypf7FcKFfCdTF X-Received: by 2002:a05:6402:4411:b0:437:b723:72 with SMTP id y17-20020a056402441100b00437b7230072mr7182743eda.38.1662639852439; Thu, 08 Sep 2022 05:24:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662639852; cv=none; d=google.com; s=arc-20160816; b=VjI45gJVGTdpxynpUcbMw7Oc0nhi6VKnAoSjV1AQGHVimzigia9RhfVh+f64SG8K92 PAxJR0uQkIo8ftbdthrwL6lp75PAGt80qT/lJc36QYVtLR8SYop3+ryYkGnOHwB/7IE3 5Aemyz3ksiV8F+vxK6Vce+tpjPBELGBhasaIEwBf8cpKHTxt8/wq2w6H637AOgJXGraz VWOvVcoAGdWYOOD4sdUR8ypaobKrW/j0zvBwWQK99j9rKmgQ+SglJsM6NUrbS6r7V/zC +NVPahWA5oO8GoZdJ7Mg4GD79mTA5SMl3CDqeKGTA2xlSmJf7fGMDbbvGxOxTm4dcMjQ XUOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=dLNfPVthIDGnvL7i64ft4qcn3DEatPgzaJhqNWGF3ts=; b=phPvYHHMN5LxSGeTjE74mCX2MKkYukxdAYdLLtDUnI5cYEJNjMxGrIwpI46Crs8dLL ldYCHjpbI+5X7qC1Sn5lDGxksqlbHygYGrYB4ua53dJK2yp3f4eFaiCJeMlyY3lmjnKW 57GbRbOed83Ya8NQgq8kx/sNX30djmNfqf41XMv7Gg53VB/ZoRdJsvnBVJyzHipVonBb ngoGsKClzrw3keDxkM1mVJ7++N19TcBmLiA1WBidlu/bS6j4r/c/04nrW9bbLGV7vz0w WYqi11gZULmutdquYvoo9PAWBaqfUaWtk5EmeX3Jx9KskmoaI61ODjyAyNIjMzHO94Pk +kHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tN5ys6hD; 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 i34-20020a0564020f2200b0044f1e94831bsi3374541eda.97.2022.09.08.05.23.44; Thu, 08 Sep 2022 05:24:12 -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=@linaro.org header.s=google header.b=tN5ys6hD; 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 S231675AbiIHMW3 (ORCPT + 99 others); Thu, 8 Sep 2022 08:22:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231691AbiIHMWQ (ORCPT ); Thu, 8 Sep 2022 08:22:16 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00E9EF6BA2 for ; Thu, 8 Sep 2022 05:22:11 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id v6so6277053ljj.0 for ; Thu, 08 Sep 2022 05:22:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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; bh=dLNfPVthIDGnvL7i64ft4qcn3DEatPgzaJhqNWGF3ts=; b=tN5ys6hDdHw2V6LYl85NdhEbAv3IBthZ49XCt6QVHcsdJiSzDwgWO76jDPCqgX/1Gx LOiVgL1JZCg0BPm/ibDkf8X0eKYaXRa4gZiB039yX4MW83KWnh8E1t9ku1w28Gih08wx QwPzF8AqW+VZUt6zSKCbJ/fl7Bwz/b5x67+dQw4D+5J3VfRCUisQrJcMt/p030+o42Lw jMs2ER9qlCtnOR3piKpSPueODGp4uGJO9mPy/P1KfuAFKjyShG96LsyLwbOYi20omXAq nxKLLs1eYiUUm4j4UIfk27EW7Ib66BCv4okEGWDaJSZ+tQQUOKKSkSCeSFKu4ijcEjUI dFew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=dLNfPVthIDGnvL7i64ft4qcn3DEatPgzaJhqNWGF3ts=; b=C+Zq4e0KJkM8gJ6TQwL6DgOWqcjjcjahphCEGdzrr04333qNnSiLd+4HAu7sZOVyWN LX4QWP8KBe2S4dBA2mqkXGdQ/iNm+79oejzZ+hOIvHtSbdhUz++9jH6EJVzJ0Mfgc6gg /34xtvBsmpJfg4bbgVDk0mJit/O/HZRwBRaG+lXjqQh3mgxK5nOfKHT4kIrOwMfGRvrS 772iocJyv+P4fEtIfhzD5FHCDa3XeVni568HOGy9rnLzNamuxFYqYObh3mkVQU2kpqc9 NHqpdmDDx0VENZr918yG4i9wKhMgwT/5QpPW5yip1Pw51rWLQcDGdygs4sKw+0p8xR6/ sYzw== X-Gm-Message-State: ACgBeo2Qver7MVilu5sBL7WfSGYVshvQe8DtK4tSi1XUWkp/IG6tUgrK k2gATbJ6TmMjVIEmwbMfBTxW6A== X-Received: by 2002:a2e:2e07:0:b0:26a:c516:5a9a with SMTP id u7-20020a2e2e07000000b0026ac5165a9amr2247937lju.185.1662639729638; Thu, 08 Sep 2022 05:22:09 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id a8-20020a056512200800b00497a0ea92desm1446135lfb.135.2022.09.08.05.22.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Sep 2022 05:22:09 -0700 (PDT) Message-ID: Date: Thu, 8 Sep 2022 14:22:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH v2 15/20] dt-bindings: nvmem: add YAML schema for the sl28 vpd layout Content-Language: en-US To: Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Srinivas Kandagatla , Shawn Guo , Li Yang , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Frank Rowand Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Ahmad Fatoum , Philipp Zabel References: <20220901221857.2600340-1-michael@walle.cc> <20220901221857.2600340-16-michael@walle.cc> From: Krzysztof Kozlowski In-Reply-To: <20220901221857.2600340-16-michael@walle.cc> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 02/09/2022 00:18, Michael Walle wrote: > Add a schema for the NVMEM layout on Kontron's sl28 boards. > > Signed-off-by: Michael Walle > --- > changes since v1: > - add custom select > - add description > - add "additionalProperties: false", I wasn't sure if all the > subnodes needs it. I'd say yes, but the brcm,nvram binding > doesn't have them neither. > > .../nvmem/layouts/kontron,sl28-vpd.yaml | 67 +++++++++++++++++++ > 1 file changed, 67 insertions(+) > create mode 100644 Documentation/devicetree/bindings/nvmem/layouts/kontron,sl28-vpd.yaml > > diff --git a/Documentation/devicetree/bindings/nvmem/layouts/kontron,sl28-vpd.yaml b/Documentation/devicetree/bindings/nvmem/layouts/kontron,sl28-vpd.yaml > new file mode 100644 > index 000000000000..0c180f29e880 > --- /dev/null > +++ b/Documentation/devicetree/bindings/nvmem/layouts/kontron,sl28-vpd.yaml > @@ -0,0 +1,67 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/nvmem/layouts/kontron,sl28-vpd.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: NVMEM layout of the Kontron SMARC-sAL28 vital product data > + > +maintainers: > + - Michael Walle > + > +description: > + The vital product data (VPD) of the sl28 boards contains a serial > + number and a base MAC address. The actual MAC addresses for the > + on-board ethernet devices are derived from this base MAC address by > + adding an offset. > + > +# We need a select here so we don't match all nodes with 'user-otp' > +select: > + properties: > + compatible: > + contains: > + const: kontron,sl28-vpd > + required: > + - compatible > + > +properties: > + compatible: > + items: > + - const: kontron,sl28-vpd > + - const: user-otp > + > + serial-number: I will leave it for Rob to ack... Best regards, Krzysztof