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" |
Roger Quadros | 6d840d8 | 2016-02-23 18:37:23 +0200 | [diff] [blame] | 9 | #include <dt-bindings/interrupt-controller/irq.h> |
Tony Lindgren | ac7452c | 2015-01-19 11:47:35 -0800 | [diff] [blame] | 10 | |
| 11 | / { |
| 12 | model = "DM8168 EVM"; |
| 13 | compatible = "ti,dm8168-evm", "ti,dm8168"; |
| 14 | |
Javier Martinez Canillas | f193a5a | 2016-08-31 12:35:35 +0200 | [diff] [blame] | 15 | memory@80000000 { |
Tony Lindgren | ac7452c | 2015-01-19 11:47:35 -0800 | [diff] [blame] | 16 | device_type = "memory"; |
| 17 | reg = <0x80000000 0x40000000 /* 1 GB */ |
| 18 | 0xc0000000 0x40000000>; /* 1 GB */ |
| 19 | }; |
| 20 | |
| 21 | /* FDC6331L controlled by SD_POW pin */ |
Javier Martinez Canillas | 0b0d912 | 2016-08-01 12:46:59 -0400 | [diff] [blame] | 22 | vmmcsd_fixed: fixedregulator0 { |
Tony Lindgren | ac7452c | 2015-01-19 11:47:35 -0800 | [diff] [blame] | 23 | compatible = "regulator-fixed"; |
| 24 | regulator-name = "vmmcsd_fixed"; |
| 25 | regulator-min-microvolt = <3300000>; |
| 26 | regulator-max-microvolt = <3300000>; |
| 27 | }; |
Bartosz Golaszewski | 69dfc19 | 2017-03-14 12:14:13 +0100 | [diff] [blame] | 28 | |
| 29 | sata_refclk: fixedclock0 { |
| 30 | compatible = "fixed-clock"; |
| 31 | #clock-cells = <0>; |
| 32 | clock-frequency = <100000000>; |
| 33 | }; |
Tony Lindgren | ac7452c | 2015-01-19 11:47:35 -0800 | [diff] [blame] | 34 | }; |
| 35 | |
| 36 | &dm816x_pinmux { |
| 37 | mcspi1_pins: pinmux_mcspi1_pins { |
| 38 | pinctrl-single,pins = < |
Tony Lindgren | a710d10 | 2015-03-19 09:14:36 -0700 | [diff] [blame] | 39 | DM816X_IOPAD(0x0a94, MUX_MODE0) /* SPI_SCLK */ |
| 40 | DM816X_IOPAD(0x0a98, MUX_MODE0) /* SPI_SCS0 */ |
| 41 | DM816X_IOPAD(0x0aa8, MUX_MODE0) /* SPI_D0 */ |
| 42 | DM816X_IOPAD(0x0aac, MUX_MODE0) /* SPI_D1 */ |
Tony Lindgren | ac7452c | 2015-01-19 11:47:35 -0800 | [diff] [blame] | 43 | >; |
| 44 | }; |
Tony Lindgren | a54879a | 2015-02-24 08:48:52 -0800 | [diff] [blame] | 45 | |
Tony Lindgren | 599c376 | 2015-03-18 13:41:34 -0700 | [diff] [blame] | 46 | mmc_pins: pinmux_mmc_pins { |
| 47 | pinctrl-single,pins = < |
| 48 | DM816X_IOPAD(0x0a70, MUX_MODE0) /* SD_POW */ |
| 49 | DM816X_IOPAD(0x0a74, MUX_MODE0) /* SD_CLK */ |
| 50 | DM816X_IOPAD(0x0a78, MUX_MODE0) /* SD_CMD */ |
| 51 | DM816X_IOPAD(0x0a7C, MUX_MODE0) /* SD_DAT0 */ |
| 52 | DM816X_IOPAD(0x0a80, MUX_MODE0) /* SD_DAT1 */ |
| 53 | DM816X_IOPAD(0x0a84, MUX_MODE0) /* SD_DAT2 */ |
| 54 | DM816X_IOPAD(0x0a88, MUX_MODE0) /* SD_DAT2 */ |
| 55 | DM816X_IOPAD(0x0a8c, MUX_MODE2) /* GP1[7] */ |
| 56 | DM816X_IOPAD(0x0a90, MUX_MODE2) /* GP1[8] */ |
| 57 | >; |
| 58 | }; |
| 59 | |
Tony Lindgren | a54879a | 2015-02-24 08:48:52 -0800 | [diff] [blame] | 60 | usb0_pins: pinmux_usb0_pins { |
| 61 | pinctrl-single,pins = < |
Tony Lindgren | 3438bd2 | 2015-03-19 09:14:35 -0700 | [diff] [blame] | 62 | DM816X_IOPAD(0x0d04, MUX_MODE0) /* USB0_DRVVBUS */ |
Tony Lindgren | a54879a | 2015-02-24 08:48:52 -0800 | [diff] [blame] | 63 | >; |
| 64 | }; |
| 65 | |
Tony Lindgren | 3438bd2 | 2015-03-19 09:14:35 -0700 | [diff] [blame] | 66 | usb1_pins: pinmux_usb1_pins { |
Tony Lindgren | a54879a | 2015-02-24 08:48:52 -0800 | [diff] [blame] | 67 | pinctrl-single,pins = < |
Tony Lindgren | 3438bd2 | 2015-03-19 09:14:35 -0700 | [diff] [blame] | 68 | DM816X_IOPAD(0x0d08, MUX_MODE0) /* USB1_DRVVBUS */ |
Tony Lindgren | a54879a | 2015-02-24 08:48:52 -0800 | [diff] [blame] | 69 | >; |
| 70 | }; |
Tony Lindgren | ac7452c | 2015-01-19 11:47:35 -0800 | [diff] [blame] | 71 | }; |
| 72 | |
| 73 | &i2c1 { |
| 74 | extgpio0: pcf8575@20 { |
| 75 | compatible = "nxp,pcf8575"; |
| 76 | reg = <0x20>; |
| 77 | gpio-controller; |
| 78 | #gpio-cells = <2>; |
| 79 | }; |
| 80 | }; |
| 81 | |
| 82 | &i2c2 { |
| 83 | extgpio1: pcf8575@20 { |
| 84 | compatible = "nxp,pcf8575"; |
| 85 | reg = <0x20>; |
| 86 | gpio-controller; |
| 87 | #gpio-cells = <2>; |
| 88 | }; |
| 89 | }; |
| 90 | |
| 91 | &gpmc { |
| 92 | ranges = <0 0 0x04000000 0x01000000>; /* CS0: 16MB for NAND */ |
| 93 | |
| 94 | nand@0,0 { |
Roger Quadros | 6d840d8 | 2016-02-23 18:37:23 +0200 | [diff] [blame] | 95 | compatible = "ti,omap2-nand"; |
Tony Lindgren | ac7452c | 2015-01-19 11:47:35 -0800 | [diff] [blame] | 96 | linux,mtd-name= "micron,mt29f2g16aadwp"; |
| 97 | reg = <0 0 4>; /* CS0, offset 0, IO size 4 */ |
Roger Quadros | 6d840d8 | 2016-02-23 18:37:23 +0200 | [diff] [blame] | 98 | interrupt-parent = <&gpmc>; |
| 99 | interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */ |
| 100 | <1 IRQ_TYPE_NONE>; /* termcount */ |
Tony Lindgren | ac7452c | 2015-01-19 11:47:35 -0800 | [diff] [blame] | 101 | #address-cells = <1>; |
| 102 | #size-cells = <1>; |
| 103 | ti,nand-ecc-opt = "bch8"; |
| 104 | nand-bus-width = <16>; |
| 105 | gpmc,device-width = <2>; |
| 106 | gpmc,sync-clk-ps = <0>; |
| 107 | gpmc,cs-on-ns = <0>; |
| 108 | gpmc,cs-rd-off-ns = <44>; |
| 109 | gpmc,cs-wr-off-ns = <44>; |
| 110 | gpmc,adv-on-ns = <6>; |
| 111 | gpmc,adv-rd-off-ns = <34>; |
| 112 | gpmc,adv-wr-off-ns = <44>; |
| 113 | gpmc,we-on-ns = <0>; |
| 114 | gpmc,we-off-ns = <40>; |
| 115 | gpmc,oe-on-ns = <0>; |
| 116 | gpmc,oe-off-ns = <54>; |
| 117 | gpmc,access-ns = <64>; |
| 118 | gpmc,rd-cycle-ns = <82>; |
| 119 | gpmc,wr-cycle-ns = <82>; |
Tony Lindgren | ac7452c | 2015-01-19 11:47:35 -0800 | [diff] [blame] | 120 | gpmc,bus-turnaround-ns = <0>; |
| 121 | gpmc,cycle2cycle-delay-ns = <0>; |
| 122 | gpmc,clk-activation-ns = <0>; |
Tony Lindgren | ac7452c | 2015-01-19 11:47:35 -0800 | [diff] [blame] | 123 | gpmc,wr-access-ns = <40>; |
| 124 | gpmc,wr-data-mux-bus-ns = <0>; |
| 125 | partition@0 { |
| 126 | label = "X-Loader"; |
| 127 | reg = <0 0x80000>; |
| 128 | }; |
| 129 | partition@0x80000 { |
| 130 | label = "U-Boot"; |
| 131 | reg = <0x80000 0x1c0000>; |
| 132 | }; |
| 133 | partition@0x1c0000 { |
| 134 | label = "Environment"; |
| 135 | reg = <0x240000 0x40000>; |
| 136 | }; |
| 137 | partition@0x280000 { |
| 138 | label = "Kernel"; |
| 139 | reg = <0x280000 0x500000>; |
| 140 | }; |
| 141 | partition@0x780000 { |
| 142 | label = "Filesystem"; |
| 143 | reg = <0x780000 0xf880000>; |
| 144 | }; |
| 145 | }; |
| 146 | }; |
| 147 | |
| 148 | &mcspi1 { |
| 149 | pinctrl-names = "default"; |
| 150 | pinctrl-0 = <&mcspi1_pins>; |
| 151 | |
| 152 | m25p80@0 { |
| 153 | compatible = "w25x32"; |
| 154 | spi-max-frequency = <48000000>; |
| 155 | reg = <0>; |
| 156 | #address-cells = <1>; |
| 157 | #size-cells = <1>; |
| 158 | }; |
| 159 | }; |
| 160 | |
| 161 | &mmc1 { |
Tony Lindgren | 599c376 | 2015-03-18 13:41:34 -0700 | [diff] [blame] | 162 | pinctrl-names = "default"; |
| 163 | pinctrl-0 = <&mmc_pins>; |
Tony Lindgren | ac7452c | 2015-01-19 11:47:35 -0800 | [diff] [blame] | 164 | vmmc-supply = <&vmmcsd_fixed>; |
Tony Lindgren | 599c376 | 2015-03-18 13:41:34 -0700 | [diff] [blame] | 165 | bus-width = <4>; |
| 166 | cd-gpios = <&gpio2 7 GPIO_ACTIVE_LOW>; |
| 167 | wp-gpios = <&gpio2 8 GPIO_ACTIVE_LOW>; |
Tony Lindgren | ac7452c | 2015-01-19 11:47:35 -0800 | [diff] [blame] | 168 | }; |
Tony Lindgren | a54879a | 2015-02-24 08:48:52 -0800 | [diff] [blame] | 169 | |
| 170 | /* At least dm8168-evm rev c won't support multipoint, later may */ |
| 171 | &usb0 { |
| 172 | pinctrl-names = "default"; |
| 173 | pinctrl-0 = <&usb0_pins>; |
| 174 | mentor,multipoint = <0>; |
| 175 | }; |
| 176 | |
| 177 | &usb1 { |
| 178 | pinctrl-names = "default"; |
| 179 | pinctrl-0 = <&usb1_pins>; |
| 180 | mentor,multipoint = <0>; |
| 181 | }; |
Bartosz Golaszewski | 9f6b572 | 2017-03-14 12:14:14 +0100 | [diff] [blame] | 182 | |
| 183 | &sata { |
| 184 | clocks = <&sysclk5_ck>, <&sata_refclk>; |
| 185 | }; |