Álvaro Fernández Rojas | c4203e1 | 2017-05-16 18:42:43 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com> |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | /dts-v1/; |
| 8 | |
| 9 | #include "brcm,bcm3380.dtsi" |
| 10 | |
| 11 | / { |
| 12 | model = "Netgear CG3100D"; |
| 13 | compatible = "netgear,cg3100d", "brcm,bcm3380"; |
| 14 | |
| 15 | aliases { |
| 16 | serial0 = &uart0; |
| 17 | }; |
| 18 | |
| 19 | chosen { |
| 20 | stdout-path = "serial0:115200n8"; |
| 21 | }; |
| 22 | |
| 23 | gpio-leds { |
| 24 | compatible = "gpio-leds"; |
| 25 | |
| 26 | wifi_green { |
| 27 | label = "CG3100D:green:wifi"; |
| 28 | gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>; |
| 29 | }; |
| 30 | |
| 31 | wps_green { |
| 32 | label = "CG3100D:green:wps"; |
| 33 | gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; |
| 34 | }; |
| 35 | |
| 36 | power_red { |
| 37 | label = "CG3100D:red:power"; |
| 38 | gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; |
| 39 | }; |
| 40 | }; |
| 41 | }; |
| 42 | |
| 43 | &leds { |
| 44 | status = "okay"; |
| 45 | |
| 46 | led@0 { |
| 47 | reg = <0>; |
| 48 | active-low; |
| 49 | label = "CG3100D:green:power"; |
| 50 | }; |
| 51 | |
| 52 | led@1 { |
| 53 | reg = <1>; |
| 54 | active-low; |
| 55 | label = "CG3100D:green:downlink"; |
| 56 | }; |
| 57 | |
| 58 | led@2 { |
| 59 | reg = <2>; |
| 60 | active-low; |
| 61 | label = "CG3100D:orange:downlink"; |
| 62 | }; |
| 63 | |
| 64 | led@3 { |
| 65 | reg = <3>; |
| 66 | active-low; |
| 67 | label = "CG3100D:green:uplink"; |
| 68 | }; |
| 69 | |
| 70 | led@4 { |
| 71 | reg = <4>; |
| 72 | active-low; |
| 73 | label = "CG3100D:orange:uplink"; |
| 74 | }; |
| 75 | |
| 76 | led@6 { |
| 77 | reg = <6>; |
| 78 | active-low; |
| 79 | label = "CG3100D:green:inet"; |
| 80 | }; |
| 81 | |
| 82 | led@7 { |
| 83 | reg = <7>; |
| 84 | active-low; |
| 85 | label = "CG3100D:green:stby"; |
| 86 | }; |
| 87 | }; |
| 88 | |
| 89 | &gpio0 { |
| 90 | status = "okay"; |
| 91 | }; |
| 92 | |
| 93 | &uart0 { |
| 94 | u-boot,dm-pre-reloc; |
| 95 | status = "okay"; |
| 96 | }; |