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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. From 91b4c91f919abffa72cbf7545a944252f8e4f775 Mon Sep 17 00:00:00 2001
  2. From: Maxime Ripard <maxime.ripard@free-electrons.com>
  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 <maxime.ripard@free-electrons.com>
  9. Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
  10. Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
  11. Signed-off-by: Andrew Lunn <andrew@lunn.ch>
  12. ---
  13. arch/arm/boot/dts/armada-38x.dtsi | 39 +++++++++++++++++++++++++++++++++++++++
  14. 1 file changed, 39 insertions(+)
  15. --- a/arch/arm/boot/dts/armada-38x.dtsi
  16. +++ b/arch/arm/boot/dts/armada-38x.dtsi
  17. @@ -196,6 +196,45 @@
  18. pinctrl {
  19. compatible = "marvell,mv88f6820-pinctrl";
  20. reg = <0x18000 0x20>;
  21. +
  22. + ge0_rgmii_pins: ge-rgmii-pins-0 {
  23. + marvell,pins = "mpp6", "mpp7", "mpp8",
  24. + "mpp9", "mpp10", "mpp11",
  25. + "mpp12", "mpp13", "mpp14",
  26. + "mpp15", "mpp16", "mpp17";
  27. + marvell,function = "ge0";
  28. + };
  29. +
  30. + i2c0_pins: i2c-pins-0 {
  31. + marvell,pins = "mpp2", "mpp3";
  32. + marvell,function = "i2c0";
  33. + };
  34. +
  35. + mdio_pins: mdio-pins {
  36. + marvell,pins = "mpp4", "mpp5";
  37. + marvell,function = "ge";
  38. + };
  39. +
  40. + ref_clk0_pins: ref-clk-pins-0 {
  41. + marvell,pins = "mpp45";
  42. + marvell,function = "ref";
  43. + };
  44. +
  45. + spi1_pins: spi-pins-1 {
  46. + marvell,pins = "mpp56", "mpp57", "mpp58",
  47. + "mpp59";
  48. + marvell,function = "spi1";
  49. + };
  50. +
  51. + uart0_pins: uart-pins-0 {
  52. + marvell,pins = "mpp0", "mpp1";
  53. + marvell,function = "ua0";
  54. + };
  55. +
  56. + uart1_pins: uart-pins-1 {
  57. + marvell,pins = "mpp19", "mpp20";
  58. + marvell,function = "ua1";
  59. + };
  60. };
  61. gpio0: gpio@18100 {