|
39 | 39 | /** Interrupt Mask since rts5912 does not support GPIO_INT_LEVELS_LOGICAL*/
|
40 | 40 | #define RTS5912_GPIO_INTR_MASK (1U << 21 | 1U << 22 | 1U << 24 | 1U << 25 | 1U << 26)
|
41 | 41 |
|
| 42 | +/** |
| 43 | + * @brief Map GPIO signal name to devicetree binding. |
| 44 | + * |
| 45 | + * RTS5912 documentation uses octal GPIO pin |
| 46 | + * numbering. These macros do not require the user to do the transfer for gpio. |
| 47 | + * |
| 48 | + * Example DT usage: |
| 49 | + * |
| 50 | + * @code{.dts} |
| 51 | + * gpios = <RTS5912_GPIO102 (GPIO_OUTPUT)>; |
| 52 | + * @endcode |
| 53 | + * |
| 54 | + * @{ |
| 55 | + */ |
| 56 | + |
| 57 | +#define RTS5912_GPIO000 &gpioa 0 |
| 58 | +#define RTS5912_GPIO001 &gpioa 1 |
| 59 | +#define RTS5912_GPIO002 &gpioa 2 |
| 60 | +#define RTS5912_GPIO003 &gpioa 3 |
| 61 | +#define RTS5912_GPIO004 &gpioa 4 |
| 62 | +#define RTS5912_GPIO009 &gpioa 9 |
| 63 | +#define RTS5912_GPIO013 &gpioa 13 |
| 64 | +#define RTS5912_GPIO014 &gpioa 14 |
| 65 | +#define RTS5912_GPIO015 &gpioa 15 |
| 66 | +#define RTS5912_GPIO016 &gpiob 0 |
| 67 | +#define RTS5912_GPIO017 &gpiob 1 |
| 68 | +#define RTS5912_GPIO018 &gpiob 2 |
| 69 | +#define RTS5912_GPIO019 &gpiob 3 |
| 70 | +#define RTS5912_GPIO020 &gpiob 4 |
| 71 | +#define RTS5912_GPIO021 &gpiob 5 |
| 72 | +#define RTS5912_GPIO022 &gpiob 6 |
| 73 | +#define RTS5912_GPIO023 &gpiob 7 |
| 74 | +#define RTS5912_GPIO025 &gpiob 9 |
| 75 | +#define RTS5912_GPIO026 &gpiob 10 |
| 76 | +#define RTS5912_GPIO027 &gpiob 11 |
| 77 | +#define RTS5912_GPIO028 &gpiob 12 |
| 78 | +#define RTS5912_GPIO029 &gpiob 13 |
| 79 | +#define RTS5912_GPIO030 &gpiob 14 |
| 80 | +#define RTS5912_GPIO031 &gpiob 15 |
| 81 | +#define RTS5912_GPIO040 &gpioc 8 |
| 82 | +#define RTS5912_GPIO041 &gpioc 9 |
| 83 | +#define RTS5912_GPIO042 &gpioc 10 |
| 84 | +#define RTS5912_GPIO043 &gpioc 11 |
| 85 | +#define RTS5912_GPIO044 &gpioc 12 |
| 86 | +#define RTS5912_GPIO045 &gpioc 13 |
| 87 | +#define RTS5912_GPIO046 &gpioc 14 |
| 88 | +#define RTS5912_GPIO047 &gpioc 15 |
| 89 | +#define RTS5912_GPIO048 &gpiod 0 |
| 90 | +#define RTS5912_GPIO049 &gpiod 1 |
| 91 | +#define RTS5912_GPIO050 &gpiod 2 |
| 92 | +#define RTS5912_GPIO051 &gpiod 3 |
| 93 | +#define RTS5912_GPIO052 &gpiod 4 |
| 94 | +#define RTS5912_GPIO053 &gpiod 5 |
| 95 | +#define RTS5912_GPIO055 &gpiod 7 |
| 96 | +#define RTS5912_GPIO056 &gpiod 8 |
| 97 | +#define RTS5912_GPIO057 &gpiod 9 |
| 98 | +#define RTS5912_GPIO058 &gpiod 10 |
| 99 | +#define RTS5912_GPIO059 &gpiod 11 |
| 100 | +#define RTS5912_GPIO060 &gpiod 12 |
| 101 | +#define RTS5912_GPIO061 &gpiod 13 |
| 102 | +#define RTS5912_GPIO064 &gpioe 0 |
| 103 | +#define RTS5912_GPIO065 &gpioe 1 |
| 104 | +#define RTS5912_GPIO066 &gpioe 2 |
| 105 | +#define RTS5912_GPIO067 &gpioe 3 |
| 106 | +#define RTS5912_GPIO068 &gpioe 4 |
| 107 | +#define RTS5912_GPIO069 &gpioe 5 |
| 108 | +#define RTS5912_GPIO070 &gpioe 6 |
| 109 | +#define RTS5912_GPIO071 &gpioe 7 |
| 110 | +#define RTS5912_GPIO074 &gpioe 10 |
| 111 | +#define RTS5912_GPIO075 &gpioe 11 |
| 112 | +#define RTS5912_GPIO076 &gpioe 12 |
| 113 | +#define RTS5912_GPIO077 &gpioe 13 |
| 114 | +#define RTS5912_GPIO078 &gpioe 14 |
| 115 | +#define RTS5912_GPIO079 &gpioe 15 |
| 116 | +#define RTS5912_GPIO080 &gpiof 0 |
| 117 | +#define RTS5912_GPIO081 &gpiof 1 |
| 118 | +#define RTS5912_GPIO083 &gpiof 3 |
| 119 | +#define RTS5912_GPIO084 &gpiof 4 |
| 120 | +#define RTS5912_GPIO085 &gpiof 5 |
| 121 | +#define RTS5912_GPIO086 &gpiof 6 |
| 122 | +#define RTS5912_GPIO087 &gpiof 7 |
| 123 | +#define RTS5912_GPIO088 &gpiof 8 |
| 124 | +#define RTS5912_GPIO089 &gpiof 9 |
| 125 | +#define RTS5912_GPIO090 &gpiof 10 |
| 126 | +#define RTS5912_GPIO091 &gpiof 11 |
| 127 | +#define RTS5912_GPIO092 &gpiof 12 |
| 128 | +#define RTS5912_GPIO093 &gpiof 13 |
| 129 | +#define RTS5912_GPIO094 &gpiof 14 |
| 130 | +#define RTS5912_GPIO095 &gpiof 15 |
| 131 | +#define RTS5912_GPIO096 &gpiog 0 |
| 132 | +#define RTS5912_GPIO097 &gpiog 1 |
| 133 | +#define RTS5912_GPIO099 &gpiog 3 |
| 134 | +#define RTS5912_GPIO100 &gpiog 4 |
| 135 | +#define RTS5912_GPIO101 &gpiog 5 |
| 136 | +#define RTS5912_GPIO102 &gpiog 6 |
| 137 | +#define RTS5912_GPIO103 &gpiog 7 |
| 138 | +#define RTS5912_GPIO104 &gpiog 8 |
| 139 | +#define RTS5912_GPIO105 &gpiog 9 |
| 140 | +#define RTS5912_GPIO106 &gpiog 10 |
| 141 | +#define RTS5912_GPIO107 &gpiog 11 |
| 142 | +#define RTS5912_GPIO108 &gpiog 12 |
| 143 | +#define RTS5912_GPIO109 &gpiog 13 |
| 144 | +#define RTS5912_GPIO111 &gpiog 15 |
| 145 | +#define RTS5912_GPIO112 &gpioh 0 |
| 146 | +#define RTS5912_GPIO113 &gpioh 1 |
| 147 | +#define RTS5912_GPIO114 &gpioh 2 |
| 148 | +#define RTS5912_GPIO115 &gpioh 3 |
| 149 | +#define RTS5912_GPIO117 &gpioh 5 |
| 150 | +#define RTS5912_GPIO118 &gpioh 6 |
| 151 | +#define RTS5912_GPIO119 &gpioh 7 |
| 152 | +#define RTS5912_GPIO120 &gpioh 8 |
| 153 | +#define RTS5912_GPIO121 &gpioh 9 |
| 154 | +#define RTS5912_GPIO122 &gpioh 10 |
| 155 | +#define RTS5912_GPIO123 &gpioh 11 |
| 156 | +#define RTS5912_GPIO124 &gpioh 12 |
| 157 | +#define RTS5912_GPIO125 &gpioh 13 |
| 158 | +#define RTS5912_GPIO126 &gpioh 14 |
| 159 | +#define RTS5912_GPIO127 &gpioh 15 |
| 160 | +#define RTS5912_GPIO128 &gpioi 0 |
| 161 | +#define RTS5912_GPIO130 &gpioi 2 |
| 162 | +#define RTS5912_GPIO131 &gpioi 3 |
| 163 | + |
| 164 | +/** @} */ |
| 165 | + |
42 | 166 | #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_GPIO_REALTEK_GPIO_H_ */
|
0 commit comments