Skip to content

Commit

Permalink
SPIDEV: use symlink label to help udev
Browse files Browse the repository at this point in the history
udev script: https://github.com/mvduin/py-uio/blob/master/etc/udev/rules.d/10-of-symlink.rules

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
  • Loading branch information
RobertCNelson committed Apr 4, 2019
1 parent 2dc8fbd commit d21b116
Show file tree
Hide file tree
Showing 31 changed files with 95 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/arm/BB-BBBMINI-00A0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@
/* spi-max-frequency = <24000000>; */
/* reg = <0>; */
/* compatible = "spidev"; */
/* symlink = "spi/0.0"; */
/* }; */
/* }; */
/* }; */
Expand All @@ -224,6 +225,7 @@
/* reg = <0>; */
/* spi-max-frequency = <24000000>; */
/* compatible = "spidev"; */
/* symlink = "spi/1.0"; */
/* }; */

/* spi1_1 { */
Expand All @@ -232,6 +234,7 @@
/* reg = <1>; */
/* spi-max-frequency = <24000000>; */
/* compatible = "spidev"; */
/* symlink = "spi/1.1"; */
/* }; */
/* }; */
/* }; */
Expand Down
2 changes: 2 additions & 0 deletions src/arm/BB-BONE-REPLICAP-00A4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
#address-cells = <1>;
#size-cells = <0>;
compatible = "spidev";
symlink = "spi/1.0";
reg = <0>;
spi-max-frequency = <16000000>;
spi-cpha; // Stepper control has mode 1 (CPOL = 0, CPHA = 1)
Expand All @@ -171,6 +172,7 @@
#address-cells = <1>;
#size-cells = <0>;
compatible = "spidev";
symlink = "spi/1.1";
reg = <1>;
spi-max-frequency = <16000000>;
// Stepper current has mode 0 (CPOL = 0, CPHA = 0)
Expand Down
1 change: 1 addition & 0 deletions src/arm/BB-BONE-REPLICAP-00B1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
#address-cells = <1>;
#size-cells = <0>;
compatible = "spidev";
symlink = "spi/1.1";
reg = <1>;
spi-max-frequency = <16000000>;
};
Expand Down
1 change: 1 addition & 0 deletions src/arm/BB-BONE-REPLICAP-00B2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
#address-cells = <1>;
#size-cells = <0>;
compatible = "spidev";
symlink = "spi/1.1";
reg = <1>;
spi-max-frequency = <16000000>;
};
Expand Down
1 change: 1 addition & 0 deletions src/arm/BB-BONE-REPLICAP-00B3.dts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
#address-cells = <1>;
#size-cells = <0>;
compatible = "spidev";
symlink = "spi/1.1";
reg = <1>;
spi-max-frequency = <16000000>;
};
Expand Down
2 changes: 2 additions & 0 deletions src/arm/BB-BONE-REPLICAP-0A4A.dts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
#address-cells = <1>;
#size-cells = <0>;
compatible = "spidev";
symlink = "spi/1.0";
reg = <0>;
spi-max-frequency = <16000000>;
spi-cpha; // Stepper control has mode 1 (CPOL = 0, CPHA = 1)
Expand All @@ -171,6 +172,7 @@
#address-cells = <1>;
#size-cells = <0>;
compatible = "spidev";
symlink = "spi/1.1";
reg = <1>;
spi-max-frequency = <16000000>;
// Stepper current has mode 0 (CPOL = 0, CPHA = 0)
Expand Down
1 change: 1 addition & 0 deletions src/arm/BB-BONE-REPLICAP-0B3A.dts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
#address-cells = <1>;
#size-cells = <0>;
compatible = "spidev";
symlink = "spi/1.1";
reg = <1>;
spi-max-frequency = <16000000>;
};
Expand Down
2 changes: 2 additions & 0 deletions src/arm/BB-SPIDEV0-00A0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/0.0";

reg = <0>;
spi-max-frequency = <16000000>;
Expand All @@ -85,6 +86,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/0.1";

reg = <1>;
spi-max-frequency = <16000000>;
Expand Down
2 changes: 2 additions & 0 deletions src/arm/BB-SPIDEV1-00A0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/1.0";

reg = <0>;
spi-max-frequency = <16000000>;
Expand All @@ -88,6 +89,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/1.1";

reg = <1>;
spi-max-frequency = <16000000>;
Expand Down
2 changes: 2 additions & 0 deletions src/arm/BB-SPIDEV1A1-00A0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/1.0";

reg = <0>;
spi-max-frequency = <16000000>;
Expand All @@ -88,6 +89,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/1.1";

