011-use_pinctrl_node_alias.patch 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. From 01c434225ee67388711e78166cfe9b159e34fc9d Mon Sep 17 00:00:00 2001
  2. From: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
  3. Date: Fri, 19 Sep 2014 21:20:09 +0200
  4. Subject: ARM: mvebu: armada-xp: Use pinctrl node alias
  5. Armada XP pinctrl node gained an alias, make use of it.
  6. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
  7. Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  8. Tested-By: Benoit Masson <yahoo@perenite.com>
  9. Signed-off-by: Jason Cooper <jason@lakedaemon.net>
  10. --- a/arch/arm/boot/dts/armada-xp-axpwifiap.dts
  11. +++ b/arch/arm/boot/dts/armada-xp-axpwifiap.dts
  12. @@ -60,40 +60,6 @@
  13. };
  14. internal-regs {
  15. - pinctrl: pin-ctrl@18000 {
  16. - pinctrl-0 = <&pmx_phy_int>;
  17. - pinctrl-names = "default";
  18. -
  19. - pmx_ge0: pmx-ge0 {
  20. - marvell,pins = "mpp0", "mpp1", "mpp2", "mpp3",
  21. - "mpp4", "mpp5", "mpp6", "mpp7",
  22. - "mpp8", "mpp9", "mpp10", "mpp11";
  23. - marvell,function = "ge0";
  24. - };
  25. -
  26. - pmx_ge1: pmx-ge1 {
  27. - marvell,pins = "mpp12", "mpp13", "mpp14", "mpp15",
  28. - "mpp16", "mpp17", "mpp18", "mpp19",
  29. - "mpp20", "mpp21", "mpp22", "mpp23";
  30. - marvell,function = "ge1";
  31. - };
  32. -
  33. - pmx_keys: pmx-keys {
  34. - marvell,pins = "mpp33";
  35. - marvell,function = "gpio";
  36. - };
  37. -
  38. - pmx_spi: pmx-spi {
  39. - marvell,pins = "mpp36", "mpp37", "mpp38", "mpp39";
  40. - marvell,function = "spi";
  41. - };
  42. -
  43. - pmx_phy_int: pmx-phy-int {
  44. - marvell,pins = "mpp32";
  45. - marvell,function = "gpio";
  46. - };
  47. - };
  48. -
  49. serial@12000 {
  50. status = "okay";
  51. };
  52. @@ -162,3 +128,37 @@
  53. };
  54. };
  55. };
  56. +
  57. +&pinctrl {
  58. + pinctrl-0 = <&pmx_phy_int>;
  59. + pinctrl-names = "default";
  60. +
  61. + pmx_ge0: pmx-ge0 {
  62. + marvell,pins = "mpp0", "mpp1", "mpp2", "mpp3",
  63. + "mpp4", "mpp5", "mpp6", "mpp7",
  64. + "mpp8", "mpp9", "mpp10", "mpp11";
  65. + marvell,function = "ge0";
  66. + };
  67. +
  68. + pmx_ge1: pmx-ge1 {
  69. + marvell,pins = "mpp12", "mpp13", "mpp14", "mpp15",
  70. + "mpp16", "mpp17", "mpp18", "mpp19",
  71. + "mpp20", "mpp21", "mpp22", "mpp23";
  72. + marvell,function = "ge1";
  73. + };
  74. +
  75. + pmx_keys: pmx-keys {
  76. + marvell,pins = "mpp33";
  77. + marvell,function = "gpio";
  78. + };
  79. +
  80. + pmx_spi: pmx-spi {
  81. + marvell,pins = "mpp36", "mpp37", "mpp38", "mpp39";
  82. + marvell,function = "spi";
  83. + };
  84. +
  85. + pmx_phy_int: pmx-phy-int {
  86. + marvell,pins = "mpp32";
  87. + marvell,function = "gpio";
  88. + };
  89. +};
  90. --- a/arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts
  91. +++ b/arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts
  92. @@ -51,37 +51,6 @@
  93. };
  94. internal-regs {
  95. - pinctrl: pin-ctrl@18000 {
  96. - poweroff_pin: poweroff-pin {
  97. - marvell,pins = "mpp24";
  98. - marvell,function = "gpio";
  99. - };
  100. -
  101. - power_button_pin: power-button-pin {
  102. - marvell,pins = "mpp44";
  103. - marvell,function = "gpio";
  104. - };
  105. -
  106. - reset_button_pin: reset-button-pin {
  107. - marvell,pins = "mpp45";
  108. - marvell,function = "gpio";
  109. - };
  110. - select_button_pin: select-button-pin {
  111. - marvell,pins = "mpp41";
  112. - marvell,function = "gpio";
  113. - };
  114. -
  115. - scroll_button_pin: scroll-button-pin {
  116. - marvell,pins = "mpp42";
  117. - marvell,function = "gpio";
  118. - };
  119. -
  120. - hdd_led_pin: hdd-led-pin {
  121. - marvell,pins = "mpp26";
  122. - marvell,function = "gpio";
  123. - };
  124. - };
  125. -
  126. serial@12000 {
  127. status = "okay";
  128. };
  129. @@ -282,3 +251,34 @@
  130. gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
  131. };
  132. };
  133. +
  134. +&pinctrl {
  135. + poweroff_pin: poweroff-pin {
  136. + marvell,pins = "mpp24";
  137. + marvell,function = "gpio";
  138. + };
  139. +
  140. + power_button_pin: power-button-pin {
  141. + marvell,pins = "mpp44";
  142. + marvell,function = "gpio";
  143. + };
  144. +
  145. + reset_button_pin: reset-button-pin {
  146. + marvell,pins = "mpp45";
  147. + marvell,function = "gpio";
  148. + };
  149. + select_button_pin: select-button-pin {
  150. + marvell,pins = "mpp41";
  151. + marvell,function = "gpio";
  152. + };
  153. +
  154. + scroll_button_pin: scroll-button-pin {
  155. + marvell,pins = "mpp42";
  156. + marvell,function = "gpio";
  157. + };
  158. +
  159. + hdd_led_pin: hdd-led-pin {
  160. + marvell,pins = "mpp26";
  161. + marvell,function = "gpio";
  162. + };
  163. +};
  164. --- a/arch/arm/boot/dts/armada-xp-mv78230.dtsi
  165. +++ b/arch/arm/boot/dts/armada-xp-mv78230.dtsi
  166. @@ -167,10 +167,6 @@
  167. };
  168. internal-regs {
  169. - pinctrl: pin-ctrl@18000 {
  170. - compatible = "marvell,mv78230-pinctrl";
  171. - };
  172. -
  173. gpio0: gpio@18100 {
  174. compatible = "marvell,orion-gpio";
  175. reg = <0x18100 0x40>;
  176. @@ -195,3 +191,7 @@
  177. };
  178. };
  179. };
  180. +
  181. +&pinctrl {
  182. + compatible = "marvell,mv78230-pinctrl";
  183. +};
  184. --- a/arch/arm/boot/dts/armada-xp-mv78260.dtsi
  185. +++ b/arch/arm/boot/dts/armada-xp-mv78260.dtsi
  186. @@ -251,10 +251,6 @@
  187. };
  188. internal-regs {
  189. - pinctrl: pin-ctrl@18000 {
  190. - compatible = "marvell,mv78260-pinctrl";
  191. - };
  192. -
  193. gpio0: gpio@18100 {
  194. compatible = "marvell,orion-gpio";
  195. reg = <0x18100 0x40>;
  196. @@ -298,3 +294,7 @@
  197. };
  198. };
  199. };
  200. +
  201. +&pinctrl {
  202. + compatible = "marvell,mv78260-pinctrl";
  203. +};
  204. --- a/arch/arm/boot/dts/armada-xp-mv78460.dtsi
  205. +++ b/arch/arm/boot/dts/armada-xp-mv78460.dtsi
  206. @@ -289,10 +289,6 @@
  207. };
  208. internal-regs {
  209. - pinctrl: pin-ctrl@18000 {
  210. - compatible = "marvell,mv78460-pinctrl";
  211. - };
  212. -
  213. gpio0: gpio@18100 {
  214. compatible = "marvell,orion-gpio";
  215. reg = <0x18100 0x40>;
  216. @@ -336,3 +332,7 @@
  217. };
  218. };
  219. };
  220. +
  221. +&pinctrl {
  222. + compatible = "marvell,mv78460-pinctrl";
  223. +};
  224. --- a/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts
  225. +++ b/arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts
  226. @@ -81,12 +81,7 @@
  227. serial@12100 {
  228. status = "okay";
  229. };
  230. - pinctrl: pin-ctrl@18000 {
  231. - led_pins: led-pins-0 {
  232. - marvell,pins = "mpp49", "mpp51", "mpp53";
  233. - marvell,function = "gpio";
  234. - };
  235. - };
  236. +
  237. leds {
  238. compatible = "gpio-leds";
  239. pinctrl-names = "default";
  240. @@ -191,3 +186,10 @@
  241. };
  242. };
  243. };
  244. +
  245. +&pinctrl {
  246. + led_pins: led-pins-0 {
  247. + marvell,pins = "mpp49", "mpp51", "mpp53";
  248. + marvell,function = "gpio";
  249. + };
  250. +};