Skip to content

Commit

Permalink
rpi_1337_a670cb1ba7a2ff3ae4d56b67107fa94ee72089ff
Browse files Browse the repository at this point in the history
commit a670cb1
Author: Phil Elwell <phil@raspberrypi.org>
Date:   Wed Aug 16 16:52:50 2017 +0100

    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: raspberrypi/linux#2165
    Signed-off-by: Phil Elwell <phil@raspberrypi.org>


Gbp-Pq: Topic rpi
Gbp-Pq: Name rpi_1337_a670cb1ba7a2ff3ae4d56b67107fa94ee72089ff.patch
  • Loading branch information
Debian Kernel Team authored and Raspbian forward porter committed Mar 31, 2018
1 parent 1ecf9a2 commit f67a1ac
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions arch/arm/boot/dts/bcm2708-rpi-0-w.dts
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@
reg = <0>; /* CE0 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
};

spidev1: spidev@1{
compatible = "spidev";
reg = <1>; /* CE1 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
};
};

Expand Down
4 changes: 2 additions & 2 deletions arch/arm/boot/dts/bcm2708-rpi-b-plus.dts
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@
reg = <0>; /* CE0 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
};

spidev1: spidev@1{
compatible = "spidev";
reg = <1>; /* CE1 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
};
};

Expand Down
4 changes: 2 additions & 2 deletions arch/arm/boot/dts/bcm2708-rpi-b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@
reg = <0>; /* CE0 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
};

spidev1: spidev@1{
compatible = "spidev";
reg = <1>; /* CE1 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
};
};

Expand Down
4 changes: 2 additions & 2 deletions arch/arm/boot/dts/bcm2708-rpi-cm.dts
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@
reg = <0>; /* CE0 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
};

spidev1: spidev@1{
compatible = "spidev";
reg = <1>; /* CE1 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
};
};

Expand Down
4 changes: 2 additions & 2 deletions arch/arm/boot/dts/bcm2709-rpi-2-b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@
reg = <0>; /* CE0 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
};

spidev1: spidev@1{
compatible = "spidev";
reg = <1>; /* CE1 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
};
};

Expand Down
4 changes: 2 additions & 2 deletions arch/arm/boot/dts/bcm2710-rpi-3-b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,15 @@
reg = <0>; /* CE0 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
};

spidev1: spidev@1{
compatible = "spidev";
reg = <1>; /* CE1 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
};
};

Expand Down
4 changes: 2 additions & 2 deletions arch/arm/boot/dts/bcm2710-rpi-cm3.dts
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@
reg = <0>; /* CE0 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
};

spidev1: spidev@1{
compatible = "spidev";
reg = <1>; /* CE1 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
};
};

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/overlays/spi1-1cs-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
reg = <0>; /* CE0 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
status = "okay";
};
};
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/boot/dts/overlays/spi1-2cs-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
reg = <0>; /* CE0 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
status = "okay";
};

Expand All @@ -45,7 +45,7 @@
reg = <1>; /* CE1 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
status = "okay";
};
};
Expand Down
6 changes: 3 additions & 3 deletions arch/arm/boot/dts/overlays/spi1-3cs-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
reg = <0>; /* CE0 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
status = "okay";
};

Expand All @@ -45,7 +45,7 @@
reg = <1>; /* CE1 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
status = "okay";
};

Expand All @@ -54,7 +54,7 @@
reg = <2>; /* CE2 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
status = "okay";
};
};
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/overlays/spi2-1cs-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
reg = <0>; /* CE0 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
status = "okay";
};
};
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/boot/dts/overlays/spi2-2cs-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
reg = <0>; /* CE0 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
status = "okay";
};

Expand All @@ -45,7 +45,7 @@
reg = <1>; /* CE1 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
status = "okay";
};
};
Expand Down
6 changes: 3 additions & 3 deletions arch/arm/boot/dts/overlays/spi2-3cs-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
reg = <0>; /* CE0 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
status = "okay";
};

Expand All @@ -45,7 +45,7 @@
reg = <1>; /* CE1 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
status = "okay";
};

Expand All @@ -54,7 +54,7 @@
reg = <2>; /* CE2 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <500000>;
spi-max-frequency = <125000000>;
status = "okay";
};
};
Expand Down

0 comments on commit f67a1ac

Please sign in to comment.