0101-reset-mediatek-add-reset-controller-dt-bindings-requ.patch 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. From 5d6a82632eb7258c8ca49cc96c18b8b4071b6639 Mon Sep 17 00:00:00 2001
  2. From: Sean Wang <[email protected]>
  3. Date: Wed, 20 Sep 2017 17:40:16 +0800
  4. Subject: [PATCH 101/224] reset: mediatek: add reset controller dt-bindings
  5. required header for MT7622 SoC
  6. Add the reset controller dt-bindings exported from infracfg, pericfg,
  7. hifsys and ethsys which could be found on MT7622 SoC. So that we can
  8. reference them from within a device-tree file.
  9. Signed-off-by: Sean Wang <[email protected]>
  10. Signed-off-by: Philipp Zabel <[email protected]>
  11. ---
  12. include/dt-bindings/reset/mt7622-reset.h | 94 ++++++++++++++++++++++++++++++++
  13. 1 file changed, 94 insertions(+)
  14. create mode 100644 include/dt-bindings/reset/mt7622-reset.h
  15. --- /dev/null
  16. +++ b/include/dt-bindings/reset/mt7622-reset.h
  17. @@ -0,0 +1,94 @@
  18. +/*
  19. + * Copyright (c) 2017 MediaTek Inc.
  20. + * Author: Sean Wang <[email protected]>
  21. + *
  22. + * This program is free software; you can redistribute it and/or modify
  23. + * it under the terms of the GNU General Public License version 2 as
  24. + * published by the Free Software Foundation.
  25. + *
  26. + * This program is distributed in the hope that it will be useful,
  27. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  28. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  29. + * GNU General Public License for more details.
  30. + */
  31. +
  32. +#ifndef _DT_BINDINGS_RESET_CONTROLLER_MT7622
  33. +#define _DT_BINDINGS_RESET_CONTROLLER_MT7622
  34. +
  35. +/* INFRACFG resets */
  36. +#define MT7622_INFRA_EMI_REG_RST 0
  37. +#define MT7622_INFRA_DRAMC0_A0_RST 1
  38. +#define MT7622_INFRA_APCIRQ_EINT_RST 3
  39. +#define MT7622_INFRA_APXGPT_RST 4
  40. +#define MT7622_INFRA_SCPSYS_RST 5
  41. +#define MT7622_INFRA_PMIC_WRAP_RST 7
  42. +#define MT7622_INFRA_IRRX_RST 9
  43. +#define MT7622_INFRA_EMI_RST 16
  44. +#define MT7622_INFRA_WED0_RST 17
  45. +#define MT7622_INFRA_DRAMC_RST 18
  46. +#define MT7622_INFRA_CCI_INTF_RST 19
  47. +#define MT7622_INFRA_TRNG_RST 21
  48. +#define MT7622_INFRA_SYSIRQ_RST 22
  49. +#define MT7622_INFRA_WED1_RST 25
  50. +
  51. +/* PERICFG Subsystem resets */
  52. +#define MT7622_PERI_UART0_SW_RST 0
  53. +#define MT7622_PERI_UART1_SW_RST 1
  54. +#define MT7622_PERI_UART2_SW_RST 2
  55. +#define MT7622_PERI_UART3_SW_RST 3
  56. +#define MT7622_PERI_UART4_SW_RST 4
  57. +#define MT7622_PERI_BTIF_SW_RST 6
  58. +#define MT7622_PERI_PWM_SW_RST 8
  59. +#define MT7622_PERI_AUXADC_SW_RST 10
  60. +#define MT7622_PERI_DMA_SW_RST 11
  61. +#define MT7622_PERI_IRTX_SW_RST 13
  62. +#define MT7622_PERI_NFI_SW_RST 14
  63. +#define MT7622_PERI_THERM_SW_RST 16
  64. +#define MT7622_PERI_MSDC0_SW_RST 19
  65. +#define MT7622_PERI_MSDC1_SW_RST 20
  66. +#define MT7622_PERI_I2C0_SW_RST 22
  67. +#define MT7622_PERI_I2C1_SW_RST 23
  68. +#define MT7622_PERI_I2C2_SW_RST 24
  69. +#define MT7622_PERI_SPI0_SW_RST 33
  70. +#define MT7622_PERI_SPI1_SW_RST 34
  71. +#define MT7622_PERI_FLASHIF_SW_RST 36
  72. +
  73. +/* TOPRGU resets */
  74. +#define MT7622_TOPRGU_INFRA_RST 0
  75. +#define MT7622_TOPRGU_ETHDMA_RST 1
  76. +#define MT7622_TOPRGU_DDRPHY_RST 6
  77. +#define MT7622_TOPRGU_INFRA_AO_RST 8
  78. +#define MT7622_TOPRGU_CONN_RST 9
  79. +#define MT7622_TOPRGU_APMIXED_RST 10
  80. +#define MT7622_TOPRGU_CONN_MCU_RST 12
  81. +
  82. +/* PCIe/SATA Subsystem resets */
  83. +#define MT7622_SATA_PHY_REG_RST 12
  84. +#define MT7622_SATA_PHY_SW_RST 13
  85. +#define MT7622_SATA_AXI_BUS_RST 15
  86. +#define MT7622_PCIE1_CORE_RST 19
  87. +#define MT7622_PCIE1_MMIO_RST 20
  88. +#define MT7622_PCIE1_HRST 21
  89. +#define MT7622_PCIE1_USER_RST 22
  90. +#define MT7622_PCIE1_PIPE_RST 23
  91. +#define MT7622_PCIE0_CORE_RST 27
  92. +#define MT7622_PCIE0_MMIO_RST 28
  93. +#define MT7622_PCIE0_HRST 29
  94. +#define MT7622_PCIE0_USER_RST 30
  95. +#define MT7622_PCIE0_PIPE_RST 31
  96. +
  97. +/* SSUSB Subsystem resets */
  98. +#define MT7622_SSUSB_PHY_PWR_RST 3
  99. +#define MT7622_SSUSB_MAC_PWR_RST 4
  100. +
  101. +/* ETHSYS Subsystem resets */
  102. +#define MT7622_ETHSYS_SYS_RST 0
  103. +#define MT7622_ETHSYS_MCM_RST 2
  104. +#define MT7622_ETHSYS_HSDMA_RST 5
  105. +#define MT7622_ETHSYS_FE_RST 6
  106. +#define MT7622_ETHSYS_GMAC_RST 23
  107. +#define MT7622_ETHSYS_EPHY_RST 24
  108. +#define MT7622_ETHSYS_CRYPTO_RST 29
  109. +#define MT7622_ETHSYS_PPE_RST 31
  110. +
  111. +#endif /* _DT_BINDINGS_RESET_CONTROLLER_MT7622 */