Skip to content

Commit 0493692

Browse files
zongboxbebarino
authored andcommitted
dt-bindings: change the macro name of prci in header files and example
We currently change the macro name for fu540 and fu740 by adding the prefix respectively, the dt-bindings should be modified as well. Signed-off-by: Zong Li <zong.li@sifive.com> Acked-by: Rob Herring <robh@kernel.org> Acked-by: Palmer Dabbelt <palmer@rivosinc.com> Link: https://lore.kernel.org/r/f9284873c2993a9952d9fe4f8dd5e89f20daab75.1646388139.git.zong.li@sifive.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent e83da8e commit 0493692

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

Documentation/devicetree/bindings/gpio/sifive,gpio.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ examples:
8080
interrupts = <7>, <8>, <9>, <10>, <11>, <12>, <13>, <14>, <15>, <16>,
8181
<17>, <18>, <19>, <20>, <21>, <22>;
8282
reg = <0x10060000 0x1000>;
83-
clocks = <&tlclk PRCI_CLK_TLCLK>;
83+
clocks = <&tlclk FU540_PRCI_CLK_TLCLK>;
8484
gpio-controller;
8585
#gpio-cells = <2>;
8686
interrupt-controller;

Documentation/devicetree/bindings/pci/sifive,fu740-pcie.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ examples:
104104
<0x0 0x0 0x0 0x2 &plic0 58>,
105105
<0x0 0x0 0x0 0x3 &plic0 59>,
106106
<0x0 0x0 0x0 0x4 &plic0 60>;
107-
clocks = <&prci PRCI_CLK_PCIE_AUX>;
107+
clocks = <&prci FU740_PRCI_CLK_PCIE_AUX>;
108108
resets = <&prci 4>;
109109
pwren-gpios = <&gpio 5 0>;
110110
reset-gpios = <&gpio 8 0>;

Documentation/devicetree/bindings/serial/sifive-serial.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ examples:
5959
interrupt-parent = <&plic0>;
6060
interrupts = <80>;
6161
reg = <0x10010000 0x1000>;
62-
clocks = <&prci PRCI_CLK_TLCLK>;
62+
clocks = <&prci FU540_PRCI_CLK_TLCLK>;
6363
};
6464
6565
...

include/dt-bindings/clock/sifive-fu540-prci.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
/* Clock indexes for use by Device Tree data and the PRCI driver */
1212

13-
#define PRCI_CLK_COREPLL 0
14-
#define PRCI_CLK_DDRPLL 1
15-
#define PRCI_CLK_GEMGXLPLL 2
16-
#define PRCI_CLK_TLCLK 3
13+
#define FU540_PRCI_CLK_COREPLL 0
14+
#define FU540_PRCI_CLK_DDRPLL 1
15+
#define FU540_PRCI_CLK_GEMGXLPLL 2
16+
#define FU540_PRCI_CLK_TLCLK 3
1717

1818
#endif

include/dt-bindings/clock/sifive-fu740-prci.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111

1212
/* Clock indexes for use by Device Tree data and the PRCI driver */
1313

14-
#define PRCI_CLK_COREPLL 0
15-
#define PRCI_CLK_DDRPLL 1
16-
#define PRCI_CLK_GEMGXLPLL 2
17-
#define PRCI_CLK_DVFSCOREPLL 3
18-
#define PRCI_CLK_HFPCLKPLL 4
19-
#define PRCI_CLK_CLTXPLL 5
20-
#define PRCI_CLK_TLCLK 6
21-
#define PRCI_CLK_PCLK 7
22-
#define PRCI_CLK_PCIE_AUX 8
14+
#define FU740_PRCI_CLK_COREPLL 0
15+
#define FU740_PRCI_CLK_DDRPLL 1
16+
#define FU740_PRCI_CLK_GEMGXLPLL 2
17+
#define FU740_PRCI_CLK_DVFSCOREPLL 3
18+
#define FU740_PRCI_CLK_HFPCLKPLL 4
19+
#define FU740_PRCI_CLK_CLTXPLL 5
20+
#define FU740_PRCI_CLK_TLCLK 6
21+
#define FU740_PRCI_CLK_PCLK 7
22+
#define FU740_PRCI_CLK_PCIE_AUX 8
2323

2424
#endif /* __DT_BINDINGS_CLOCK_SIFIVE_FU740_PRCI_H */

0 commit comments

Comments
 (0)