415-ARM-dts-armada388-clearfog-document-MPP-usage.patch 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. From 09a0122c74ec076e08512f1b00b7ccb8a450282f Mon Sep 17 00:00:00 2001
  2. From: Russell King <rmk+kernel@arm.linux.org.uk>
  3. Date: Tue, 29 Nov 2016 10:15:43 +0000
  4. Subject: ARM: dts: armada388-clearfog: document MPP usage
  5. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  6. ---
  7. arch/arm/boot/dts/armada-388-clearfog-base.dts | 51 ++++++++++++++++++++++++++
  8. arch/arm/boot/dts/armada-388-clearfog.dts | 50 +++++++++++++++++++++++++
  9. 2 files changed, 101 insertions(+)
  10. --- a/arch/arm/boot/dts/armada-388-clearfog-base.dts
  11. +++ b/arch/arm/boot/dts/armada-388-clearfog-base.dts
  12. @@ -108,3 +108,54 @@
  13. marvell,function = "gpio";
  14. };
  15. };
  16. +
  17. +/*
  18. +MPP
  19. +18: pu gpio pca9655 int
  20. +19: gpio phy reset
  21. +20: pu gpio sd0 detect
  22. +21: sd0:cmd
  23. +22: pd gpio mikro int
  24. +23:
  25. +
  26. +24: ua1:rxd mikro rx
  27. +25: ua1:txd mikro tx
  28. +26: pu i2c1:sck
  29. +27: pu i2c1:sda
  30. +28: sd0:clk
  31. +29: pd gpio mikro rst
  32. +30:
  33. +31:
  34. +
  35. +32:
  36. +33:
  37. +34:
  38. +35:
  39. +36:
  40. +37: sd0:d3
  41. +38: sd0:d0
  42. +39: sd0:d1
  43. +
  44. +40: sd0:d2
  45. +41:
  46. +42:
  47. +43: spi1:cs2 mikro cs
  48. +44: gpio rear button sw3
  49. +45: ref:clk_out0 phy#0 clock
  50. +46: ref:clk_out1 phy#1 clock
  51. +47:
  52. +
  53. +48: gpio J18 spare gpio
  54. +49: gpio U10 I2C_IRQ(GNSS)
  55. +50: gpio board id?
  56. +51:
  57. +52:
  58. +53:
  59. +54: gpio mikro pwm
  60. +55:
  61. +
  62. +56: pu spi1:mosi mikro mosi
  63. +57: pd spi1:sck mikro sck
  64. +58: spi1:miso mikro miso
  65. +59:
  66. +*/
  67. --- a/arch/arm/boot/dts/armada-388-clearfog.dts
  68. +++ b/arch/arm/boot/dts/armada-388-clearfog.dts
  69. @@ -290,3 +290,53 @@
  70. */
  71. pinctrl-0 = <&spi1_pins &clearfog_spi1_cs_pins &mikro_spi_pins>;
  72. };
  73. +/*
  74. ++#define A38x_CUSTOMER_BOARD_1_MPP16_23 0x00400011
  75. +MPP18: gpio ? (pca9655 int?)
  76. +MPP19: gpio ? (clkreq?)
  77. +MPP20: gpio ? (sd0 detect)
  78. +MPP21: sd0:cmd x sd0
  79. +MPP22: gpio x mikro int
  80. +MPP23: gpio x switch irq
  81. ++#define A38x_CUSTOMER_BOARD_1_MPP24_31 0x22043333
  82. +MPP24: ua1:rxd x mikro rx
  83. +MPP25: ua1:txd x mikro tx
  84. +MPP26: i2c1:sck x mikro sck
  85. +MPP27: i2c1:sda x mikro sda
  86. +MPP28: sd0:clk x sd0
  87. +MPP29: gpio x mikro rst
  88. +MPP30: ge1:txd2 ? (config)
  89. +MPP31: ge1:txd3 ? (config)
  90. ++#define A38x_CUSTOMER_BOARD_1_MPP32_39 0x44400002
  91. +MPP32: ge1:txctl ? (unused)
  92. +MPP33: gpio ? (pic_com0)
  93. +MPP34: gpio x rear button (pic_com1)
  94. +MPP35: gpio ? (pic_com2)
  95. +MPP36: gpio ? (unused)
  96. +MPP37: sd0:d3 x sd0
  97. +MPP38: sd0:d0 x sd0
  98. +MPP39: sd0:d1 x sd0
  99. ++#define A38x_CUSTOMER_BOARD_1_MPP40_47 0x41144004
  100. +MPP40: sd0:d2 x sd0
  101. +MPP41: gpio x switch reset
  102. +MPP42: gpio ? sw1-1
  103. +MPP43: spi1:cs2 x mikro cs
  104. +MPP44: sata3:prsnt ? (unused)
  105. +MPP45: ref:clk_out0 ?
  106. +MPP46: ref:clk_out1 x switch clk
  107. +MPP47: 4 ? (unused)
  108. ++#define A38x_CUSTOMER_BOARD_1_MPP48_55 0x40333333
  109. +MPP48: tdm:pclk
  110. +MPP49: tdm:fsync
  111. +MPP50: tdm:drx
  112. +MPP51: tdm:dtx
  113. +MPP52: tdm:int
  114. +MPP53: tdm:rst
  115. +MPP54: gpio ? (pwm)
  116. +MPP55: spi1:cs1 x slic
  117. ++#define A38x_CUSTOMER_BOARD_1_MPP56_63 0x00004444
  118. +MPP56: spi1:mosi x mikro mosi
  119. +MPP57: spi1:sck x mikro sck
  120. +MPP58: spi1:miso x mikro miso
  121. +MPP59: spi1:cs0 x w25q32
  122. +*/