Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp208962rwe; Wed, 31 Aug 2022 01:04:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Ak9hAs0MUOChrEf3HEntqaMlbn1EU8M6KEPWnlVjaMQnZxIbAhtGhMeJqAg0c2jJXv8jF X-Received: by 2002:a63:4e12:0:b0:430:2184:eba2 with SMTP id c18-20020a634e12000000b004302184eba2mr2078178pgb.148.1661933052870; Wed, 31 Aug 2022 01:04:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661933052; cv=none; d=google.com; s=arc-20160816; b=v9P6P25S/lzzmfqz8jiHJp99XzbE5DFw96r/5zFjdeoR2SGrB8XhbhrBqcdVegzTFp i29VCIj70Gvl0gSdHuflvr/trFu/WFgmThkrKe4RgfB4eHQmiyCSwPboneyYUABTqd0s ux2P5o2mymXpKnMbK1sGIWOrqd3rpd+tG1NtaZ+Jfn3OxGQocNfrazrrvQ4DuyUgZ7HL VS7hBI9qKWenmnvgc04JtOy1dKpflFXNriuKmsafGXU3ACsFxj2JHZh1QvotQSX6zRdM Letgwgp7BLx2kIqkJqpZ7XrNkm5lI8q/seE2R2yIeqom/UYkhCAGcdOlWtsiB3yrT9HL aqjw== 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=ouTFxY93nE4Z9QkhFZSLBKekqYyiBXQP19HgDhyZHSU=; b=zsp0gXreag76vWNenrh4bKMQgPxhW70xESHfkPbUJ8Clpxa5KO8eQLTsV/N3gDTIfZ uszNW6qSZhEQ6Gl27feb7yga/vHaNhpdkWSehWTP7TYWQ8bEOCuy1qG++ljoQb460Z3x V9tqnWofCU9u7MJGF8ViLeiISj7ZsNPVyomp6mPYB0I9nYFYON3nlE78p8p2QIEYzG4P dmeEHw4mwZbM4iUuznbIJ8Lsu82qTSAqdObZtDI1idmmpJ/E8BRopXN6fQrTVgbfjwxr bH8BT2Bg0H0cCHNHO3tz1WsA8Ybt8KVPdXL+NnUSCC2wff7cCTtHqmvD7+8pR8nENQi1 yR3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KaH7MCXX; 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 w15-20020a63fb4f000000b0042bc2bd5792si4260781pgj.20.2022.08.31.01.04.01; Wed, 31 Aug 2022 01:04: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=KaH7MCXX; 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 S229522AbiHaHqC (ORCPT + 99 others); Wed, 31 Aug 2022 03:46:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230442AbiHaHpf (ORCPT ); Wed, 31 Aug 2022 03:45:35 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D97D87C194 for ; Wed, 31 Aug 2022 00:45:21 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id w8so9710037lft.12 for ; Wed, 31 Aug 2022 00:45:21 -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; bh=ouTFxY93nE4Z9QkhFZSLBKekqYyiBXQP19HgDhyZHSU=; b=KaH7MCXXGQGzFH3dRW0/Fv7P3w2fHAmtPvJFEJm8HRZTM7oPKNxSNuqnLws54cFdz2 JJbSZe8FWP7wO+KfbvOdXyFVA4wSNxKYi27qCwXtuG1rVbEyDnnYT5SVwk+nVNo81PFm CJ7NBXtdCA5607gVeIVUC/chvc/oEX1EQ7Vl+1Lk3nd1xAglRlrqwBsW37MmJgqCps1B sewjrGFON/2R+WugFtQksVIEnAt5MCSCAsKLJuMEhEbW8gtpiUqnNcwzdHe5SE5WPJli dV7mrnvhlOfRfQIF50u9qmQm5Jp83VE4LhdQT2XLVJoCCS8p0fQV9fNsG/+vel5iApuB TALA== 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; bh=ouTFxY93nE4Z9QkhFZSLBKekqYyiBXQP19HgDhyZHSU=; b=kPwWqUPGIRAkEVSo/VDvIFV0ko7EPAlZDscY6XWSCAW6ExZ4WrQvZcg6RtHMuc78Vf mei5yx7kRGkrdSe/C8jm6Q/aE0tF5Q8aXBbipSZgRTpPWUmF3kkTuAHcfeIj0tZ6DCV/ 3uSgXrOWi5sGAovfjlQfvf842Oo6y5YQ3BWVwBpx5uWqSiTFWuvhwy+f5lQ12KU2bCJc kcpJLnq3+oDIKotCL8utnR/Hw7H+jtS485wZ77l6KVhiiOuQjC7taJb2E1JXvFy6Xqbv VT69lLJ773yvIyTDzhpeDtp9l8U+4ME5CDFfJD+JkNS5ldbNXfn1JHrjyXCLqE+JBnI0 PlJA== X-Gm-Message-State: ACgBeo1qPyE/hva6GIKP4EpEsAvwE/B8EDdy+BACIYlVFbsF2J2AcfPK grHjY1nDTne1lDMi87IE99o1IA== X-Received: by 2002:a05:6512:2354:b0:48a:e29b:2bb4 with SMTP id p20-20020a056512235400b0048ae29b2bb4mr9582773lfu.435.1661931920194; Wed, 31 Aug 2022 00:45:20 -0700 (PDT) Received: from [192.168.28.124] (balticom-73-99-134.balticom.lv. [109.73.99.134]) by smtp.gmail.com with ESMTPSA id f12-20020a05651c02cc00b00261800f0e02sm53144ljo.26.2022.08.31.00.45.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 Aug 2022 00:45:19 -0700 (PDT) Message-ID: Date: Wed, 31 Aug 2022 10:45:18 +0300 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 v1 09/14] 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?= , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Frank Rowand Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, Ahmad Fatoum References: <20220825214423.903672-1-michael@walle.cc> <20220825214423.903672-10-michael@walle.cc> From: Krzysztof Kozlowski In-Reply-To: <20220825214423.903672-10-michael@walle.cc> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 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 26/08/2022 00:44, Michael Walle wrote: > Add a schema for the NVMEM layout on Kontron's sl28 boards. > > Signed-off-by: Michael Walle > --- > .../nvmem/layouts/kontron,sl28-vpd.yaml | 52 +++++++++++++++++++ > 1 file changed, 52 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..e4bc2d9182db > --- /dev/null > +++ b/Documentation/devicetree/bindings/nvmem/layouts/kontron,sl28-vpd.yaml > @@ -0,0 +1,52 @@ > +# 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. > + > +properties: > + compatible: > + items: > + - const: kontron,sl28-vpd > + - const: user-otp > + > + serial-number: > + type: object You should define the contents of this object. I would expect this to be uint32 or string. I think you also need description, as this is not really standard field. > + > + base-mac-address: Fields should be rather described here, not in top-level description. > + type: object On this level: additionalProperties: false > + > + properties: > + "#nvmem-cell-cells": > + const: 1 > + I also wonder why you do not have unit addresses. What if you want to have two base MAC addresses? > +required: > + - compatible Other fields are I guess required? At least serial-number should be always? > + > +additionalProperties: false > + > +examples: > + - | > + otp-1 { Messed up indentation (use 4 spaces). Generic node name "otp". > + compatible = "kontron,sl28-vpd", "user-otp"; > + > + serial_number: serial-number { What's the point of the empty node? > + }; > + > + base_mac_address: base-mac-address { > + #nvmem-cell-cells = <1>; > + }; > + }; > + > +... Best regards, Krzysztof