Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp318153pxp; Sat, 19 Mar 2022 03:28:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLlJSrHgUSMm36zmmzRHTWrUDRWmngM9PKpEePzycxjiWRy86htsEE+0hxKJJkbU1YLjPz X-Received: by 2002:a17:907:8a1c:b0:6df:ecd6:b6ea with SMTP id sc28-20020a1709078a1c00b006dfecd6b6eamr406858ejc.530.1647685724636; Sat, 19 Mar 2022 03:28:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647685724; cv=none; d=google.com; s=arc-20160816; b=eBxuMfZAglNouqCDSl2NyE9mRJzOlp3p3dWVvJhuvkGCOD2pqt2Cx0fg1j8jzJQDXw HcNiPRAStuU8F162bpMgky/sziexis5aJvSvq+v9uB015H0LE4DwW6e/xGLbbMDVAblJ LgdDXr46ZYqRjrnZ9QusaDInAL4oqqGHvhEna4eN4NOLK1HHlfXzHua45sBD1m8MNLNM ytSovptK+2uUo72U5PHBp2ukMSnpXr1AqWL7ggX+HGV04KaeIEzDzAEjDTF/4nzBkJKs +0KEKRHVoXqP4KqJ3xO4sUVglmDazFeVV4Zu3yHJilayjWT9NJ1f6asNRw94+DsKpgza op2A== 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 :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=ogHnGGfhi1fcZKMMElkxQ/5rub6U97iyaUhzrHWOyys=; b=RMJqhOvV/rflb3yHqABowQWDlT1am07DhuzgOfA4wc8cKYAy6f5GHwR0zzx9c4SgUj Xfiq8gYWP1HcEubk9R+h/IqL0EBao3JyRMD1dUNSczUPNBGbamYZEK9rhnk56uhQ0Hms BbtnouecfKTMNTtiqAzXSgFoDNRNy4Ac6C09B0UxHAs2vMRVbokdxst0w6EZDqUzQFad wILhb0mbPvstn8BlLhSv3Fde2C95m+INvNeBDrvfHnataG1gLM+EHnqSEotC5Dd5COYp 71gnfzcsqu4BIzO78TpGUZr5MUpEH601XSFU9tQTcidIiYfACS1VwGt6yRdQs2MdIV/w WWlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=QTYoNw0J; 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 a2-20020a50f0c2000000b0041910f21de5si2694742edm.91.2022.03.19.03.28.19; Sat, 19 Mar 2022 03:28:44 -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; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=QTYoNw0J; 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 S236947AbiCROAw (ORCPT + 99 others); Fri, 18 Mar 2022 10:00:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230256AbiCROAt (ORCPT ); Fri, 18 Mar 2022 10:00:49 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 268D18FE69 for ; Fri, 18 Mar 2022 06:59:28 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id n35so3276573wms.5 for ; Fri, 18 Mar 2022 06:59:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=ogHnGGfhi1fcZKMMElkxQ/5rub6U97iyaUhzrHWOyys=; b=QTYoNw0JJzHKOlIm/fF/5jmID6xRRwM5hSl5oAZ/1WduaW//xSWvxlqs6D7wrc4Ecr +iNZ+TfCoyAIxYBswF2A+siArIFrITuKN2M4kWbd3Uc99T5U2n+729wtt/cT8u3ZA64q TJX64giUWy+dzyBEaF5xVsB/qoxCmd72/dqK8rBjV7i+ib22hFwgLWKfR3/wmfU4MKZU XduWJqoMvitOQrRLQC8BfcQ2jHGQ9B/TaOutLlSY7UyDvpz11QcB5jWG1CEAWdqOxLwU 5VT70JopfPrAekKA5aHrwhb42/DmgI6zKWdUmcYbc02dtahVy+QmJ90ivFtA6PP5rQvd j/ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=ogHnGGfhi1fcZKMMElkxQ/5rub6U97iyaUhzrHWOyys=; b=5hBXpOU8GVCWNBZsKs+PKbrxa/gd40C1N2EMy0fDYrmTFSIJGG8Ke7YXJXpLsmM+dQ 6xTCeEm9tRwP8U2BatZCwb7khcURJk75uEoxfwwUzFdWaCfh7eaoufJs7Lq0QGXBPzig NoPWFmz6PmuFUiMSJzzEaaXgvzvWqkcTpLB4LBgV2huZTMYE8w3GKfj5fcqS6dclntrX q3Ywuw7+ryWjKp811EGtFLAsaIxgKE2/WIiN53ehgWATH0OoDIRFLzjo+BadTgH8aw2p 5xs15PZjKCZznv1y7f+/md9UkxWEBeOW+GJX208kD4UYZUeNlSWVJY6B9PCV0BqWPH6/ SI2w== X-Gm-Message-State: AOAM531GSvgo9Um/VFUcFk52YXi31J6qqs+2oWHvk/Mdmlnhkbd2WNZd Fifqk1tGWG1+tcFTe84Voh5u7A== X-Received: by 2002:a05:600c:2f8f:b0:38c:889b:b211 with SMTP id t15-20020a05600c2f8f00b0038c889bb211mr3026527wmn.151.1647611966479; Fri, 18 Mar 2022 06:59:26 -0700 (PDT) Received: from [192.168.1.10] (i16-les01-ntr-213-44-230-108.sfr.lns.abo.bbox.fr. [213.44.230.108]) by smtp.gmail.com with ESMTPSA id n7-20020a05600c3b8700b00389a6241669sm11067093wms.33.2022.03.18.06.59.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Mar 2022 06:59:26 -0700 (PDT) Message-ID: <0813d4a1-8430-f089-65ea-4e305cfda545@baylibre.com> Date: Fri, 18 Mar 2022 14:59:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v3 2/2] dt-bindings: nand: meson: refine Amlogic NAND controller driver Content-Language: en-US To: Liang Yang , Miquel Raynal , linux-mtd@lists.infradead.org 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 , linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org References: <20220318124121.26117-1-liang.yang@amlogic.com> <20220318124121.26117-3-liang.yang@amlogic.com> From: Neil Armstrong Organization: Baylibre In-Reply-To: <20220318124121.26117-3-liang.yang@amlogic.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,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, On 18/03/2022 13:41, Liang Yang wrote: > convert txt to yaml and refine the meson NFC clock document. > > Signed-off-by: Liang Yang > --- > .../bindings/mtd/amlogic,meson-nand.txt | 60 ---------------- > .../bindings/mtd/amlogic,meson-nand.yaml | 71 +++++++++++++++++++ > 2 files changed, 71 insertions(+), 60 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 5794ab1147c1..000000000000 > --- a/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt > +++ /dev/null > @@ -1,60 +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" > -- 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" - device clock from eMMC sub clock controller > - "rx" - rx clock phase > - "tx" - tx clock phase > - > -- amlogic,mmc-syscon : Required for NAND clocks, it's shared with SD/eMMC > - controller port C > - > -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: > - > - sd_emmc_c_clkc: mmc@7000 { > - compatible = "amlogic,meson-axg-mmc-clkc", "syscon"; > - reg = <0x0 0x7000 0x0 0x800>; > - }; > - > - nand-controller@7800 { > - compatible = "amlogic,meson-axg-nfc"; > - reg = <0x0 0x7800 0x0 0x100>; > - #address-cells = <1>; > - #size-cells = <0>; > - interrupts = ; > - > - clocks = <&clkc CLKID_SD_EMMC_C>, > - <&sd_emmc_c_clkc CLKID_MMC_DIV>, > - <&sd_emmc_c_clkc CLKID_MMC_PHASE_RX>, > - <&sd_emmc_c_clkc CLKID_MMC_PHASE_TX>; > - clock-names = "core", "device", "rx", "tx"; > - amlogic,mmc-syscon = <&sd_emmc_c_clkc>; > - > - 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..4de4962a40b7 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml > @@ -0,0 +1,71 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/clock/amlogic,mmc-clkc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Amlogic NAND Flash Controller (NFC) for GXBB/GXL/AXG family SoCs > + > +maintainers: > + - liang.yang@amlogic.com > + > +properties: > + compatible: > + enum: > + - "amlogic,meson-gxl-nfc" > + - "amlogic,meson-axg-nfc" > + > + reg: > + maxItems: 2 reg-names: items: - const: nfc - const: mmc Is missing to conform to the example > + > + interrupts: > + maxItems: 1 > + > + clocks: > + maxItems: 2 > + > + clock-names: > + items: > + - const: "core", "device" This should be: clock-names: items: - const: core - const: device > + > + "#clock-cells": > + const: 1 > + > +required: > + - compatible > + - reg + reg-names > + - interrupts > + - clocks > + - clock-names > + - "#clock-cells" > + > +additionalProperties: false > + > +examples: > + - | > + 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; > + }; > + }; > + > +... Don't forgot to run : make ARCH=-arm64 dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml after installing the DT schema validator: pip3 install git+https://github.com/devicetree-org/dt-schema.git@master as documented at https://www.kernel.org/doc/html/v5.9/devicetree/writing-schema.html Thanks ! Neil