From nobody Thu Apr 9 12:16:14 2026 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 F41E3C4332F for ; Fri, 4 Nov 2022 16:49:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232010AbiKDQtI (ORCPT ); Fri, 4 Nov 2022 12:49:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232001AbiKDQru (ORCPT ); Fri, 4 Nov 2022 12:47:50 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::222]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86DD04AF18; Fri, 4 Nov 2022 09:47:40 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 34C0C40012; Fri, 4 Nov 2022 16:47:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1667580459; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=18t/7qSaRnk2gS9dcNFVNFqLhCWEty8oMGunULJHDD4=; b=XTi+tbo+jHaN75MxBIfHEQmVt8fYho5DQToDolW2Qa5bdHDjQOZg/KBPXkeuQiFePkC88l GbZozM56F3Mcw2HxQ+2N96mM8aJ9r2bQJ7uUYSMMs0aO3GVsp8WSlAf87RpK4UpGHeb8fh GRYKeg1VLi7GgqebJaI6pi2/V9g6oSMtx2Mh2hZIT36zULStpcZe5CHFRjGA1waXwE5zal /CPjxPlfstWdYoPjjTOLcF4e7uQfgSAkkGVZD8Ji1QNp/8QtEs+EIn898lyXYcE5ESqqA0 F3RG19CuQ67LOhc/UIkTfTpTCNSUb6x9GbkGyo9ymOpt++3g8auK6aWCG0G6dg== From: Miquel Raynal To: Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org Cc: Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Pratyush Yadav , Michael Walle , , Thomas Petazzoni , Srinivas Kandagatla , , Miquel Raynal Subject: [PATCH v2 17/17] dt-bindings: mtd: Standardize the style in the examples Date: Fri, 4 Nov 2022 17:47:18 +0100 Message-Id: <20221104164718.1290859-18-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221104164718.1290859-1-miquel.raynal@bootlin.com> References: <20221104164718.1290859-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As recently requested by the binding maintaines, let's use 4 spaces in the examples. Signed-off-by: Miquel Raynal --- .../bindings/mtd/arm,pl353-nand-r2p1.yaml | 30 ++--- .../bindings/mtd/brcm,brcmnand.yaml | 80 ++++++------ .../devicetree/bindings/mtd/denali,nand.yaml | 2 +- .../devicetree/bindings/mtd/ingenic,nand.yaml | 114 +++++++++--------- .../bindings/mtd/intel,lgm-ebunand.yaml | 36 +++--- .../bindings/mtd/microchip,mchp48l640.yaml | 14 +-- .../mtd/partitions/qcom,smem-part.yaml | 28 ++--- .../devicetree/bindings/mtd/qcom,nandc.yaml | 114 +++++++++--------- .../bindings/mtd/st,stm32-fmc2-nand.yaml | 47 ++++---- .../bindings/mtd/ti,am654-hbmc.yaml | 36 +++--- 10 files changed, 251 insertions(+), 250 deletions(-) diff --git a/Documentation/devicetree/bindings/mtd/arm,pl353-nand-r2p1.yaml= b/Documentation/devicetree/bindings/mtd/arm,pl353-nand-r2p1.yaml index 023f3ef0fa13..e552875040e2 100644 --- a/Documentation/devicetree/bindings/mtd/arm,pl353-nand-r2p1.yaml +++ b/Documentation/devicetree/bindings/mtd/arm,pl353-nand-r2p1.yaml @@ -34,20 +34,20 @@ unevaluatedProperties: false examples: - | smcc: memory-controller@e000e000 { - compatible =3D "arm,pl353-smc-r2p1", "arm,primecell"; - reg =3D <0xe000e000 0x0001000>; - clock-names =3D "memclk", "apb_pclk"; - clocks =3D <&clkc 11>, <&clkc 44>; - ranges =3D <0x0 0x0 0xe1000000 0x1000000 /* Nand CS region */ - 0x1 0x0 0xe2000000 0x2000000 /* SRAM/NOR CS0 region */ - 0x2 0x0 0xe4000000 0x2000000>; /* SRAM/NOR CS1 region */ - #address-cells =3D <2>; - #size-cells =3D <1>; + compatible =3D "arm,pl353-smc-r2p1", "arm,primecell"; + reg =3D <0xe000e000 0x0001000>; + clock-names =3D "memclk", "apb_pclk"; + clocks =3D <&clkc 11>, <&clkc 44>; + ranges =3D <0x0 0x0 0xe1000000 0x1000000 /* Nand CS region */ + 0x1 0x0 0xe2000000 0x2000000 /* SRAM/NOR CS0 region */ + 0x2 0x0 0xe4000000 0x2000000>; /* SRAM/NOR CS1 region */ + #address-cells =3D <2>; + #size-cells =3D <1>; =20 - nfc0: nand-controller@0,0 { - compatible =3D "arm,pl353-nand-r2p1"; - reg =3D <0 0 0x1000000>; - #address-cells =3D <1>; - #size-cells =3D <0>; - }; + nfc0: nand-controller@0,0 { + compatible =3D "arm,pl353-nand-r2p1"; + reg =3D <0 0 0x1000000>; + #address-cells =3D <1>; + #size-cells =3D <0>; + }; }; diff --git a/Documentation/devicetree/bindings/mtd/brcm,brcmnand.yaml b/Doc= umentation/devicetree/bindings/mtd/brcm,brcmnand.yaml index dd5a64969e37..f9518d39fbbd 100644 --- a/Documentation/devicetree/bindings/mtd/brcm,brcmnand.yaml +++ b/Documentation/devicetree/bindings/mtd/brcm,brcmnand.yaml @@ -184,51 +184,51 @@ required: examples: - | nand-controller@f0442800 { - compatible =3D "brcm,brcmnand-v7.0", "brcm,brcmnand"; - reg =3D <0xf0442800 0x600>, - <0xf0443000 0x100>; - reg-names =3D "nand", "flash-dma"; - interrupt-parent =3D <&hif_intr2_intc>; - interrupts =3D <24>, <4>; + compatible =3D "brcm,brcmnand-v7.0", "brcm,brcmnand"; + reg =3D <0xf0442800 0x600>, + <0xf0443000 0x100>; + reg-names =3D "nand", "flash-dma"; + interrupt-parent =3D <&hif_intr2_intc>; + interrupts =3D <24>, <4>; + + #address-cells =3D <1>; + #size-cells =3D <0>; + + nand@1 { + compatible =3D "brcm,nandcs"; + reg =3D <1>; // Chip select 1 + nand-on-flash-bbt; + nand-ecc-strength =3D <12>; + nand-ecc-step-size =3D <512>; =20 #address-cells =3D <1>; - #size-cells =3D <0>; - - nand@1 { - compatible =3D "brcm,nandcs"; - reg =3D <1>; // Chip select 1 - nand-on-flash-bbt; - nand-ecc-strength =3D <12>; - nand-ecc-step-size =3D <512>; - - #address-cells =3D <1>; - #size-cells =3D <1>; - }; + #size-cells =3D <1>; + }; }; - | nand-controller@10000200 { - compatible =3D "brcm,nand-bcm63168", "brcm,nand-bcm6368", - "brcm,brcmnand-v4.0", "brcm,brcmnand"; - reg =3D <0x10000200 0x180>, - <0x100000b0 0x10>, - <0x10000600 0x200>; - reg-names =3D "nand", "nand-int-base", "nand-cache"; - interrupt-parent =3D <&periph_intc>; - interrupts =3D <50>; - clocks =3D <&periph_clk 20>; - clock-names =3D "nand"; + compatible =3D "brcm,nand-bcm63168", "brcm,nand-bcm6368", + "brcm,brcmnand-v4.0", "brcm,brcmnand"; + reg =3D <0x10000200 0x180>, + <0x100000b0 0x10>, + <0x10000600 0x200>; + reg-names =3D "nand", "nand-int-base", "nand-cache"; + interrupt-parent =3D <&periph_intc>; + interrupts =3D <50>; + clocks =3D <&periph_clk 20>; + clock-names =3D "nand"; + + #address-cells =3D <1>; + #size-cells =3D <0>; + + nand@0 { + compatible =3D "brcm,nandcs"; + reg =3D <0>; + nand-on-flash-bbt; + nand-ecc-strength =3D <1>; + nand-ecc-step-size =3D <512>; =20 #address-cells =3D <1>; - #size-cells =3D <0>; - - nand@0 { - compatible =3D "brcm,nandcs"; - reg =3D <0>; - nand-on-flash-bbt; - nand-ecc-strength =3D <1>; - nand-ecc-step-size =3D <512>; - - #address-cells =3D <1>; - #size-cells =3D <1>; - }; + #size-cells =3D <1>; + }; }; diff --git a/Documentation/devicetree/bindings/mtd/denali,nand.yaml b/Docum= entation/devicetree/bindings/mtd/denali,nand.yaml index 1307ed7e7fc6..0be83ad42970 100644 --- a/Documentation/devicetree/bindings/mtd/denali,nand.yaml +++ b/Documentation/devicetree/bindings/mtd/denali,nand.yaml @@ -145,6 +145,6 @@ examples: #size-cells =3D <0>; =20 nand@0 { - reg =3D <0>; + reg =3D <0>; }; }; diff --git a/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml b/Docu= mentation/devicetree/bindings/mtd/ingenic,nand.yaml index 90dbc5eba1e7..a811a512ecc5 100644 --- a/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml +++ b/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml @@ -58,78 +58,78 @@ examples: - | #include memory-controller@13410000 { - compatible =3D "ingenic,jz4780-nemc"; - reg =3D <0x13410000 0x10000>; - #address-cells =3D <2>; - #size-cells =3D <1>; - ranges =3D <1 0 0x1b000000 0x1000000>, - <2 0 0x1a000000 0x1000000>, - <3 0 0x19000000 0x1000000>, - <4 0 0x18000000 0x1000000>, - <5 0 0x17000000 0x1000000>, - <6 0 0x16000000 0x1000000>; + compatible =3D "ingenic,jz4780-nemc"; + reg =3D <0x13410000 0x10000>; + #address-cells =3D <2>; + #size-cells =3D <1>; + ranges =3D <1 0 0x1b000000 0x1000000>, + <2 0 0x1a000000 0x1000000>, + <3 0 0x19000000 0x1000000>, + <4 0 0x18000000 0x1000000>, + <5 0 0x17000000 0x1000000>, + <6 0 0x16000000 0x1000000>; =20 - clocks =3D <&cgu JZ4780_CLK_NEMC>; + clocks =3D <&cgu JZ4780_CLK_NEMC>; =20 - nand-controller@1 { - compatible =3D "ingenic,jz4780-nand"; - reg =3D <1 0 0x1000000>; + nand-controller@1 { + compatible =3D "ingenic,jz4780-nand"; + reg =3D <1 0 0x1000000>; =20 - #address-cells =3D <1>; - #size-cells =3D <0>; + #address-cells =3D <1>; + #size-cells =3D <0>; =20 - ecc-engine =3D <&bch>; + ecc-engine =3D <&bch>; =20 - ingenic,nemc-tAS =3D <10>; - ingenic,nemc-tAH =3D <5>; - ingenic,nemc-tBP =3D <10>; - ingenic,nemc-tAW =3D <15>; - ingenic,nemc-tSTRV =3D <100>; + ingenic,nemc-tAS =3D <10>; + ingenic,nemc-tAH =3D <5>; + ingenic,nemc-tBP =3D <10>; + ingenic,nemc-tAW =3D <15>; + ingenic,nemc-tSTRV =3D <100>; =20 - pinctrl-names =3D "default"; - pinctrl-0 =3D <&pins_nemc>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pins_nemc>; =20 - nand@1 { - reg =3D <1>; + nand@1 { + reg =3D <1>; =20 - nand-ecc-step-size =3D <1024>; - nand-ecc-strength =3D <24>; - nand-ecc-mode =3D "hw"; - nand-on-flash-bbt; + nand-ecc-step-size =3D <1024>; + nand-ecc-strength =3D <24>; + nand-ecc-mode =3D "hw"; + nand-on-flash-bbt; =20 - pinctrl-names =3D "default"; - pinctrl-0 =3D <&pins_nemc_cs1>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pins_nemc_cs1>; =20 - partitions { - compatible =3D "fixed-partitions"; - #address-cells =3D <2>; - #size-cells =3D <2>; + partitions { + compatible =3D "fixed-partitions"; + #address-cells =3D <2>; + #size-cells =3D <2>; =20 - partition@0 { - label =3D "u-boot-spl"; - reg =3D <0x0 0x0 0x0 0x800000>; - }; + partition@0 { + label =3D "u-boot-spl"; + reg =3D <0x0 0x0 0x0 0x800000>; + }; =20 - partition@800000 { - label =3D "u-boot"; - reg =3D <0x0 0x800000 0x0 0x200000>; - }; + partition@800000 { + label =3D "u-boot"; + reg =3D <0x0 0x800000 0x0 0x200000>; + }; =20 - partition@a00000 { - label =3D "u-boot-env"; - reg =3D <0x0 0xa00000 0x0 0x200000>; - }; + partition@a00000 { + label =3D "u-boot-env"; + reg =3D <0x0 0xa00000 0x0 0x200000>; + }; =20 - partition@c00000 { - label =3D "boot"; - reg =3D <0x0 0xc00000 0x0 0x4000000>; - }; + partition@c00000 { + label =3D "boot"; + reg =3D <0x0 0xc00000 0x0 0x4000000>; + }; =20 - partition@4c00000 { - label =3D "system"; - reg =3D <0x0 0x4c00000 0x1 0xfb400000>; + partition@4c00000 { + label =3D "system"; + reg =3D <0x0 0x4c00000 0x1 0xfb400000>; + }; + }; }; - }; }; - }; }; diff --git a/Documentation/devicetree/bindings/mtd/intel,lgm-ebunand.yaml b= /Documentation/devicetree/bindings/mtd/intel,lgm-ebunand.yaml index d455b75a0b0b..8c62c7d3d0cd 100644 --- a/Documentation/devicetree/bindings/mtd/intel,lgm-ebunand.yaml +++ b/Documentation/devicetree/bindings/mtd/intel,lgm-ebunand.yaml @@ -67,25 +67,25 @@ unevaluatedProperties: false examples: - | nand-controller@e0f00000 { - compatible =3D "intel,lgm-ebunand"; - reg =3D <0xe0f00000 0x100>, - <0xe1000000 0x300>, - <0xe1400000 0x8000>, - <0xe1c00000 0x1000>, - <0x17400000 0x4>, - <0x17c00000 0x4>; - reg-names =3D "ebunand", "hsnand", "nand_cs0", "nand_cs1", - "addr_sel0", "addr_sel1"; - clocks =3D <&cgu0 125>; - dmas =3D <&dma0 8>, <&dma0 9>; - dma-names =3D "tx", "rx"; - #address-cells =3D <1>; - #size-cells =3D <0>; + compatible =3D "intel,lgm-ebunand"; + reg =3D <0xe0f00000 0x100>, + <0xe1000000 0x300>, + <0xe1400000 0x8000>, + <0xe1c00000 0x1000>, + <0x17400000 0x4>, + <0x17c00000 0x4>; + reg-names =3D "ebunand", "hsnand", "nand_cs0", "nand_cs1", + "addr_sel0", "addr_sel1"; + clocks =3D <&cgu0 125>; + dmas =3D <&dma0 8>, <&dma0 9>; + dma-names =3D "tx", "rx"; + #address-cells =3D <1>; + #size-cells =3D <0>; =20 - nand@0 { - reg =3D <0>; - nand-ecc-mode =3D "hw"; - }; + nand@0 { + reg =3D <0>; + nand-ecc-mode =3D "hw"; + }; }; =20 ... diff --git a/Documentation/devicetree/bindings/mtd/microchip,mchp48l640.yam= l b/Documentation/devicetree/bindings/mtd/microchip,mchp48l640.yaml index 8cc2a7ceb5fb..ea9450fe7c9f 100644 --- a/Documentation/devicetree/bindings/mtd/microchip,mchp48l640.yaml +++ b/Documentation/devicetree/bindings/mtd/microchip,mchp48l640.yaml @@ -34,13 +34,13 @@ unevaluatedProperties: false examples: - | spi { - #address-cells =3D <1>; - #size-cells =3D <0>; + #address-cells =3D <1>; + #size-cells =3D <0>; =20 - eeram@0 { - compatible =3D "microchip,48l640"; - reg =3D <0>; - spi-max-frequency =3D <20000000>; - }; + eeram@0 { + compatible =3D "microchip,48l640"; + reg =3D <0>; + spi-max-frequency =3D <20000000>; + }; }; ... diff --git a/Documentation/devicetree/bindings/mtd/partitions/qcom,smem-par= t.yaml b/Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.ya= ml index 681a51f5257c..61d12bda356e 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml @@ -41,22 +41,22 @@ examples: - | /* Example declaring dynamic partition */ flash { - partitions { - compatible =3D "qcom,smem-part"; + partitions { + compatible =3D "qcom,smem-part"; =20 - partition-art { - compatible =3D "nvmem-cells"; - #address-cells =3D <1>; - #size-cells =3D <1>; - label =3D "0:art"; + partition-art { + compatible =3D "nvmem-cells"; + #address-cells =3D <1>; + #size-cells =3D <1>; + label =3D "0:art"; =20 - macaddr_art_0: macaddr@0 { - reg =3D <0x0 0x6>; - }; + macaddr_art_0: macaddr@0 { + reg =3D <0x0 0x6>; + }; =20 - macaddr_art_6: macaddr@6 { - reg =3D <0x6 0x6>; - }; + macaddr_art_6: macaddr@6 { + reg =3D <0x6 0x6>; + }; + }; }; - }; }; diff --git a/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml b/Docume= ntation/devicetree/bindings/mtd/qcom,nandc.yaml index 3cc90c64e974..07024ee45951 100644 --- a/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml +++ b/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml @@ -136,85 +136,85 @@ examples: - | #include nand-controller@1ac00000 { - compatible =3D "qcom,ipq806x-nand"; - reg =3D <0x1ac00000 0x800>; + compatible =3D "qcom,ipq806x-nand"; + reg =3D <0x1ac00000 0x800>; =20 - clocks =3D <&gcc EBI2_CLK>, - <&gcc EBI2_AON_CLK>; - clock-names =3D "core", "aon"; + clocks =3D <&gcc EBI2_CLK>, + <&gcc EBI2_AON_CLK>; + clock-names =3D "core", "aon"; =20 - dmas =3D <&adm_dma 3>; - dma-names =3D "rxtx"; - qcom,cmd-crci =3D <15>; - qcom,data-crci =3D <3>; + dmas =3D <&adm_dma 3>; + dma-names =3D "rxtx"; + qcom,cmd-crci =3D <15>; + qcom,data-crci =3D <3>; =20 - #address-cells =3D <1>; - #size-cells =3D <0>; + #address-cells =3D <1>; + #size-cells =3D <0>; =20 - nand@0 { - reg =3D <0>; + nand@0 { + reg =3D <0>; =20 - nand-ecc-strength =3D <4>; - nand-bus-width =3D <8>; + nand-ecc-strength =3D <4>; + nand-bus-width =3D <8>; =20 - qcom,boot-partitions =3D <0x0 0x58a0000>; + qcom,boot-partitions =3D <0x0 0x58a0000>; =20 - partitions { - compatible =3D "fixed-partitions"; - #address-cells =3D <1>; - #size-cells =3D <1>; + partitions { + compatible =3D "fixed-partitions"; + #address-cells =3D <1>; + #size-cells =3D <1>; =20 - partition@0 { - label =3D "boot-nand"; - reg =3D <0 0x58a0000>; - }; + partition@0 { + label =3D "boot-nand"; + reg =3D <0 0x58a0000>; + }; =20 - partition@58a0000 { - label =3D "fs-nand"; - reg =3D <0x58a0000 0x4000000>; - }; + partition@58a0000 { + label =3D "fs-nand"; + reg =3D <0x58a0000 0x4000000>; + }; + }; }; - }; }; =20 #include nand-controller@79b0000 { - compatible =3D "qcom,ipq4019-nand"; - reg =3D <0x79b0000 0x1000>; + compatible =3D "qcom,ipq4019-nand"; + reg =3D <0x79b0000 0x1000>; =20 - clocks =3D <&gcc GCC_QPIC_CLK>, - <&gcc GCC_QPIC_AHB_CLK>; - clock-names =3D "core", "aon"; + clocks =3D <&gcc GCC_QPIC_CLK>, + <&gcc GCC_QPIC_AHB_CLK>; + clock-names =3D "core", "aon"; =20 - dmas =3D <&qpicbam 0>, - <&qpicbam 1>, - <&qpicbam 2>; - dma-names =3D "tx", "rx", "cmd"; + dmas =3D <&qpicbam 0>, + <&qpicbam 1>, + <&qpicbam 2>; + dma-names =3D "tx", "rx", "cmd"; =20 - #address-cells =3D <1>; - #size-cells =3D <0>; + #address-cells =3D <1>; + #size-cells =3D <0>; =20 - nand@0 { - reg =3D <0>; - nand-ecc-strength =3D <4>; - nand-bus-width =3D <8>; + nand@0 { + reg =3D <0>; + nand-ecc-strength =3D <4>; + nand-bus-width =3D <8>; =20 - partitions { - compatible =3D "fixed-partitions"; - #address-cells =3D <1>; - #size-cells =3D <1>; + partitions { + compatible =3D "fixed-partitions"; + #address-cells =3D <1>; + #size-cells =3D <1>; =20 - partition@0 { - label =3D "boot-nand"; - reg =3D <0 0x58a0000>; - }; + partition@0 { + label =3D "boot-nand"; + reg =3D <0 0x58a0000>; + }; =20 - partition@58a0000 { - label =3D "fs-nand"; - reg =3D <0x58a0000 0x4000000>; - }; + partition@58a0000 { + label =3D "fs-nand"; + reg =3D <0x58a0000 0x4000000>; + }; + }; }; - }; }; =20 ... diff --git a/Documentation/devicetree/bindings/mtd/st,stm32-fmc2-nand.yaml = b/Documentation/devicetree/bindings/mtd/st,stm32-fmc2-nand.yaml index eab8ea3da1fa..8cbfa1504a0f 100644 --- a/Documentation/devicetree/bindings/mtd/st,stm32-fmc2-nand.yaml +++ b/Documentation/devicetree/bindings/mtd/st,stm32-fmc2-nand.yaml @@ -101,31 +101,32 @@ examples: #include #include #include + nand-controller@58002000 { - compatible =3D "st,stm32mp15-fmc2"; - reg =3D <0x58002000 0x1000>, - <0x80000000 0x1000>, - <0x88010000 0x1000>, - <0x88020000 0x1000>, - <0x81000000 0x1000>, - <0x89010000 0x1000>, - <0x89020000 0x1000>; - interrupts =3D ; - dmas =3D <&mdma1 20 0x2 0x12000a02 0x0 0x0>, - <&mdma1 20 0x2 0x12000a08 0x0 0x0>, - <&mdma1 21 0x2 0x12000a0a 0x0 0x0>; - dma-names =3D "tx", "rx", "ecc"; - clocks =3D <&rcc FMC_K>; - resets =3D <&rcc FMC_R>; - #address-cells =3D <1>; - #size-cells =3D <0>; - - nand@0 { - reg =3D <0>; - nand-on-flash-bbt; + compatible =3D "st,stm32mp15-fmc2"; + reg =3D <0x58002000 0x1000>, + <0x80000000 0x1000>, + <0x88010000 0x1000>, + <0x88020000 0x1000>, + <0x81000000 0x1000>, + <0x89010000 0x1000>, + <0x89020000 0x1000>; + interrupts =3D ; + dmas =3D <&mdma1 20 0x2 0x12000a02 0x0 0x0>, + <&mdma1 20 0x2 0x12000a08 0x0 0x0>, + <&mdma1 21 0x2 0x12000a0a 0x0 0x0>; + dma-names =3D "tx", "rx", "ecc"; + clocks =3D <&rcc FMC_K>; + resets =3D <&rcc FMC_R>; #address-cells =3D <1>; - #size-cells =3D <1>; - }; + #size-cells =3D <0>; + + nand@0 { + reg =3D <0>; + nand-on-flash-bbt; + #address-cells =3D <1>; + #size-cells =3D <1>; + }; }; =20 ... diff --git a/Documentation/devicetree/bindings/mtd/ti,am654-hbmc.yaml b/Doc= umentation/devicetree/bindings/mtd/ti,am654-hbmc.yaml index 30b458c41cac..4774c92e7fc4 100644 --- a/Documentation/devicetree/bindings/mtd/ti,am654-hbmc.yaml +++ b/Documentation/devicetree/bindings/mtd/ti,am654-hbmc.yaml @@ -44,26 +44,26 @@ additionalProperties: false examples: - | bus { - #address-cells =3D <2>; - #size-cells =3D <2>; - - hbmc: memory-controller@47034000 { - compatible =3D "ti,am654-hbmc"; - reg =3D <0x0 0x47034000 0x0 0x100>, - <0x5 0x00000000 0x1 0x0000000>; - ranges =3D <0x0 0x0 0x5 0x00000000 0x4000000>, /* CS0 - 64MB */ - <0x1 0x0 0x5 0x04000000 0x4000000>; /* CS1 - 64MB */ - clocks =3D <&k3_clks 102 0>; #address-cells =3D <2>; - #size-cells =3D <1>; - power-domains =3D <&k3_pds 55>; - mux-controls =3D <&hbmc_mux 0>; + #size-cells =3D <2>; =20 - flash@0,0 { - compatible =3D "cypress,hyperflash", "cfi-flash"; - reg =3D <0x0 0x0 0x4000000>; - #address-cells =3D <1>; + hbmc: memory-controller@47034000 { + compatible =3D "ti,am654-hbmc"; + reg =3D <0x0 0x47034000 0x0 0x100>, + <0x5 0x00000000 0x1 0x0000000>; + ranges =3D <0x0 0x0 0x5 0x00000000 0x4000000>, /* CS0 - 64MB */ + <0x1 0x0 0x5 0x04000000 0x4000000>; /* CS1 - 64MB */ + clocks =3D <&k3_clks 102 0>; + #address-cells =3D <2>; #size-cells =3D <1>; + power-domains =3D <&k3_pds 55>; + mux-controls =3D <&hbmc_mux 0>; + + flash@0,0 { + compatible =3D "cypress,hyperflash", "cfi-flash"; + reg =3D <0x0 0x0 0x4000000>; + #address-cells =3D <1>; + #size-cells =3D <1>; + }; }; - }; }; --=20 2.34.1