Commit 540148ce authored by Miquel Raynal's avatar Miquel Raynal Committed by Krzysztof Kozlowski

dt-binding: memory: pl353-smc: Fix the example syntax and style

Enhance the spacing, the comment style, add { }, remove (...).
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210610082040.2075611-6-miquel.raynal@bootlin.comSigned-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
parent 6c74a55e
...@@ -24,25 +24,27 @@ Required device node properties: ...@@ -24,25 +24,27 @@ Required device node properties:
of the memory region requested by the device. of the memory region requested by the device.
Example: Example:
smcc: memory-controller@e000e000 smcc: memory-controller@e000e000 {
compatible = "arm,pl353-smc-r2p1", "arm,primecell"; compatible = "arm,pl353-smc-r2p1", "arm,primecell";
clock-names = "memclk", "apb_pclk"; clock-names = "memclk", "apb_pclk";
clocks = <&clkc 11>, <&clkc 44>; clocks = <&clkc 11>, <&clkc 44>;
reg = <0xe000e000 0x1000>; reg = <0xe000e000 0x1000>;
#address-cells = <2>; #address-cells = <2>;
#size-cells = <1>; #size-cells = <1>;
ranges = <0x0 0x0 0xe1000000 0x1000000 //Nand CS Region ranges = <0x0 0x0 0xe1000000 0x1000000 /* Nand CS region */
0x1 0x0 0xe2000000 0x2000000 //SRAM/NOR CS Region 0x1 0x0 0xe2000000 0x2000000 /* SRAM/NOR CS0 region */
0x2 0x0 0xe4000000 0x2000000>; //SRAM/NOR CS Region 0x2 0x0 0xe4000000 0x2000000>; /* SRAM/NOR CS1 region */
nand_0: flash@e1000000 { nand_0: flash@e1000000 {
compatible = "arm,pl353-nand-r2p1" compatible = "arm,pl353-nand-r2p1";
reg = <0 0 0x1000000>; reg = <0 0 0x1000000>;
(...)
}; };
nor0: flash@e2000000 { nor0: flash@e2000000 {
compatible = "cfi-flash"; compatible = "cfi-flash";
reg = <1 0 0x2000000>; reg = <1 0 0x2000000>;
}; };
nor1: flash@e4000000 { nor1: flash@e4000000 {
compatible = "cfi-flash"; compatible = "cfi-flash";
reg = <2 0 0x2000000>; reg = <2 0 0x2000000>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment