Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'amlogic-dt64-2' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/khilman/linux-amlogic into next/dt

Pull "Amlogic 64-bit DT updates for v4.16, round 2" from Kevin Hilman:

This adds a few more basics (clock, pinctrl, PWM, reset) for the new AXG
family of Amlogic SoCs.

* tag 'amlogic-dt64-2' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/khilman/linux-amlogic:
arm64: dts: meson-axg: add new reset DT node
ARM64: dts: meson-axg: add PWM DT info for Meson-Axg SoC
ARM64: dts: meson-axg: add pinctrl DT info for Meson-AXG SoC
documentation: Add compatibles for Amlogic Meson AXG pin controllers
arm64: dts: meson-axg: add clock DT info for Meson AXG SoC

+177
+2
Documentation/devicetree/bindings/pinctrl/meson,pinctrl.txt
··· 9 9 "amlogic,meson-gxbb-aobus-pinctrl" 10 10 "amlogic,meson-gxl-periphs-pinctrl" 11 11 "amlogic,meson-gxl-aobus-pinctrl" 12 + "amlogic,meson-axg-periphs-pinctrl" 13 + "amlogic,meson-axg-aobus-pinctrl" 12 14 - reg: address and size of registers controlling irq functionality 13 15 14 16 === GPIO sub-nodes ===
+175
arch/arm64/boot/dts/amlogic/meson-axg.dtsi
··· 120 120 #size-cells = <2>; 121 121 ranges = <0x0 0x0 0x0 0xffd00000 0x0 0x25000>; 122 122 123 + pwm_ab: pwm@1b000 { 124 + compatible = "amlogic,meson-axg-ee-pwm"; 125 + reg = <0x0 0x1b000 0x0 0x20>; 126 + #pwm-cells = <3>; 127 + status = "disabled"; 128 + }; 129 + 130 + pwm_cd: pwm@1a000 { 131 + compatible = "amlogic,meson-axg-ee-pwm"; 132 + reg = <0x0 0x1a000 0x0 0x20>; 133 + #pwm-cells = <3>; 134 + status = "disabled"; 135 + }; 136 + 137 + reset: reset-controller@1004 { 138 + compatible = "amlogic,meson-axg-reset"; 139 + reg = <0x0 0x01004 0x0 0x9c>; 140 + #reset-cells = <1>; 141 + }; 142 + 123 143 uart_A: serial@24000 { 124 144 compatible = "amlogic,meson-gx-uart", "amlogic,meson-uart"; 125 145 reg = <0x0 0x24000 0x0 0x14>; ··· 168 148 #address-cells = <0>; 169 149 }; 170 150 151 + hiubus: bus@ff63c000 { 152 + compatible = "simple-bus"; 153 + reg = <0x0 0xff63c000 0x0 0x1c00>; 154 + #address-cells = <2>; 155 + #size-cells = <2>; 156 + ranges = <0x0 0x0 0x0 0xff63c000 0x0 0x1c00>; 157 + 158 + clkc: clock-controller@0 { 159 + compatible = "amlogic,axg-clkc"; 160 + #clock-cells = <1>; 161 + reg = <0x0 0x0 0x0 0x320>; 162 + }; 163 + }; 164 + 171 165 mailbox: mailbox@ff63dc00 { 172 166 compatible = "amlogic,meson-gx-mhu", "amlogic,meson-gxbb-mhu"; 173 167 reg = <0 0xff63dc00 0 0x400>; ··· 189 155 <GIC_SPI 209 IRQ_TYPE_EDGE_RISING>, 190 156 <GIC_SPI 210 IRQ_TYPE_EDGE_RISING>; 191 157 #mbox-cells = <1>; 158 + }; 159 + 160 + periphs: periphs@ff634000 { 161 + compatible = "simple-bus"; 162 + reg = <0x0 0xff634000 0x0 0x2000>; 163 + #address-cells = <2>; 164 + #size-cells = <2>; 165 + ranges = <0x0 0x0 0x0 0xff634000 0x0 0x2000>; 166 + 167 + pinctrl_periphs: pinctrl@480 { 168 + compatible = "amlogic,meson-axg-periphs-pinctrl"; 169 + #address-cells = <2>; 170 + #size-cells = <2>; 171 + ranges; 172 + 173 + gpio: bank@480 { 174 + reg = <0x0 0x00480 0x0 0x40>, 175 + <0x0 0x004e8 0x0 0x14>, 176 + <0x0 0x00520 0x0 0x14>, 177 + <0x0 0x00430 0x0 0x3c>; 178 + reg-names = "mux", "pull", "pull-enable", "gpio"; 179 + gpio-controller; 180 + #gpio-cells = <2>; 181 + gpio-ranges = <&pinctrl_periphs 0 0 86>; 182 + }; 183 + 184 + pwm_a_a_pins: pwm_a_a { 185 + mux { 186 + groups = "pwm_a_a"; 187 + function = "pwm_a"; 188 + }; 189 + }; 190 + 191 + pwm_a_x18_pins: pwm_a_x18 { 192 + mux { 193 + groups = "pwm_a_x18"; 194 + function = "pwm_a"; 195 + }; 196 + }; 197 + 198 + pwm_a_x20_pins: pwm_a_x20 { 199 + mux { 200 + groups = "pwm_a_x20"; 201 + function = "pwm_a"; 202 + }; 203 + }; 204 + 205 + pwm_a_z_pins: pwm_a_z { 206 + mux { 207 + groups = "pwm_a_z"; 208 + function = "pwm_a"; 209 + }; 210 + }; 211 + 212 + pwm_b_a_pins: pwm_b_a { 213 + mux { 214 + groups = "pwm_b_a"; 215 + function = "pwm_b"; 216 + }; 217 + }; 218 + 219 + pwm_b_x_pins: pwm_b_x { 220 + mux { 221 + groups = "pwm_b_x"; 222 + function = "pwm_b"; 223 + }; 224 + }; 225 + 226 + pwm_b_z_pins: pwm_b_z { 227 + mux { 228 + groups = "pwm_b_z"; 229 + function = "pwm_b"; 230 + }; 231 + }; 232 + 233 + pwm_c_a_pins: pwm_c_a { 234 + mux { 235 + groups = "pwm_c_a"; 236 + function = "pwm_c"; 237 + }; 238 + }; 239 + 240 + pwm_c_x10_pins: pwm_c_x10 { 241 + mux { 242 + groups = "pwm_c_x10"; 243 + function = "pwm_c"; 244 + }; 245 + }; 246 + 247 + pwm_c_x17_pins: pwm_c_x17 { 248 + mux { 249 + groups = "pwm_c_x17"; 250 + function = "pwm_c"; 251 + }; 252 + }; 253 + 254 + pwm_d_x11_pins: pwm_d_x11 { 255 + mux { 256 + groups = "pwm_d_x11"; 257 + function = "pwm_d"; 258 + }; 259 + }; 260 + 261 + pwm_d_x16_pins: pwm_d_x16 { 262 + mux { 263 + groups = "pwm_d_x16"; 264 + function = "pwm_d"; 265 + }; 266 + }; 267 + }; 192 268 }; 193 269 194 270 sram: sram@fffc0000 { ··· 325 181 #address-cells = <2>; 326 182 #size-cells = <2>; 327 183 ranges = <0x0 0x0 0x0 0xff800000 0x0 0x100000>; 184 + 185 + pinctrl_aobus: pinctrl@14 { 186 + compatible = "amlogic,meson-axg-aobus-pinctrl"; 187 + #address-cells = <2>; 188 + #size-cells = <2>; 189 + ranges; 190 + 191 + gpio_ao: bank@14 { 192 + reg = <0x0 0x00014 0x0 0x8>, 193 + <0x0 0x0002c 0x0 0x4>, 194 + <0x0 0x00024 0x0 0x8>; 195 + reg-names = "mux", "pull", "gpio"; 196 + gpio-controller; 197 + #gpio-cells = <2>; 198 + gpio-ranges = <&pinctrl_aobus 0 0 15>; 199 + }; 200 + }; 201 + 202 + pwm_AO_ab: pwm@7000 { 203 + compatible = "amlogic,meson-axg-ao-pwm"; 204 + reg = <0x0 0x07000 0x0 0x20>; 205 + #pwm-cells = <3>; 206 + status = "disabled"; 207 + }; 208 + 209 + pwm_AO_cd: pwm@2000 { 210 + compatible = "amlogic,axg-ao-pwm"; 211 + reg = <0x0 0x02000 0x0 0x20>; 212 + #pwm-cells = <3>; 213 + status = "disabled"; 214 + }; 328 215 329 216 uart_AO: serial@3000 { 330 217 compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";