Merge branches 'pm-cpufreq', 'pm-sleep' and 'pm-em'
[linux-2.6-microblaze.git] / arch / arm / boot / dts / intel-ixp4xx-reference-design.dtsi
1 // SPDX-License-Identifier: ISC
2 /*
3  * Device Tree include file for Intel reference designs for the
4  * XScale Network Processors in the IXP 4xx series. Common device
5  * set-up for IXDP425, IXCDP1100, KIXRP435 and IXDP465.
6  */
7
8 / {
9         memory@0 {
10                 /*
11                  * The board supports up to 256 MB of memory. Here we put in
12                  * 64 MB and this may be modified by the boot loader.
13                  */
14                 device_type = "memory";
15                 reg = <0x00000000 0x4000000>;
16         };
17
18         chosen {
19                 bootargs = "console=ttyS0,115200n8";
20                 stdout-path = "uart0:115200n8";
21         };
22
23         aliases {
24                 serial0 = &uart0;
25         };
26
27         i2c {
28                 compatible = "i2c-gpio";
29                 sda-gpios = <&gpio0 7 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
30                 scl-gpios = <&gpio0 6 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
31                 #address-cells = <1>;
32                 #size-cells = <0>;
33
34                 eeprom@50 {
35                         /*
36                          * Philips PCF8582C-2T/03 512byte I2C EEPROM
37                          * should behave like an Atmel 24c04.
38                          */
39                         compatible = "atmel,24c04";
40                         reg = <0x50>;
41                         pagesize = <16>;
42                         size = <512>;
43                         read-only;
44                 };
45         };
46
47         soc {
48                 bus@c4000000 {
49                         /* Flash memory defined per-variant */
50                         nand-controller@3,0 {
51                                 /* Some designs have a NAND on CS3 enable it here if present */
52                                 status = "disabled";
53
54                                 /*
55                                  * gen_nand needs to be extended and documented to get
56                                  * command byte = 1 and address byte = 2 from the device
57                                  * tree.
58                                  */
59                                 compatible = "gen_nand";
60
61                                 /* Expansion bus set-up */
62                                 intel,ixp4xx-eb-t1 = <0>;
63                                 intel,ixp4xx-eb-t2 = <0>;
64                                 intel,ixp4xx-eb-t3 = <1>; // 1 cycle extra strobe phase
65                                 intel,ixp4xx-eb-t4 = <0>;
66                                 intel,ixp4xx-eb-t5 = <0>;
67                                 intel,ixp4xx-eb-cycle-type = <0>; // Intel cycle type
68                                 intel,ixp4xx-eb-byte-access-on-halfword = <0>;
69                                 intel,ixp4xx-eb-mux-address-and-data = <0>;
70                                 intel,ixp4xx-eb-ahb-split-transfers = <0>;
71                                 intel,ixp4xx-eb-write-enable = <1>;
72                                 intel,ixp4xx-eb-byte-access = <1>;
73
74                                 /* 512 bytes memory window */
75                                 reg = <3 0x00000000 0x200>;
76                                 nand-on-flash-bbt;
77                                 nand-ecc-mode = "soft_bch";
78                                 nand-ecc-step-size = <512>;
79                                 nand-ecc-strength = <4>;
80                                 nce-gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; /* NCE */
81
82                                 label = "ixp400 NAND";
83
84                                 partitions {
85                                         compatible = "fixed-partitions";
86                                         #address-cells = <1>;
87                                         #size-cells = <1>;
88
89                                         fs@0 {
90                                                 label = "ixp400 NAND FS 0";
91                                                 reg = <0x0 0x800000>;
92                                         };
93                                         fs@800000 {
94                                                 label = "ixp400 NAND FS 1";
95                                                 reg = <0x800000 0x0>;
96                                         };
97                                 };
98                         };
99                 };
100
101                 pci@c0000000 {
102                         status = "ok";
103
104                         /*
105                          * Taken from IXDP425 PCI boardfile.
106                          * PCI slots on the BIXMB425BD base card.
107                          * We have up to 4 slots (IDSEL) with 4 swizzled IRQs.
108                          */
109                         interrupt-map =
110                         /* IDSEL 1 */
111                         <0x0800 0 0 1 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 1 is irq 11 */
112                         <0x0800 0 0 2 &gpio0 10 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 1 is irq 10 */
113                         <0x0800 0 0 3 &gpio0 9  IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 1 is irq 9 */
114                         <0x0800 0 0 4 &gpio0 8  IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 1 is irq 8 */
115                         /* IDSEL 2 */
116                         <0x1000 0 0 1 &gpio0 10 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 2 is irq 10 */
117                         <0x1000 0 0 2 &gpio0 9  IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 2 is irq 9 */
118                         <0x1000 0 0 3 &gpio0 8  IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 2 is irq 8 */
119                         <0x1000 0 0 4 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 2 is irq 11 */
120                         /* IDSEL 3 */
121                         <0x1800 0 0 1 &gpio0 9  IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 3 is irq 9 */
122                         <0x1800 0 0 2 &gpio0 8  IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 3 is irq 8 */
123                         <0x1800 0 0 3 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 3 is irq 11 */
124                         <0x1800 0 0 4 &gpio0 10 IRQ_TYPE_LEVEL_LOW>, /* INT D on slot 3 is irq 10 */
125                         /* IDSEL 4 */
126                         <0x2000 0 0 1 &gpio0 8  IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 4 is irq 8 */
127                         <0x2000 0 0 2 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 4 is irq 11 */
128                         <0x2000 0 0 3 &gpio0 10 IRQ_TYPE_LEVEL_LOW>, /* INT C on slot 4 is irq 10 */
129                         <0x2000 0 0 4 &gpio0 9  IRQ_TYPE_LEVEL_LOW>; /* INT D on slot 4 is irq 9 */
130                 };
131         };
132 };