Skip to content

Commit f43c9f5

Browse files
committed
arm: dts: fix adi,axi-pwmgen clocks
After backporting the dt-bindings fix from upstream, update the existing .dts files that use adi,axi-pwmgen-2.00.a to use the corrected clocks binding. In the HDL, ASYNC_CLK_EN=1 by default, so most projects have a separate external clock. The only exceptions are ad7606x, ad7616 and dc2677a, which have ASYNC_CLK_EN=0 and therefore only one clock. In arch/arm/boot/dts/xilinx/zynq-zed-adv7511-ad4134.dts the wrong clock was specified for the old binding so it will have a behavior change to use the correct clock for the PWM clock rate now. In arch/arm/boot/dts/xilinx/zynq-zed-adv7511-ltc2387.dts, we also drop the 0 in the phandle since #clock-cells = <0>; for &ref_clk. Signed-off-by: David Lechner <[email protected]>
1 parent 55a669e commit f43c9f5

28 files changed

+55
-31
lines changed

arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_de10_nano_ad5791.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
compatible = "adi,axi-pwmgen-2.00.a";
4646
reg = <0x00050000 0x1000>;
4747
#pwm-cells = <3>;
48-
clocks = <&spi_clk 0>;
48+
clocks = <&sys_clk>, <&spi_clk 0>;
49+
clock-names = "axi", "ext";
4950
};
5051

5152
tx_dma: dma-controller@30000 {

arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_sockit_dc2677a.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@
140140
reg = <0x00040000 0x1000>;
141141
#pwm-cells = <2>;
142142
clocks = <&sys_clk>;
143+
clock-names = "axi";
143144
};
144145

145146
gpio: gpio@9000 {

arch/arm/boot/dts/xilinx/zynq-coraz7s-ad7689-ardz.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
reg = <0x44b00000 0x1000>;
3333
label = "adc_conversion_trigger";
3434
#pwm-cells = <2>;
35-
clocks = <&spi_clk>;
35+
clocks = <&clkc 15>, <&spi_clk>;
36+
clock-names = "axi", "ext";
3637
};
3738

3839
spi_engine: spi@44a00000 {

arch/arm/boot/dts/xilinx/zynq-coraz7s-ad7946.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
reg = <0x44b00000 0x1000>;
3333
label = "adc_conversion_trigger";
3434
#pwm-cells = <2>;
35-
clocks = <&spi_clk>;
35+
clocks = <&clkc 15>, <&spi_clk>;
36+
clock-names = "axi", "ext";
3637
};
3738

3839
spi_engine: spi@44a00000 {

arch/arm/boot/dts/xilinx/zynq-coraz7s-ad7984.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
reg = <0x44b00000 0x1000>;
3333
label = "adc_conversion_trigger";
3434
#pwm-cells = <2>;
35-
clocks = <&spi_clk>;
35+
clocks = <&clkc 15>, <&spi_clk>;
36+
clock-names = "axi", "ext";
3637
};
3738

3839
spi_engine: spi@44a00000 {

arch/arm/boot/dts/xilinx/zynq-coraz7s-adaq4001.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
reg = <0x44b00000 0x1000>;
5454
label = "adc_conversion_trigger";
5555
#pwm-cells = <2>;
56-
clocks = <&spi_clk>;
56+
clocks = <&clkc 15>, <&spi_clk>;
57+
clock-names = "axi", "ext";
5758
};
5859

5960
spi_engine: spi@44a00000 {

arch/arm/boot/dts/xilinx/zynq-coraz7s-adaq4003.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
reg = <0x44b00000 0x1000>;
5454
label = "adc_conversion_trigger";
5555
#pwm-cells = <2>;
56-
clocks = <&spi_clk>;
56+
clocks = <&clkc 15>, <&spi_clk>;
57+
clock-names = "axi", "ext";
5758
};
5859

5960
spi_engine: spi@44a00000 {

arch/arm/boot/dts/xilinx/zynq-coraz7s-pulsar.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
reg = <0x44b00000 0x1000>;
5353
label = "adc_conversion_trigger";
5454
#pwm-cells = <2>;
55-
clocks = <&spi_clk>;
55+
clocks = <&clkc 15>, <&spi_clk>;
56+
clock-names = "axi", "ext";
5657
};
5758

5859
spi_engine: spi@44a00000 {

arch/arm/boot/dts/xilinx/zynq-zed-adv7511-ad4000.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
reg = <0x44b00000 0x1000>;
5757
label = "adc_conversion_trigger";
5858
#pwm-cells = <2>;
59-
clocks = <&spi_clk>;
59+
clocks = <&clkc 15>, <&spi_clk>;
60+
clock-names = "axi", "ext";
6061
};
6162

