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 6618FC433EF for ; Thu, 21 Apr 2022 08:04:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376840AbiDUIHU (ORCPT ); Thu, 21 Apr 2022 04:07:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230143AbiDUIHP (ORCPT ); Thu, 21 Apr 2022 04:07:15 -0400 Received: from maillog.nuvoton.com (maillog.nuvoton.com [202.39.227.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A7F221C920; Thu, 21 Apr 2022 01:04:25 -0700 (PDT) Received: from NTHCCAS04.nuvoton.com (NTHCCAS04.nuvoton.com [10.1.8.29]) by maillog.nuvoton.com (Postfix) with ESMTP id C80FA1C810F7; Thu, 21 Apr 2022 16:04:24 +0800 (CST) Received: from NTHCCAS04.nuvoton.com (10.1.8.29) by NTHCCAS04.nuvoton.com (10.1.8.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Thu, 21 Apr 2022 16:04:24 +0800 Received: from [172.19.1.47] (172.19.1.47) by NTHCCAS04.nuvoton.com (10.1.12.25) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Thu, 21 Apr 2022 16:04:24 +0800 Message-ID: <80994f4b-136f-7669-4674-0c9826e88248@nuvoton.com> Date: Thu, 21 Apr 2022 16:04:24 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v3 5/5] dt-bindings: arm: Add initial bindings for Nuvoton Platform Content-Language: en-US To: Krzysztof Kozlowski , , , , , CC: , , , , , , , References: <20220418082738.11301-1-ychuang3@nuvoton.com> <20220418082738.11301-6-ychuang3@nuvoton.com> <4e9eaede-2208-bd73-35ae-89e128562653@linaro.org> From: Jacky Huang In-Reply-To: <4e9eaede-2208-bd73-35ae-89e128562653@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/4/21 下午 02:56, Krzysztof Kozlowski wrote: > On 21/04/2022 08:39, Jacky Huang wrote: >> >> On 2022/4/18 下午 08:11, Krzysztof Kozlowski wrote: >>> On 18/04/2022 10:27, Jacky Huang wrote: >>>> +properties: >>>> + $nodename: >>>> + const: '/' >>>> + compatible: >>>> + items: >>>> + - enum: >>>> + - nuvoton,ma35d1 >>>> + - nuvoton,ma35d1-evb >>>> + - nuvoton,ma35d1-iot >>>> + - nuvoton,ma35d1-som512 >>>> + - nuvoton,ma35d1-som1g >>> This does not match your DTS and does not look reasonable (SoC >>> compatible should not be part of this enum). Check some other board >>> bindings for examples. >>> >>> >>> Best regards, >>> Krzysztof >> I would like to modify it as follows: >> >> description: | >>   Boards with an ARMv8 based Nuvoton SoC shall have the following >>   properties. >> >> properties: >>   $nodename: >>     const: '/' >>   compatible: >>     oneOf: >> >>       - description: MA35D1 evaluation board >>         items: >>           - const: nuvoton,ma35d1-evb >>           - const: nuvoton,ma35d1 >> >>       - description: MA35D1 IoT board >>         items: >>           - const: nuvoton,ma35d1-iot > Instead just enum with all board compatibles. How about to modify it as the follows:   compatible:     oneOf:       - description: MA35D1 evaluation board         items:           - enum:               - nuvoton,ma35d1-evb           - const: nuvoton,ma35d1       - description: MA35D1 IoT board         items:           - enum:               - nuvoton,ma35d1-iot           - const: nuvoton,ma35d1       - description: MA35D1 SOM board         items:           - enum:               - nuvoton,ma35d1-som512               - nuvoton,ma35d1-som1g           - const: nuvoton,ma35d1 >> Thank you very much. >> Jacky Huang >> > > Best regards, > Krzysztof Sincerely, Jacky Huang