| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Embedded Artists LPC3250 board |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright 2012 Roland Stigge <stigge@antcom.de> |
|---|
| 5 | | - * |
|---|
| 6 | | - * The code contained herein is licensed under the GNU General Public |
|---|
| 7 | | - * License. You may obtain a copy of the GNU General Public License |
|---|
| 8 | | - * Version 2 or later at the following locations: |
|---|
| 9 | | - * |
|---|
| 10 | | - * http://www.opensource.org/licenses/gpl-license.html |
|---|
| 11 | | - * http://www.gnu.org/copyleft/gpl.html |
|---|
| 12 | 6 | */ |
|---|
| 13 | 7 | |
|---|
| 14 | 8 | /dts-v1/; |
|---|
| .. | .. |
|---|
| 17 | 11 | / { |
|---|
| 18 | 12 | model = "Embedded Artists LPC3250 board based on NXP LPC3250"; |
|---|
| 19 | 13 | compatible = "ea,ea3250", "nxp,lpc3250"; |
|---|
| 20 | | - #address-cells = <1>; |
|---|
| 21 | | - #size-cells = <1>; |
|---|
| 22 | 14 | |
|---|
| 23 | | - memory { |
|---|
| 15 | + memory@80000000 { |
|---|
| 24 | 16 | device_type = "memory"; |
|---|
| 25 | 17 | reg = <0x80000000 0x4000000>; |
|---|
| 26 | 18 | }; |
|---|
| 27 | 19 | |
|---|
| 28 | | - gpio_keys { |
|---|
| 20 | + gpio-keys { |
|---|
| 29 | 21 | compatible = "gpio-keys"; |
|---|
| 30 | | - #address-cells = <1>; |
|---|
| 31 | | - #size-cells = <0>; |
|---|
| 32 | 22 | autorepeat; |
|---|
| 33 | | - button@21 { |
|---|
| 23 | + |
|---|
| 24 | + button { |
|---|
| 34 | 25 | label = "Interrupt Key"; |
|---|
| 35 | 26 | linux,code = <103>; |
|---|
| 36 | 27 | gpios = <&gpio 4 1 0>; /* GPI_P3 1 */ |
|---|
| 37 | 28 | }; |
|---|
| 29 | + |
|---|
| 38 | 30 | key1 { |
|---|
| 39 | 31 | label = "KEY1"; |
|---|
| 40 | 32 | linux,code = <1>; |
|---|
| 41 | 33 | gpios = <&pca9532 0 0>; |
|---|
| 42 | 34 | }; |
|---|
| 35 | + |
|---|
| 43 | 36 | key2 { |
|---|
| 44 | 37 | label = "KEY2"; |
|---|
| 45 | 38 | linux,code = <2>; |
|---|
| 46 | 39 | gpios = <&pca9532 1 0>; |
|---|
| 47 | 40 | }; |
|---|
| 41 | + |
|---|
| 48 | 42 | key3 { |
|---|
| 49 | 43 | label = "KEY3"; |
|---|
| 50 | 44 | linux,code = <3>; |
|---|
| 51 | 45 | gpios = <&pca9532 2 0>; |
|---|
| 52 | 46 | }; |
|---|
| 47 | + |
|---|
| 53 | 48 | key4 { |
|---|
| 54 | 49 | label = "KEY4"; |
|---|
| 55 | 50 | linux,code = <4>; |
|---|
| 56 | 51 | gpios = <&pca9532 3 0>; |
|---|
| 57 | 52 | }; |
|---|
| 53 | + |
|---|
| 58 | 54 | joy0 { |
|---|
| 59 | 55 | label = "Joystick Key 0"; |
|---|
| 60 | 56 | linux,code = <10>; |
|---|
| 61 | 57 | gpios = <&gpio 2 0 0>; /* P2.0 */ |
|---|
| 62 | 58 | }; |
|---|
| 59 | + |
|---|
| 63 | 60 | joy1 { |
|---|
| 64 | 61 | label = "Joystick Key 1"; |
|---|
| 65 | 62 | linux,code = <11>; |
|---|
| 66 | 63 | gpios = <&gpio 2 1 0>; /* P2.1 */ |
|---|
| 67 | 64 | }; |
|---|
| 65 | + |
|---|
| 68 | 66 | joy2 { |
|---|
| 69 | 67 | label = "Joystick Key 2"; |
|---|
| 70 | 68 | linux,code = <12>; |
|---|
| 71 | 69 | gpios = <&gpio 2 2 0>; /* P2.2 */ |
|---|
| 72 | 70 | }; |
|---|
| 71 | + |
|---|
| 73 | 72 | joy3 { |
|---|
| 74 | 73 | label = "Joystick Key 3"; |
|---|
| 75 | 74 | linux,code = <13>; |
|---|
| 76 | 75 | gpios = <&gpio 2 3 0>; /* P2.3 */ |
|---|
| 77 | 76 | }; |
|---|
| 77 | + |
|---|
| 78 | 78 | joy4 { |
|---|
| 79 | 79 | label = "Joystick Key 4"; |
|---|
| 80 | 80 | linux,code = <14>; |
|---|
| .. | .. |
|---|
| 195 | 195 | &mac { |
|---|
| 196 | 196 | phy-mode = "rmii"; |
|---|
| 197 | 197 | use-iram; |
|---|
| 198 | + status = "okay"; |
|---|
| 198 | 199 | }; |
|---|
| 199 | 200 | |
|---|
| 200 | 201 | /* Here, choose exactly one from: ohci, usbd */ |
|---|