1 // SPDX-License-Identifier: GPL-2.0-or-later O 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2 /* 2 /* 3 * Copyright (C) 2016 Rafał Miłecki <rafal@mi 3 * Copyright (C) 2016 Rafał Miłecki <rafal@milecki.pl> 4 */ 4 */ 5 5 6 /dts-v1/; 6 /dts-v1/; 7 7 8 #include "bcm53573.dtsi" 8 #include "bcm53573.dtsi" 9 9 10 / { 10 / { 11 compatible = "tenda,ac9", "brcm,bcm471 11 compatible = "tenda,ac9", "brcm,bcm47189", "brcm,bcm53573"; 12 model = "Tenda AC9"; 12 model = "Tenda AC9"; 13 13 14 chosen { 14 chosen { 15 bootargs = "console=ttyS0,1152 15 bootargs = "console=ttyS0,115200 earlycon"; 16 }; 16 }; 17 17 18 memory@0 { 18 memory@0 { 19 device_type = "memory"; 19 device_type = "memory"; 20 reg = <0x00000000 0x08000000>; 20 reg = <0x00000000 0x08000000>; 21 }; 21 }; 22 22 23 leds-0 { 23 leds-0 { 24 compatible = "gpio-leds"; 24 compatible = "gpio-leds"; 25 25 26 led-usb { 26 led-usb { 27 label = "bcm53xx:blue: 27 label = "bcm53xx:blue:usb"; 28 gpios = <&chipcommon 1 28 gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>; 29 trigger-sources = <&oh 29 trigger-sources = <&ohci_port1>, <&ehci_port1>; 30 linux,default-trigger 30 linux,default-trigger = "usbport"; 31 }; 31 }; 32 32 33 led-wps { 33 led-wps { 34 label = "bcm53xx:blue: 34 label = "bcm53xx:blue:wps"; 35 gpios = <&chipcommon 1 35 gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>; 36 }; 36 }; 37 37 38 led-5ghz { 38 led-5ghz { 39 label = "bcm53xx:blue: 39 label = "bcm53xx:blue:5ghz"; 40 gpios = <&chipcommon 1 40 gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>; 41 }; 41 }; 42 42 43 led-system { 43 led-system { 44 label = "bcm53xx:blue: 44 label = "bcm53xx:blue:system"; 45 gpios = <&chipcommon 1 45 gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>; 46 linux,default-trigger 46 linux,default-trigger = "timer"; 47 }; 47 }; 48 }; 48 }; 49 49 50 leds-1 { 50 leds-1 { 51 compatible = "gpio-leds"; 51 compatible = "gpio-leds"; 52 52 53 led-2ghz { 53 led-2ghz { 54 label = "bcm53xx:blue: 54 label = "bcm53xx:blue:2ghz"; 55 gpios = <&pcie0_chipco 55 gpios = <&pcie0_chipcommon 3 GPIO_ACTIVE_HIGH>; 56 }; 56 }; 57 }; 57 }; 58 58 59 gpio-keys { 59 gpio-keys { 60 compatible = "gpio-keys"; 60 compatible = "gpio-keys"; 61 61 62 button-rfkill { 62 button-rfkill { 63 label = "WiFi"; 63 label = "WiFi"; 64 linux,code = <KEY_RFKI 64 linux,code = <KEY_RFKILL>; 65 gpios = <&chipcommon 3 65 gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; 66 }; 66 }; 67 67 68 button-restart { 68 button-restart { 69 label = "Reset"; 69 label = "Reset"; 70 linux,code = <KEY_REST 70 linux,code = <KEY_RESTART>; 71 gpios = <&chipcommon 7 71 gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; 72 }; 72 }; 73 73 74 button-wps { 74 button-wps { 75 label = "WPS"; 75 label = "WPS"; 76 linux,code = <KEY_WPS_ 76 linux,code = <KEY_WPS_BUTTON>; 77 gpios = <&chipcommon 9 77 gpios = <&chipcommon 9 GPIO_ACTIVE_LOW>; 78 }; 78 }; 79 }; 79 }; 80 }; 80 }; 81 81 82 &pcie0 { 82 &pcie0 { 83 ranges = <0x00000000 0 0 0 0 0x0010000 83 ranges = <0x00000000 0 0 0 0 0x00100000>; 84 #address-cells = <3>; 84 #address-cells = <3>; 85 #size-cells = <2>; 85 #size-cells = <2>; 86 86 87 bridge@0,0,0 { 87 bridge@0,0,0 { 88 reg = <0x0000 0 0 0 0>; 88 reg = <0x0000 0 0 0 0>; 89 ranges = <0x00000000 0 0 0 0 0 89 ranges = <0x00000000 0 0 0 0 0 0 0x00100000>; 90 #address-cells = <3>; 90 #address-cells = <3>; 91 #size-cells = <2>; 91 #size-cells = <2>; 92 92 93 wifi@0,1,0 { 93 wifi@0,1,0 { 94 reg = <0x0000 0 0 0 0> 94 reg = <0x0000 0 0 0 0>; 95 ranges = <0x00000000 0 95 ranges = <0x00000000 0 0 0 0x00100000>; 96 #address-cells = <1>; 96 #address-cells = <1>; 97 #size-cells = <1>; 97 #size-cells = <1>; 98 98 99 pcie0_chipcommon: chip 99 pcie0_chipcommon: chipcommon@0 { 100 reg = <0 0x100 100 reg = <0 0x1000>; 101 101 102 gpio-controlle 102 gpio-controller; 103 #gpio-cells = 103 #gpio-cells = <2>; 104 }; 104 }; 105 }; 105 }; 106 }; 106 }; 107 }; 107 }; 108 108 109 &switch { 109 &switch { 110 status = "okay"; 110 status = "okay"; 111 111 112 ports { 112 ports { 113 port@0 { 113 port@0 { 114 label = "wan"; 114 label = "wan"; 115 }; 115 }; 116 116 117 port@1 { 117 port@1 { 118 label = "lan1"; 118 label = "lan1"; 119 }; 119 }; 120 120 121 port@2 { 121 port@2 { 122 label = "lan2"; 122 label = "lan2"; 123 }; 123 }; 124 124 125 port@3 { 125 port@3 { 126 label = "lan3"; 126 label = "lan3"; 127 }; 127 }; 128 128 129 port@4 { 129 port@4 { 130 label = "lan4"; 130 label = "lan4"; 131 }; 131 }; 132 132 133 port@8 { 133 port@8 { 134 label = "cpu"; 134 label = "cpu"; 135 }; 135 }; 136 }; 136 }; 137 }; 137 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.