Simon Glass | 7a93642 | 2013-02-08 18:58:53 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Copyright (c) 2013 The Chromium OS Authors. All rights reserved. |
| 4 | # Use of this source code is governed by a BSD-style license that can be |
| 5 | # found in the LICENSE file. |
| 6 | |
| 7 | # Script to make the test.dtb file |
| 8 | |
| 9 | dtc -O dtb -o test.dtb -p 1000 - <<EOF |
| 10 | /dts-v1/; |
| 11 | / { |
| 12 | #address-cells = <0x00000001>; |
| 13 | #size-cells = <0x00000001>; |
| 14 | model = "NVIDIA Seaboard"; |
| 15 | compatible = "nvidia,seaboard", "nvidia,tegra250"; |
| 16 | interrupt-parent = <0x00000001>; |
| 17 | chosen { |
| 18 | bootargs = ""; |
| 19 | }; |
| 20 | aliases { |
| 21 | console = "/serial@70006300"; |
| 22 | usb0 = "/usb@0xc5008000"; |
| 23 | usb1 = "/usb@0xc5000000"; |
| 24 | sdmmc0 = "/sdhci@c8000600"; |
| 25 | sdmmc1 = "/sdhci@c8000400"; |
| 26 | }; |
| 27 | memory { |
| 28 | device_type = "memory"; |
| 29 | reg = <0x00000000 0x616d6261>; |
| 30 | }; |
| 31 | amba { |
| 32 | compatible = "simple-bus"; |
| 33 | #address-cells = <0x00000001>; |
| 34 | #size-cells = <0x00000001>; |
| 35 | ranges; |
| 36 | interrupt-controller@50041000 { |
| 37 | compatible = "nvidia,tegra250-gic", "arm,gic"; |
| 38 | interrupt-controller; |
| 39 | #interrupt-cells = <0x00000001>; |
| 40 | reg = <0x50041000 0x00001000 0x50040100 0x00000100>; |
| 41 | linux,phandle = <0x00000001>; |
| 42 | phandle = <0x00000001>; |
| 43 | }; |
| 44 | }; |
| 45 | gpio@6000d000 { |
| 46 | compatible = "nvidia,tegra250-gpio", "ns16550"; |
| 47 | reg = <0x6000d000 0x000000b1>; |
| 48 | interrupts = <0x00000040 0x00000041 0x00000042 0x00000043 0x00000057 |
| 49 | 0x00000077 0x00000079>; |
| 50 | #gpio-cells = <0x00000002>; |
| 51 | gpio-controller; |
| 52 | linux,phandle = <0x00000002>; |
| 53 | phandle = <0x00000002>; |
| 54 | }; |
| 55 | serial@70006000 { |
| 56 | compatible = "nvidia,tegra250-uart", "ns16550"; |
| 57 | reg = <0x70006000 0x00000040>; |
| 58 | id = <0x00000000>; |
| 59 | reg-shift = <0x00000002>; |
| 60 | interrupts = <0x00000044>; |
| 61 | status = "disabled"; |
| 62 | }; |
| 63 | serial@70006040 { |
| 64 | compatible = "nvidia,tegra250-uart", "ns16550"; |
| 65 | reg = <0x70006040 0x00000040>; |
| 66 | id = <0x00000001>; |
| 67 | reg-shift = <0x00000002>; |
| 68 | interrupts = <0x00000045>; |
| 69 | status = "disabled"; |
| 70 | }; |
| 71 | serial@70006200 { |
| 72 | compatible = "nvidia,tegra250-uart", "ns16550"; |
| 73 | reg = <0x70006200 0x00000100>; |
| 74 | id = <0x00000002>; |
| 75 | reg-shift = <0x00000002>; |
| 76 | interrupts = <0x0000004e>; |
| 77 | status = "disabled"; |
| 78 | }; |
| 79 | serial@70006300 { |
| 80 | compatible = "nvidia,tegra250-uart", "ns16550"; |
| 81 | reg = <0x70006300 0x00000100>; |
| 82 | id = <0x00000003>; |
| 83 | reg-shift = <0x00000002>; |
| 84 | interrupts = <0x0000007a>; |
| 85 | status = "ok"; |
| 86 | clock-frequency = <0x0cdfe600>; |
| 87 | linux,phandle = <0x00000004>; |
| 88 | phandle = <0x00000004>; |
| 89 | }; |
| 90 | serial@70006400 { |
| 91 | compatible = "nvidia,tegra250-uart", "ns16550"; |
| 92 | reg = <0x70006400 0x00000100>; |
| 93 | id = <0x00000004>; |
| 94 | reg-shift = <0x00000002>; |
| 95 | interrupts = <0x0000007b>; |
| 96 | status = "disabled"; |
| 97 | }; |
| 98 | sdhci@c8000000 { |
| 99 | compatible = "nvidia,tegra250-sdhci"; |
| 100 | reg = <0xc8000000 0x00000200>; |
| 101 | interrupts = <0x0000002e>; |
| 102 | periph-id = <0x0000000e>; |
| 103 | status = "disabled"; |
| 104 | }; |
| 105 | sdhci@c8000200 { |
| 106 | compatible = "nvidia,tegra250-sdhci"; |
| 107 | reg = <0xc8000200 0x00000200>; |
| 108 | interrupts = <0x0000002f>; |
| 109 | periph-id = <0x00000009>; |
| 110 | status = "disabled"; |
| 111 | }; |
| 112 | sdhci@c8000400 { |
| 113 | compatible = "nvidia,tegra250-sdhci"; |
| 114 | reg = <0xc8000400 0x00000200>; |
| 115 | interrupts = <0x00000033>; |
| 116 | periph-id = <0x00000045>; |
| 117 | status = "ok"; |
| 118 | width = <0x00000004>; |
| 119 | removable = <0x00000001>; |
| 120 | cd-gpio = <0x00000002 0x00000045 0x00000000>; |
| 121 | wp-gpio = <0x00000002 0x00000039 0x00000000>; |
| 122 | power-gpio = <0x00000002 0x00000046 0x00000003>; |
| 123 | }; |
| 124 | sdhci@c8000600 { |
| 125 | compatible = "nvidia,tegra250-sdhci"; |
| 126 | reg = <0xc8000600 0x00000200>; |
| 127 | interrupts = <0x0000003f>; |
| 128 | periph-id = <0x0000000f>; |
| 129 | status = "ok"; |
| 130 | width = <0x00000004>; |
| 131 | removable = <0x00000000>; |
| 132 | }; |
| 133 | pwm@7000a000 { |
| 134 | compatible = "nvidia,tegra250-sdhci"; |
| 135 | reg = <0x7000a000 0x00000004>; |
| 136 | status = "disabled"; |
| 137 | }; |
| 138 | pwm@7000a010 { |
| 139 | compatible = "nvidia,tegra250-sdhci"; |
| 140 | reg = <0x7000a010 0x00000004>; |
| 141 | status = "disabled"; |
| 142 | }; |
| 143 | pwm@7000a020 { |
| 144 | compatible = "nvidia,tegra250-sdhci"; |
| 145 | reg = <0x7000a020 0x00000004>; |
| 146 | status = "disabled"; |
| 147 | linux,phandle = <0x00000005>; |
| 148 | phandle = <0x00000005>; |
| 149 | }; |
| 150 | pwm@7000a030 { |
| 151 | compatible = "nvidia,tegra250-sdhci"; |
| 152 | reg = <0x7000a030 0x00000004>; |
| 153 | status = "disabled"; |
| 154 | }; |
| 155 | display@0x54200000 { |
| 156 | compatible = "nvidia,tegra250-display"; |
| 157 | reg = <0x54200000 0x00040000>; |
| 158 | status = "disabled"; |
| 159 | linux,phandle = <0x00000006>; |
| 160 | phandle = <0x00000006>; |
| 161 | }; |
| 162 | usbparams@0 { |
| 163 | compatible = "nvidia,tegra250-usbparams"; |
| 164 | osc-frequency = <0x00c65d40>; |
| 165 | params = <0x000003c0 0x0000000d 0x00000000 0x0000000c 0x00000000 |
| 166 | 0x00000002 0x00000033 0x00000005 0x0000007f 0x00007ef4 |
| 167 | 0x00000005>; |
| 168 | }; |
| 169 | usbparams@1 { |
| 170 | compatible = "nvidia,tegra250-usbparams"; |
| 171 | osc-frequency = <0x0124f800>; |
| 172 | params = <0x000000c8 0x00000004 0x00000000 0x00000003 0x00000000 |
| 173 | 0x00000003 0x0000004b 0x00000006 0x000000bb 0x0000bb80 0x00000007>; |
| 174 | }; |
| 175 | usbparams@2 { |
| 176 | compatible = "nvidia,tegra250-usbparams"; |
| 177 | osc-frequency = <0x00b71b00>; |
| 178 | params = <0x000003c0 0x0000000c 0x00000000 0x0000000c 0x00000000 |
| 179 | 0x00000002 0x0000002f 0x00000004 0x00000076 0x00007530 0x00000005>; |
| 180 | }; |
| 181 | usbparams@3 { |
| 182 | compatible = "nvidia,tegra250-usbparams"; |
| 183 | osc-frequency = <0x018cba80>; |
| 184 | params = <0x000003c0 0x0000001a 0x00000000 0x0000000c 0x00000000 |
| 185 | 0x00000004 0x00000066 0x00000009 0x000000fe 0x0000fde8 0x00000009>; |
| 186 | }; |
| 187 | usb@0xc5008000 { |
| 188 | compatible = "nvidia,tegra250-usb"; |
| 189 | reg = <0xc5008000 0x00008000>; |
| 190 | periph-id = <0x0000003b>; |
| 191 | status = "ok"; |
| 192 | utmi = <0x00000003>; |
| 193 | host-mode = <0x00000000>; |
| 194 | }; |
| 195 | usb@0xc5000000 { |
| 196 | compatible = "nvidia,tegra250-usb"; |
| 197 | reg = <0xc5000000 0x00008000>; |
| 198 | periph-id = <0x00000016>; |
| 199 | status = "ok"; |
| 200 | host-mode = <0x00000001>; |
| 201 | }; |
| 202 | kbc@0x7000e200 { |
| 203 | compatible = "nvidia,tegra250-kbc"; |
| 204 | reg = <0x7000e200 0x00000078>; |
| 205 | keycode-plain = <0x00007773 0x617a00de 0x00000000 0x00000000 |
| 206 | 0x00000000 0x00000000 0x35347265 0x66647800 0x37367468 |
| 207 | 0x67766320 0x39387579 0x6a6e625c 0x2d306f69 0x6c6b2c6d |
| 208 | 0x003d5d0d 0x00000000 0x00000000 0xdfdf0000 0x00000000 |
| 209 | 0x00dc00dd 0x00000000 0x00000000 0x5b70273b 0x2f2e0000 |
| 210 | 0x00000833 0x32000000 0x007f0000 0x00000000 0x00000071 |
| 211 | 0x00003100 0x1b600009 0x00000000>; |
| 212 | keycode-shift = <0x00005753 0x415a0000 0x00000000 0x00000000 |
| 213 | 0x00000000 0x00000000 0x25245245 0x46445800 0x265e5448 |
| 214 | 0x47564320 0x282a5559 0x4a4e427c 0x5f294f49 0x4c4b3c4d |
| 215 | 0x002b7d0d 0x00000000 0x00000000 0x00000000 0x00000000 |
| 216 | 0x00000000 0x00000000 0x00000000 0x7b50223a 0x3f3e0000 |
| 217 | 0x00000823 0x40000000 0x007f0000 0x00000000 0x00000051 |
| 218 | 0x00002100 0x1b7e0009 0x00000000>; |
| 219 | keycode-fn = <0x00000000 0x00000000 0x00000000 0x00000000 |
| 220 | 0x00000000 0x00000000 0x00000000 0x00000000 0x37000000 |
| 221 | 0x00000000 0x39383400 0x31000000 0x002f3635 0x33320030 |
| 222 | 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 |
| 223 | 0x00000000 0x00000000 0x00000000 0x0027002d 0x2b2e0000 |
| 224 | 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 |
| 225 | 0x00000000 0x00000000 0x3f000000>; |
| 226 | keycode-ctrl = <0x00001713 0x011a0000 0x00000000 0x00000000 |
| 227 | 0x00000000 0x00000000 0x00001205 0x06041800 0x00001408 |
| 228 | 0x07160300 0x00001519 0x0a0e0200 0x00000f09 0x0c0b000d |
| 229 | 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 |
| 230 | 0x00000000 0x00000000 0x00000000 0x00100000 0x00000000 |
| 231 | 0x00000000 0x00000000 0x00000000 0x00000000 0x00000011 |
| 232 | 0x00000000 0x00000000 0x00000000>; |
| 233 | }; |
| 234 | flash@0 { |
| 235 | #address-cells = <0x00000001>; |
| 236 | #size-cells = <0x00000001>; |
| 237 | compatible = "winbond,W25Q32BVSSIG", "cfi-flash", "chromeos,flashmap"; |
| 238 | reg = <0x00000000 0x00400000>; |
| 239 | onestop-layout@0 { |
| 240 | label = "onestop-layout"; |
| 241 | reg = <0x00000000 0x00080000>; |
| 242 | }; |
| 243 | firmware-image@0 { |
| 244 | label = "firmware-image"; |
| 245 | reg = <0x00000000 0x0007df00>; |
| 246 | }; |
| 247 | verification-block@7df00 { |
| 248 | label = "verification-block"; |
| 249 | reg = <0x0007df00 0x00002000>; |
| 250 | }; |
| 251 | firmware-id@7ff00 { |
| 252 | label = "firmware-id"; |
| 253 | reg = <0x0007ff00 0x00000100>; |
| 254 | }; |
| 255 | readonly@0 { |
| 256 | label = "readonly"; |
| 257 | reg = <0x00000000 0x00100000>; |
| 258 | read-only; |
| 259 | }; |
| 260 | bct@0 { |
| 261 | label = "bct"; |
| 262 | reg = <0x00000000 0x00010000>; |
| 263 | read-only; |
| 264 | }; |
| 265 | ro-onestop@10000 { |
| 266 | label = "ro-onestop"; |
| 267 | reg = <0x00010000 0x00080000>; |
| 268 | read-only; |
| 269 | type = "blob boot"; |
Simon Glass | 92e1ff3 | 2013-07-19 02:52:30 | [diff] [blame] | 270 | used = <1234>; |
Simon Glass | 6985cd1 | 2013-07-19 21:40:06 | [diff] [blame] | 271 | hash-target; |
Simon Glass | 7a93642 | 2013-02-08 18:58:53 | [diff] [blame] | 272 | }; |
| 273 | ro-gbb@90000 { |
| 274 | label = "gbb"; |
| 275 | reg = <0x00090000 0x00020000>; |
| 276 | read-only; |
| 277 | type = "blob gbb"; |
| 278 | }; |
| 279 | ro-data@b0000 { |
| 280 | label = "ro-data"; |
| 281 | reg = <0x000b0000 0x00010000>; |
| 282 | read-only; |
| 283 | }; |
| 284 | ro-vpd@c0000 { |
| 285 | label = "ro-vpd"; |
| 286 | reg = <0x000c0000 0x00010000>; |
| 287 | read-only; |
| 288 | type = "wiped"; |
| 289 | wipe-value = [ffffffff]; |
| 290 | }; |
| 291 | fmap@d0000 { |
| 292 | label = "ro-fmap"; |
| 293 | reg = <0x000d0000 0x00000400>; |
| 294 | read-only; |
| 295 | type = "fmap"; |
| 296 | ver-major = <0x00000001>; |
| 297 | ver-minor = <0x00000000>; |
| 298 | }; |
| 299 | readwrite@100000 { |
| 300 | label = "readwrite"; |
| 301 | reg = <0x00100000 0x00100000>; |
| 302 | }; |
| 303 | rw-vpd@100000 { |
| 304 | label = "rw-vpd"; |
| 305 | reg = <0x00100000 0x00080000>; |
| 306 | type = "wiped"; |
| 307 | wipe-value = [ffffffff]; |
| 308 | }; |
| 309 | shared-dev-cfg@180000 { |
| 310 | victoria; |
| 311 | label = "shared-dev-cfg"; |
| 312 | reg = <0x00180000 0x00040000>; |
| 313 | type = "wiped"; |
| 314 | wipe-value = ""; |
| 315 | }; |
| 316 | shared-data@1c0000 { |
| 317 | label = "shared-data"; |
| 318 | reg = <0x001c0000 0x00030000>; |
| 319 | type = "wiped"; |
| 320 | wipe-value = ""; |
| 321 | }; |
| 322 | shared-env@1ff000 { |
| 323 | label = "shared-env"; |
| 324 | reg = <0x001ff000 0x00001000>; |
| 325 | type = "wiped"; |
| 326 | wipe-value = ""; |
| 327 | }; |
| 328 | readwrite-a@200000 { |
| 329 | label = "readwrite-a"; |
| 330 | reg = <0x00200000 0x00080000>; |
| 331 | block-lba = <0x00000022>; |
| 332 | }; |
| 333 | rw-a-onestop@200000 { |
| 334 | label = "rw-a-onestop"; |
| 335 | reg = <0x00200000 0x00080000>; |
| 336 | type = "blob boot"; |
| 337 | }; |
| 338 | readwrite-b@300000 { |
| 339 | label = "readwrite-b"; |
| 340 | reg = <0x00300000 0x00080000>; |
| 341 | block-lba = <0x00000422>; |
| 342 | }; |
| 343 | rw-b-onestop@300000 { |
| 344 | label = "rw-b-onestop"; |
Simon Glass | d4b7869 | 2013-02-08 18:11:56 | [diff] [blame] | 345 | size = <0x00008000>; |
Simon Glass | 7a93642 | 2013-02-08 18:58:53 | [diff] [blame] | 346 | type = "blob boot"; |
| 347 | }; |
| 348 | }; |
| 349 | config { |
| 350 | silent_console = <0x00000000>; |
| 351 | odmdata = <0x300d8011>; |
| 352 | hwid = "ARM SEABOARD TEST 1176"; |
| 353 | machine-arch-id = <0x00000bbd>; |
| 354 | gpio_port_write_protect_switch = <0x0000003b>; |
| 355 | gpio_port_recovery_switch = <0x00000038>; |
| 356 | gpio_port_developer_switch = <0x000000a8>; |
| 357 | polarity_write_protect_switch = <0x00000001>; |
| 358 | polarity_recovery_switch = <0x00000000>; |
| 359 | polarity_developer_switch = <0x00000001>; |
| 360 | }; |
| 361 | switch { |
| 362 | compatible = "nvidia,spi-uart-switch"; |
| 363 | uart = <0x00000004>; |
| 364 | gpios = <0x00000002 0x00000043 0x00000001>; |
| 365 | }; |
| 366 | lcd { |
| 367 | compatible = "nvidia,tegra2-lcd"; |
| 368 | width = <0x00000556>; |
| 369 | height = <0x00000300>; |
| 370 | bits_per_pixel = <0x00000010>; |
| 371 | pwfm = <0x00000005>; |
| 372 | display = <0x00000006>; |
| 373 | frame-buffer = <0x1c022000>; |
| 374 | pixel_clock = <0x04354540>; |
| 375 | horiz_timing = <0x0000000b 0x0000003a 0x0000003a 0x0000003a>; |
| 376 | vert_timing = <0x00000001 0x00000004 0x00000004 0x00000004>; |
| 377 | gpios = <0x00000002 0x0000001c 0x00000003 0x00000002 0x0000000a |
| 378 | 0x00000003 0x00000002 0x000000b0 0x00000003 0x00000002 |
| 379 | 0x00000016 0x00000003>; |
| 380 | }; |
| 381 | usbphy@0 { |
| 382 | compatible = "smsc,usb3315"; |
| 383 | status = "ok"; |
| 384 | linux,phandle = <0x00000003>; |
| 385 | phandle = <0x00000003>; |
| 386 | }; |
| 387 | }; |
| 388 | EOF |