Rafał Miłecki | 1c9001b | 2018-09-20 13:37:47 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
Rafał Miłecki | e90d2d5 | 2016-08-23 07:37:43 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2016 Rafał Miłecki <rafal@milecki.pl> |
Rafał Miłecki | e90d2d5 | 2016-08-23 07:37:43 +0200 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include "bcm53573.dtsi" |
| 9 | |
| 10 | / { |
| 11 | compatible = "tenda,ac9", "brcm,bcm47189", "brcm,bcm53573"; |
| 12 | model = "Tenda AC9"; |
| 13 | |
| 14 | chosen { |
| 15 | bootargs = "console=ttyS0,115200 earlycon"; |
| 16 | }; |
| 17 | |
| 18 | memory { |
Rob Herring | abe60a3 | 2019-01-09 10:26:14 -0600 | [diff] [blame] | 19 | device_type = "memory"; |
Rafał Miłecki | e90d2d5 | 2016-08-23 07:37:43 +0200 | [diff] [blame] | 20 | reg = <0x00000000 0x08000000>; |
| 21 | }; |
| 22 | |
| 23 | leds { |
| 24 | compatible = "gpio-leds"; |
| 25 | |
| 26 | usb { |
| 27 | label = "bcm53xx:blue:usb"; |
| 28 | gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>; |
Rafał Miłecki | 0173b2c | 2017-08-17 11:05:14 +0200 | [diff] [blame] | 29 | trigger-sources = <&ohci_port1>, <&ehci_port1>; |
| 30 | linux,default-trigger = "usbport"; |
Rafał Miłecki | e90d2d5 | 2016-08-23 07:37:43 +0200 | [diff] [blame] | 31 | }; |
| 32 | |
| 33 | wps { |
| 34 | label = "bcm53xx:blue:wps"; |
| 35 | gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>; |
Rafał Miłecki | e90d2d5 | 2016-08-23 07:37:43 +0200 | [diff] [blame] | 36 | }; |
| 37 | |
| 38 | 5ghz { |
| 39 | label = "bcm53xx:blue:5ghz"; |
| 40 | gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>; |
Rafał Miłecki | e90d2d5 | 2016-08-23 07:37:43 +0200 | [diff] [blame] | 41 | }; |
| 42 | |
| 43 | system { |
| 44 | label = "bcm53xx:blue:system"; |
| 45 | gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>; |
| 46 | linux,default-trigger = "timer"; |
| 47 | }; |
| 48 | }; |
| 49 | |
Rafał Miłecki | b94c478 | 2017-02-14 17:49:06 +0100 | [diff] [blame] | 50 | pcie0_leds { |
| 51 | compatible = "gpio-leds"; |
| 52 | |
| 53 | 2ghz { |
| 54 | label = "bcm53xx:blue:2ghz"; |
| 55 | gpios = <&pcie0_chipcommon 3 GPIO_ACTIVE_HIGH>; |
Rafał Miłecki | b94c478 | 2017-02-14 17:49:06 +0100 | [diff] [blame] | 56 | }; |
| 57 | }; |
| 58 | |
Rafał Miłecki | e90d2d5 | 2016-08-23 07:37:43 +0200 | [diff] [blame] | 59 | gpio-keys { |
| 60 | compatible = "gpio-keys"; |
| 61 | #address-cells = <1>; |
| 62 | #size-cells = <0>; |
| 63 | |
| 64 | rfkill { |
| 65 | label = "WiFi"; |
| 66 | linux,code = <KEY_RFKILL>; |
| 67 | gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; |
| 68 | }; |
| 69 | |
| 70 | restart { |
| 71 | label = "Reset"; |
| 72 | linux,code = <KEY_RESTART>; |
| 73 | gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>; |
| 74 | }; |
| 75 | |
| 76 | wps { |
| 77 | label = "WPS"; |
| 78 | linux,code = <KEY_WPS_BUTTON>; |
| 79 | gpios = <&chipcommon 9 GPIO_ACTIVE_LOW>; |
| 80 | }; |
| 81 | }; |
| 82 | }; |
Rafał Miłecki | b76907c | 2017-02-14 17:49:05 +0100 | [diff] [blame] | 83 | |
| 84 | &pcie0 { |
| 85 | ranges = <0x00000000 0 0 0 0 0x00100000>; |
| 86 | #address-cells = <3>; |
| 87 | #size-cells = <2>; |
| 88 | |
| 89 | bridge@0,0,0 { |
| 90 | reg = <0x0000 0 0 0 0>; |
| 91 | ranges = <0x00000000 0 0 0 0 0 0 0x00100000>; |
| 92 | #address-cells = <3>; |
| 93 | #size-cells = <2>; |
| 94 | |
| 95 | wifi@0,1,0 { |
| 96 | reg = <0x0000 0 0 0 0>; |
| 97 | ranges = <0x00000000 0 0 0 0x00100000>; |
| 98 | #address-cells = <1>; |
| 99 | #size-cells = <1>; |
| 100 | |
| 101 | pcie0_chipcommon: chipcommon@0 { |
| 102 | reg = <0 0x1000>; |
| 103 | |
| 104 | gpio-controller; |
| 105 | #gpio-cells = <2>; |
| 106 | }; |
| 107 | }; |
| 108 | }; |
| 109 | }; |