Tony Lindgren | ac7452c | 2015-01-19 11:47:35 -0800 | [diff] [blame] | 1 | /* |
| 2 | * This program is free software; you can redistribute it and/or modify |
| 3 | * it under the terms of the GNU General Public License version 2 as |
| 4 | * published by the Free Software Foundation. |
| 5 | */ |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include "dm816x.dtsi" |
| 9 | |
| 10 | / { |
| 11 | model = "DM8168 EVM"; |
| 12 | compatible = "ti,dm8168-evm", "ti,dm8168"; |
| 13 | |
| 14 | memory { |
| 15 | device_type = "memory"; |
| 16 | reg = <0x80000000 0x40000000 /* 1 GB */ |
| 17 | 0xc0000000 0x40000000>; /* 1 GB */ |
| 18 | }; |
| 19 | |
| 20 | /* FDC6331L controlled by SD_POW pin */ |
| 21 | vmmcsd_fixed: fixedregulator@0 { |
| 22 | compatible = "regulator-fixed"; |
| 23 | regulator-name = "vmmcsd_fixed"; |
| 24 | regulator-min-microvolt = <3300000>; |
| 25 | regulator-max-microvolt = <3300000>; |
| 26 | }; |
| 27 | }; |
| 28 | |
| 29 | &dm816x_pinmux { |
| 30 | mcspi1_pins: pinmux_mcspi1_pins { |
| 31 | pinctrl-single,pins = < |
| 32 | DM816X_IOPAD(0x0a94, PIN_INPUT | MUX_MODE0) /* SPI_SCLK */ |
| 33 | DM816X_IOPAD(0x0a98, PIN_OUTPUT | MUX_MODE0) /* SPI_SCS0 */ |
| 34 | DM816X_IOPAD(0x0aa8, PIN_INPUT | MUX_MODE0) /* SPI_D0 */ |
| 35 | DM816X_IOPAD(0x0aac, PIN_INPUT | MUX_MODE0) /* SPI_D1 */ |
| 36 | >; |
| 37 | }; |
Tony Lindgren | a54879a | 2015-02-24 08:48:52 -0800 | [diff] [blame] | 38 | |
| 39 | usb0_pins: pinmux_usb0_pins { |
| 40 | pinctrl-single,pins = < |
Tony Lindgren | 3438bd2 | 2015-03-19 09:14:35 -0700 | [diff] [blame^] | 41 | DM816X_IOPAD(0x0d04, MUX_MODE0) /* USB0_DRVVBUS */ |
Tony Lindgren | a54879a | 2015-02-24 08:48:52 -0800 | [diff] [blame] | 42 | >; |
| 43 | }; |
| 44 | |
Tony Lindgren | 3438bd2 | 2015-03-19 09:14:35 -0700 | [diff] [blame^] | 45 | usb1_pins: pinmux_usb1_pins { |
Tony Lindgren | a54879a | 2015-02-24 08:48:52 -0800 | [diff] [blame] | 46 | pinctrl-single,pins = < |
Tony Lindgren | 3438bd2 | 2015-03-19 09:14:35 -0700 | [diff] [blame^] | 47 | DM816X_IOPAD(0x0d08, MUX_MODE0) /* USB1_DRVVBUS */ |
Tony Lindgren | a54879a | 2015-02-24 08:48:52 -0800 | [diff] [blame] | 48 | >; |
| 49 | }; |
Tony Lindgren | ac7452c | 2015-01-19 11:47:35 -0800 | [diff] [blame] | 50 | }; |
| 51 | |
| 52 | &i2c1 { |
| 53 | extgpio0: pcf8575@20 { |
| 54 | compatible = "nxp,pcf8575"; |
| 55 | reg = <0x20>; |
| 56 | gpio-controller; |
| 57 | #gpio-cells = <2>; |
| 58 | }; |
| 59 | }; |
| 60 | |
| 61 | &i2c2 { |
| 62 | extgpio1: pcf8575@20 { |
| 63 | compatible = "nxp,pcf8575"; |
| 64 | reg = <0x20>; |
| 65 | gpio-controller; |
| 66 | #gpio-cells = <2>; |
| 67 | }; |
| 68 | }; |
| 69 | |
| 70 | &gpmc { |
| 71 | ranges = <0 0 0x04000000 0x01000000>; /* CS0: 16MB for NAND */ |
| 72 | |
| 73 | nand@0,0 { |
| 74 | linux,mtd-name= "micron,mt29f2g16aadwp"; |
| 75 | reg = <0 0 4>; /* CS0, offset 0, IO size 4 */ |
| 76 | #address-cells = <1>; |
| 77 | #size-cells = <1>; |
| 78 | ti,nand-ecc-opt = "bch8"; |
| 79 | nand-bus-width = <16>; |
| 80 | gpmc,device-width = <2>; |
| 81 | gpmc,sync-clk-ps = <0>; |
| 82 | gpmc,cs-on-ns = <0>; |
| 83 | gpmc,cs-rd-off-ns = <44>; |
| 84 | gpmc,cs-wr-off-ns = <44>; |
| 85 | gpmc,adv-on-ns = <6>; |
| 86 | gpmc,adv-rd-off-ns = <34>; |
| 87 | gpmc,adv-wr-off-ns = <44>; |
| 88 | gpmc,we-on-ns = <0>; |
| 89 | gpmc,we-off-ns = <40>; |
| 90 | gpmc,oe-on-ns = <0>; |
| 91 | gpmc,oe-off-ns = <54>; |
| 92 | gpmc,access-ns = <64>; |
| 93 | gpmc,rd-cycle-ns = <82>; |
| 94 | gpmc,wr-cycle-ns = <82>; |
| 95 | gpmc,wait-on-read = "true"; |
| 96 | gpmc,wait-on-write = "true"; |
| 97 | gpmc,bus-turnaround-ns = <0>; |
| 98 | gpmc,cycle2cycle-delay-ns = <0>; |
| 99 | gpmc,clk-activation-ns = <0>; |
| 100 | gpmc,wait-monitoring-ns = <0>; |
| 101 | gpmc,wr-access-ns = <40>; |
| 102 | gpmc,wr-data-mux-bus-ns = <0>; |
| 103 | partition@0 { |
| 104 | label = "X-Loader"; |
| 105 | reg = <0 0x80000>; |
| 106 | }; |
| 107 | partition@0x80000 { |
| 108 | label = "U-Boot"; |
| 109 | reg = <0x80000 0x1c0000>; |
| 110 | }; |
| 111 | partition@0x1c0000 { |
| 112 | label = "Environment"; |
| 113 | reg = <0x240000 0x40000>; |
| 114 | }; |
| 115 | partition@0x280000 { |
| 116 | label = "Kernel"; |
| 117 | reg = <0x280000 0x500000>; |
| 118 | }; |
| 119 | partition@0x780000 { |
| 120 | label = "Filesystem"; |
| 121 | reg = <0x780000 0xf880000>; |
| 122 | }; |
| 123 | }; |
| 124 | }; |
| 125 | |
| 126 | &mcspi1 { |
| 127 | pinctrl-names = "default"; |
| 128 | pinctrl-0 = <&mcspi1_pins>; |
| 129 | |
| 130 | m25p80@0 { |
| 131 | compatible = "w25x32"; |
| 132 | spi-max-frequency = <48000000>; |
| 133 | reg = <0>; |
| 134 | #address-cells = <1>; |
| 135 | #size-cells = <1>; |
| 136 | }; |
| 137 | }; |
| 138 | |
| 139 | &mmc1 { |
| 140 | vmmc-supply = <&vmmcsd_fixed>; |
| 141 | }; |
Tony Lindgren | a54879a | 2015-02-24 08:48:52 -0800 | [diff] [blame] | 142 | |
| 143 | /* At least dm8168-evm rev c won't support multipoint, later may */ |
| 144 | &usb0 { |
| 145 | pinctrl-names = "default"; |
| 146 | pinctrl-0 = <&usb0_pins>; |
| 147 | mentor,multipoint = <0>; |
| 148 | }; |
| 149 | |
| 150 | &usb1 { |
| 151 | pinctrl-names = "default"; |
| 152 | pinctrl-0 = <&usb1_pins>; |
| 153 | mentor,multipoint = <0>; |
| 154 | }; |