Skip to content

Commit 57419e8

Browse files
author
Phil Elwell
committed
BCM270X_DT: Set spidev spi-max-frequency to 125MHz
The BCM2835 SPI controllers have a maximum bus clock of half the system clock speed, so with the 250MHz system clock found on Raspberry Pis you get a theoretical maximum bus speed of 125MHz. Note that this speed is unlikely to be reliable, and the maximum usable bus spee will depend on both the attached device and the wiring. See: #2165 Signed-off-by: Phil Elwell <[email protected]>
1 parent 801d612 commit 57419e8

13 files changed

+26
-26
lines changed

arch/arm/boot/dts/bcm2708-rpi-0-w.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@
101101
reg = <0>; /* CE0 */
102102
#address-cells = <1>;
103103
#size-cells = <0>;
104-
spi-max-frequency = <500000>;
104+
spi-max-frequency = <125000000>;
105105
};
106106

107107
spidev1: spidev@1{
108108
compatible = "spidev";
109109
reg = <1>; /* CE1 */
110110
#address-cells = <1>;
111111
#size-cells = <0>;
112-
spi-max-frequency = <500000>;
112+
spi-max-frequency = <125000000>;
113113
};
114114
};
115115

arch/arm/boot/dts/bcm2708-rpi-b-plus.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@
5353
reg = <0>; /* CE0 */
5454
#address-cells = <1>;
5555
#size-cells = <0>;
56-
spi-max-frequency = <500000>;
56+
spi-max-frequency = <125000000>;
5757
};
5858

5959
spidev1: spidev@1{
6060
compatible = "spidev";
6161
reg = <1>; /* CE1 */
6262
#address-cells = <1>;
6363
#size-cells = <0>;
64-
spi-max-frequency = <500000>;
64+
spi-max-frequency = <125000000>;
6565
};
6666
};
6767

arch/arm/boot/dts/bcm2708-rpi-b.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@
5353
reg = <0>; /* CE0 */
5454
#address-cells = <1>;
5555
#size-cells = <0>;
56-
spi-max-frequency = <500000>;
56+
spi-max-frequency = <125000000>;
5757
};
5858

5959
spidev1: spidev@1{
6060
compatible = "spidev";
6161
reg = <1>; /* CE1 */
6262
#address-cells = <1>;
6363
#size-cells = <0>;
64-
spi-max-frequency = <500000>;
64+
spi-max-frequency = <125000000>;
6565
};
6666
};
6767

arch/arm/boot/dts/bcm2708-rpi-cm.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@
5252
reg = <0>; /* CE0 */
5353
#address-cells = <1>;
5454
#size-cells = <0>;
55-
spi-max-frequency = <500000>;
55+
spi-max-frequency = <125000000>;
5656
};
5757

5858
spidev1: spidev@1{
5959
compatible = "spidev";
6060
reg = <1>; /* CE1 */
6161
#address-cells = <1>;
6262
#size-cells = <0>;
63-
spi-max-frequency = <500000>;
63+
spi-max-frequency = <125000000>;
6464
};
6565
};
6666

arch/arm/boot/dts/bcm2709-rpi-2-b.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@
5353
reg = <0>; /* CE0 */
5454
#address-cells = <1>;
5555
#size-cells = <0>;
56-
spi-max-frequency = <500000>;
56+
spi-max-frequency = <125000000>;
5757
};
5858

5959
spidev1: spidev@1{
6060
compatible = "spidev";
6161
reg = <1>; /* CE1 */
6262
#address-cells = <1>;
6363
#size-cells = <0>;
64-
spi-max-frequency = <500000>;
64+
spi-max-frequency = <125000000>;
6565
};
6666
};
6767

arch/arm/boot/dts/bcm2710-rpi-3-b.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,15 @@
125125
reg = <0>; /* CE0 */
126126
#address-cells = <1>;
127127
#size-cells = <0>;
128-
spi-max-frequency = <500000>;
128+
spi-max-frequency = <125000000>;
129129
};
130130

131131
spidev1: spidev@1{
132132
compatible = "spidev";
133133
reg = <1>; /* CE1 */
134134
#address-cells = <1>;
135135
#size-cells = <0>;
136-
spi-max-frequency = <500000>;
136+
spi-max-frequency = <125000000>;
137137
};
138138
};
139139

