]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - arch/powerpc/boot/dts/o2d.dtsi
Merge branches 'no-rebases', 'arch-avr32', 'arch-blackfin', 'arch-cris', 'arch-h8300...
[mirror_ubuntu-bionic-kernel.git] / arch / powerpc / boot / dts / o2d.dtsi
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
91 localbus {
92 ranges = <0 0 0xff000000 0x01000000
93 3 0 0xe3000000 0x00100000>;
94
95 // flash device at LocalPlus Bus CS0
96 flash@0,0 {
97 compatible = "cfi-flash";
98 reg = <0 0 0x01000000>;
99 bank-width = <1>;
100 device-width = <2>;
101 #size-cells = <1>;
102 #address-cells = <1>;
103 no-unaligned-direct-access;
104
105 /* common layout for all machines */
106 partition@0 {
107 label = "u-boot";
108 reg = <0x00000000 0x00040000>;
109 read-only;
110 };
111 partition@40000 {
112 label = "env";
113 reg = <0x00040000 0x00020000>;
114 read-only;
115 };
116 };
117
118 csi@3,0 {
119 compatible = "ifm,o2d-csi";
120 reg = <3 0 0x00100000>;
121 ifm,csi-clk-handle = <&timer7>;
122 gpios = <&gpio_simple 23 0 /* imag_capture */
123 &gpio_simple 26 0 /* imag_reset */
124 &gpio_simple 29 0>; /* imag_master_en */
125
126 interrupts = <1 1 2>; /* IRQ1, edge falling */
127
128 ifm,csi-addr-bus-width = <24>;
129 ifm,csi-data-bus-width = <8>;
130 ifm,csi-wait-cycles = <0>;
131 };
132 };
133 };