reg = <1>;
spi-max-frequency = <16000000>;
Expand Down
1 change: 1 addition & 0 deletions src/arm/BW-ICE40CapeV2-00A0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
#address-cells = <1>;
#size-cells = <0>;
compatible = "spidev";
symlink = "spi/1.0";
reg = <0>;
spi-max-frequency = <10000000>;
};
Expand Down
1 change: 1 addition & 0 deletions src/arm/RoboticsCape-00A0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ fragment@32 {
spi-max-frequency = <24000000>;
reg = <0>;
compatible = "linux,spidev";
symlink = "spi/1.0";
};
};
};
Expand Down
4 changes: 4 additions & 0 deletions src/arm/cape-universal-00A0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -3168,6 +3168,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/0.0";

reg = <0>;
spi-max-frequency = <16000000>;
Expand All @@ -3180,6 +3181,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/0.1";

reg = <1>;
spi-max-frequency = <16000000>;
Expand All @@ -3202,6 +3204,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/1.0";

reg = <0>;
spi-max-frequency = <16000000>;
Expand All @@ -3213,6 +3216,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/1.1";

reg = <1>;
spi-max-frequency = <16000000>;
Expand Down
4 changes: 4 additions & 0 deletions src/arm/cape-universala-00A0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -3168,6 +3168,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/0.0";

reg = <0>;
spi-max-frequency = <16000000>;
Expand All @@ -3180,6 +3181,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/0.1";

reg = <1>;
spi-max-frequency = <16000000>;
Expand All @@ -3202,6 +3204,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/1.0";

reg = <0>;
spi-max-frequency = <16000000>;
Expand All @@ -3213,6 +3216,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/1.1";

reg = <1>;
spi-max-frequency = <16000000>;
Expand Down
4 changes: 4 additions & 0 deletions src/arm/cape-universalh-00A0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -3168,6 +3168,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/0.0";

reg = <0>;
spi-max-frequency = <16000000>;
Expand All @@ -3180,6 +3181,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/0.1";

reg = <1>;
spi-max-frequency = <16000000>;
Expand All @@ -3202,6 +3204,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/1.0";

reg = <0>;
spi-max-frequency = <16000000>;
Expand All @@ -3213,6 +3216,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/1.1";

reg = <1>;
spi-max-frequency = <16000000>;
Expand Down
4 changes: 4 additions & 0 deletions src/arm/cape-universaln-00A0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -3168,6 +3168,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/0.0";

reg = <0>;
spi-max-frequency = <16000000>;
Expand All @@ -3180,6 +3181,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/0.1";

reg = <1>;
spi-max-frequency = <16000000>;
Expand All @@ -3202,6 +3204,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/1.0";

reg = <0>;
spi-max-frequency = <16000000>;
Expand All @@ -3213,6 +3216,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/1.1";

reg = <1>;
spi-max-frequency = <16000000>;
Expand Down
4 changes: 4 additions & 0 deletions src/arm/univ-all-00A0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -3168,6 +3168,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/0.0";

reg = <0>;
spi-max-frequency = <16000000>;
Expand All @@ -3180,6 +3181,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/0.1";

reg = <1>;
spi-max-frequency = <16000000>;
Expand All @@ -3202,6 +3204,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/1.0";

reg = <0>;
spi-max-frequency = <16000000>;
Expand All @@ -3213,6 +3216,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/1.1";

reg = <1>;
spi-max-frequency = <16000000>;
Expand Down
4 changes: 4 additions & 0 deletions src/arm/univ-bbb-EVA-00A0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -3168,6 +3168,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/0.0";

reg = <0>;
spi-max-frequency = <16000000>;
Expand All @@ -3180,6 +3181,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/0.1";

reg = <1>;
spi-max-frequency = <16000000>;
Expand All @@ -3202,6 +3204,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/1.0";

reg = <0>;
spi-max-frequency = <16000000>;
Expand All @@ -3213,6 +3216,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/1.1";

reg = <1>;
spi-max-frequency = <16000000>;
Expand Down
4 changes: 4 additions & 0 deletions src/arm/univ-bbb-EVx-00A0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -3168,6 +3168,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/0.0";

reg = <0>;
spi-max-frequency = <16000000>;
Expand All @@ -3180,6 +3181,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/0.1";

reg = <1>;
spi-max-frequency = <16000000>;
Expand All @@ -3202,6 +3204,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/1.0";

reg = <0>;
spi-max-frequency = <16000000>;
Expand All @@ -3213,6 +3216,7 @@
#size-cells = <0>;

compatible = "spidev";
symlink = "spi/1.1";

reg = <1>;
spi-max-frequency = <16000000>;
Expand Down
Loading

0 comments on commit d21b116

Please sign in to comment.