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