From patchwork Thu Dec 9 17:42:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 12695507 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 319E4C433EF for ; Thu, 9 Dec 2021 17:54:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sAt8aW/BY2cte1onIPb81ihNQnWamHCfcTGfls/mhfU=; b=p7yoiJ38EwscLI i21ENAZcJaTcC9PRVWJLXAJxfgrL9oy9jki3TxA7hLNeYenOBv+yqDpSk06HMFzYPou3K5ghcC3zA DGwdKoA3Bzk3hHyeydw+Ctq5CpqnM9n8aEqLbZWgLK9vJZuYW75xaLKblDiyWDeVlCMEarkKr+IJC n4j7jmEAz/ZYw/3kU9QXTOddfMy1SQCa6cbVau6mL+ZtvELsXYbU8U1UOng+igEmjvnoYM8uYxwU3 JDF/rvzo1OqRYuqqNF8DHuq63zHRdLob0BB/hke3Si0xb8OzKFuDSUy8m5ea9q9OZZuggcwYjmSur lAwmBEn3XANZv0K7Np1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvNac-00H4PG-4c; Thu, 09 Dec 2021 17:52:19 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvNRU-00H1rx-9a for linux-arm-kernel@lists.infradead.org; Thu, 09 Dec 2021 17:42:54 +0000 Received: by mail-wm1-x32e.google.com with SMTP id o19-20020a1c7513000000b0033a93202467so4706650wmc.2 for ; Thu, 09 Dec 2021 09:42:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1qqK9+xQ9ZbtBELQAT0EXm6TWiIt+xXrrL7fOffh/Mk=; b=swxVRUXimw2W0nql09GwFWrzunSGiTpyC0gIyxyFYN1Dsy7gNq0X9WTTLgh1neZcAH nCIp+9n2+NnAzbizapTLdyXdPG5ce9MoU1foUmZ78cIFbjc79sHxnAm/FdcRjXPJeyC2 DstUVGwBpbzLQ3xHjAPNFYmqEfE7n6kszR2ht/lK3d+vScLmwSmN/hkeAOQqPUGuXr1Z 1JSlb472zlPiw1XUQfrdTYUfcHyFDhiOSVNNxLLIBA4HDPicyTHdZesrRrQLIzvAZo45 ne1Tc+AgGVWd2+aZ6kYaWZyIey1BDbrsekOUdcn0cHfMeAj3C9A+disu6qQixs77gWOv IF+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1qqK9+xQ9ZbtBELQAT0EXm6TWiIt+xXrrL7fOffh/Mk=; b=DmJ32u/FN17Cd/4zCXpFvSDfIdusFCYmsN5juluRn87kxSbcGdSMczAAb9jVfuBNzU v+gHHegQAKxDxsc2+Kt+uw7UoEfzMSKtBrrTCbDjMNkD9DWyhZA5xXT/VRfWh4cdydv1 XA15pWDAkibnBKmkVenpHBvnRuleCDEebe76WOU9kNi3T9WLO9pGlJy20MKe8Iq0p0zl wE8cbOdPdFaoFU0zPsYRnXzVm9Hba8APkdDId92eoqCKKYKs25nfiZfJQqN8P5XYkr1l aLvJir7ediRg6OZSmLrPrxLvHvuTGFNJB6nXHdlzGj9dAQXPEMT7Ec4wSNg80LJZY4UE 3Hcg== X-Gm-Message-State: AOAM533a5g41TqMaXqx4DZDMHFIZduKVTvnCEqiSGH/PBJOBPdIDiJ0e DRVQ2xXfmdWOlnhxo6h8M46b3A== X-Google-Smtp-Source: ABdhPJwCv+vjl+oQsw4enZewe0eQ0mMvqsRmRIJqksr/2N4WKMc8gdbQp9dYk7yOUjrpWsd/GzTzyg== X-Received: by 2002:a05:600c:202:: with SMTP id 2mr8895294wmi.134.1639071770161; Thu, 09 Dec 2021 09:42:50 -0800 (PST) Received: from srini-hackbox.lan (cpc90716-aztw32-2-0-cust825.18-1.cable.virginm.net. [86.26.103.58]) by smtp.gmail.com with ESMTPSA id w4sm308666wrs.88.2021.12.09.09.42.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Dec 2021 09:42:49 -0800 (PST) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Rob Herring , Srinivas Kandagatla , Maxime Coquelin , Alexandre Torgue , =?utf-8?b?UmFmYcWCIE1pxYJl?= =?utf-8?b?Y2tp?= , Saenz Julienne , Fabrice Gasnier , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Thierry Reding Subject: [PATCH 4/4] dt-bindings: nvmem: Add missing 'reg' property Date: Thu, 9 Dec 2021 17:42:35 +0000 Message-Id: <20211209174235.14049-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20211209174235.14049-1-srinivas.kandagatla@linaro.org> References: <20211209174235.14049-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211209_094252_377577_E429E249 X-CRM114-Status: GOOD ( 10.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Rob Herring With 'unevaluatedProperties' support implemented, the following warnings are generated in the nvmem examples: Documentation/devicetree/bindings/nvmem/st,stm32-romem.example.dt.yaml: efuse@1fff7800: Unevaluated properties are not allowed ('reg' was unexpected) Documentation/devicetree/bindings/nvmem/rmem.example.dt.yaml: nvram@10000000: Unevaluated properties are not allowed ('reg' was unexpected) Documentation/devicetree/bindings/nvmem/brcm,nvram.example.dt.yaml: nvram@1eff0000: Unevaluated properties are not allowed ('reg' was unexpected) Add the missing 'reg' property definition. Cc: Srinivas Kandagatla Cc: Maxime Coquelin Cc: Alexandre Torgue Cc: Rafał Miłecki Cc: Saenz Julienne Cc: Fabrice Gasnier Cc: linux-stm32@st-md-mailman.stormreply.com Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Rob Herring Reviewed-by: Fabrice Gasnier Reviewed-by: Thierry Reding Signed-off-by: Srinivas Kandagatla --- Documentation/devicetree/bindings/nvmem/brcm,nvram.yaml | 3 +++ Documentation/devicetree/bindings/nvmem/rmem.yaml | 3 +++ Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/nvmem/brcm,nvram.yaml b/Documentation/devicetree/bindings/nvmem/brcm,nvram.yaml index 58ff6b0bdb1a..8c3f0cd22821 100644 --- a/Documentation/devicetree/bindings/nvmem/brcm,nvram.yaml +++ b/Documentation/devicetree/bindings/nvmem/brcm,nvram.yaml @@ -24,6 +24,9 @@ properties: compatible: const: brcm,nvram + reg: + maxItems: 1 + unevaluatedProperties: false examples: diff --git a/Documentation/devicetree/bindings/nvmem/rmem.yaml b/Documentation/devicetree/bindings/nvmem/rmem.yaml index 1d85a0a30846..a4a755dcfc43 100644 --- a/Documentation/devicetree/bindings/nvmem/rmem.yaml +++ b/Documentation/devicetree/bindings/nvmem/rmem.yaml @@ -19,6 +19,9 @@ properties: - raspberrypi,bootloader-config - const: nvmem-rmem + reg: + maxItems: 1 + no-map: $ref: /schemas/types.yaml#/definitions/flag description: diff --git a/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml b/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml index a48c8fa56bce..448a2678dc62 100644 --- a/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml +++ b/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml @@ -24,6 +24,9 @@ properties: - st,stm32f4-otp - st,stm32mp15-bsec + reg: + maxItems: 1 + patternProperties: "^.*@[0-9a-f]+$": type: object