Rafał Miłecki | 2b3db67 | 2018-05-02 16:11:02 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
Rafał Miłecki | 691917f | 2015-05-13 09:10:53 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Broadcom BCM470X / BCM5301X arm platform code. |
| 4 | * DTS for SmartRG SR400ac |
| 5 | * |
| 6 | * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com> |
Rafał Miłecki | 691917f | 2015-05-13 09:10:53 +0200 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | /dts-v1/; |
| 10 | |
| 11 | #include "bcm4708.dtsi" |
Hauke Mehrtens | 9faa596 | 2015-05-29 23:39:47 +0200 | [diff] [blame] | 12 | #include "bcm5301x-nand-cs0-bch8.dtsi" |
Rafał Miłecki | 691917f | 2015-05-13 09:10:53 +0200 | [diff] [blame] | 13 | |
| 14 | / { |
| 15 | compatible = "smartrg,sr400ac", "brcm,bcm4708"; |
| 16 | model = "SmartRG SR400ac"; |
| 17 | |
| 18 | chosen { |
Rafał Miłecki | 5a6516f | 2016-04-06 18:49:55 +0200 | [diff] [blame] | 19 | bootargs = "console=ttyS0,115200 earlycon"; |
Rafał Miłecki | 691917f | 2015-05-13 09:10:53 +0200 | [diff] [blame] | 20 | }; |
| 21 | |
| 22 | memory { |
Rafał Miłecki | a252ccd3 | 2016-12-07 08:56:54 +0100 | [diff] [blame] | 23 | reg = <0x00000000 0x08000000 |
| 24 | 0x88000000 0x08000000>; |
Rafał Miłecki | 691917f | 2015-05-13 09:10:53 +0200 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | leds { |
| 28 | compatible = "gpio-leds"; |
| 29 | |
| 30 | power-white { |
| 31 | label = "bcm53xx:white:power"; |
| 32 | gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>; |
| 33 | linux,default-trigger = "default-on"; |
| 34 | }; |
| 35 | |
| 36 | power-amber { |
| 37 | label = "bcm53xx:amber:power"; |
| 38 | gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>; |
Rafał Miłecki | 691917f | 2015-05-13 09:10:53 +0200 | [diff] [blame] | 39 | }; |
| 40 | |
| 41 | usb2 { |
| 42 | label = "bcm53xx:white:usb2"; |
| 43 | gpios = <&chipcommon 3 GPIO_ACTIVE_HIGH>; |
Rafał Miłecki | 0b1f110 | 2017-08-02 06:40:41 +0200 | [diff] [blame] | 44 | trigger-sources = <&ohci_port2>, <&ehci_port2>; |
| 45 | linux,default-trigger = "usbport"; |
Rafał Miłecki | 691917f | 2015-05-13 09:10:53 +0200 | [diff] [blame] | 46 | }; |
| 47 | |
| 48 | usb3-white { |
| 49 | label = "bcm53xx:white:usb3"; |
| 50 | gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>; |
Rafał Miłecki | 0b1f110 | 2017-08-02 06:40:41 +0200 | [diff] [blame] | 51 | trigger-sources = <&xhci_port1>; |
| 52 | linux,default-trigger = "usbport"; |
Rafał Miłecki | 691917f | 2015-05-13 09:10:53 +0200 | [diff] [blame] | 53 | }; |
| 54 | |
| 55 | usb3-green { |
| 56 | label = "bcm53xx:green:usb3"; |
| 57 | gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>; |
Rafał Miłecki | 0b1f110 | 2017-08-02 06:40:41 +0200 | [diff] [blame] | 58 | trigger-sources = <&ohci_port1>, <&ehci_port1>; |
| 59 | linux,default-trigger = "usbport"; |
Rafał Miłecki | 691917f | 2015-05-13 09:10:53 +0200 | [diff] [blame] | 60 | }; |
| 61 | |
| 62 | wps { |
| 63 | label = "bcm53xx:white:wps"; |
| 64 | gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>; |
Rafał Miłecki | 691917f | 2015-05-13 09:10:53 +0200 | [diff] [blame] | 65 | }; |
| 66 | |
| 67 | status-red { |
| 68 | label = "bcm53xx:red:status"; |
| 69 | gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>; |
Rafał Miłecki | 691917f | 2015-05-13 09:10:53 +0200 | [diff] [blame] | 70 | }; |
| 71 | |
| 72 | status-green { |
| 73 | label = "bcm53xx:green:status"; |
| 74 | gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>; |
Rafał Miłecki | 691917f | 2015-05-13 09:10:53 +0200 | [diff] [blame] | 75 | }; |
| 76 | |
| 77 | status-blue { |
| 78 | label = "bcm53xx:blue:status"; |
| 79 | gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>; |
Rafał Miłecki | 691917f | 2015-05-13 09:10:53 +0200 | [diff] [blame] | 80 | }; |
| 81 | |
| 82 | wan-white { |
| 83 | label = "bcm53xx:white:wan"; |
| 84 | gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>; |
Rafał Miłecki | 691917f | 2015-05-13 09:10:53 +0200 | [diff] [blame] | 85 | }; |
| 86 | |
| 87 | wan-red { |
| 88 | label = "bcm53xx:red:wan"; |
| 89 | gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>; |
Rafał Miłecki | 691917f | 2015-05-13 09:10:53 +0200 | [diff] [blame] | 90 | }; |
| 91 | }; |
| 92 | |
| 93 | gpio-keys { |
| 94 | compatible = "gpio-keys"; |
| 95 | #address-cells = <1>; |
| 96 | #size-cells = <0>; |
| 97 | |
| 98 | rfkill { |
| 99 | label = "WiFi"; |
| 100 | linux,code = <KEY_RFKILL>; |
| 101 | gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>; |
| 102 | }; |
| 103 | |
| 104 | wps { |
| 105 | label = "WPS"; |
| 106 | linux,code = <KEY_WPS_BUTTON>; |
| 107 | gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; |
| 108 | }; |
| 109 | |
| 110 | restart { |
| 111 | label = "Reset"; |
| 112 | linux,code = <KEY_RESTART>; |
| 113 | gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; |
| 114 | }; |
| 115 | }; |
| 116 | }; |
Rafał Miłecki | 0dfc7f6 | 2015-06-29 07:22:16 +0200 | [diff] [blame] | 117 | |
Rafał Miłecki | 1b47b98 | 2016-04-19 08:56:46 +0200 | [diff] [blame] | 118 | &spi_nor { |
| 119 | status = "okay"; |
| 120 | }; |
Florian Fainelli | 2df1808 | 2016-05-25 16:55:35 -0700 | [diff] [blame] | 121 | |
| 122 | &srab { |
| 123 | status = "okay"; |
| 124 | |
| 125 | ports { |
| 126 | #address-cells = <1>; |
| 127 | #size-cells = <0>; |
| 128 | |
| 129 | port@0 { |
| 130 | reg = <0>; |
| 131 | label = "lan4"; |
| 132 | }; |
| 133 | |
| 134 | port@1 { |
| 135 | reg = <1>; |
| 136 | label = "lan3"; |
| 137 | }; |
| 138 | |
| 139 | port@2 { |
| 140 | reg = <2>; |
| 141 | label = "lan2"; |
| 142 | }; |
| 143 | |
| 144 | port@3 { |
| 145 | reg = <3>; |
| 146 | label = "lan1"; |
| 147 | }; |
| 148 | |
| 149 | port@4 { |
| 150 | reg = <4>; |
| 151 | label = "wan"; |
| 152 | }; |
| 153 | |
| 154 | port@5 { |
| 155 | reg = <5>; |
| 156 | label = "cpu"; |
| 157 | ethernet = <&gmac0>; |
| 158 | }; |
| 159 | }; |
| 160 | }; |
Vivek Unune | 37f6130e | 2018-04-09 18:31:53 -0400 | [diff] [blame] | 161 | |
| 162 | &usb3_phy { |
| 163 | status = "okay"; |
| 164 | }; |