1 // SPDX-License-Identifier: GPL-2.0-or-later << 2 /* 1 /* 3 * O2D base Device Tree Source 2 * O2D base Device Tree Source 4 * 3 * 5 * Copyright (C) 2012 DENX Software Engineerin 4 * Copyright (C) 2012 DENX Software Engineering 6 * Anatolij Gustschin <agust@denx.de> 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. 7 */ 11 */ 8 12 9 /include/ "mpc5200b.dtsi" 13 /include/ "mpc5200b.dtsi" 10 14 11 &gpt0 { 15 &gpt0 { 12 gpio-controller; 16 gpio-controller; 13 fsl,has-wdt; 17 fsl,has-wdt; 14 fsl,wdt-on-boot = <0>; 18 fsl,wdt-on-boot = <0>; 15 }; 19 }; 16 &gpt1 { gpio-controller; }; 20 &gpt1 { gpio-controller; }; 17 21 18 / { 22 / { 19 model = "ifm,o2d"; 23 model = "ifm,o2d"; 20 compatible = "ifm,o2d"; 24 compatible = "ifm,o2d"; 21 25 22 memory@0 { 26 memory@0 { 23 reg = <0x00000000 0x04000000>; 27 reg = <0x00000000 0x04000000>; // 64MB 24 }; 28 }; 25 29 26 soc5200@f0000000 { 30 soc5200@f0000000 { 27 31 28 rtc@800 { 32 rtc@800 { 29 status = "disabled"; 33 status = "disabled"; 30 }; 34 }; 31 35 32 psc@2000 { // PSC 36 psc@2000 { // PSC1 33 compatible = "fsl,mpc5 37 compatible = "fsl,mpc5200b-psc-spi","fsl,mpc5200-psc-spi"; 34 #address-cells = <1>; 38 #address-cells = <1>; 35 #size-cells = <0>; 39 #size-cells = <0>; 36 cell-index = <0>; 40 cell-index = <0>; >> 41 >> 42 spidev@0 { >> 43 compatible = "spidev"; >> 44 spi-max-frequency = <250000>; >> 45 reg = <0>; >> 46 }; 37 }; 47 }; 38 48 39 psc@2200 { // PSC 49 psc@2200 { // PSC2 40 status = "disabled"; 50 status = "disabled"; 41 }; 51 }; 42 52 43 psc@2400 { // PSC 53 psc@2400 { // PSC3 44 status = "disabled"; 54 status = "disabled"; 45 }; 55 }; 46 56 47 psc@2600 { // PSC 57 psc@2600 { // PSC4 48 compatible = "fsl,mpc5 58 compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart"; 49 }; 59 }; 50 60 51 psc@2800 { // PSC 61 psc@2800 { // PSC5 52 compatible = "fsl,mpc5 62 compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart"; 53 }; 63 }; 54 64 55 psc@2c00 { // PSC 65 psc@2c00 { // PSC6 56 status = "disabled"; 66 status = "disabled"; 57 }; 67 }; 58 68 59 ethernet@3000 { 69 ethernet@3000 { 60 phy-handle = <&phy0>; 70 phy-handle = <&phy0>; 61 }; 71 }; 62 72 63 mdio@3000 { 73 mdio@3000 { 64 phy0: ethernet-phy@0 { 74 phy0: ethernet-phy@0 { 65 reg = <0>; 75 reg = <0>; 66 }; 76 }; 67 }; 77 }; 68 }; 78 }; 69 79 70 localbus { 80 localbus { 71 ranges = <0 0 0xff000000 0x010 81 ranges = <0 0 0xff000000 0x01000000 72 3 0 0xe3000000 0x001 82 3 0 0xe3000000 0x00100000>; 73 83 74 // flash device at LocalPlus B 84 // flash device at LocalPlus Bus CS0 75 flash@0,0 { 85 flash@0,0 { 76 compatible = "cfi-flas 86 compatible = "cfi-flash"; 77 reg = <0 0 0x01000000> 87 reg = <0 0 0x01000000>; 78 bank-width = <1>; 88 bank-width = <1>; 79 device-width = <2>; 89 device-width = <2>; 80 #size-cells = <1>; 90 #size-cells = <1>; 81 #address-cells = <1>; 91 #address-cells = <1>; 82 no-unaligned-direct-ac 92 no-unaligned-direct-access; 83 93 84 /* common layout for a 94 /* common layout for all machines */ 85 partition@0 { 95 partition@0 { 86 label = "u-boo 96 label = "u-boot"; 87 reg = <0x00000 97 reg = <0x00000000 0x00040000>; 88 read-only; 98 read-only; 89 }; 99 }; 90 partition@40000 { 100 partition@40000 { 91 label = "env"; 101 label = "env"; 92 reg = <0x00040 102 reg = <0x00040000 0x00020000>; 93 read-only; 103 read-only; 94 }; 104 }; 95 }; 105 }; 96 106 97 csi@3,0 { 107 csi@3,0 { 98 compatible = "ifm,o2d- 108 compatible = "ifm,o2d-csi"; 99 reg = <3 0 0x00100000> 109 reg = <3 0 0x00100000>; 100 ifm,csi-clk-handle = < 110 ifm,csi-clk-handle = <&gpt7>; 101 gpios = <&gpio_simple 111 gpios = <&gpio_simple 23 0 /* imag_capture */ 102 &gpio_simple 112 &gpio_simple 26 0 /* imag_reset */ 103 &gpio_simple 113 &gpio_simple 29 0>; /* imag_master_en */ 104 114 105 interrupts = <1 1 2>; 115 interrupts = <1 1 2>; /* IRQ1, edge falling */ 106 116 107 ifm,csi-addr-bus-width 117 ifm,csi-addr-bus-width = <24>; 108 ifm,csi-data-bus-width 118 ifm,csi-data-bus-width = <8>; 109 ifm,csi-wait-cycles = 119 ifm,csi-wait-cycles = <0>; 110 }; 120 }; 111 }; 121 }; 112 }; 122 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.