008-armada-xp_consolidate_pinctrl_node.patch 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. From b324fa60ac94b9c00c59f621743715c036d134fa Mon Sep 17 00:00:00 2001
  2. From: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
  3. Date: Fri, 19 Sep 2014 21:07:09 +0200
  4. Subject: ARM: mvebu: armada-xp: Consolidate pinctrl node
  5. All current Armada XP SoCs have their pin controller at 0x18000/0x38.
  6. Move the common properties of pinctrl nodes to armada-xp.dtsi to allow
  7. to share pinctrl settings later.
  8. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
  9. Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  10. Tested-By: Benoit Masson <yahoo@perenite.com>
  11. Signed-off-by: Jason Cooper <jason@lakedaemon.net>
  12. --- a/arch/arm/boot/dts/armada-xp-mv78230.dtsi
  13. +++ b/arch/arm/boot/dts/armada-xp-mv78230.dtsi
  14. @@ -169,13 +169,6 @@
  15. internal-regs {
  16. pinctrl {
  17. compatible = "marvell,mv78230-pinctrl";
  18. - reg = <0x18000 0x38>;
  19. -
  20. - sdio_pins: sdio-pins {
  21. - marvell,pins = "mpp30", "mpp31", "mpp32",
  22. - "mpp33", "mpp34", "mpp35";
  23. - marvell,function = "sd0";
  24. - };
  25. };
  26. gpio0: gpio@18100 {
  27. --- a/arch/arm/boot/dts/armada-xp-mv78260.dtsi
  28. +++ b/arch/arm/boot/dts/armada-xp-mv78260.dtsi
  29. @@ -253,13 +253,6 @@
  30. internal-regs {
  31. pinctrl {
  32. compatible = "marvell,mv78260-pinctrl";
  33. - reg = <0x18000 0x38>;
  34. -
  35. - sdio_pins: sdio-pins {
  36. - marvell,pins = "mpp30", "mpp31", "mpp32",
  37. - "mpp33", "mpp34", "mpp35";
  38. - marvell,function = "sd0";
  39. - };
  40. };
  41. gpio0: gpio@18100 {
  42. --- a/arch/arm/boot/dts/armada-xp-mv78460.dtsi
  43. +++ b/arch/arm/boot/dts/armada-xp-mv78460.dtsi
  44. @@ -291,13 +291,6 @@
  45. internal-regs {
  46. pinctrl {
  47. compatible = "marvell,mv78460-pinctrl";
  48. - reg = <0x18000 0x38>;
  49. -
  50. - sdio_pins: sdio-pins {
  51. - marvell,pins = "mpp30", "mpp31", "mpp32",
  52. - "mpp33", "mpp34", "mpp35";
  53. - marvell,function = "sd0";
  54. - };
  55. };
  56. gpio0: gpio@18100 {
  57. --- a/arch/arm/boot/dts/armada-xp.dtsi
  58. +++ b/arch/arm/boot/dts/armada-xp.dtsi
  59. @@ -72,6 +72,16 @@
  60. status = "disabled";
  61. };
  62. + pinctrl {
  63. + reg = <0x18000 0x38>;
  64. +
  65. + sdio_pins: sdio-pins {
  66. + marvell,pins = "mpp30", "mpp31", "mpp32",
  67. + "mpp33", "mpp34", "mpp35";
  68. + marvell,function = "sd0";
  69. + };
  70. + };
  71. +
  72. system-controller@18200 {
  73. compatible = "marvell,armada-370-xp-system-controller";
  74. reg = <0x18200 0x500>;