Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Álvaro Fernández Rojas | 0642f48 | 2017-04-25 00:39:24 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com> |
Álvaro Fernández Rojas | 0642f48 | 2017-04-25 00:39:24 +0200 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include "brcm,bcm6328.dtsi" |
| 9 | |
| 10 | / { |
| 11 | model = "Comtrend AR-5387un"; |
| 12 | compatible = "comtrend,ar5387-un", "brcm,bcm6328"; |
| 13 | |
| 14 | aliases { |
| 15 | serial0 = &uart0; |
| 16 | }; |
| 17 | |
| 18 | chosen { |
| 19 | stdout-path = "serial0:115200n8"; |
| 20 | }; |
| 21 | }; |
| 22 | |
Álvaro Fernández Rojas | 56928dd | 2018-02-04 21:10:17 +0100 | [diff] [blame] | 23 | &ehci { |
| 24 | status = "okay"; |
| 25 | }; |
| 26 | |
Álvaro Fernández Rojas | 54468f5 | 2018-12-01 19:00:36 +0100 | [diff] [blame] | 27 | &enet { |
| 28 | status = "okay"; |
| 29 | |
| 30 | port@0 { |
| 31 | compatible = "brcm,enetsw-port"; |
| 32 | reg = <0>; |
| 33 | label = "fe1"; |
| 34 | brcm,phy-id = <1>; |
| 35 | }; |
| 36 | |
| 37 | port@1 { |
| 38 | compatible = "brcm,enetsw-port"; |
| 39 | reg = <1>; |
| 40 | label = "fe2"; |
| 41 | brcm,phy-id = <2>; |
| 42 | }; |
| 43 | |
| 44 | port@2 { |
| 45 | compatible = "brcm,enetsw-port"; |
| 46 | reg = <2>; |
| 47 | label = "fe3"; |
| 48 | brcm,phy-id = <3>; |
| 49 | }; |
| 50 | |
| 51 | port@3 { |
| 52 | compatible = "brcm,enetsw-port"; |
| 53 | reg = <3>; |
| 54 | label = "fe4"; |
| 55 | brcm,phy-id = <4>; |
| 56 | }; |
| 57 | }; |
| 58 | |
Álvaro Fernández Rojas | 6def1b2 | 2017-05-07 20:10:27 +0200 | [diff] [blame] | 59 | &leds { |
| 60 | status = "okay"; |
| 61 | |
| 62 | led@1 { |
| 63 | reg = <1>; |
| 64 | label = "AR-5387un:red:inet"; |
| 65 | }; |
| 66 | |
| 67 | led@4 { |
| 68 | reg = <4>; |
| 69 | label = "AR-5387un:red:power"; |
| 70 | }; |
| 71 | |
| 72 | led@7 { |
| 73 | reg = <7>; |
| 74 | label = "AR-5387un:green:inet"; |
| 75 | }; |
| 76 | |
| 77 | led@8 { |
| 78 | reg = <8>; |
| 79 | label = "AR-5387un:green:power"; |
| 80 | }; |
| 81 | |
| 82 | led@11 { |
| 83 | reg = <11>; |
| 84 | active-low; |
| 85 | label = "AR-5387un:green:dsl"; |
| 86 | }; |
| 87 | }; |
| 88 | |
Álvaro Fernández Rojas | 56928dd | 2018-02-04 21:10:17 +0100 | [diff] [blame] | 89 | &ohci { |
| 90 | status = "okay"; |
| 91 | }; |
| 92 | |
Álvaro Fernández Rojas | 1312906 | 2018-01-20 02:13:41 +0100 | [diff] [blame] | 93 | &spi { |
| 94 | status = "okay"; |
| 95 | |
| 96 | spi-flash@0 { |
| 97 | compatible = "spi-flash"; |
| 98 | reg = <0>; |
| 99 | #address-cells = <1>; |
| 100 | #size-cells = <1>; |
| 101 | spi-max-frequency = <33333334>; |
| 102 | }; |
| 103 | }; |
| 104 | |
Álvaro Fernández Rojas | 0642f48 | 2017-04-25 00:39:24 +0200 | [diff] [blame] | 105 | &uart0 { |
| 106 | u-boot,dm-pre-reloc; |
| 107 | status = "okay"; |
| 108 | }; |
Álvaro Fernández Rojas | 56928dd | 2018-02-04 21:10:17 +0100 | [diff] [blame] | 109 | |
| 110 | &usbh { |
| 111 | status = "okay"; |
| 112 | }; |