1/* 2 * O2D base Device Tree Source 3 * 4 * Copyright (C) 2012 DENX Software Engineering 5 * Anatolij Gustschin <agust@denx.de> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the 9 * Free Software Foundation; either version 2 of the License, or (at your 10 * option) any later version. 11 */ 12 13/include/ "mpc5200b.dtsi" 14 15/ { 16 model = "ifm,o2d"; 17 compatible = "ifm,o2d"; 18 19 memory { 20 reg = <0x00000000 0x04000000>; // 64MB 21 }; 22 23 soc5200@f0000000 { 24 25 gpio_simple: gpio@b00 { 26 }; 27 28 timer@600 { // General Purpose Timer 29 #gpio-cells = <2>; 30 gpio-controller; 31 fsl,has-wdt; 32 fsl,wdt-on-boot = <0>; 33 }; 34 35 timer@610 { 36 #gpio-cells = <2>; 37 gpio-controller; 38 }; 39 40 timer7: timer@670 { 41 }; 42 43 rtc@800 { 44 status = "disabled"; 45 }; 46 47 psc@2000 { // PSC1 48 compatible = "fsl,mpc5200b-psc-spi","fsl,mpc5200-psc-spi"; 49 #address-cells = <1>; 50 #size-cells = <0>; 51 cell-index = <0>; 52 53 spidev@0 { 54 compatible = "spidev"; 55 spi-max-frequency = <250000>; 56 reg = <0>; 57 }; 58 }; 59 60 psc@2200 { // PSC2 61 status = "disabled"; 62 }; 63 64 psc@2400 { // PSC3 65 status = "disabled"; 66 }; 67 68 psc@2600 { // PSC4 69 compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart"; 70 }; 71 72 psc@2800 { // PSC5 73 compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart"; 74 }; 75 76 psc@2c00 { // PSC6 77 status = "disabled"; 78 }; 79 80 ethernet@3000 { 81 phy-handle = <&phy0>; 82 }; 83 84 mdio@3000 { 85 phy0: ethernet-phy@0 { 86 reg = <0>; 87 }; 88 }; 89 90 sclpc@3c00 { 91 compatible = "fsl,mpc5200-lpbfifo"; 92 reg = <0x3c00 0x60>; 93 interrupts = <3 23 0>; 94 }; 95 }; 96 97 localbus { 98 ranges = <0 0 0xff000000 0x01000000 99 3 0 0xe3000000 0x00100000>; 100 101 // flash device at LocalPlus Bus CS0 102 flash@0,0 { 103 compatible = "cfi-flash"; 104 reg = <0 0 0x01000000>; 105 bank-width = <1>; 106 device-width = <2>; 107 #size-cells = <1>; 108 #address-cells = <1>; 109 no-unaligned-direct-access; 110 111 /* common layout for all machines */ 112 partition@0 { 113 label = "u-boot"; 114 reg = <0x00000000 0x00040000>; 115 read-only; 116 }; 117 partition@40000 { 118 label = "env"; 119 reg = <0x00040000 0x00020000>; 120 read-only; 121 }; 122 }; 123 124 csi@3,0 { 125 compatible = "ifm,o2d-csi"; 126 reg = <3 0 0x00100000>; 127 ifm,csi-clk-handle = <&timer7>; 128 gpios = <&gpio_simple 23 0 /* imag_capture */ 129 &gpio_simple 26 0 /* imag_reset */ 130 &gpio_simple 29 0>; /* imag_master_en */ 131 132 interrupts = <1 1 2>; /* IRQ1, edge falling */ 133 134 ifm,csi-addr-bus-width = <24>; 135 ifm,csi-data-bus-width = <8>; 136 ifm,csi-wait-cycles = <0>; 137 }; 138 }; 139}; 140