arch/arm/boot/dts/bcm2710-rpi-cm3.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@
7070
reg = <0>; /* CE0 */
7171
#address-cells = <1>;
7272
#size-cells = <0>;
73-
spi-max-frequency = <500000>;
73+
spi-max-frequency = <125000000>;
7474
};
7575

7676
spidev1: spidev@1{
7777
compatible = "spidev";
7878
reg = <1>; /* CE1 */
7979
#address-cells = <1>;
8080
#size-cells = <0>;
81-
spi-max-frequency = <500000>;
81+
spi-max-frequency = <125000000>;
8282
};
8383
};
8484

arch/arm/boot/dts/overlays/spi1-1cs-overlay.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
reg = <0>; /* CE0 */
3737
#address-cells = <1>;
3838
#size-cells = <0>;
39-
spi-max-frequency = <500000>;
39+
spi-max-frequency = <125000000>;
4040
status = "okay";
4141
};
4242
};

arch/arm/boot/dts/overlays/spi1-2cs-overlay.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
reg = <0>; /* CE0 */
3737
#address-cells = <1>;
3838
#size-cells = <0>;
39-
spi-max-frequency = <500000>;
39+
spi-max-frequency = <125000000>;
4040
status = "okay";
4141
};
4242

@@ -45,7 +45,7 @@
4545
reg = <1>; /* CE1 */
4646
#address-cells = <1>;
4747
#size-cells = <0>;
48-
spi-max-frequency = <500000>;
48+
spi-max-frequency = <125000000>;
4949
status = "okay";
5050
};
5151
};

arch/arm/boot/dts/overlays/spi1-3cs-overlay.dts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
reg = <0>; /* CE0 */
3737
#address-cells = <1>;
3838
#size-cells = <0>;
39-
spi-max-frequency = <500000>;
39+
spi-max-frequency = <125000000>;
4040
status = "okay";
4141
};
4242

@@ -45,7 +45,7 @@
4545
reg = <1>; /* CE1 */
4646
#address-cells = <1>;
4747
#size-cells = <0>;
48-
spi-max-frequency = <500000>;
48+
spi-max-frequency = <125000000>;
4949
status = "okay";
5050
};
5151

@@ -54,7 +54,7 @@
5454
reg = <2>; /* CE2 */
5555
#address-cells = <1>;
5656
#size-cells = <0>;
57-
spi-max-frequency = <500000>;
57+
spi-max-frequency = <125000000>;
5858
status = "okay";
5959
};
6060
};

arch/arm/boot/dts/overlays/spi2-1cs-overlay.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
reg = <0>; /* CE0 */
3737
#address-cells = <1>;
3838
#size-cells = <0>;
39-
spi-max-frequency = <500000>;
39+
spi-max-frequency = <125000000>;
4040
status = "okay";
4141
};
4242
};

arch/arm/boot/dts/overlays/spi2-2cs-overlay.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
reg = <0>; /* CE0 */
3737
#address-cells = <1>;
3838
#size-cells = <0>;
39-
spi-max-frequency = <500000>;
39+
spi-max-frequency = <125000000>;
4040
status = "okay";
4141
};
4242

@@ -45,7 +45,7 @@
4545
reg = <1>; /* CE1 */
4646
#address-cells = <1>;
4747
#size-cells = <0>;
48-
spi-max-frequency = <500000>;
48+
spi-max-frequency = <125000000>;
4949
status = "okay";
5050
};
5151
};

arch/arm/boot/dts/overlays/spi2-3cs-overlay.dts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
reg = <0>; /* CE0 */
3737
#address-cells = <1>;
3838
#size-cells = <0>;
39-
spi-max-frequency = <500000>;
39+
spi-max-frequency = <125000000>;
4040
status = "okay";
4141
};
4242

@@ -45,7 +45,7 @@
4545
reg = <1>; /* CE1 */
4646
#address-cells = <1>;
4747
#size-cells = <0>;
48-
spi-max-frequency = <500000>;
48+
spi-max-frequency = <125000000>;
4949
status = "okay";
5050
};
5151

@@ -54,7 +54,7 @@
5454
reg = <2>; /* CE2 */
5555
#address-cells = <1>;
5656
#size-cells = <0>;
57-
spi-max-frequency = <500000>;
57+
spi-max-frequency = <125000000>;
5858
status = "okay";
5959
};
6060
};

0 commit comments

Comments
 (0)