Christophe Leroy | f6469c2 | 2023-04-04 13:09:36 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * CMPC885 Device Tree Source |
| 4 | * |
| 5 | * Copyright 2020 CS GROUP France |
| 6 | * |
| 7 | */ |
| 8 | |
| 9 | /dts-v1/; |
| 10 | |
| 11 | #include <dt-bindings/clk/mpc83xx-clk.h> |
| 12 | |
| 13 | / { |
| 14 | model = "CMPCPRO"; |
| 15 | compatible = "fsl, cmpc85xx", "fsl,mod85xx", "CMPCPRO", "MPC8321E", "fsl,cmpcpro"; |
| 16 | #address-cells = <1>; |
| 17 | #size-cells = <1>; |
| 18 | |
| 19 | chosen { |
| 20 | stdout-path = &serial0; |
| 21 | }; |
| 22 | WDT: watchdog@0 { |
| 23 | device_type = "watchdog"; |
| 24 | compatible = "fsl,pq1-wdt"; |
| 25 | }; |
| 26 | |
| 27 | aliases { |
| 28 | ethernet0 = ð0; |
| 29 | etehrnet1 = ð1; |
| 30 | serial0 = &serial0; |
| 31 | }; |
| 32 | |
| 33 | cpus { |
| 34 | #address-cells = <1>; |
| 35 | #size-cells = <0>; |
| 36 | PowerPC,8321@0 { |
| 37 | device_type = "cpu"; |
| 38 | reg = <0x0>; |
| 39 | d-cache-line-size = <0x20>; // 32 bytes |
| 40 | i-cache-line-size = <0x20>; // 32 bytes |
| 41 | d-cache-size = <16384>; // L1, 16K |
| 42 | i-cache-size = <16384>; // L1, 16K |
| 43 | timebase-frequency = <0>; |
| 44 | bus-frequency = <0>; |
| 45 | clock-frequency = <0>; |
| 46 | }; |
| 47 | }; |
| 48 | |
| 49 | memory { |
| 50 | device_type = "memory"; |
| 51 | reg = <0x00000000 0x20000000>; |
| 52 | }; |
| 53 | |
| 54 | soc8321@b0000000 { |
| 55 | #address-cells = <1>; |
| 56 | #size-cells = <1>; |
| 57 | device_type = "soc"; |
| 58 | compatible = "simple-bus"; |
| 59 | ranges = <0x0 0xb0000000 0x00100000>; |
| 60 | reg = <0xb0000000 0x00000200>; |
| 61 | bus-frequency = <0>; |
| 62 | pmc: power@b00 { |
| 63 | compatible = "fsl,mpc8323-pmc", "fsl,mpc8349-pmc"; |
| 64 | reg = <0xb00 0x100 0xa00 0x100>; |
| 65 | interrupts = <80 0x8>; |
| 66 | interrupt-parent = <&ipic>; |
| 67 | }; |
| 68 | serial0: serial@4500 { |
| 69 | clocks = <&socclocks MPC83XX_CLK_CSB>; |
| 70 | cell-index = <0>; |
| 71 | device_type = "serial"; |
| 72 | compatible = "fsl,ns16550", "ns16550"; |
| 73 | reg = <0x4500 0x100>; |
| 74 | clock-frequency = <0>; |
| 75 | interrupts = <9 0x8>; |
| 76 | interrupt-parent = <&ipic>; |
| 77 | }; |
| 78 | ipic:pic@700 { |
| 79 | interrupt-controller; |
| 80 | #address-cells = <0>; |
| 81 | #interrupt-cells = <2>; |
| 82 | reg = <0x700 0x100>; |
| 83 | device_type = "ipic"; |
| 84 | }; |
| 85 | par_io@1400 { |
| 86 | #address-cells = <1>; |
| 87 | #size-cells = <1>; |
| 88 | reg = <0x1400 0x100>; |
| 89 | ranges; |
| 90 | compatible = "fsl,mpc8323-qe-pario","simple-bus"; |
| 91 | device_type = "par_io"; |
| 92 | num-ports = <7>; |
| 93 | qe_pio_a: gpio-controller@1400 { |
| 94 | #gpio-cells = <2>; |
| 95 | compatible = "fsl,mpc8323-qe-pario-bank","fsl,mpc8308-gpio"; |
| 96 | reg = <0x1400 0x18>; |
| 97 | gpio-controller; |
| 98 | }; |
| 99 | qe_pio_b: gpio-controller@1418 { |
| 100 | #gpio-cells = <2>; |
| 101 | compatible = "fsl,mpc8323-qe-pario-bank","fsl,mpc8308-gpio"; |
| 102 | reg = <0x1418 0x18>; |
| 103 | gpio-controller; |
| 104 | }; |
| 105 | qe_pio_c: gpio-controller@1430 { |
| 106 | #gpio-cells = <2>; |
| 107 | compatible = "fsl,mpc8323-qe-pario-bank","fsl,mpc8308-gpio"; |
| 108 | reg = <0x1430 0x18>; |
| 109 | gpio-controller; |
| 110 | }; |
| 111 | qe_pio_d: gpio-controller@1448 { |
| 112 | #gpio-cells = <2>; |
| 113 | compatible = "fsl,mpc8323-qe-pario-bank","fsl,mpc8308-gpio"; |
| 114 | reg = <0x1448 0x18>; |
| 115 | gpio-controller; |
| 116 | }; |
| 117 | }; |
| 118 | }; |
| 119 | socclocks: clocks { |
| 120 | bootph-all; |
| 121 | compatible = "fsl,mpc832x-clk"; |
| 122 | #clock-cells = <1>; |
| 123 | }; |
| 124 | qe@b0100000 { |
| 125 | #address-cells = <1>; |
| 126 | #size-cells = <1>; |
| 127 | device_type = "qe"; |
| 128 | compatible = "fsl,qe","simple-bus"; |
| 129 | ranges = <0x0 0xb0100000 0x00100000>; |
| 130 | reg = <0xb0100000 0x480>; |
| 131 | brg-frequency = <0>; |
| 132 | bus-frequency = <198000000>; |
| 133 | fsl,qe-num-riscs = <1>; |
| 134 | fsl,qe-num-snums = <28>; |
| 135 | spi@4c0 { |
| 136 | clocks = <&socclocks MPC83XX_CLK_CSB>; |
| 137 | #address-cells = <1>; |
| 138 | #size-cells = <0>; |
| 139 | cell-index = <0>; |
| 140 | compatible = "fsl,mpc832x-spi"; |
| 141 | reg = <0x4c0 0x40>; |
| 142 | mode = "cpu"; |
Christophe Leroy | 1e5f6f9 | 2024-04-02 19:22:24 +0200 | [diff] [blame] | 143 | gpios = <&qe_pio_d 3 1 |
| 144 | &qe_pio_c 5 1 /* TEMP mother board */ |
| 145 | &qe_pio_c 3 1>; /* TEMP CPU board */ |
Christophe Leroy | f6469c2 | 2023-04-04 13:09:36 +0200 | [diff] [blame] | 146 | clock-frequency = <0>; |
Christophe Leroy | 9a9e937 | 2024-04-12 12:10:14 +0200 | [diff] [blame] | 147 | eeprom@0 { |
| 148 | reg = <0>; |
Christophe Leroy | f6469c2 | 2023-04-04 13:09:36 +0200 | [diff] [blame] | 149 | compatible = "atmel,at25", "cs,eeprom"; |
Christophe Leroy | f6469c2 | 2023-04-04 13:09:36 +0200 | [diff] [blame] | 150 | }; |
Christophe Leroy | 1e5f6f9 | 2024-04-02 19:22:24 +0200 | [diff] [blame] | 151 | temp@1 { |
| 152 | reg = <1>; |
| 153 | compatible = "ti,lm74"; |
| 154 | }; |
| 155 | temp@2 { |
| 156 | reg = <2>; |
| 157 | compatible = "ti,lm74"; |
| 158 | }; |
Christophe Leroy | f6469c2 | 2023-04-04 13:09:36 +0200 | [diff] [blame] | 159 | }; |
| 160 | eth0: ucc@3000 { |
| 161 | device_type = "network"; |
| 162 | compatible = "ucc_geth"; |
| 163 | cell-index = <2>; |
| 164 | reg = <0x3000 0x200>; |
| 165 | rx-clock-name = "clk17"; |
| 166 | tx-clock-name = "clk17"; |
| 167 | phy-handle = <&phy1>; |
| 168 | phy-connection-type = "rmii"; |
| 169 | }; |
| 170 | eth1: ucc@2200 { |
| 171 | device_type = "network"; |
| 172 | compatible = "ucc_geth"; |
| 173 | cell-index = <3>; |
| 174 | reg = <0x2200 0x200>; |
| 175 | rx-clock-name = "clk12"; |
| 176 | tx-clock-name = "clk12"; |
| 177 | phy-handle = <&phy2>; |
| 178 | phy-connection-type = "rmii"; |
| 179 | }; |
| 180 | mdio@3120 { |
| 181 | #address-cells = <1>; |
| 182 | #size-cells = <0>; |
| 183 | reg = <0x3120 0x18>; |
| 184 | compatible = "fsl,ucc-mdio"; |
| 185 | phy1:ethernet-phy@1 { |
| 186 | interrupt-parent = <&ipic>; |
| 187 | reg = <0x1>; |
| 188 | interrupts = <17 8>; |
| 189 | device_type = "ethernet-phy"; |
| 190 | }; |
| 191 | phy2:ethernet-phy@2 { |
| 192 | interrupt-parent = <&ipic>; |
| 193 | reg = <0x2>; |
| 194 | interrupts = <17 8>; |
| 195 | device_type = "ethernet-phy"; |
| 196 | }; |
| 197 | }; |
| 198 | }; |
| 199 | }; |