Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2770194rwb; Mon, 5 Sep 2022 00:48:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR5NH2gVkBARAmU/X5GDJbg7pyyQg3CIBClynjNWr0SXaYwRLC5lZLkUKs5i1UfsnHcfbaN9 X-Received: by 2002:a05:6402:1e8c:b0:448:8776:d813 with SMTP id f12-20020a0564021e8c00b004488776d813mr28310275edf.15.1662364099342; Mon, 05 Sep 2022 00:48:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662364099; cv=none; d=google.com; s=arc-20160816; b=kjbnl3h4dxwwEYLh7gwTwmL1Hryl2hug+Rkzj/+c9z8iJqDA4TePSd5/cPFO7LukdY Co37UYtlVkcrquZLFbN9kRQNaKvN7Qht/5iyE0TEE3/PCHh1KCxLM/Tt4GoP0BhOuJha iSWoJFq1LpFKW3MRozTle8/ncfVQDd76LtSO7ONevqk2j94vKIGmL3GpVCV/AShgKQNg T0j1TPpKyrDfCo0L1iFmvnU27XHBpzqzcSyVwTDFQZNWT6YsvJz4UNivVq5WHumvkXZE TqtNW7pnm3I9xtMD0d7/a2tMehCqBAL4FOmoG2XDNcnnHVPbNHD4kdpYgSGkPEZ9wtho nAfw== 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; bh=ki9T4PxWTSK5sXcILiI7r1PUpMCNE1hggFy8+xhzAw8=; b=PJSfuiPHZJCag7Fbe/4oqxJKh25XXVcfIHwMCkducx5hhExWR2Lgs97u0xZxMCFSgB rF+uEYtfyR7PMDd+in4bWaQQgknIi7O2dQeX/pJ1EMNuqKHm8jCKm0gPvBJ8lHLSW/pD 6/3W57fFWpxTEpkXC2LQxOYESReQolhCEYaAMaowTr7SGGCZ8DXBWie3VHUeP3dWY6Au dLV/R5jn78CU3gvyl1HvXA4v6jVh8X+EEtM2j3floQ3kLBHJBkk6306jYtJp1ICO95F2 45nC1SZ+GT7rxVUGjAL/eST1GYvpbQOdHin95pah0UAM0nvl+9Z0TdL2C0IbN9SrlpZC wrHA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b18-20020a50b412000000b00447e24d55eesi6109261edh.81.2022.09.05.00.47.53; Mon, 05 Sep 2022 00:48:19 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235850AbiIEHhN (ORCPT + 99 others); Mon, 5 Sep 2022 03:37:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231540AbiIEHhL (ORCPT ); Mon, 5 Sep 2022 03:37:11 -0400 Received: from mail-sz.amlogic.com (mail-sz.amlogic.com [211.162.65.117]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5172010549 for ; Mon, 5 Sep 2022 00:37:09 -0700 (PDT) Received: from [10.28.39.72] (10.28.39.72) by mail-sz.amlogic.com (10.28.11.5) with Microsoft SMTP Server id 15.1.2507.6; Mon, 5 Sep 2022 15:37:06 +0800 Message-ID: <9119f4d6-f9d4-e5e0-3536-95d5a6405cbe@amlogic.com> Date: Mon, 5 Sep 2022 15:37:05 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH RESEND v8 4/5] dt-bindings: nand: meson: convert txt to yaml Content-Language: en-US To: Neil Armstrong , Miquel Raynal , CC: Rob Herring , Richard Weinberger , Vignesh Raghavendra , Jerome Brunet , Martin Blumenstingl , Kevin Hilman , Jianxin Pan , Victor Wan , XianWei Zhao , Kelvin Zhang , BiChao Zheng , YongHui Yu , , , References: <20220822091838.18528-1-liang.yang@amlogic.com> <20220822091838.18528-5-liang.yang@amlogic.com> <0ad6a792-74c2-9957-ee56-f183dcd75c58@baylibre.com> From: Liang Yang In-Reply-To: <0ad6a792-74c2-9957-ee56-f183dcd75c58@baylibre.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.28.39.72] X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi Neil, Thanks for your remind. I will add the ML in next resend version quickly. On 2022/9/5 15:22, Neil Armstrong wrote: > [ EXTERNAL EMAIL ] > > +CC [devicetree@vger.kernel.org] > > Please Add this ML to CC if you resend, it's the last patch of the serie > that haven't got a proper review. > > On 22/08/2022 11:18, Liang Yang wrote: >> convert the amlogic,meson-name.txt to amlogic,meson-nand.yaml >> >> Signed-off-by: Liang Yang >> --- >>   .../bindings/mtd/amlogic,meson-nand.txt       | 55 ------------ >>   .../bindings/mtd/amlogic,meson-nand.yaml      | 88 +++++++++++++++++++ >>   2 files changed, 88 insertions(+), 55 deletions(-) >>   delete mode 100644 >> Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt >>   create mode 100644 >> Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml >> >> diff --git >> a/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt >> b/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt >> deleted file mode 100644 >> index 5d5cdfef417f..000000000000 >> --- a/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt >> +++ /dev/null >> @@ -1,55 +0,0 @@ >> -Amlogic NAND Flash Controller (NFC) for GXBB/GXL/AXG family SoCs >> - >> -This file documents the properties in addition to those available in >> -the MTD NAND bindings. >> - >> -Required properties: >> -- compatible : contains one of: >> -  - "amlogic,meson-gxl-nfc" >> -  - "amlogic,meson-axg-nfc" >> - >> -- reg        : Offset and length of the register set >> - >> -- reg-names  : "nfc" is the register set for NFC controller and "emmc" >> -        is the register set for MCI controller. >> - >> -- clocks     : >> -    A list of phandle + clock-specifier pairs for the clocks listed >> -    in clock-names. >> - >> -- clock-names: Should contain the following: >> -    "core" - NFC module gate clock >> -    "device" - parent clock for internal NFC >> - >> -Optional children nodes: >> -Children nodes represent the available nand chips. >> - >> -Other properties: >> -see Documentation/devicetree/bindings/mtd/nand-controller.yaml for >> generic bindings. >> - >> -Example demonstrate on AXG SoC: >> - >> -    nand-controller@7800 { >> -        compatible = "amlogic,meson-axg-nfc"; >> -        reg = <0x0 0x7800 0x0 0x100>, >> -              <0x0 0x7000 0x0 0x800>; >> -        reg-names = "nfc", "emmc"; >> -        #address-cells = <1>; >> -        #size-cells = <0>; >> -        interrupts = ; >> - >> -        clocks = <&clkc CLKID_SD_EMMC_C>, >> -             <&clkc CLKID_FCLK_DIV2>; >> -        clock-names = "core", "device"; >> - >> -        pinctrl-names = "default"; >> -        pinctrl-0 = <&nand_pins>; >> - >> -        nand@0 { >> -            reg = <0>; >> -            #address-cells = <1>; >> -            #size-cells = <1>; >> - >> -            nand-on-flash-bbt; >> -        }; >> -    }; >> diff --git >> a/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml >> b/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml >> new file mode 100644 >> index 000000000000..42634e9c0d3c >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml >> @@ -0,0 +1,88 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/mtd/amlogic,meson-nand.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Amlogic NAND Flash Controller (NFC) for GXBB/GXL/AXG family SoCs >> + >> +allOf: >> +  - $ref: "nand-controller.yaml" >> + >> +maintainers: >> +  - liang.yang@amlogic.com >> + >> +properties: >> +  compatible: >> +    enum: >> +      - "amlogic,meson-gxl-nfc" >> +      - "amlogic,meson-axg-nfc" >> + >> +  reg: >> +    maxItems: 2 >> + >> +  interrupts: >> +    maxItems: 1 >> + >> +  clocks: >> +    minItems: 2 >> + >> +  clock-names: >> +    items: >> +      - const: core >> +      - const: device >> + >> +patternProperties: >> +  "^nand@[0-7]$": >> +    type: object >> +    properties: >> +      reg: >> +        minimum: 0 >> +        maximum: 1 >> + >> +      nand-ecc-mode: >> +        const: hw >> + >> +      nand-ecc-step-size: >> +        const: 1024 >> + >> +      nand-ecc-strength: >> +        enum: [8, 16, 24, 30, 40, 50, 60] >> +        description: | >> +          The ECC configurations that can be supported are as follows. >> +            meson-gxl-nfc 8, 16, 24, 30, 40, 50, 60 >> +            meson-axg-nfc 8 >> + >> +required: >> +  - compatible >> +  - reg >> +  - interrupts >> +  - clocks >> +  - clock-names >> + >> +unevaluatedProperties: false >> + >> +examples: >> +  - | >> +    #include >> +    #include >> +    nand-controller@ffe07800 { >> +      compatible = "amlogic,meson-axg-nfc"; >> +      reg = <0xffe07800 0x100>, <0xffe07000 0x800>; >> +      reg-names = "nfc", "emmc"; >> +      interrupts = ; >> +      clocks = <&clkc CLKID_SD_EMMC_C>,  <&clkc CLKID_FCLK_DIV2>; >> +      clock-names = "core", "device"; >> + >> +      pinctrl-0 = <&nand_pins>; >> +      pinctrl-names = "default"; >> + >> +      #address-cells = <1>; >> +      #size-cells = <0>; >> + >> +      nand@0 { >> +        reg = <0>; >> +      }; >> +    }; >> + >> +... > > Thanks, > Neil > > .