0186-BCM270X_DT-Add-labels-to-spidev-nodes.patch 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. From 2007577b3766f15a9fa3d288d4a31d58ac9e2fbc Mon Sep 17 00:00:00 2001
  2. From: Phil Elwell <phil@raspberrypi.org>
  3. Date: Tue, 15 Mar 2016 15:49:16 +0000
  4. Subject: [PATCH] BCM270X_DT: Add labels to spidev nodes
  5. Signed-off-by: Phil Elwell <phil@raspberrypi.org>
  6. ---
  7. arch/arm/boot/dts/bcm2708-rpi-b-plus.dts | 4 ++--
  8. arch/arm/boot/dts/bcm2708-rpi-b.dts | 4 ++--
  9. arch/arm/boot/dts/bcm2708-rpi-cm.dts | 4 ++--
  10. arch/arm/boot/dts/bcm2709-rpi-2-b.dts | 4 ++--
  11. arch/arm/boot/dts/bcm2710-rpi-3-b.dts | 4 ++--
  12. 5 files changed, 10 insertions(+), 10 deletions(-)
  13. --- a/arch/arm/boot/dts/bcm2708-rpi-b-plus.dts
  14. +++ b/arch/arm/boot/dts/bcm2708-rpi-b-plus.dts
  15. @@ -59,7 +59,7 @@
  16. pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
  17. cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
  18. - spidev@0{
  19. + spidev0: spidev@0{
  20. compatible = "spidev";
  21. reg = <0>; /* CE0 */
  22. #address-cells = <1>;
  23. @@ -67,7 +67,7 @@
  24. spi-max-frequency = <500000>;
  25. };
  26. - spidev@1{
  27. + spidev1: spidev@1{
  28. compatible = "spidev";
  29. reg = <1>; /* CE1 */
  30. #address-cells = <1>;
  31. --- a/arch/arm/boot/dts/bcm2708-rpi-b.dts
  32. +++ b/arch/arm/boot/dts/bcm2708-rpi-b.dts
  33. @@ -59,7 +59,7 @@
  34. pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
  35. cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
  36. - spidev@0{
  37. + spidev0: spidev@0{
  38. compatible = "spidev";
  39. reg = <0>; /* CE0 */
  40. #address-cells = <1>;
  41. @@ -67,7 +67,7 @@
  42. spi-max-frequency = <500000>;
  43. };
  44. - spidev@1{
  45. + spidev1: spidev@1{
  46. compatible = "spidev";
  47. reg = <1>; /* CE1 */
  48. #address-cells = <1>;
  49. --- a/arch/arm/boot/dts/bcm2708-rpi-cm.dts
  50. +++ b/arch/arm/boot/dts/bcm2708-rpi-cm.dts
  51. @@ -42,7 +42,7 @@
  52. pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
  53. cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
  54. - spidev@0{
  55. + spidev0: spidev@0{
  56. compatible = "spidev";
  57. reg = <0>; /* CE0 */
  58. #address-cells = <1>;
  59. @@ -50,7 +50,7 @@
  60. spi-max-frequency = <500000>;
  61. };
  62. - spidev@1{
  63. + spidev1: spidev@1{
  64. compatible = "spidev";
  65. reg = <1>; /* CE1 */
  66. #address-cells = <1>;
  67. --- a/arch/arm/boot/dts/bcm2709-rpi-2-b.dts
  68. +++ b/arch/arm/boot/dts/bcm2709-rpi-2-b.dts
  69. @@ -59,7 +59,7 @@
  70. pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
  71. cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
  72. - spidev@0{
  73. + spidev0: spidev@0{
  74. compatible = "spidev";
  75. reg = <0>; /* CE0 */
  76. #address-cells = <1>;
  77. @@ -67,7 +67,7 @@
  78. spi-max-frequency = <500000>;
  79. };
  80. - spidev@1{
  81. + spidev1: spidev@1{
  82. compatible = "spidev";
  83. reg = <1>; /* CE1 */
  84. #address-cells = <1>;
  85. --- a/arch/arm/boot/dts/bcm2710-rpi-3-b.dts
  86. +++ b/arch/arm/boot/dts/bcm2710-rpi-3-b.dts
  87. @@ -110,7 +110,7 @@
  88. pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
  89. cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
  90. - spidev@0{
  91. + spidev0: spidev@0{
  92. compatible = "spidev";
  93. reg = <0>; /* CE0 */
  94. #address-cells = <1>;
  95. @@ -118,7 +118,7 @@
  96. spi-max-frequency = <500000>;
  97. };
  98. - spidev@1{
  99. + spidev1: spidev@1{
  100. compatible = "spidev";
  101. reg = <1>; /* CE1 */
  102. #address-cells = <1>;