Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003  * O2D base Device Tree Source
0004  *
0005  * Copyright (C) 2012 DENX Software Engineering
0006  * Anatolij Gustschin <agust@denx.de>
0007  */
0008 
0009 /include/ "mpc5200b.dtsi"
0010 
0011 &gpt0 {
0012         gpio-controller;
0013         fsl,has-wdt;
0014         fsl,wdt-on-boot = <0>;
0015 };
0016 &gpt1 { gpio-controller; };
0017 
0018 / {
0019         model = "ifm,o2d";
0020         compatible = "ifm,o2d";
0021 
0022         memory@0 {
0023                 reg = <0x00000000 0x04000000>;  // 64MB
0024         };
0025 
0026         soc5200@f0000000 {
0027 
0028                 rtc@800 {
0029                         status = "disabled";
0030                 };
0031 
0032                 psc@2000 {              // PSC1
0033                         compatible = "fsl,mpc5200b-psc-spi","fsl,mpc5200-psc-spi";
0034                         #address-cells = <1>;
0035                         #size-cells = <0>;
0036                         cell-index = <0>;
0037                 };
0038 
0039                 psc@2200 {              // PSC2
0040                         status = "disabled";
0041                 };
0042 
0043                 psc@2400 {              // PSC3
0044                         status = "disabled";
0045                 };
0046 
0047                 psc@2600 {              // PSC4
0048                         compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
0049                 };
0050 
0051                 psc@2800 {              // PSC5
0052                         compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
0053                 };
0054 
0055                 psc@2c00 {              // PSC6
0056                         status = "disabled";
0057                 };
0058 
0059                 ethernet@3000 {
0060                         phy-handle = <&phy0>;
0061                 };
0062 
0063                 mdio@3000 {
0064                         phy0: ethernet-phy@0 {
0065                                 reg = <0>;
0066                         };
0067                 };
0068         };
0069 
0070         localbus {
0071                 ranges = <0 0 0xff000000 0x01000000
0072                           3 0 0xe3000000 0x00100000>;
0073 
0074                 // flash device at LocalPlus Bus CS0
0075                 flash@0,0 {
0076                         compatible = "cfi-flash";
0077                         reg = <0 0 0x01000000>;
0078                         bank-width = <1>;
0079                         device-width = <2>;
0080                         #size-cells = <1>;
0081                         #address-cells = <1>;
0082                         no-unaligned-direct-access;
0083 
0084                         /* common layout for all machines */
0085                         partition@0 {
0086                                 label = "u-boot";
0087                                 reg = <0x00000000 0x00040000>;
0088                                 read-only;
0089                         };
0090                         partition@40000 {
0091                                 label = "env";
0092                                 reg = <0x00040000 0x00020000>;
0093                                 read-only;
0094                         };
0095                 };
0096 
0097                 csi@3,0 {
0098                         compatible = "ifm,o2d-csi";
0099                         reg = <3 0 0x00100000>;
0100                         ifm,csi-clk-handle = <&gpt7>;
0101                         gpios = <&gpio_simple 23 0      /* imag_capture */
0102                                  &gpio_simple 26 0      /* imag_reset */
0103                                  &gpio_simple 29 0>;    /* imag_master_en */
0104 
0105                         interrupts = <1 1 2>;           /* IRQ1, edge falling */
0106 
0107                         ifm,csi-addr-bus-width = <24>;
0108                         ifm,csi-data-bus-width = <8>;
0109                         ifm,csi-wait-cycles = <0>;
0110                 };
0111         };
0112 };