Andrew Davis | 856ec34 | 2023-04-11 13:25:02 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Lokesh Vutla | 050d8ab | 2015-09-19 15:00:20 +0530 | [diff] [blame] | 2 | /* |
Lokesh Vutla | 050d8ab | 2015-09-19 15:00:20 +0530 | [diff] [blame] | 3 | * Keystone 2 Kepler/Hawking EVM device tree |
| 4 | * |
Nishanth Menon | eaa39c6 | 2023-11-01 15:56:03 -0500 | [diff] [blame] | 5 | * Copyright (C) 2013-2017 Texas Instruments Incorporated - https://www.ti.com/ |
Lokesh Vutla | 050d8ab | 2015-09-19 15:00:20 +0530 | [diff] [blame] | 6 | */ |
| 7 | /dts-v1/; |
| 8 | |
| 9 | #include "keystone.dtsi" |
Lokesh Vutla | e3187b9 | 2017-01-31 09:32:57 +0530 | [diff] [blame] | 10 | #include "keystone-k2hk.dtsi" |
Lokesh Vutla | 050d8ab | 2015-09-19 15:00:20 +0530 | [diff] [blame] | 11 | |
| 12 | / { |
| 13 | compatible = "ti,k2hk-evm","ti,keystone"; |
| 14 | model = "Texas Instruments Keystone 2 Kepler/Hawking EVM"; |
| 15 | |
| 16 | soc { |
| 17 | clocks { |
| 18 | refclksys: refclksys { |
| 19 | #clock-cells = <0>; |
| 20 | compatible = "fixed-clock"; |
| 21 | clock-frequency = <122880000>; |
| 22 | clock-output-names = "refclk-sys"; |
| 23 | }; |
| 24 | |
| 25 | refclkpass: refclkpass { |
| 26 | #clock-cells = <0>; |
| 27 | compatible = "fixed-clock"; |
| 28 | clock-frequency = <122880000>; |
| 29 | clock-output-names = "refclk-pass"; |
| 30 | }; |
| 31 | |
| 32 | refclkarm: refclkarm { |
| 33 | #clock-cells = <0>; |
| 34 | compatible = "fixed-clock"; |
| 35 | clock-frequency = <125000000>; |
| 36 | clock-output-names = "refclk-arm"; |
| 37 | }; |
| 38 | |
| 39 | refclkddr3a: refclkddr3a { |
| 40 | #clock-cells = <0>; |
| 41 | compatible = "fixed-clock"; |
| 42 | clock-frequency = <100000000>; |
| 43 | clock-output-names = "refclk-ddr3a"; |
| 44 | }; |
| 45 | |
| 46 | refclkddr3b: refclkddr3b { |
| 47 | #clock-cells = <0>; |
| 48 | compatible = "fixed-clock"; |
| 49 | clock-frequency = <100000000>; |
| 50 | clock-output-names = "refclk-ddr3b"; |
| 51 | }; |
| 52 | }; |
| 53 | }; |
| 54 | |
| 55 | leds { |
| 56 | compatible = "gpio-leds"; |
Andrew Davis | 33e399a | 2023-04-11 13:25:09 -0500 | [diff] [blame] | 57 | led-debug-1-1 { |
Lokesh Vutla | 050d8ab | 2015-09-19 15:00:20 +0530 | [diff] [blame] | 58 | label = "keystone:green:debug1"; |
| 59 | gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; /* 12 */ |
| 60 | }; |
| 61 | |
Andrew Davis | 33e399a | 2023-04-11 13:25:09 -0500 | [diff] [blame] | 62 | led-debug-1-2 { |
Lokesh Vutla | 050d8ab | 2015-09-19 15:00:20 +0530 | [diff] [blame] | 63 | label = "keystone:red:debug1"; |
| 64 | gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; /* 13 */ |
| 65 | }; |
| 66 | |
Andrew Davis | 33e399a | 2023-04-11 13:25:09 -0500 | [diff] [blame] | 67 | led-debug-2 { |
Lokesh Vutla | 050d8ab | 2015-09-19 15:00:20 +0530 | [diff] [blame] | 68 | label = "keystone:blue:debug2"; |
| 69 | gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; /* 14 */ |
| 70 | }; |
| 71 | |
Andrew Davis | 33e399a | 2023-04-11 13:25:09 -0500 | [diff] [blame] | 72 | led-debug-3 { |
Lokesh Vutla | 050d8ab | 2015-09-19 15:00:20 +0530 | [diff] [blame] | 73 | label = "keystone:blue:debug3"; |
| 74 | gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; /* 15 */ |
| 75 | }; |
| 76 | }; |
| 77 | }; |
| 78 | |
| 79 | &usb_phy { |
| 80 | status = "okay"; |
| 81 | }; |
| 82 | |
| 83 | &usb { |
| 84 | status = "okay"; |
| 85 | }; |
| 86 | |
| 87 | &aemif { |
| 88 | cs0 { |
| 89 | #address-cells = <2>; |
| 90 | #size-cells = <1>; |
| 91 | clock-ranges; |
| 92 | ranges; |
| 93 | |
| 94 | ti,cs-chipselect = <0>; |
| 95 | /* all timings in nanoseconds */ |
| 96 | ti,cs-min-turnaround-ns = <12>; |
| 97 | ti,cs-read-hold-ns = <6>; |
| 98 | ti,cs-read-strobe-ns = <23>; |
| 99 | ti,cs-read-setup-ns = <9>; |
| 100 | ti,cs-write-hold-ns = <8>; |
| 101 | ti,cs-write-strobe-ns = <23>; |
| 102 | ti,cs-write-setup-ns = <8>; |
| 103 | |
| 104 | nand@0,0 { |
| 105 | compatible = "ti,keystone-nand","ti,davinci-nand"; |
| 106 | #address-cells = <1>; |
| 107 | #size-cells = <1>; |
| 108 | reg = <0 0 0x4000000 |
| 109 | 1 0 0x0000100>; |
| 110 | |
| 111 | ti,davinci-chipselect = <0>; |
| 112 | ti,davinci-mask-ale = <0x2000>; |
| 113 | ti,davinci-mask-cle = <0x4000>; |
| 114 | ti,davinci-mask-chipsel = <0>; |
| 115 | nand-ecc-mode = "hw"; |
| 116 | ti,davinci-ecc-bits = <4>; |
| 117 | nand-on-flash-bbt; |
| 118 | |
| 119 | partition@0 { |
| 120 | label = "u-boot"; |
| 121 | reg = <0x0 0x100000>; |
| 122 | read-only; |
| 123 | }; |
| 124 | |
| 125 | partition@100000 { |
| 126 | label = "params"; |
| 127 | reg = <0x100000 0x80000>; |
| 128 | read-only; |
| 129 | }; |
| 130 | |
| 131 | partition@180000 { |
| 132 | label = "ubifs"; |
| 133 | reg = <0x180000 0x1fe80000>; |
| 134 | }; |
| 135 | }; |
| 136 | }; |
| 137 | }; |
| 138 | |
| 139 | &i2c0 { |
| 140 | dtt@50 { |
| 141 | compatible = "at,24c1024"; |
| 142 | reg = <0x50>; |
| 143 | }; |
| 144 | }; |
| 145 | |
| 146 | &spi0 { |
Vignesh R | e96aeed | 2016-07-06 09:58:59 +0530 | [diff] [blame] | 147 | status = "okay"; |
Andrew Davis | 33e399a | 2023-04-11 13:25:09 -0500 | [diff] [blame] | 148 | nor_flash: flash@0 { |
Lokesh Vutla | 050d8ab | 2015-09-19 15:00:20 +0530 | [diff] [blame] | 149 | #address-cells = <1>; |
| 150 | #size-cells = <1>; |
Neil Armstrong | a009fa7 | 2019-02-10 10:16:20 +0000 | [diff] [blame] | 151 | compatible = "Micron,n25q128a11", "jedec,spi-nor"; |
Lokesh Vutla | 050d8ab | 2015-09-19 15:00:20 +0530 | [diff] [blame] | 152 | spi-max-frequency = <54000000>; |
| 153 | m25p,fast-read; |
| 154 | reg = <0>; |
| 155 | |
| 156 | partition@0 { |
| 157 | label = "u-boot-spl"; |
| 158 | reg = <0x0 0x80000>; |
| 159 | read-only; |
| 160 | }; |
| 161 | |
| 162 | partition@1 { |
| 163 | label = "misc"; |
| 164 | reg = <0x80000 0xf80000>; |
| 165 | }; |
| 166 | }; |
| 167 | }; |
| 168 | |
| 169 | &mdio { |
Roger Quadros | 0ffbc74 | 2021-08-24 14:07:27 +0300 | [diff] [blame] | 170 | status = "okay"; |
Lokesh Vutla | 050d8ab | 2015-09-19 15:00:20 +0530 | [diff] [blame] | 171 | ethphy0: ethernet-phy@0 { |
| 172 | compatible = "marvell,88E1111", "ethernet-phy-ieee802.3-c22"; |
| 173 | reg = <0>; |
| 174 | }; |
| 175 | |
| 176 | ethphy1: ethernet-phy@1 { |
| 177 | compatible = "marvell,88E1111", "ethernet-phy-ieee802.3-c22"; |
| 178 | reg = <1>; |
| 179 | }; |
| 180 | }; |