6263
spi_engine: spi@0x44a00000 {

arch/arm/boot/dts/xilinx/zynq-zed-adv7511-ad4030-24.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
reg = <0x44b00000 0x1000>;
7373
label = "ad463x_cnv";
7474
#pwm-cells = <2>;
75-
clocks = <&cnv_ext_clk>;
76-
75+
clocks = <&clkc 15>, <&cnv_ext_clk>;
76+
clock-names = "axi", "ext";
7777
};
7878

7979
axi_spi_engine: spi@44a00000 {

arch/arm/boot/dts/xilinx/zynq-zed-adv7511-ad4032-24.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
reg = <0x44b00000 0x1000>;
7373
label = "ad463x_cnv";
7474
#pwm-cells = <2>;
75-
clocks = <&cnv_ext_clk>;
76-
75+
clocks = <&clkc 15>, <&cnv_ext_clk>;
76+
clock-names = "axi", "ext";
7777
};
7878

7979
axi_spi_engine: spi@44a00000 {

arch/arm/boot/dts/xilinx/zynq-zed-adv7511-ad4134.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@
9191
compatible = "adi,axi-pwmgen-2.00.a";
9292
reg = <0x44b00000 0x10000>;
9393
#pwm-cells = <2>;
94-
clocks = <&clkc 15>;
94+
clocks = <&clkc 15>, <&spi_clk>;
95+
clock-names = "axi", "ext";
9596
};
9697

9798
spi_clk: clock-controller@44b10000 {

arch/arm/boot/dts/xilinx/zynq-zed-adv7511-ad4630-16.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
reg = <0x44b00000 0x1000>;
7373
label = "ad463x_cnv";
7474
#pwm-cells = <2>;
75-
clocks = <&cnv_ext_clk>;
76-
75+
clocks = <&clkc 15>, <&cnv_ext_clk>;
76+
clock-names = "axi", "ext";
7777
};
7878

7979
axi_spi_engine: spi@44a00000 {

arch/arm/boot/dts/xilinx/zynq-zed-adv7511-ad4630-24.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@
6060
compatible = "adi,axi-pwmgen-2.00.a";
6161
reg = <0x44b00000 0x1000>;
6262
#pwm-cells = <3>;
63-
clocks = <&cnv_ext_clk>;
63+
clocks = <&clkc 15>, <&cnv_ext_clk>;
64+
clock-names = "axi", "ext";
6465
};
6566

6667
rx_dma: dma-controller@44a30000 {

arch/arm/boot/dts/xilinx/zynq-zed-adv7511-ad4696.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@
7070
compatible = "adi,axi-pwmgen-2.00.a";
7171
reg = <0x44b00000 0x1000>;
7272
#pwm-cells = <3>;
73-
clocks = <&spi_clk>;
73+
clocks = <&clkc 15>, <&spi_clk>;
74+
clock-names = "axi", "ext";
7475
};
7576

7677
spi_clk: clock-controller@44a70000 {

arch/arm/boot/dts/xilinx/zynq-zed-adv7511-ad7380.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@
6060
reg = <0x44b00000 0x1000>;
6161
label = "adc_conversion_trigger";
6262
#pwm-cells = <3>;
63-
clocks = <&spi_clk>;
63+
clocks = <&clkc 15>, <&spi_clk>;
64+
clock-names = "axi", "ext";
6465
};
6566

6667
spi_clk: clock-controller@44a70000 {

arch/arm/boot/dts/xilinx/zynq-zed-adv7511-ad7625.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@
8181
reg = <0x44a60000 0x1000>;
8282
label = "adc_conversion_trigger";
8383
#pwm-cells = <3>;
84-
clocks = <&ref_clk>;
84+
clocks = <&clkc 15>, <&ref_clk>;
85+
clock-names = "axi", "ext";
8586
};
8687

8788
iio_backend: backend@44a00000{

arch/arm/boot/dts/xilinx/zynq-zed-adv7511-ad7944.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
compatible = "adi,axi-pwmgen-2.00.a";
5757
reg = <0x44b00000 0x1000>;
5858
#pwm-cells = <2>;
59-
clocks = <&spi_clk>;
59+
clocks = <&clkc 15>, <&spi_clk>;
60+
clock-names = "axi", "ext";
6061
};
6162

