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