|
6 | 6 | #include <dt-bindings/interrupt-controller/irq.h>
|
7 | 7 | #include <dt-bindings/interrupt-controller/arm-gic.h>
|
8 | 8 | #include <dt-bindings/gpio/gpio.h>
|
| 9 | +#include <dt-bindings/pinctrl/amlogic,pinctrl.h> |
9 | 10 | / {
|
10 | 11 | cpus {
|
11 | 12 | #address-cells = <2>;
|
|
92 | 93 | clock-names = "xtal", "pclk", "baud";
|
93 | 94 | status = "disabled";
|
94 | 95 | };
|
| 96 | + |
| 97 | + periphs_pinctrl: pinctrl@4000 { |
| 98 | + compatible = "amlogic,pinctrl-s6"; |
| 99 | + #address-cells = <2>; |
| 100 | + #size-cells = <2>; |
| 101 | + ranges = <0x0 0x0 0x0 0x4000 0x0 0x340>; |
| 102 | + |
| 103 | + gpioz: gpio@c0 { |
| 104 | + reg = <0 0xc0 0 0x20>, <0 0x18 0 0x8>; |
| 105 | + reg-names = "gpio", "mux"; |
| 106 | + gpio-controller; |
| 107 | + #gpio-cells = <2>; |
| 108 | + gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_Z<<8) 16>; |
| 109 | + }; |
| 110 | + |
| 111 | + gpiox: gpio@100 { |
| 112 | + reg = <0 0x100 0 0x30>, <0 0xc 0 0x8>; |
| 113 | + reg-names = "gpio", "mux"; |
| 114 | + gpio-controller; |
| 115 | + #gpio-cells = <2>; |
| 116 | + gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_X<<8) 20>; |
| 117 | + }; |
| 118 | + |
| 119 | + gpioh: gpio@140 { |
| 120 | + reg = <0 0x140 0 0x20>, <0 0x2c 0 0x8>; |
| 121 | + reg-names = "gpio", "mux"; |
| 122 | + gpio-controller; |
| 123 | + #gpio-cells = <2>; |
| 124 | + gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_H<<8) 9>; |
| 125 | + }; |
| 126 | + |
| 127 | + gpiod: gpio@180 { |
| 128 | + reg = <0 0x180 0 0x20>, <0 0x8 0 0x4>; |
| 129 | + reg-names = "gpio", "mux"; |
| 130 | + gpio-controller; |
| 131 | + #gpio-cells = <2>; |
| 132 | + gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_D<<8) 7>; |
| 133 | + }; |
| 134 | + |
| 135 | + gpiof: gpio@1a0 { |
| 136 | + reg = <0 0x1a0 0 0x20>, <0 0x20 0 0x4>; |
| 137 | + reg-names = "gpio", "mux"; |
| 138 | + gpio-controller; |
| 139 | + #gpio-cells = <2>; |
| 140 | + gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_F<<8) 5>; |
| 141 | + }; |
| 142 | + |
| 143 | + gpioe: gpio@1c0 { |
| 144 | + reg = <0 0x1c0 0 0x20>, <0 0x48 0 0x4>; |
| 145 | + reg-names = "gpio", "mux"; |
| 146 | + gpio-controller; |
| 147 | + #gpio-cells = <2>; |
| 148 | + gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_E<<8) 3>; |
| 149 | + }; |
| 150 | + |
| 151 | + gpioc: gpio@200 { |
| 152 | + reg = <0 0x200 0 0x20>, <0 0x24 0 0x4>; |
| 153 | + reg-names = "gpio", "mux"; |
| 154 | + gpio-controller; |
| 155 | + #gpio-cells = <2>; |
| 156 | + gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_C<<8) 8>; |
| 157 | + }; |
| 158 | + |
| 159 | + gpiob: gpio@240 { |
| 160 | + reg = <0 0x240 0 0x20>, <0 0x0 0 0x8>; |
| 161 | + reg-names = "gpio", "mux"; |
| 162 | + gpio-controller; |
| 163 | + #gpio-cells = <2>; |
| 164 | + gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_B<<8) 14>; |
| 165 | + }; |
| 166 | + |
| 167 | + gpioa: gpio@280 { |
| 168 | + reg = <0 0x280 0 0x20>, <0 0x40 0 0x8>; |
| 169 | + reg-names = "gpio", "mux"; |
| 170 | + gpio-controller; |
| 171 | + #gpio-cells = <2>; |
| 172 | + gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_A<<8) 16>; |
| 173 | + }; |
| 174 | + |
| 175 | + test_n: gpio@2c0 { |
| 176 | + reg = <0 0x2c0 0 0x20>; |
| 177 | + reg-names = "gpio"; |
| 178 | + gpio-controller; |
| 179 | + #gpio-cells = <2>; |
| 180 | + gpio-ranges = |
| 181 | + <&periphs_pinctrl 0 (AMLOGIC_GPIO_TEST_N<<8) 1>; |
| 182 | + }; |
| 183 | + |
| 184 | + gpiocc: gpio@300 { |
| 185 | + reg = <0 0x300 0 0x20>, <0 0x14 0 0x4>; |
| 186 | + reg-names = "gpio", "mux"; |
| 187 | + gpio-controller; |
| 188 | + #gpio-cells = <2>; |
| 189 | + gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_CC<<8) 2>; |
| 190 | + }; |
| 191 | + }; |
95 | 192 | };
|
96 | 193 | };
|
97 | 194 | };
|
0 commit comments