diff options
| author | Jaedon Shin <jaedon.shin@gmail.com> | 2016-08-18 22:52:27 -0400 |
|---|---|---|
| committer | Ralf Baechle <ralf@linux-mips.org> | 2016-10-06 11:31:02 -0400 |
| commit | c707844d4b876f74f2adf036f98f6787d76d2905 (patch) | |
| tree | e3d04f74bd4a5eadc5a0c623cac287c866c60f9b /arch/mips/boot/dts | |
| parent | 7bbe59ddbb9fae90eef0248416976d4e5f6b1a2d (diff) | |
MIPS: BMIPS: Add support GPIO device nodes
Adds GPIO device nodes to BCM7xxx MIPS based SoCs.
Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Jonas Gorski <jonas.gorski@gmail.com>
Cc: Kevin Cernekee <cernekee@gmail.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: MIPS Mailing List <linux-mips@linux-mips.org>
Cc: devicetree@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/14001/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/boot/dts')
| -rw-r--r-- | arch/mips/boot/dts/brcm/bcm7125.dtsi | 12 | ||||
| -rw-r--r-- | arch/mips/boot/dts/brcm/bcm7346.dtsi | 37 | ||||
| -rw-r--r-- | arch/mips/boot/dts/brcm/bcm7358.dtsi | 37 | ||||
| -rw-r--r-- | arch/mips/boot/dts/brcm/bcm7360.dtsi | 37 | ||||
| -rw-r--r-- | arch/mips/boot/dts/brcm/bcm7362.dtsi | 37 | ||||
| -rw-r--r-- | arch/mips/boot/dts/brcm/bcm7420.dtsi | 12 | ||||
| -rw-r--r-- | arch/mips/boot/dts/brcm/bcm7425.dtsi | 37 | ||||
| -rw-r--r-- | arch/mips/boot/dts/brcm/bcm7435.dtsi | 37 |
8 files changed, 246 insertions, 0 deletions
diff --git a/arch/mips/boot/dts/brcm/bcm7125.dtsi b/arch/mips/boot/dts/brcm/bcm7125.dtsi index 97191f6bca28..746ed06c85de 100644 --- a/arch/mips/boot/dts/brcm/bcm7125.dtsi +++ b/arch/mips/boot/dts/brcm/bcm7125.dtsi | |||
| @@ -197,6 +197,18 @@ | |||
| 197 | status = "disabled"; | 197 | status = "disabled"; |
| 198 | }; | 198 | }; |
| 199 | 199 | ||
| 200 | upg_gio: gpio@406700 { | ||
| 201 | compatible = "brcm,brcmstb-gpio"; | ||
| 202 | reg = <0x406700 0x80>; | ||
| 203 | #gpio-cells = <2>; | ||
| 204 | #interrupt-cells = <2>; | ||
| 205 | gpio-controller; | ||
| 206 | interrupt-controller; | ||
| 207 | interrupt-parent = <&upg_irq0_intc>; | ||
| 208 | interrupts = <6>; | ||
| 209 | brcm,gpio-bank-widths = <32 32 32 18>; | ||
| 210 | }; | ||
| 211 | |||
| 200 | ehci0: usb@488300 { | 212 | ehci0: usb@488300 { |
| 201 | compatible = "brcm,bcm7125-ehci", "generic-ehci"; | 213 | compatible = "brcm,bcm7125-ehci", "generic-ehci"; |
| 202 | reg = <0x488300 0x100>; | 214 | reg = <0x488300 0x100>; |
diff --git a/arch/mips/boot/dts/brcm/bcm7346.dtsi b/arch/mips/boot/dts/brcm/bcm7346.dtsi index eb7b19a32e3e..0105e4e5130b 100644 --- a/arch/mips/boot/dts/brcm/bcm7346.dtsi +++ b/arch/mips/boot/dts/brcm/bcm7346.dtsi | |||
| @@ -232,6 +232,43 @@ | |||
| 232 | status = "disabled"; | 232 | status = "disabled"; |
| 233 | }; | 233 | }; |
| 234 | 234 | ||
| 235 | aon_pm_l2_intc: interrupt-controller@408440 { | ||
| 236 | compatible = "brcm,l2-intc"; | ||
| 237 | reg = <0x408440 0x30>; | ||
| 238 | interrupt-controller; | ||
| 239 | #interrupt-cells = <1>; | ||
| 240 | interrupt-parent = <&periph_intc>; | ||
| 241 | interrupts = <53>; | ||
| 242 | brcm,irq-can-wake; | ||
| 243 | }; | ||
| 244 | |||
| 245 | upg_gio: gpio@406700 { | ||
| 246 | compatible = "brcm,brcmstb-gpio"; | ||
| 247 | reg = <0x406700 0x60>; | ||
| 248 | #gpio-cells = <2>; | ||
| 249 | #interrupt-cells = <2>; | ||
| 250 | gpio-controller; | ||
| 251 | interrupt-controller; | ||
| 252 | interrupt-parent = <&upg_irq0_intc>; | ||
| 253 | interrupts = <6>; | ||
| 254 | brcm,gpio-bank-widths = <32 32 16>; | ||
| 255 | }; | ||
| 256 | |||
| 257 | upg_gio_aon: gpio@408c00 { | ||
| 258 | compatible = "brcm,brcmstb-gpio"; | ||
| 259 | reg = <0x408c00 0x60>; | ||
| 260 | #gpio-cells = <2>; | ||
| 261 | #interrupt-cells = <2>; | ||
| 262 | gpio-controller; | ||
| 263 | interrupt-controller; | ||
| 264 | interrupt-parent = <&upg_aon_irq0_intc>; | ||
| 265 | interrupts = <6>; | ||
| 266 | interrupts-extended = <&upg_aon_irq0_intc 6>, | ||
| 267 | <&aon_pm_l2_intc 5>; | ||
| 268 | wakeup-source; | ||
| 269 | brcm,gpio-bank-widths = <27 32 2>; | ||
| 270 | }; | ||
| 271 | |||
| 235 | enet0: ethernet@430000 { | 272 | enet0: ethernet@430000 { |
| 236 | phy-mode = "internal"; | 273 | phy-mode = "internal"; |
| 237 | phy-handle = <&phy1>; | 274 | phy-handle = <&phy1>; |
diff --git a/arch/mips/boot/dts/brcm/bcm7358.dtsi b/arch/mips/boot/dts/brcm/bcm7358.dtsi index b2276b1e12d4..aec1b2e7e2ab 100644 --- a/arch/mips/boot/dts/brcm/bcm7358.dtsi +++ b/arch/mips/boot/dts/brcm/bcm7358.dtsi | |||
| @@ -216,6 +216,43 @@ | |||
| 216 | status = "disabled"; | 216 | status = "disabled"; |
| 217 | }; | 217 | }; |
| 218 | 218 | ||
| 219 | aon_pm_l2_intc: interrupt-controller@408240 { | ||
| 220 | compatible = "brcm,l2-intc"; | ||
| 221 | reg = <0x408240 0x30>; | ||
| 222 | interrupt-controller; | ||
| 223 | #interrupt-cells = <1>; | ||
| 224 | interrupt-parent = <&periph_intc>; | ||
| 225 | interrupts = <50>; | ||
| 226 | brcm,irq-can-wake; | ||
| 227 | }; | ||
| 228 | |||
| 229 | upg_gio: gpio@406500 { | ||
| 230 | compatible = "brcm,brcmstb-gpio"; | ||
| 231 | reg = <0x406500 0xa0>; | ||
| 232 | #gpio-cells = <2>; | ||
| 233 | #interrupt-cells = <2>; | ||
| 234 | gpio-controller; | ||
| 235 | interrupt-controller; | ||
| 236 | interrupt-parent = <&upg_irq0_intc>; | ||
| 237 | interrupts = <6>; | ||
| 238 | brcm,gpio-bank-widths = <32 32 32 29 4>; | ||
| 239 | }; | ||
| 240 | |||
| 241 | upg_gio_aon: gpio@408c00 { | ||
| 242 | compatible = "brcm,brcmstb-gpio"; | ||
| 243 | reg = <0x408c00 0x60>; | ||
| 244 | #gpio-cells = <2>; | ||
| 245 | #interrupt-cells = <2>; | ||
| 246 | gpio-controller; | ||
| 247 | interrupt-controller; | ||
| 248 | interrupt-parent = <&upg_aon_irq0_intc>; | ||
| 249 | interrupts = <6>; | ||
| 250 | interrupts-extended = <&upg_aon_irq0_intc 6>, | ||
| 251 | <&aon_pm_l2_intc 5>; | ||
| 252 | wakeup-source; | ||
| 253 | brcm,gpio-bank-widths = <21 32 2>; | ||
| 254 | }; | ||
| 255 | |||
| 219 | enet0: ethernet@430000 { | 256 | enet0: ethernet@430000 { |
| 220 | phy-mode = "internal"; | 257 | phy-mode = "internal"; |
| 221 | phy-handle = <&phy1>; | 258 | phy-handle = <&phy1>; |
diff --git a/arch/mips/boot/dts/brcm/bcm7360.dtsi b/arch/mips/boot/dts/brcm/bcm7360.dtsi index e414af1e14ff..f0f63cb2bd2b 100644 --- a/arch/mips/boot/dts/brcm/bcm7360.dtsi +++ b/arch/mips/boot/dts/brcm/bcm7360.dtsi | |||
| @@ -208,6 +208,43 @@ | |||
| 208 | status = "disabled"; | 208 | status = "disabled"; |
| 209 | }; | 209 | }; |
| 210 | 210 | ||
| 211 | aon_pm_l2_intc: interrupt-controller@408440 { | ||
| 212 | compatible = "brcm,l2-intc"; | ||
| 213 | reg = <0x408440 0x30>; | ||
| 214 | interrupt-controller; | ||
| 215 | #interrupt-cells = <1>; | ||
| 216 | interrupt-parent = <&periph_intc>; | ||
| 217 | interrupts = <50>; | ||
| 218 | brcm,irq-can-wake; | ||
| 219 | }; | ||
| 220 | |||
| 221 | upg_gio: gpio@406500 { | ||
| 222 | compatible = "brcm,brcmstb-gpio"; | ||
| 223 | reg = <0x406500 0xa0>; | ||
| 224 | #gpio-cells = <2>; | ||
| 225 | #interrupt-cells = <2>; | ||
| 226 | gpio-controller; | ||
| 227 | interrupt-controller; | ||
| 228 | interrupt-parent = <&upg_irq0_intc>; | ||
| 229 | interrupts = <6>; | ||
| 230 | brcm,gpio-bank-widths = <32 32 32 29 4>; | ||
| 231 | }; | ||
| 232 | |||
| 233 | upg_gio_aon: gpio@408c00 { | ||
| 234 | compatible = "brcm,brcmstb-gpio"; | ||
| 235 | reg = <0x408c00 0x60>; | ||
| 236 | #gpio-cells = <2>; | ||
| 237 | #interrupt-cells = <2>; | ||
| 238 | gpio-controller; | ||
| 239 | interrupt-controller; | ||
| 240 | interrupt-parent = <&upg_aon_irq0_intc>; | ||
| 241 | interrupts = <6>; | ||
| 242 | interrupts-extended = <&upg_aon_irq0_intc 6>, | ||
| 243 | <&aon_pm_l2_intc 5>; | ||
| 244 | wakeup-source; | ||
| 245 | brcm,gpio-bank-widths = <21 32 2>; | ||
| 246 | }; | ||
| 247 | |||
| 211 | enet0: ethernet@430000 { | 248 | enet0: ethernet@430000 { |
| 212 | phy-mode = "internal"; | 249 | phy-mode = "internal"; |
| 213 | phy-handle = <&phy1>; | 250 | phy-handle = <&phy1>; |
diff --git a/arch/mips/boot/dts/brcm/bcm7362.dtsi b/arch/mips/boot/dts/brcm/bcm7362.dtsi index 3bd1c0111d43..ac42b98e31bb 100644 --- a/arch/mips/boot/dts/brcm/bcm7362.dtsi +++ b/arch/mips/boot/dts/brcm/bcm7362.dtsi | |||
| @@ -204,6 +204,43 @@ | |||
| 204 | status = "disabled"; | 204 | status = "disabled"; |
| 205 | }; | 205 | }; |
| 206 | 206 | ||
| 207 | aon_pm_l2_intc: interrupt-controller@408440 { | ||
| 208 | compatible = "brcm,l2-intc"; | ||
| 209 | reg = <0x408440 0x30>; | ||
| 210 | interrupt-controller; | ||
| 211 | #interrupt-cells = <1>; | ||
| 212 | interrupt-parent = <&periph_intc>; | ||
| 213 | interrupts = <50>; | ||
| 214 | brcm,irq-can-wake; | ||
| 215 | }; | ||
| 216 | |||
| 217 | upg_gio: gpio@406500 { | ||
| 218 | compatible = "brcm,brcmstb-gpio"; | ||
| 219 | reg = <0x406500 0xa0>; | ||
| 220 | #gpio-cells = <2>; | ||
| 221 | #interrupt-cells = <2>; | ||
| 222 | gpio-controller; | ||
| 223 | interrupt-controller; | ||
| 224 | interrupt-parent = <&upg_irq0_intc>; | ||
| 225 | interrupts = <6>; | ||
| 226 | brcm,gpio-bank-widths = <32 32 32 29 4>; | ||
| 227 | }; | ||
| 228 | |||
| 229 | upg_gio_aon: gpio@408c00 { | ||
| 230 | compatible = "brcm,brcmstb-gpio"; | ||
| 231 | reg = <0x408c00 0x60>; | ||
| 232 | #gpio-cells = <2>; | ||
| 233 | #interrupt-cells = <2>; | ||
| 234 | gpio-controller; | ||
| 235 | interrupt-controller; | ||
| 236 | interrupt-parent = <&upg_aon_irq0_intc>; | ||
| 237 | interrupts = <6>; | ||
| 238 | interrupts-extended = <&upg_aon_irq0_intc 6>, | ||
| 239 | <&aon_pm_l2_intc 5>; | ||
| 240 | wakeup-source; | ||
| 241 | brcm,gpio-bank-widths = <21 32 2>; | ||
| 242 | }; | ||
| 243 | |||
| 207 | enet0: ethernet@430000 { | 244 | enet0: ethernet@430000 { |
| 208 | phy-mode = "internal"; | 245 | phy-mode = "internal"; |
| 209 | phy-handle = <&phy1>; | 246 | phy-handle = <&phy1>; |
diff --git a/arch/mips/boot/dts/brcm/bcm7420.dtsi b/arch/mips/boot/dts/brcm/bcm7420.dtsi index 27c3d45556b9..0d391d77c780 100644 --- a/arch/mips/boot/dts/brcm/bcm7420.dtsi +++ b/arch/mips/boot/dts/brcm/bcm7420.dtsi | |||
| @@ -213,6 +213,18 @@ | |||
| 213 | status = "disabled"; | 213 | status = "disabled"; |
| 214 | }; | 214 | }; |
| 215 | 215 | ||
| 216 | upg_gio: gpio@406700 { | ||
| 217 | compatible = "brcm,brcmstb-gpio"; | ||
| 218 | reg = <0x406700 0x80>; | ||
| 219 | #gpio-cells = <2>; | ||
| 220 | #interrupt-cells = <2>; | ||
| 221 | gpio-controller; | ||
| 222 | interrupt-controller; | ||
| 223 | interrupt-parent = <&upg_irq0_intc>; | ||
| 224 | interrupts = <6>; | ||
| 225 | brcm,gpio-bank-widths = <32 32 32 27>; | ||
| 226 | }; | ||
| 227 | |||
| 216 | enet0: ethernet@468000 { | 228 | enet0: ethernet@468000 { |
| 217 | phy-mode = "internal"; | 229 | phy-mode = "internal"; |
| 218 | phy-handle = <&phy1>; | 230 | phy-handle = <&phy1>; |
diff --git a/arch/mips/boot/dts/brcm/bcm7425.dtsi b/arch/mips/boot/dts/brcm/bcm7425.dtsi index 9ab65d64e948..8b05b98f2a9c 100644 --- a/arch/mips/boot/dts/brcm/bcm7425.dtsi +++ b/arch/mips/boot/dts/brcm/bcm7425.dtsi | |||
| @@ -231,6 +231,43 @@ | |||
| 231 | status = "disabled"; | 231 | status = "disabled"; |
| 232 | }; | 232 | }; |
| 233 | 233 | ||
| 234 | aon_pm_l2_intc: interrupt-controller@408440 { | ||
| 235 | compatible = "brcm,l2-intc"; | ||
| 236 | reg = <0x408440 0x30>; | ||
| 237 | interrupt-controller; | ||
| 238 | #interrupt-cells = <1>; | ||
| 239 | interrupt-parent = <&periph_intc>; | ||
| 240 | interrupts = <49>; | ||
| 241 | brcm,irq-can-wake; | ||
| 242 | }; | ||
| 243 | |||
| 244 | upg_gio: gpio@406700 { | ||
| 245 | compatible = "brcm,brcmstb-gpio"; | ||
| 246 | reg = <0x406700 0x80>; | ||
| 247 | #gpio-cells = <2>; | ||
| 248 | #interrupt-cells = <2>; | ||
| 249 | gpio-controller; | ||
| 250 | interrupt-controller; | ||
| 251 | interrupt-parent = <&upg_irq0_intc>; | ||
| 252 | interrupts = <6>; | ||
| 253 | brcm,gpio-bank-widths = <32 32 32 21>; | ||
| 254 | }; | ||
| 255 | |||
| 256 | upg_gio_aon: gpio@4094c0 { | ||
| 257 | compatible = "brcm,brcmstb-gpio"; | ||
| 258 | reg = <0x4094c0 0x40>; | ||
| 259 | #gpio-cells = <2>; | ||
| 260 | #interrupt-cells = <2>; | ||
| 261 | gpio-controller; | ||
| 262 | interrupt-controller; | ||
| 263 | interrupt-parent = <&upg_aon_irq0_intc>; | ||
| 264 | interrupts = <6>; | ||
| 265 | interrupts-extended = <&upg_aon_irq0_intc 6>, | ||
| 266 | <&aon_pm_l2_intc 5>; | ||
| 267 | wakeup-source; | ||
| 268 | brcm,gpio-bank-widths = <18 4>; | ||
| 269 | }; | ||
| 270 | |||
| 234 | enet0: ethernet@b80000 { | 271 | enet0: ethernet@b80000 { |
| 235 | phy-mode = "internal"; | 272 | phy-mode = "internal"; |
| 236 | phy-handle = <&phy1>; | 273 | phy-handle = <&phy1>; |
diff --git a/arch/mips/boot/dts/brcm/bcm7435.dtsi b/arch/mips/boot/dts/brcm/bcm7435.dtsi index 7801169416e7..b7bb1024089c 100644 --- a/arch/mips/boot/dts/brcm/bcm7435.dtsi +++ b/arch/mips/boot/dts/brcm/bcm7435.dtsi | |||
| @@ -246,6 +246,43 @@ | |||
| 246 | status = "disabled"; | 246 | status = "disabled"; |
| 247 | }; | 247 | }; |
| 248 | 248 | ||
| 249 | aon_pm_l2_intc: interrupt-controller@408440 { | ||
| 250 | compatible = "brcm,l2-intc"; | ||
| 251 | reg = <0x408440 0x30>; | ||
| 252 | interrupt-controller; | ||
| 253 | #interrupt-cells = <1>; | ||
| 254 | interrupt-parent = <&periph_intc>; | ||
| 255 | interrupts = <54>; | ||
| 256 | brcm,irq-can-wake; | ||
| 257 | }; | ||
| 258 | |||
| 259 | upg_gio: gpio@406700 { | ||
| 260 | compatible = "brcm,brcmstb-gpio"; | ||
| 261 | reg = <0x406700 0x80>; | ||
| 262 | #gpio-cells = <2>; | ||
| 263 | #interrupt-cells = <2>; | ||
| 264 | gpio-controller; | ||
| 265 | interrupt-controller; | ||
| 266 | interrupt-parent = <&upg_irq0_intc>; | ||
| 267 | interrupts = <6>; | ||
| 268 | brcm,gpio-bank-widths = <32 32 32 21>; | ||
| 269 | }; | ||
| 270 | |||
| 271 | upg_gio_aon: gpio@4094c0 { | ||
| 272 | compatible = "brcm,brcmstb-gpio"; | ||
| 273 | reg = <0x4094c0 0x40>; | ||
| 274 | #gpio-cells = <2>; | ||
| 275 | #interrupt-cells = <2>; | ||
| 276 | gpio-controller; | ||
| 277 | interrupt-controller; | ||
| 278 | interrupt-parent = <&upg_aon_irq0_intc>; | ||
| 279 | interrupts = <6>; | ||
| 280 | interrupts-extended = <&upg_aon_irq0_intc 6>, | ||
| 281 | <&aon_pm_l2_intc 5>; | ||
| 282 | wakeup-source; | ||
| 283 | brcm,gpio-bank-widths = <18 4>; | ||
| 284 | }; | ||
| 285 | |||
| 249 | enet0: ethernet@b80000 { | 286 | enet0: ethernet@b80000 { |
| 250 | phy-mode = "internal"; | 287 | phy-mode = "internal"; |
| 251 | phy-handle = <&phy1>; | 288 | phy-handle = <&phy1>; |
