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 968DDC433FE for ; Tue, 29 Mar 2022 10:54:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235420AbiC2K4g (ORCPT ); Tue, 29 Mar 2022 06:56:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232269AbiC2K4e (ORCPT ); Tue, 29 Mar 2022 06:56:34 -0400 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9B55917A82; Tue, 29 Mar 2022 03:54:51 -0700 (PDT) Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 29 Mar 2022 19:54:50 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id 68EE12058443; Tue, 29 Mar 2022 19:54:50 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 29 Mar 2022 19:54:50 +0900 Received: from [10.212.183.172] (unknown [10.212.183.172]) by kinkan2.css.socionext.com (Postfix) with ESMTP id A66BFB62B7; Tue, 29 Mar 2022 19:54:49 +0900 (JST) Subject: Re: [PATCH] dt-bindings: PCI: uniphier: Convert uniphier-pcie.txt to json-schema To: Rob Herring Cc: Bjorn Helgaas , Krzysztof Kozlowski , Masami Hiramatsu , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <1648433498-23450-1-git-send-email-hayashi.kunihiko@socionext.com> From: Kunihiko Hayashi Message-ID: <00796c28-7485-8710-b76b-ac94e3358387@socionext.com> Date: Tue, 29 Mar 2022 19:54:49 +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: Content-Type: text/plain; charset=iso-2022-jp; format=flowed; delsp=yes 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 reviewing. On 2022/03/29 1:22, Rob Herring wrote: > On Mon, Mar 28, 2022 at 11:11:38AM +0900, Kunihiko Hayashi wrote: >> Convert the file into a JSON description at the yaml format. >> >> Signed-off-by: Kunihiko Hayashi >> --- >> .../bindings/pci/socionext,uniphier-pcie.yaml | 100 ++++++++++++++++++ >> .../devicetree/bindings/pci/uniphier-pcie.txt | 82 -------------- >> MAINTAINERS | 2 +- >> 3 files changed, 101 insertions(+), 83 deletions(-) >> create mode 100644 > Documentation/devicetree/bindings/pci/socionext,uniphier-pcie.yaml >> delete mode 100644 Documentation/devicetree/bindings/pci/uniphier-pcie. > txt [snip] >> +properties: >> + compatible: >> + enum: >> + - socionext,uniphier-pcie >> + >> + reg: >> + minItems: 3 >> + maxItems: 4 >> + >> + reg-names: >> + oneOf: >> + - items: >> + - const: dbi >> + - const: link >> + - const: config >> + - items: >> + - const: dbi >> + - const: link >> + - const: config >> + - const: atu > > You can have just the 2nd list plus 'minItems: 3' to do the same thing. I see. I'll rewrite it that way. Thank you, --- Best Regards Kunihiko Hayashi