Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1181656pxv; Fri, 16 Jul 2021 03:36:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+OG5oPWtqMAD4B7DLdhIjDXeBudklvkVh27HoxQI1M2WqTUvZIKfGXm303ytaXPY+u8A/ X-Received: by 2002:a50:ff02:: with SMTP id a2mr13481962edu.214.1626431768936; Fri, 16 Jul 2021 03:36:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626431768; cv=none; d=google.com; s=arc-20160816; b=nRD+pmamNcrG2ltiUzMG+DrCxvR6RrWBXapjM1kLh5XeGzajoMRy3NXZfXIYcDFPi4 V5FfvXQsfeQbdieNoOC3jj7uaLCIpErorEilHylwIDPG2g4Xfj/1NJvhz28efXRl18ye aGkKILA8ZyXdatc3GD5DjSDd34GhhbT5kJtnVUrGkPp6Xtl6mfNifCQSccecveqzPIpO 2SQjo8/YfFiwWz3q+NJrXZ2V510OqdFGJJttro92QQ8u7zuTWG7CJmgxLT1JYpFRjwD2 VOHI2sr025NL/YQJrvmSV7zZN8pZEpk+bjYJmCM8G5dPBZ/Q6KQO+OmMVkie1H6/U7pm 9eow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=KD4qD7uFnb2voyAKjOY2gpg/n2cZll8geB/jlo1oRVs=; b=SuHWtnHCJEIwKUqt/dCEwX8CFoSe/SVhEOPDHUp/nVUfdKs4Dunt8OVpZ87NOV42py 0Wn2dONEa5VLGlI1bHRrTMirqJ1lojWKFkGdOqOw2qcWQFHCNlrEyHXO/NFy/fIN9O40 x2lmg0nPDcq+UdU4npHykr/2rHwrrXTQaoaEQv6VDvQRu9akKAHQUa0K1036bpPXg29d JBxqcRtPXf5Z/4ayPb4r+/JHIxpzEU5y/IM92JOveWI6dGzi2+/K2dtOQgWeW33vFcRn u3ku/9GmGVxpwKhstAukoZLDd1Ssd6r0mppGF0C+WzDptCcxEmlvBf4wX5vonPpbQTxa ROTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kl11si7212220ejc.593.2021.07.16.03.35.45; Fri, 16 Jul 2021 03:36:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238243AbhGPKhX (ORCPT + 99 others); Fri, 16 Jul 2021 06:37:23 -0400 Received: from mx.socionext.com ([202.248.49.38]:24038 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230287AbhGPKhW (ORCPT ); Fri, 16 Jul 2021 06:37:22 -0400 Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 16 Jul 2021 19:34:27 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id 555CE208E6F5; Fri, 16 Jul 2021 19:34:27 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Fri, 16 Jul 2021 19:34:27 +0900 Received: from yuzu2.css.socionext.com (yuzu2 [172.31.9.57]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 0966EB631E; Fri, 16 Jul 2021 19:34:27 +0900 (JST) Received: from [10.212.246.227] (unknown [10.212.246.227]) by yuzu2.css.socionext.com (Postfix) with ESMTP id D6BD7B1D52; Fri, 16 Jul 2021 19:34:21 +0900 (JST) Subject: Re: [PATCH] dt-bindings: nvmem: Convert UniPhier eFuse bindings to json-schema To: Rob Herring Cc: Srinivas Kandagatla , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Masami Hiramatsu , Keiji Hayashibara References: <1624413058-17338-1-git-send-email-hayashi.kunihiko@socionext.com> <20210714185922.GA2857803@robh.at.kernel.org> From: Kunihiko Hayashi Message-ID: Date: Fri, 16 Jul 2021 19:34:16 +0900 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210714185922.GA2857803@robh.at.kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, Thank you for checking. On 2021/07/15 3:59, Rob Herring wrote: > On Wed, Jun 23, 2021 at 10:50:58AM +0900, Kunihiko Hayashi wrote: >> Convert the UniPhier eFuse binding to DT schema format. >> >> Cc: Keiji Hayashibara >> Signed-off-by: Kunihiko Hayashi >> --- >> .../bindings/nvmem/socionext,uniphier-efuse.yaml | 109 +++++++++++++++++++++ >> .../devicetree/bindings/nvmem/uniphier-efuse.txt | 49 --------- >> 2 files changed, 109 insertions(+), 49 deletions(-) >> create mode 100644 Documentation/devicetree/bindings/nvmem/socionext,uniphier-efuse.yaml >> delete mode 100644 Documentation/devicetree/bindings/nvmem/uniphier-efuse.txt >> >> diff --git a/Documentation/devicetree/bindings/nvmem/socionext,uniphier-efuse.yaml b/Documentation/devicetree/bindings/nvmem/socionext,uniphier-efuse.yaml >> new file mode 100644 >> index 0000000..e03c1ed >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/nvmem/socionext,uniphier-efuse.yaml >> @@ -0,0 +1,109 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/nvmem/socionext,uniphier-efuse.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Socionext UniPhier eFuse bindings >> + >> +maintainers: >> + - Keiji Hayashibara >> + - Kunihiko Hayashi >> + >> +allOf: >> + - $ref: "nvmem.yaml#" >> + >> +properties: >> + "#address-cells": true >> + "#size-cells": true >> + >> + compatible: >> + const: socionext,uniphier-efuse >> + >> + reg: >> + maxItems: 1 >> + >> +patternProperties: >> + "^.*@[0-9a-f]+,[0-9]+$": > > nvmem.yaml has a different definition. Though it doesn't handle > overlapping addresses. You should extend nvmem.yaml like you have here. > The last part should be optional though. I understand. I'll try to expand the optional pattern to nvmem.yaml. >> + type: object >> + >> + properties: >> + reg: >> + maxItems: 1 >> + >> + bits: >> + maxItems: 1 >> + >> + required: >> + - reg > > All this is already defined in nvmem.yaml. I see. I'll remove them. >> + >> +required: >> + - compatible >> + - reg >> + >> +additionalProperties: false > > Use 'unevaluatedProperties: false' and then you don't need to redefine > anything common here. Okay, I'll use this keyword for that. Thank you, --- Best Regards Kunihiko Hayashi