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