Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Álvaro Fernández Rojas | c320b92 | 2018-01-20 14:16:56 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com> |
Álvaro Fernández Rojas | c320b92 | 2018-01-20 14:16:56 +0100 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include "brcm,bcm6368.dtsi" |
| 9 | |
| 10 | / { |
| 11 | model = "Comtrend WAP-5813n"; |
| 12 | compatible = "comtrend,wap-5813n", "brcm,bcm6368"; |
| 13 | |
| 14 | aliases { |
| 15 | serial0 = &uart0; |
| 16 | }; |
| 17 | |
| 18 | chosen { |
| 19 | stdout-path = "serial0:115200n8"; |
| 20 | }; |
| 21 | |
| 22 | gpio-leds { |
| 23 | compatible = "gpio-leds"; |
| 24 | |
| 25 | inet_green { |
| 26 | label = "WAP-5813n:green:inet"; |
| 27 | gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>; |
| 28 | }; |
| 29 | |
| 30 | power_green { |
| 31 | label = "WAP-5813n:green:power"; |
| 32 | gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>; |
| 33 | default-state = "on"; |
| 34 | }; |
| 35 | |
| 36 | wps_green { |
| 37 | label = "WAP-5813n:green:wps"; |
| 38 | gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; |
| 39 | }; |
| 40 | |
| 41 | power_red { |
| 42 | label = "WAP-5813n:red:power"; |
| 43 | gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>; |
| 44 | }; |
| 45 | |
| 46 | inet_red { |
| 47 | label = "WAP-5813n:red:inet"; |
| 48 | gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>; |
| 49 | }; |
| 50 | }; |
| 51 | }; |
| 52 | |
Álvaro Fernández Rojas | b8841ce | 2018-02-04 21:10:15 +0100 | [diff] [blame] | 53 | &ehci { |
| 54 | status = "okay"; |
| 55 | }; |
| 56 | |
Álvaro Fernández Rojas | c320b92 | 2018-01-20 14:16:56 +0100 | [diff] [blame] | 57 | &gpio0 { |
| 58 | status = "okay"; |
| 59 | }; |
| 60 | |
Álvaro Fernández Rojas | b8841ce | 2018-02-04 21:10:15 +0100 | [diff] [blame] | 61 | &ohci { |
| 62 | status = "okay"; |
| 63 | }; |
| 64 | |
Álvaro Fernández Rojas | c320b92 | 2018-01-20 14:16:56 +0100 | [diff] [blame] | 65 | &pflash { |
| 66 | status = "okay"; |
| 67 | }; |
| 68 | |
| 69 | &uart0 { |
| 70 | u-boot,dm-pre-reloc; |
| 71 | status = "okay"; |
| 72 | }; |
Álvaro Fernández Rojas | b8841ce | 2018-02-04 21:10:15 +0100 | [diff] [blame] | 73 | |
| 74 | &usbh { |
| 75 | status = "okay"; |
| 76 | }; |