Tony Lindgren | 73db9e0 | 2015-07-23 22:33:18 -0700 | [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 "dm814x.dtsi" |
Roger Quadros | 0c3e192 | 2016-03-01 15:44:47 +0200 | [diff] [blame] | 9 | #include <dt-bindings/interrupt-controller/irq.h> |
Tony Lindgren | 73db9e0 | 2015-07-23 22:33:18 -0700 | [diff] [blame] | 10 | |
| 11 | / { |
| 12 | model = "DM8148 EVM"; |
| 13 | compatible = "ti,dm8148-evm", "ti,dm8148"; |
| 14 | |
| 15 | memory { |
| 16 | device_type = "memory"; |
| 17 | reg = <0x80000000 0x40000000>; /* 1 GB */ |
| 18 | }; |
Tony Lindgren | 67b5e9e | 2015-12-22 16:00:51 -0800 | [diff] [blame] | 19 | |
| 20 | /* MIC94060YC6 controlled by SD1_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 | }; |
Tony Lindgren | 73db9e0 | 2015-07-23 22:33:18 -0700 | [diff] [blame] | 27 | }; |
| 28 | |
| 29 | &cpsw_emac0 { |
| 30 | phy_id = <&davinci_mdio>, <0>; |
Tony Lindgren | 87ee15e | 2015-09-14 07:07:28 -0700 | [diff] [blame] | 31 | phy-mode = "rgmii"; |
Tony Lindgren | 73db9e0 | 2015-07-23 22:33:18 -0700 | [diff] [blame] | 32 | }; |
| 33 | |
| 34 | &cpsw_emac1 { |
| 35 | phy_id = <&davinci_mdio>, <1>; |
Tony Lindgren | 87ee15e | 2015-09-14 07:07:28 -0700 | [diff] [blame] | 36 | phy-mode = "rgmii"; |
Tony Lindgren | 73db9e0 | 2015-07-23 22:33:18 -0700 | [diff] [blame] | 37 | }; |
Tony Lindgren | 67b5e9e | 2015-12-22 16:00:51 -0800 | [diff] [blame] | 38 | |
Tony Lindgren | 0589df6 | 2016-02-12 13:25:14 -0800 | [diff] [blame] | 39 | &gpmc { |
| 40 | ranges = <0 0 0x04000000 0x01000000>; /* CS0: 16MB for NAND */ |
| 41 | |
| 42 | nand@0,0 { |
Roger Quadros | 0c3e192 | 2016-03-01 15:44:47 +0200 | [diff] [blame] | 43 | compatible = "ti,omap2-nand"; |
Tony Lindgren | 0589df6 | 2016-02-12 13:25:14 -0800 | [diff] [blame] | 44 | reg = <0 0 4>; /* CS0, offset 0, IO size 4 */ |
Roger Quadros | 0c3e192 | 2016-03-01 15:44:47 +0200 | [diff] [blame] | 45 | interrupt-parent = <&gpmc>; |
| 46 | interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */ |
| 47 | <1 IRQ_TYPE_NONE>; /* termcount */ |
| 48 | linux,mtd-name= "micron,mt29f2g16aadwp"; |
Tony Lindgren | 0589df6 | 2016-02-12 13:25:14 -0800 | [diff] [blame] | 49 | #address-cells = <1>; |
| 50 | #size-cells = <1>; |
| 51 | ti,nand-ecc-opt = "bch8"; |
| 52 | nand-bus-width = <16>; |
| 53 | gpmc,device-width = <2>; |
| 54 | gpmc,sync-clk-ps = <0>; |
| 55 | gpmc,cs-on-ns = <0>; |
| 56 | gpmc,cs-rd-off-ns = <44>; |
| 57 | gpmc,cs-wr-off-ns = <44>; |
| 58 | gpmc,adv-on-ns = <6>; |
| 59 | gpmc,adv-rd-off-ns = <34>; |
| 60 | gpmc,adv-wr-off-ns = <44>; |
| 61 | gpmc,we-on-ns = <0>; |
| 62 | gpmc,we-off-ns = <40>; |
| 63 | gpmc,oe-on-ns = <0>; |
| 64 | gpmc,oe-off-ns = <54>; |
| 65 | gpmc,access-ns = <64>; |
| 66 | gpmc,rd-cycle-ns = <82>; |
| 67 | gpmc,wr-cycle-ns = <82>; |
Tony Lindgren | 0589df6 | 2016-02-12 13:25:14 -0800 | [diff] [blame] | 68 | gpmc,bus-turnaround-ns = <0>; |
| 69 | gpmc,cycle2cycle-delay-ns = <0>; |
| 70 | gpmc,clk-activation-ns = <0>; |
Tony Lindgren | 0589df6 | 2016-02-12 13:25:14 -0800 | [diff] [blame] | 71 | gpmc,wr-access-ns = <40>; |
| 72 | gpmc,wr-data-mux-bus-ns = <0>; |
| 73 | partition@0 { |
| 74 | label = "X-Loader"; |
| 75 | reg = <0 0x80000>; |
| 76 | }; |
| 77 | partition@0x80000 { |
| 78 | label = "U-Boot"; |
| 79 | reg = <0x80000 0x1c0000>; |
| 80 | }; |
| 81 | partition@0x1c0000 { |
| 82 | label = "Environment"; |
| 83 | reg = <0x240000 0x40000>; |
| 84 | }; |
| 85 | partition@0x280000 { |
| 86 | label = "Kernel"; |
| 87 | reg = <0x280000 0x500000>; |
| 88 | }; |
| 89 | partition@0x780000 { |
| 90 | label = "Filesystem"; |
| 91 | reg = <0x780000 0xf880000>; |
| 92 | }; |
| 93 | }; |
| 94 | }; |
| 95 | |
Nicolas Chauvet | 1ddbef4 | 2016-05-10 12:14:58 +0200 | [diff] [blame] | 96 | &mmc1 { |
| 97 | status = "disabled"; |
| 98 | }; |
| 99 | |
Tony Lindgren | 67b5e9e | 2015-12-22 16:00:51 -0800 | [diff] [blame] | 100 | &mmc2 { |
| 101 | pinctrl-names = "default"; |
| 102 | pinctrl-0 = <&sd1_pins>; |
| 103 | vmmc-supply = <&vmmcsd_fixed>; |
| 104 | bus-width = <4>; |
| 105 | cd-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>; |
| 106 | }; |
| 107 | |
Nicolas Chauvet | 1ddbef4 | 2016-05-10 12:14:58 +0200 | [diff] [blame] | 108 | &mmc3 { |
| 109 | status = "disabled"; |
| 110 | }; |
| 111 | |
Tony Lindgren | 67b5e9e | 2015-12-22 16:00:51 -0800 | [diff] [blame] | 112 | &pincntl { |
| 113 | sd1_pins: pinmux_sd1_pins { |
| 114 | pinctrl-single,pins = < |
| 115 | DM814X_IOPAD(0x0800, PIN_INPUT | 0x1) /* SD1_CLK */ |
| 116 | DM814X_IOPAD(0x0804, PIN_INPUT_PULLUP | 0x1) /* SD1_CMD */ |
| 117 | DM814X_IOPAD(0x0808, PIN_INPUT_PULLUP | 0x1) /* SD1_DAT[0] */ |
| 118 | DM814X_IOPAD(0x080c, PIN_INPUT_PULLUP | 0x1) /* SD1_DAT[1] */ |
| 119 | DM814X_IOPAD(0x0810, PIN_INPUT_PULLUP | 0x1) /* SD1_DAT[2] */ |
| 120 | DM814X_IOPAD(0x0814, PIN_INPUT_PULLUP | 0x1) /* SD1_DAT[3] */ |
| 121 | DM814X_IOPAD(0x0924, PIN_OUTPUT | 0x40) /* SD1_POW */ |
| 122 | DM814X_IOPAD(0x093C, PIN_INPUT_PULLUP | 0x80) /* GP1[6] */ |
| 123 | >; |
| 124 | }; |
Tony Lindgren | e032013 | 2015-12-22 16:01:16 -0800 | [diff] [blame] | 125 | |
| 126 | usb0_pins: pinmux_usb0_pins { |
| 127 | pinctrl-single,pins = < |
| 128 | DM814X_IOPAD(0x0c34, PIN_OUTPUT | 0x1) /* USB0_DRVVBUS */ |
| 129 | >; |
| 130 | }; |
| 131 | |
| 132 | usb1_pins: pinmux_usb1_pins { |
| 133 | pinctrl-single,pins = < |
| 134 | DM814X_IOPAD(0x0834, PIN_OUTPUT | 0x80) /* USB1_DRVVBUS */ |
| 135 | >; |
| 136 | }; |
| 137 | }; |
| 138 | |
| 139 | &usb0 { |
| 140 | pinctrl-names = "default"; |
| 141 | pinctrl-0 = <&usb0_pins>; |
| 142 | dr_mode = "host"; |
| 143 | }; |
| 144 | |
| 145 | &usb1 { |
| 146 | pinctrl-names = "default"; |
| 147 | pinctrl-0 = <&usb1_pins>; |
| 148 | dr_mode = "host"; |
Tony Lindgren | 67b5e9e | 2015-12-22 16:00:51 -0800 | [diff] [blame] | 149 | }; |