020-ARM-mvebu-Add-a-number-of-pinctrl-functions.patch 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. From 91b4c91f919abffa72cbf7545a944252f8e4f775 Mon Sep 17 00:00:00 2001
  2. From: Maxime Ripard <[email protected]>
  3. Date: Thu, 8 Jan 2015 18:38:08 +0100
  4. Subject: [PATCH 3/4] ARM: mvebu: Add a number of pinctrl functions
  5. Some pinctrl functions can be shared with all DTS out there, since they are
  6. generic, SoC-wide muxing options. Add a number of these to the DTSI to avoid
  7. duplication.
  8. Signed-off-by: Maxime Ripard <[email protected]>
  9. Acked-by: Gregory CLEMENT <[email protected]>
  10. Signed-off-by: Gregory CLEMENT <[email protected]>
  11. Signed-off-by: Andrew Lunn <[email protected]>
  12. ---
  13. arch/arm/boot/dts/armada-38x.dtsi | 39 +++++++++++++++++++++++++++++++++++++++
  14. 1 file changed, 39 insertions(+)
  15. diff --git a/arch/arm/boot/dts/armada-38x.dtsi b/arch/arm/boot/dts/armada-38x.dtsi
  16. index 40200084c6c8..98885c58be29 100644
  17. --- a/arch/arm/boot/dts/armada-38x.dtsi
  18. +++ b/arch/arm/boot/dts/armada-38x.dtsi
  19. @@ -195,6 +195,45 @@
  20. pinctrl@18000 {
  21. reg = <0x18000 0x20>;
  22. +
  23. + ge0_rgmii_pins: ge-rgmii-pins-0 {
  24. + marvell,pins = "mpp6", "mpp7", "mpp8",
  25. + "mpp9", "mpp10", "mpp11",
  26. + "mpp12", "mpp13", "mpp14",
  27. + "mpp15", "mpp16", "mpp17";
  28. + marvell,function = "ge0";
  29. + };
  30. +
  31. + i2c0_pins: i2c-pins-0 {
  32. + marvell,pins = "mpp2", "mpp3";
  33. + marvell,function = "i2c0";
  34. + };
  35. +
  36. + mdio_pins: mdio-pins {
  37. + marvell,pins = "mpp4", "mpp5";
  38. + marvell,function = "ge";
  39. + };
  40. +
  41. + ref_clk0_pins: ref-clk-pins-0 {
  42. + marvell,pins = "mpp45";
  43. + marvell,function = "ref";
  44. + };
  45. +
  46. + spi1_pins: spi-pins-1 {
  47. + marvell,pins = "mpp56", "mpp57", "mpp58",
  48. + "mpp59";
  49. + marvell,function = "spi1";
  50. + };
  51. +
  52. + uart0_pins: uart-pins-0 {
  53. + marvell,pins = "mpp0", "mpp1";
  54. + marvell,function = "ua0";
  55. + };
  56. +
  57. + uart1_pins: uart-pins-1 {
  58. + marvell,pins = "mpp19", "mpp20";
  59. + marvell,function = "ua1";
  60. + };
  61. };
  62. gpio0: gpio@18100 {
  63. --
  64. 2.2.1