Skip to content

Commit d251c89

Browse files
nbuchwitzpelwell
authored andcommitted
overlays: sc16is75x: Disable spidev0 first
Ensure spidev0 is disabled before the cs pin is referenced. Otherwise the overlay will fail when loaded during runtime with "spi spi0.0: chipselect 0 already in use" Signed-off-by: Nicolai Buchwitz <[email protected]>
1 parent 9c26224 commit d251c89

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

arch/arm/boot/dts/overlays/sc16is750-spi0-overlay.dts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
compatible = "brcm,bcm2835";
66

77
fragment@0 {
8+
target = <&spidev0>;
9+
__overlay__ {
10+
status = "disabled";
11+
};
12+
};
13+
14+
fragment@1 {
815
target = <&spi0>;
916
__overlay__ {
1017
#address-cells = <1>;
@@ -26,13 +33,6 @@
2633
};
2734
};
2835

29-
fragment@1 {
30-
target = <&spidev0>;
31-
__overlay__ {
32-
status = "disabled";
33-
};
34-
};
35-
3636
fragment@2 {
3737
target-path = "/";
3838
__overlay__ {

arch/arm/boot/dts/overlays/sc16is752-spi0-overlay.dts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
compatible = "brcm,bcm2835";
66

77
fragment@0 {
8+
target = <&spidev0>;
9+
__overlay__ {
10+
status = "disabled";
11+
};
12+
};
13+
14+
fragment@1 {
815
target = <&spi0>;
916
__overlay__ {
1017
#address-cells = <1>;
@@ -26,13 +33,6 @@
2633
};
2734
};
2835

29-
fragment@1 {
30-
target = <&spidev0>;
31-
__overlay__ {
32-
status = "disabled";
33-
};
34-
};
35-
3636
fragment@2 {
3737
target-path = "/";
3838
__overlay__ {

0 commit comments

Comments
 (0)