Skip to content

Commit 4175863

Browse files
rabaramiquelraynal
authored andcommitted
dt-bindings: mtd: cadence: document required clock-names
The clock-names property is required because the driver requests the clock by name and not the index. Update the example to use &clk instead of &nf_clk for the clocks property to avoid confusion with the clock-names property "nf_clk". Fixes: 1f05f82 (dt-bindings: mtd: cadence: convert cadence-nand-controller.txt to yaml) Signed-off-by: Niravkumar L Rabara <niravkumar.l.rabara@intel.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent 86ede0a commit 4175863

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Documentation/devicetree/bindings/mtd/cdns,hp-nfc.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ properties:
3333
clocks:
3434
maxItems: 1
3535

36+
clock-names:
37+
items:
38+
- const: nf_clk
39+
3640
dmas:
3741
maxItems: 1
3842

@@ -51,6 +55,7 @@ required:
5155
- reg-names
5256
- interrupts
5357
- clocks
58+
- clock-names
5459

5560
unevaluatedProperties: false
5661

@@ -66,7 +71,8 @@ examples:
6671
#address-cells = <1>;
6772
#size-cells = <0>;
6873
interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
69-
clocks = <&nf_clk>;
74+
clocks = <&clk>;
75+
clock-names = "nf_clk";
7076
cdns,board-delay-ps = <4830>;
7177
7278
nand@0 {

0 commit comments

Comments
 (0)