0187-BCM270X_DT-Use-spidev-labels-in-overlays.patch 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628
  1. From 9f69e431b2fb604797348c3b443b5c67b0e33c6d Mon Sep 17 00:00:00 2001
  2. From: Phil Elwell <phil@raspberrypi.org>
  3. Date: Tue, 15 Mar 2016 16:27:26 +0000
  4. Subject: [PATCH] BCM270X_DT: Use spidev labels in overlays
  5. ---
  6. arch/arm/boot/dts/overlays/ads7846-overlay.dts | 22 ++++++++++-------
  7. arch/arm/boot/dts/overlays/at86rf233-overlay.dts | 11 +++++----
  8. arch/arm/boot/dts/overlays/enc28j60-overlay.dts | 11 +++++----
  9. arch/arm/boot/dts/overlays/hy28a-overlay.dts | 22 ++++++++++-------
  10. arch/arm/boot/dts/overlays/hy28b-overlay.dts | 22 ++++++++++-------
  11. .../arm/boot/dts/overlays/mcp2515-can0-overlay.dts | 16 ++++++++-----
  12. .../arm/boot/dts/overlays/mcp2515-can1-overlay.dts | 16 ++++++++-----
  13. arch/arm/boot/dts/overlays/mz61581-overlay.dts | 22 ++++++++++-------
  14. arch/arm/boot/dts/overlays/piscreen-overlay.dts | 22 ++++++++++-------
  15. arch/arm/boot/dts/overlays/piscreen2r-overlay.dts | 22 ++++++++++-------
  16. .../dts/overlays/pitft28-capacitive-overlay.dts | 17 +++++++------
  17. .../dts/overlays/pitft28-resistive-overlay.dts | 24 ++++++++++++-------
  18. arch/arm/boot/dts/overlays/rpi-display-overlay.dts | 22 ++++++++++-------
  19. arch/arm/boot/dts/overlays/tinylcd35-overlay.dts | 28 +++++++++++++---------
  20. 14 files changed, 174 insertions(+), 103 deletions(-)
  21. --- a/arch/arm/boot/dts/overlays/ads7846-overlay.dts
  22. +++ b/arch/arm/boot/dts/overlays/ads7846-overlay.dts
  23. @@ -13,18 +13,24 @@
  24. target = <&spi0>;
  25. __overlay__ {
  26. status = "okay";
  27. + };
  28. + };
  29. - spidev@0{
  30. - status = "disabled";
  31. - };
  32. + fragment@1 {
  33. + target = <&spidev0>;
  34. + __overlay__ {
  35. + status = "disabled";
  36. + };
  37. + };
  38. - spidev@1{
  39. - status = "disabled";
  40. - };
  41. + fragment@2 {
  42. + target = <&spidev1>;
  43. + __overlay__ {
  44. + status = "disabled";
  45. };
  46. };
  47. - fragment@1 {
  48. + fragment@3 {
  49. target = <&gpio>;
  50. __overlay__ {
  51. ads7846_pins: ads7846_pins {
  52. @@ -35,7 +41,7 @@
  53. };
  54. };
  55. - fragment@2 {
  56. + fragment@4 {
  57. target = <&spi0>;
  58. __overlay__ {
  59. /* needed to avoid dtc warning */
  60. --- a/arch/arm/boot/dts/overlays/at86rf233-overlay.dts
  61. +++ b/arch/arm/boot/dts/overlays/at86rf233-overlay.dts
  62. @@ -14,10 +14,6 @@
  63. status = "okay";
  64. - spidev@0{
  65. - status = "disabled";
  66. - };
  67. -
  68. lowpan0: at86rf233@0 {
  69. compatible = "atmel,at86rf233";
  70. reg = <0>;
  71. @@ -32,6 +28,13 @@
  72. };
  73. fragment@1 {
  74. + target = <&spidev0>;
  75. + __overlay__ {
  76. + status = "disabled";
  77. + };
  78. + };
  79. +
  80. + fragment@2 {
  81. target = <&gpio>;
  82. __overlay__ {
  83. lowpan0_pins: lowpan0_pins {
  84. --- a/arch/arm/boot/dts/overlays/enc28j60-overlay.dts
  85. +++ b/arch/arm/boot/dts/overlays/enc28j60-overlay.dts
  86. @@ -14,10 +14,6 @@
  87. status = "okay";
  88. - spidev@0{
  89. - status = "disabled";
  90. - };
  91. -
  92. eth1: enc28j60@0{
  93. compatible = "microchip,enc28j60";
  94. reg = <0>; /* CE0 */
  95. @@ -32,6 +28,13 @@
  96. };
  97. fragment@1 {
  98. + target = <&spidev0>;
  99. + __overlay__ {
  100. + status = "disabled";
  101. + };
  102. + };
  103. +
  104. + fragment@2 {
  105. target = <&gpio>;
  106. __overlay__ {
  107. eth1_pins: eth1_pins {
  108. --- a/arch/arm/boot/dts/overlays/hy28a-overlay.dts
  109. +++ b/arch/arm/boot/dts/overlays/hy28a-overlay.dts
  110. @@ -13,18 +13,24 @@
  111. target = <&spi0>;
  112. __overlay__ {
  113. status = "okay";
  114. + };
  115. + };
  116. - spidev@0{
  117. - status = "disabled";
  118. - };
  119. + fragment@1 {
  120. + target = <&spidev0>;
  121. + __overlay__ {
  122. + status = "disabled";
  123. + };
  124. + };
  125. - spidev@1{
  126. - status = "disabled";
  127. - };
  128. + fragment@2 {
  129. + target = <&spidev1>;
  130. + __overlay__ {
  131. + status = "disabled";
  132. };
  133. };
  134. - fragment@1 {
  135. + fragment@3 {
  136. target = <&gpio>;
  137. __overlay__ {
  138. hy28a_pins: hy28a_pins {
  139. @@ -34,7 +40,7 @@
  140. };
  141. };
  142. - fragment@2 {
  143. + fragment@4 {
  144. target = <&spi0>;
  145. __overlay__ {
  146. /* needed to avoid dtc warning */
  147. --- a/arch/arm/boot/dts/overlays/hy28b-overlay.dts
  148. +++ b/arch/arm/boot/dts/overlays/hy28b-overlay.dts
  149. @@ -13,18 +13,24 @@
  150. target = <&spi0>;
  151. __overlay__ {
  152. status = "okay";
  153. + };
  154. + };
  155. - spidev@0{
  156. - status = "disabled";
  157. - };
  158. + fragment@1 {
  159. + target = <&spidev0>;
  160. + __overlay__ {
  161. + status = "disabled";
  162. + };
  163. + };
  164. - spidev@1{
  165. - status = "disabled";
  166. - };
  167. + fragment@2 {
  168. + target = <&spidev1>;
  169. + __overlay__ {
  170. + status = "disabled";
  171. };
  172. };
  173. - fragment@1 {
  174. + fragment@3 {
  175. target = <&gpio>;
  176. __overlay__ {
  177. hy28b_pins: hy28b_pins {
  178. @@ -34,7 +40,7 @@
  179. };
  180. };
  181. - fragment@2 {
  182. + fragment@4 {
  183. target = <&spi0>;
  184. __overlay__ {
  185. /* needed to avoid dtc warning */
  186. --- a/arch/arm/boot/dts/overlays/mcp2515-can0-overlay.dts
  187. +++ b/arch/arm/boot/dts/overlays/mcp2515-can0-overlay.dts
  188. @@ -12,14 +12,18 @@
  189. target = <&spi0>;
  190. __overlay__ {
  191. status = "okay";
  192. - spidev@0{
  193. - status = "disabled";
  194. - };
  195. };
  196. };
  197. - /* the interrupt pin of the can-controller */
  198. fragment@1 {
  199. + target = <&spidev0>;
  200. + __overlay__ {
  201. + status = "disabled";
  202. + };
  203. + };
  204. +
  205. + /* the interrupt pin of the can-controller */
  206. + fragment@2 {
  207. target = <&gpio>;
  208. __overlay__ {
  209. can0_pins: can0_pins {
  210. @@ -30,7 +34,7 @@
  211. };
  212. /* the clock/oscillator of the can-controller */
  213. - fragment@2 {
  214. + fragment@3 {
  215. target-path = "/clocks";
  216. __overlay__ {
  217. /* external oscillator of mcp2515 on SPI0.0 */
  218. @@ -43,7 +47,7 @@
  219. };
  220. /* the spi config of the can-controller itself binding everything together */
  221. - fragment@3 {
  222. + fragment@4 {
  223. target = <&spi0>;
  224. __overlay__ {
  225. /* needed to avoid dtc warning */
  226. --- a/arch/arm/boot/dts/overlays/mcp2515-can1-overlay.dts
  227. +++ b/arch/arm/boot/dts/overlays/mcp2515-can1-overlay.dts
  228. @@ -12,14 +12,18 @@
  229. target = <&spi0>;
  230. __overlay__ {
  231. status = "okay";
  232. - spidev@1{
  233. - status = "disabled";
  234. - };
  235. };
  236. };
  237. - /* the interrupt pin of the can-controller */
  238. fragment@1 {
  239. + target = <&spidev1>;
  240. + __overlay__ {
  241. + status = "disabled";
  242. + };
  243. + };
  244. +
  245. + /* the interrupt pin of the can-controller */
  246. + fragment@2 {
  247. target = <&gpio>;
  248. __overlay__ {
  249. can1_pins: can1_pins {
  250. @@ -30,7 +34,7 @@
  251. };
  252. /* the clock/oscillator of the can-controller */
  253. - fragment@2 {
  254. + fragment@3 {
  255. target-path = "/clocks";
  256. __overlay__ {
  257. /* external oscillator of mcp2515 on spi0.1 */
  258. @@ -43,7 +47,7 @@
  259. };
  260. /* the spi config of the can-controller itself binding everything together */
  261. - fragment@3 {
  262. + fragment@4 {
  263. target = <&spi0>;
  264. __overlay__ {
  265. /* needed to avoid dtc warning */
  266. --- a/arch/arm/boot/dts/overlays/mz61581-overlay.dts
  267. +++ b/arch/arm/boot/dts/overlays/mz61581-overlay.dts
  268. @@ -13,18 +13,24 @@
  269. target = <&spi0>;
  270. __overlay__ {
  271. status = "okay";
  272. + };
  273. + };
  274. - spidev@0{
  275. - status = "disabled";
  276. - };
  277. + fragment@1 {
  278. + target = <&spidev0>;
  279. + __overlay__ {
  280. + status = "disabled";
  281. + };
  282. + };
  283. - spidev@1{
  284. - status = "disabled";
  285. - };
  286. + fragment@2 {
  287. + target = <&spidev1>;
  288. + __overlay__ {
  289. + status = "disabled";
  290. };
  291. };
  292. - fragment@1 {
  293. + fragment@3 {
  294. target = <&gpio>;
  295. __overlay__ {
  296. mz61581_pins: mz61581_pins {
  297. @@ -34,7 +40,7 @@
  298. };
  299. };
  300. - fragment@2 {
  301. + fragment@4 {
  302. target = <&spi0>;
  303. __overlay__ {
  304. /* needed to avoid dtc warning */
  305. --- a/arch/arm/boot/dts/overlays/piscreen-overlay.dts
  306. +++ b/arch/arm/boot/dts/overlays/piscreen-overlay.dts
  307. @@ -13,18 +13,24 @@
  308. target = <&spi0>;
  309. __overlay__ {
  310. status = "okay";
  311. + };
  312. + };
  313. - spidev@0{
  314. - status = "disabled";
  315. - };
  316. + fragment@1 {
  317. + target = <&spidev0>;
  318. + __overlay__ {
  319. + status = "disabled";
  320. + };
  321. + };
  322. - spidev@1{
  323. - status = "disabled";
  324. - };
  325. + fragment@2 {
  326. + target = <&spidev1>;
  327. + __overlay__ {
  328. + status = "disabled";
  329. };
  330. };
  331. - fragment@1 {
  332. + fragment@3 {
  333. target = <&gpio>;
  334. __overlay__ {
  335. piscreen_pins: piscreen_pins {
  336. @@ -34,7 +40,7 @@
  337. };
  338. };
  339. - fragment@2 {
  340. + fragment@4 {
  341. target = <&spi0>;
  342. __overlay__ {
  343. /* needed to avoid dtc warning */
  344. --- a/arch/arm/boot/dts/overlays/piscreen2r-overlay.dts
  345. +++ b/arch/arm/boot/dts/overlays/piscreen2r-overlay.dts
  346. @@ -13,18 +13,24 @@
  347. target = <&spi0>;
  348. __overlay__ {
  349. status = "okay";
  350. + };
  351. + };
  352. - spidev@0{
  353. - status = "disabled";
  354. - };
  355. + fragment@1 {
  356. + target = <&spidev0>;
  357. + __overlay__ {
  358. + status = "disabled";
  359. + };
  360. + };
  361. - spidev@1{
  362. - status = "disabled";
  363. - };
  364. + fragment@2 {
  365. + target = <&spidev1>;
  366. + __overlay__ {
  367. + status = "disabled";
  368. };
  369. };
  370. - fragment@1 {
  371. + fragment@3 {
  372. target = <&gpio>;
  373. __overlay__ {
  374. piscreen2_pins: piscreen2_pins {
  375. @@ -34,7 +40,7 @@
  376. };
  377. };
  378. - fragment@2 {
  379. + fragment@4 {
  380. target = <&spi0>;
  381. __overlay__ {
  382. /* needed to avoid dtc warning */
  383. --- a/arch/arm/boot/dts/overlays/pitft28-capacitive-overlay.dts
  384. +++ b/arch/arm/boot/dts/overlays/pitft28-capacitive-overlay.dts
  385. @@ -13,14 +13,17 @@
  386. target = <&spi0>;
  387. __overlay__ {
  388. status = "okay";
  389. -
  390. - spidev@0{
  391. - status = "disabled";
  392. - };
  393. };
  394. };
  395. - fragment@1 {
  396. + fragment@1 {
  397. + target = <&spidev0>;
  398. + __overlay__ {
  399. + status = "disabled";
  400. + };
  401. + };
  402. +
  403. + fragment@2 {
  404. target = <&gpio>;
  405. __overlay__ {
  406. pitft_pins: pitft_pins {
  407. @@ -31,7 +34,7 @@
  408. };
  409. };
  410. - fragment@2 {
  411. + fragment@3 {
  412. target = <&spi0>;
  413. __overlay__ {
  414. /* needed to avoid dtc warning */
  415. @@ -55,7 +58,7 @@
  416. };
  417. };
  418. - fragment@3 {
  419. + fragment@4 {
  420. target = <&i2c1>;
  421. __overlay__ {
  422. /* needed to avoid dtc warning */
  423. --- a/arch/arm/boot/dts/overlays/pitft28-resistive-overlay.dts
  424. +++ b/arch/arm/boot/dts/overlays/pitft28-resistive-overlay.dts
  425. @@ -13,18 +13,24 @@
  426. target = <&spi0>;
  427. __overlay__ {
  428. status = "okay";
  429. + };
  430. + };
  431. - spidev@0{
  432. - status = "disabled";
  433. - };
  434. + fragment@1 {
  435. + target = <&spidev0>;
  436. + __overlay__ {
  437. + status = "disabled";
  438. + };
  439. + };
  440. - spidev@1{
  441. - status = "disabled";
  442. - };
  443. + fragment@2 {
  444. + target = <&spidev1>;
  445. + __overlay__ {
  446. + status = "disabled";
  447. };
  448. };
  449. - fragment@1 {
  450. + fragment@3 {
  451. target = <&gpio>;
  452. __overlay__ {
  453. pitft_pins: pitft_pins {
  454. @@ -35,7 +41,7 @@
  455. };
  456. };
  457. - fragment@2 {
  458. + fragment@4 {
  459. target = <&spi0>;
  460. __overlay__ {
  461. /* needed to avoid dtc warning */
  462. @@ -95,7 +101,7 @@
  463. };
  464. };
  465. - fragment@3 {
  466. + fragment@5 {
  467. target-path = "/soc";
  468. __overlay__ {
  469. backlight {
  470. --- a/arch/arm/boot/dts/overlays/rpi-display-overlay.dts
  471. +++ b/arch/arm/boot/dts/overlays/rpi-display-overlay.dts
  472. @@ -13,18 +13,24 @@
  473. target = <&spi0>;
  474. __overlay__ {
  475. status = "okay";
  476. + };
  477. + };
  478. - spidev@0{
  479. - status = "disabled";
  480. - };
  481. + fragment@1 {
  482. + target = <&spidev0>;
  483. + __overlay__ {
  484. + status = "disabled";
  485. + };
  486. + };
  487. - spidev@1{
  488. - status = "disabled";
  489. - };
  490. + fragment@2 {
  491. + target = <&spidev1>;
  492. + __overlay__ {
  493. + status = "disabled";
  494. };
  495. };
  496. - fragment@1 {
  497. + fragment@3 {
  498. target = <&gpio>;
  499. __overlay__ {
  500. rpi_display_pins: rpi_display_pins {
  501. @@ -35,7 +41,7 @@
  502. };
  503. };
  504. - fragment@2 {
  505. + fragment@4 {
  506. target = <&spi0>;
  507. __overlay__ {
  508. /* needed to avoid dtc warning */
  509. --- a/arch/arm/boot/dts/overlays/tinylcd35-overlay.dts
  510. +++ b/arch/arm/boot/dts/overlays/tinylcd35-overlay.dts
  511. @@ -30,18 +30,24 @@
  512. target = <&spi0>;
  513. __overlay__ {
  514. status = "okay";
  515. + };
  516. + };
  517. - spidev@0{
  518. - status = "disabled";
  519. - };
  520. + fragment@1 {
  521. + target = <&spidev0>;
  522. + __overlay__ {
  523. + status = "disabled";
  524. + };
  525. + };
  526. - spidev@1{
  527. - status = "disabled";
  528. - };
  529. + fragment@2 {
  530. + target = <&spidev1>;
  531. + __overlay__ {
  532. + status = "disabled";
  533. };
  534. };
  535. - fragment@1 {
  536. + fragment@3 {
  537. target = <&gpio>;
  538. __overlay__ {
  539. tinylcd35_pins: tinylcd35_pins {
  540. @@ -60,7 +66,7 @@
  541. };
  542. };
  543. - fragment@2 {
  544. + fragment@4 {
  545. target = <&spi0>;
  546. __overlay__ {
  547. /* needed to avoid dtc warning */
  548. @@ -124,7 +130,7 @@
  549. /* RTC */
  550. - fragment@3 {
  551. + fragment@5 {
  552. target = <&i2c1>;
  553. __overlay__ {
  554. #address-cells = <1>;
  555. @@ -138,7 +144,7 @@
  556. };
  557. };
  558. - fragment@4 {
  559. + fragment@6 {
  560. target = <&i2c1>;
  561. __overlay__ {
  562. #address-cells = <1>;
  563. @@ -156,7 +162,7 @@
  564. * Values for input event code is found under the
  565. * 'Keys and buttons' heading in include/uapi/linux/input.h
  566. */
  567. - fragment@5 {
  568. + fragment@7 {
  569. target-path = "/soc";
  570. __overlay__ {
  571. keypad: keypad {