Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
| 2 | /* |
| 3 | * Author: Arınç ÜNAL <arinc.unal@arinc9.com> |
| 4 | */ |
| 5 | |
| 6 | #include "bcm47094.dtsi" |
| 7 | #include "bcm5301x-nand-cs0-bch8.dtsi" |
| 8 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 9 | #include <dt-bindings/leds/common.h> |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 10 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 11 | / { |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 12 | memory@0 { |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 13 | reg = <0x00000000 0x08000000>, |
| 14 | <0x88000000 0x18000000>; |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 15 | device_type = "memory"; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 16 | }; |
| 17 | |
| 18 | nvram@1c080000 { |
| 19 | compatible = "brcm,nvram"; |
| 20 | reg = <0x1c080000 0x00180000>; |
| 21 | }; |
| 22 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 23 | gpio-keys { |
| 24 | compatible = "gpio-keys"; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 25 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 26 | button-led { |
| 27 | label = "Backlight"; |
| 28 | linux,code = <KEY_BRIGHTNESS_ZERO>; |
| 29 | gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 30 | }; |
| 31 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 32 | button-reset { |
| 33 | label = "Reset"; |
| 34 | linux,code = <KEY_RESTART>; |
| 35 | gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; |
| 36 | }; |
| 37 | |
| 38 | button-wifi { |
| 39 | label = "Wi-Fi"; |
| 40 | linux,code = <KEY_RFKILL>; |
| 41 | gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 42 | }; |
| 43 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 44 | button-wps { |
| 45 | label = "WPS"; |
| 46 | linux,code = <KEY_WPS_BUTTON>; |
| 47 | gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>; |
| 48 | }; |
| 49 | }; |
| 50 | |
| 51 | leds { |
| 52 | compatible = "gpio-leds"; |
| 53 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 54 | led-lan { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 55 | color = <LED_COLOR_ID_WHITE>; |
| 56 | function = LED_FUNCTION_LAN; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 57 | gpios = <&chipcommon 21 GPIO_ACTIVE_LOW>; |
| 58 | }; |
| 59 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 60 | led-power { |
| 61 | color = <LED_COLOR_ID_WHITE>; |
| 62 | function = LED_FUNCTION_POWER; |
| 63 | gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; |
| 64 | linux,default-trigger = "default-on"; |
| 65 | }; |
| 66 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 67 | led-usb2 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 68 | color = <LED_COLOR_ID_WHITE>; |
| 69 | function = LED_FUNCTION_USB; |
| 70 | function-enumerator = <1>; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 71 | gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>; |
| 72 | trigger-sources = <&ehci_port2>; |
| 73 | linux,default-trigger = "usbport"; |
| 74 | }; |
| 75 | |
| 76 | led-usb3 { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 77 | color = <LED_COLOR_ID_WHITE>; |
| 78 | function = LED_FUNCTION_USB; |
| 79 | function-enumerator = <2>; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 80 | gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; |
| 81 | trigger-sources = <&ehci_port1>, <&xhci_port1>; |
| 82 | linux,default-trigger = "usbport"; |
| 83 | }; |
| 84 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 85 | led-wan-red { |
| 86 | color = <LED_COLOR_ID_RED>; |
| 87 | function = LED_FUNCTION_WAN; |
| 88 | gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>; |
| 89 | }; |
| 90 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 91 | led-wps { |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 92 | color = <LED_COLOR_ID_WHITE>; |
| 93 | function = LED_FUNCTION_WPS; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 94 | gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>; |
| 95 | }; |
| 96 | }; |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 97 | }; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 98 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 99 | &nandcs { |
| 100 | partitions { |
| 101 | compatible = "fixed-partitions"; |
| 102 | #address-cells = <1>; |
| 103 | #size-cells = <1>; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 104 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 105 | partition@0 { |
| 106 | reg = <0x00000000 0x00080000>; |
| 107 | label = "boot"; |
| 108 | read-only; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 109 | }; |
| 110 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 111 | partition@80000 { |
| 112 | reg = <0x00080000 0x00180000>; |
| 113 | label = "nvram"; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 114 | }; |
| 115 | |
Tom Rini | 762f85b | 2024-07-20 11:15:10 -0600 | [diff] [blame] | 116 | partition@200000 { |
| 117 | compatible = "brcm,trx"; |
| 118 | reg = <0x00200000 0x07e00000>; |
| 119 | label = "firmware"; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 120 | }; |
| 121 | }; |
| 122 | }; |
| 123 | |
| 124 | &srab { |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 125 | status = "okay"; |
| 126 | |
| 127 | ports { |
| 128 | port@0 { |
| 129 | label = "lan4"; |
| 130 | }; |
| 131 | |
| 132 | port@1 { |
| 133 | label = "lan3"; |
| 134 | }; |
| 135 | |
| 136 | port@2 { |
| 137 | label = "lan2"; |
| 138 | }; |
| 139 | |
| 140 | port@3 { |
| 141 | label = "lan1"; |
| 142 | }; |
| 143 | |
| 144 | port@4 { |
| 145 | label = "wan"; |
| 146 | }; |
| 147 | |
| 148 | port@5 { |
| 149 | label = "cpu"; |
| 150 | }; |
| 151 | |
| 152 | port@7 { |
| 153 | label = "cpu"; |
| 154 | }; |
| 155 | |
| 156 | port@8 { |
| 157 | label = "cpu"; |
| 158 | }; |
| 159 | }; |
| 160 | }; |
| 161 | |
| 162 | &usb2 { |
| 163 | vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>; |
| 164 | }; |
| 165 | |
| 166 | &usb3_phy { |
| 167 | status = "okay"; |
| 168 | }; |