1 // SPDX-License-Identifier: GPL-2.0-or-later O 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2 /* 2 /* 3 * Broadcom BCM470X / BCM5301X ARM platform co 3 * Broadcom BCM470X / BCM5301X ARM platform code. 4 * DTS for D-Link DIR-885L 4 * DTS for D-Link DIR-885L 5 * 5 * 6 * Copyright (C) 2016 Rafał Miłecki <zajec5@g 6 * Copyright (C) 2016 Rafał Miłecki <zajec5@gmail.com> 7 */ 7 */ 8 8 9 /dts-v1/; 9 /dts-v1/; 10 10 11 #include "bcm47094.dtsi" 11 #include "bcm47094.dtsi" 12 #include "bcm5301x-nand-cs0-bch1.dtsi" 12 #include "bcm5301x-nand-cs0-bch1.dtsi" 13 13 14 / { 14 / { 15 compatible = "dlink,dir-885l", "brcm,b 15 compatible = "dlink,dir-885l", "brcm,bcm47094", "brcm,bcm4708"; 16 model = "D-Link DIR-885L"; 16 model = "D-Link DIR-885L"; 17 17 18 chosen { 18 chosen { 19 bootargs = "console=ttyS0,1152 19 bootargs = "console=ttyS0,115200 earlycon"; 20 }; 20 }; 21 21 22 memory@0 { 22 memory@0 { 23 device_type = "memory"; 23 device_type = "memory"; 24 reg = <0x00000000 0x08000000>, 24 reg = <0x00000000 0x08000000>, 25 <0x88000000 0x08000000>; 25 <0x88000000 0x08000000>; 26 }; 26 }; 27 27 28 nvram@1e3f0000 { 28 nvram@1e3f0000 { 29 compatible = "brcm,nvram"; 29 compatible = "brcm,nvram"; 30 reg = <0x1e3f0000 0x10000>; 30 reg = <0x1e3f0000 0x10000>; 31 31 32 et2macaddr: et2macaddr { 32 et2macaddr: et2macaddr { 33 #nvmem-cell-cells = <1 33 #nvmem-cell-cells = <1>; 34 }; 34 }; 35 }; 35 }; 36 36 37 nand_controller: nand-controller@18028 37 nand_controller: nand-controller@18028000 { 38 nand@0 { 38 nand@0 { 39 partitions { 39 partitions { 40 compatible = " 40 compatible = "fixed-partitions"; 41 #address-cells 41 #address-cells = <1>; 42 #size-cells = 42 #size-cells = <1>; 43 43 44 partition@0 { 44 partition@0 { 45 compat 45 compatible = "seama"; 46 label 46 label = "firmware"; 47 reg = 47 reg = <0x00000000 0x08000000>; 48 }; 48 }; 49 }; 49 }; 50 }; 50 }; 51 }; 51 }; 52 52 53 leds { 53 leds { 54 compatible = "gpio-leds"; 54 compatible = "gpio-leds"; 55 55 56 led-power-white { 56 led-power-white { 57 label = "bcm53xx:white 57 label = "bcm53xx:white:power"; 58 gpios = <&chipcommon 0 58 gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>; 59 linux,default-trigger 59 linux,default-trigger = "default-on"; 60 }; 60 }; 61 61 62 led-wan-white { 62 led-wan-white { 63 label = "bcm53xx:white 63 label = "bcm53xx:white:wan"; 64 gpios = <&chipcommon 1 64 gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>; 65 }; 65 }; 66 66 67 led-power-amber { 67 led-power-amber { 68 label = "bcm53xx:amber 68 label = "bcm53xx:amber:power"; 69 gpios = <&chipcommon 2 69 gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>; 70 }; 70 }; 71 71 72 led-wan-amber { 72 led-wan-amber { 73 label = "bcm53xx:amber 73 label = "bcm53xx:amber:wan"; 74 gpios = <&chipcommon 3 74 gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; 75 }; 75 }; 76 76 77 led-usb3-white { 77 led-usb3-white { 78 label = "bcm53xx:white 78 label = "bcm53xx:white:usb3"; 79 gpios = <&chipcommon 8 79 gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>; 80 trigger-sources = <&oh 80 trigger-sources = <&ohci_port1>, <&ehci_port1>, 81 <&xh 81 <&xhci_port1>; 82 linux,default-trigger 82 linux,default-trigger = "usbport"; 83 }; 83 }; 84 84 85 led-2ghz { 85 led-2ghz { 86 label = "bcm53xx:white 86 label = "bcm53xx:white:2ghz"; 87 gpios = <&chipcommon 1 87 gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>; 88 }; 88 }; 89 89 90 led-5ghz { 90 led-5ghz { 91 label = "bcm53xx:white 91 label = "bcm53xx:white:5ghz"; 92 gpios = <&chipcommon 1 92 gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>; 93 }; 93 }; 94 }; 94 }; 95 95 96 gpio-keys { 96 gpio-keys { 97 compatible = "gpio-keys"; 97 compatible = "gpio-keys"; 98 98 99 button-wps { 99 button-wps { 100 label = "WPS"; 100 label = "WPS"; 101 linux,code = <KEY_WPS_ 101 linux,code = <KEY_WPS_BUTTON>; 102 gpios = <&chipcommon 7 102 gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; 103 }; 103 }; 104 104 105 /* Switch: router / extender * 105 /* Switch: router / extender */ 106 button-extender { 106 button-extender { 107 label = "Extender"; 107 label = "Extender"; 108 linux,code = <BTN_0>; 108 linux,code = <BTN_0>; 109 gpios = <&chipcommon 1 109 gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>; 110 }; 110 }; 111 111 112 button-restart { 112 button-restart { 113 label = "Reset"; 113 label = "Reset"; 114 linux,code = <KEY_REST 114 linux,code = <KEY_RESTART>; 115 gpios = <&chipcommon 1 115 gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; 116 }; 116 }; 117 }; 117 }; 118 }; 118 }; 119 119 120 &usb3 { 120 &usb3 { 121 vcc-gpio = <&chipcommon 18 GPIO_ACTIVE 121 vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>; 122 }; 122 }; 123 123 124 &gmac0 { 124 &gmac0 { 125 nvmem-cells = <&et2macaddr 0>; 125 nvmem-cells = <&et2macaddr 0>; 126 nvmem-cell-names = "mac-address"; 126 nvmem-cell-names = "mac-address"; 127 }; 127 }; 128 128 129 &spi_nor { 129 &spi_nor { 130 status = "okay"; 130 status = "okay"; 131 }; 131 }; 132 132 133 &usb3_phy { 133 &usb3_phy { 134 status = "okay"; 134 status = "okay"; 135 }; 135 }; 136 136 137 &srab { 137 &srab { 138 status = "okay"; 138 status = "okay"; 139 139 140 ports { 140 ports { 141 port@0 { 141 port@0 { 142 label = "lan4"; 142 label = "lan4"; 143 }; 143 }; 144 144 145 port@1 { 145 port@1 { 146 label = "lan3"; 146 label = "lan3"; 147 }; 147 }; 148 148 149 port@2 { 149 port@2 { 150 label = "lan2"; 150 label = "lan2"; 151 }; 151 }; 152 152 153 port@3 { 153 port@3 { 154 label = "lan1"; 154 label = "lan1"; 155 }; 155 }; 156 156 157 port@4 { 157 port@4 { 158 label = "wan"; 158 label = "wan"; 159 nvmem-cells = <&et2mac 159 nvmem-cells = <&et2macaddr 3>; 160 nvmem-cell-names = "ma 160 nvmem-cell-names = "mac-address"; 161 }; 161 }; 162 162 163 port@5 { 163 port@5 { 164 status = "disabled"; 164 status = "disabled"; 165 }; 165 }; 166 166 167 port@7 { 167 port@7 { 168 status = "disabled"; 168 status = "disabled"; 169 }; 169 }; 170 170 171 port@8 { 171 port@8 { 172 label = "cpu"; 172 label = "cpu"; 173 }; 173 }; 174 }; 174 }; 175 }; 175 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.