1/* 2 * Copyright (C) 2012 Imagination Technologies Ltd. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 as 6 * published by the Free Software Foundation. 7 */ 8 9#include "skeleton.dtsi" 10 11#include <dt-bindings/interrupt-controller/irq.h> 12 13/ { 14 compatible = "toumaz,tz1090", "img,meta"; 15 16 interrupt-parent = <&intc>; 17 18 intc: interrupt-controller { 19 compatible = "img,meta-intc"; 20 interrupt-controller; 21 #interrupt-cells = <2>; 22 num-banks = <2>; 23 }; 24 25 soc { 26 compatible = "simple-bus"; 27 #address-cells = <1>; 28 #size-cells = <1>; 29 ranges; 30 31 pdc: pdc@0x02006000 { 32 interrupt-controller; 33 #interrupt-cells = <2>; 34 35 reg = <0x02006000 0x1000>; 36 compatible = "img,pdc-intc"; 37 38 num-perips = <3>; 39 num-syswakes = <3>; 40 41 interrupts = <18 IRQ_TYPE_LEVEL_HIGH>, /* Syswakes */ 42 <30 IRQ_TYPE_LEVEL_HIGH>, /* Perip 0 (RTC) */ 43 <29 IRQ_TYPE_LEVEL_HIGH>, /* Perip 1 (IR) */ 44 <31 IRQ_TYPE_LEVEL_HIGH>; /* Perip 2 (WDT) */ 45 }; 46 47 pinctrl: pinctrl@02005800 { 48 #gpio-range-cells = <3>; 49 compatible = "img,tz1090-pinctrl"; 50 reg = <0x02005800 0xe4>; 51 }; 52 53 pdc_pinctrl: pinctrl@02006500 { 54 #gpio-range-cells = <3>; 55 compatible = "img,tz1090-pdc-pinctrl"; 56 reg = <0x02006500 0x100>; 57 }; 58 59 gpios: gpios@02005800 { 60 #address-cells = <1>; 61 #size-cells = <0>; 62 compatible = "img,tz1090-gpio"; 63 reg = <0x02005800 0x90>; 64 65 gpios0: bank@0 { 66 gpio-controller; 67 interrupt-controller; 68 #gpio-cells = <2>; 69 #interrupt-cells = <2>; 70 reg = <0>; 71 interrupts = <13 IRQ_TYPE_LEVEL_HIGH>; 72 gpio-ranges = <&pinctrl 0 0 30>; 73 }; 74 gpios1: bank@1 { 75 gpio-controller; 76 interrupt-controller; 77 #gpio-cells = <2>; 78 #interrupt-cells = <2>; 79 reg = <1>; 80 interrupts = <14 IRQ_TYPE_LEVEL_HIGH>; 81 gpio-ranges = <&pinctrl 0 30 30>; 82 }; 83 gpios2: bank@2 { 84 gpio-controller; 85 interrupt-controller; 86 #gpio-cells = <2>; 87 #interrupt-cells = <2>; 88 reg = <2>; 89 interrupts = <15 IRQ_TYPE_LEVEL_HIGH>; 90 gpio-ranges = <&pinctrl 0 60 30>; 91 }; 92 }; 93 94 pdc_gpios: gpios@02006500 { 95 gpio-controller; 96 #gpio-cells = <2>; 97 98 compatible = "img,tz1090-pdc-gpio"; 99 reg = <0x02006500 0x100>; 100 101 interrupt-parent = <&pdc>; 102 interrupts = <8 IRQ_TYPE_NONE>, 103 <9 IRQ_TYPE_NONE>, 104 <10 IRQ_TYPE_NONE>; 105 gpio-ranges = <&pdc_pinctrl 0 0 7>; 106 }; 107 }; 108}; 109