6263
rx_dma: dma-controller@44a30000 {

arch/arm/boot/dts/xilinx/zynq-zed-adv7511-ad7960.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@
8383
reg = <0x44a60000 0x1000>;
8484
label = "adc_conversion_trigger";
8585
#pwm-cells = <3>;
86-
clocks = <&ref_clk>;
86+
clocks = <&clkc 15>, <&ref_clk>;
87+
clock-names = "axi", "ext";
8788
};
8889

8990
iio_backend: backend@44a00000{

arch/arm/boot/dts/xilinx/zynq-zed-adv7511-ad7985.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
compatible = "adi,axi-pwmgen-2.00.a";
5757
reg = <0x44b00000 0x1000>;
5858
#pwm-cells = <2>;
59-
clocks = <&spi_clk>;
59+
clocks = <&clkc 15>, <&spi_clk>;
60+
clock-names = "axi", "ext";
6061
};
6162

6263
rx_dma: dma-controller@44a30000 {

arch/arm/boot/dts/xilinx/zynq-zed-adv7511-ad7986.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
compatible = "adi,axi-pwmgen-2.00.a";
5757
reg = <0x44b00000 0x1000>;
5858
#pwm-cells = <2>;
59-
clocks = <&spi_clk>;
59+
clocks = <&clkc 15>, <&spi_clk>;
60+
clock-names = "axi", "ext";
6061
};
6162

6263
rx_dma: dma-controller@44a30000 {

arch/arm/boot/dts/xilinx/zynq-zed-adv7511-adaq4216.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@
8888
reg = <0x44b00000 0x1000>;
8989
label = "ad463x_cnv";
9090
#pwm-cells = <2>;
91-
clocks = <&cnv_ext_clk>;
91+
clocks = <&clkc 15>, <&cnv_ext_clk>;
92+
clock-names = "axi", "ext";
9293
};
9394

9495
axi_spi_engine: spi@44a00000 {

arch/arm/boot/dts/xilinx/zynq-zed-adv7511-adaq4220.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@
9999
reg = <0x44b00000 0x1000>;
100100
label = "ad463x_cnv";
101101
#pwm-cells = <2>;
102-
clocks = <&cnv_ext_clk>;
102+
clocks = <&clkc 15>, <&cnv_ext_clk>;
103+
clock-names = "axi", "ext";
103104
};
104105

105106
axi_spi_engine: spi@44a00000 {

arch/arm/boot/dts/xilinx/zynq-zed-adv7511-adaq4224-24.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@
9999
reg = <0x44b00000 0x1000>;
100100
label = "ad463x_cnv";
101101
#pwm-cells = <2>;
102-
clocks = <&cnv_ext_clk>;
102+
clocks = <&clkc 15>, <&cnv_ext_clk>;
103+
clock-names = "axi", "ext";
103104
};
104105

105106
axi_spi_engine: spi@44a00000 {

arch/arm/boot/dts/xilinx/zynq-zed-adv7511-adaq4224-24_cm0_sdi4_cz2.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@
8686
reg = <0x44b00000 0x1000>;
8787
label = "ad463x_cnv";
8888
#pwm-cells = <2>;
89-
clocks = <&cnv_ext_clk>;
90-
89+
clocks = <&clkc 15>, <&cnv_ext_clk>;
90+
clock-names = "axi", "ext";
9191
};
9292

9393
i2c@41620000 {

arch/arm/boot/dts/xilinx/zynq-zed-adv7511-adaq4380-4.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
compatible = "adi,axi-pwmgen-2.00.a";
5454
reg = <0x44b00000 0x1000>;
5555
#pwm-cells = <3>;
56-
clocks = <&spi_clk>;
56+
clocks = <&clkc 15>, <&spi_clk>;
57+
clock-names = "axi", "ext";
5758
};
5859

5960
spi_clk: clock-controller@44a70000 {

arch/arm/boot/dts/xilinx/zynq-zed-adv7511-cn0577.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@
6161
reg = <0x44a60000 0x1000>;
6262
label = "ltc2387_if";
6363
#pwm-cells = <2>;
64-
clocks = <&ext_clk>;
64+
clocks = <&clkc 15>, <&ext_clk>;
65+
clock-names = "axi", "ext";
6566
};
6667

6768
ltc2387@0{

arch/arm/boot/dts/xilinx/zynq-zed-adv7511-ltc2387.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
reg = <0x44a60000 0x1000>;
4949
label = "ltc2387_if";
5050
#pwm-cells = <2>;
51-
clocks = <&ref_clk 0>;
51+
clocks = <&clkc 15>, <&ref_clk>;
52+
clock-names = "axi", "ext";
5253
};
5354

5455
ltc2387: adc@0{

0 commit comments

Comments
 (0)