OpenWrt – Blame information for rev 3

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
2 * Copyright (c) 2017, Sven Eckelmann <sven.eckelmann@openmesh.com>
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 *
16 */
17  
18 #include "qcom-ipq4019.dtsi"
3 office 19 #include "qcom-ipq4019-bus.dtsi"
1 office 20 #include <dt-bindings/gpio/gpio.h>
21 #include <dt-bindings/input/input.h>
22 #include <dt-bindings/soc/qcom,tcsr.h>
23  
24 / {
25 model = "OpenMesh A42";
26 compatible = "openmesh,a42", "qcom,ipq4019";
27  
28 soc {
29 mdio@90000 {
30 status = "okay";
31 };
32  
33 ess-psgmii@98000 {
34 status = "okay";
35 };
36  
37 tcsr@194b000 {
38 /* select hostmode */
39 compatible = "qcom,tcsr";
40 reg = <0x194b000 0x100>;
41 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
42 status = "okay";
43 };
44  
45 tcsr@1949000 {
46 compatible = "qcom,tcsr";
47 reg = <0x1949000 0x100>;
48 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
49 };
50  
51 ess_tcsr@1953000 {
52 compatible = "qcom,tcsr";
53 reg = <0x1953000 0x1000>;
54 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
55 };
56  
57 tcsr@1957000 {
58 compatible = "qcom,tcsr";
59 reg = <0x1957000 0x100>;
60 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
61 };
62  
63 usb2: usb2@60f8800 {
64 status = "okay";
65 };
66  
3 office 67 serial@78af000 {
68 pinctrl-0 = <&serial_pins>;
69 pinctrl-names = "default";
70 status = "okay";
71 };
72  
1 office 73 crypto@8e3a000 {
74 status = "okay";
75 };
76  
77 watchdog@b017000 {
78 status = "okay";
79 };
80  
81 ess-switch@c000000 {
82 status = "okay";
83 };
84  
85 edma@c080000 {
86 status = "okay";
87 };
88 };
89  
3 office 90 gpio-keys {
1 office 91 compatible = "gpio-keys";
92  
93 reset {
94 label = "reset";
95 gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_RESTART>;
97 };
98 };
99  
100 aliases {
101 led-boot = &power;
102 led-failsafe = &power;
103 led-running = &power;
104 led-upgrade = &power;
105 };
106  
3 office 107 gpio-leds {
1 office 108 compatible = "gpio-leds";
109  
110 red {
111 label = "a42:red:status";
112 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
113 linux,default-trigger = "default-off";
114 };
115  
116 power: green {
117 label = "a42:green:status";
118 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
119 };
120  
121 blue {
122 label = "a42:blue:status";
123 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
124 linux,default-trigger = "default-off";
125 };
126 };
127  
128 watchdog {
129 compatible = "linux,wdt-gpio";
130 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
131 hw_algo = "toggle";
132 /* hw_margin_ms is actually 300s but driver limits it to 60s */
133 hw_margin_ms = <60000>;
134 always-running;
135 };
136 };
137  
138 &tlmm {
139 serial_pins: serial_pinmux {
140 mux {
141 pins = "gpio60", "gpio61";
142 function = "blsp_uart0";
143 bias-disable;
144 };
145 };
146  
147 spi_0_pins: spi_0_pinmux {
148 pin {
149 function = "blsp_spi0";
150 pins = "gpio55", "gpio56", "gpio57";
151 drive-strength = <12>;
152 bias-disable;
153 };
154 pin_cs {
155 function = "gpio";
156 pins = "gpio54";
157 drive-strength = <2>;
158 bias-disable;
159 output-high;
160 };
161 };
162 };
163  
164 &blsp_dma {
165 status = "okay";
166 };
167  
3 office 168 &spi_0 {
1 office 169 pinctrl-0 = <&spi_0_pins>;
170 pinctrl-names = "default";
171 status = "okay";
172 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
173  
174 m25p80@0 {
175 #address-cells = <1>;
176 #size-cells = <1>;
177 compatible = "jedec,spi-nor";
178 reg = <0>;
179 spi-max-frequency = <24000000>;
180 /* partitions are passed via bootloader */
181 };
182 };
183  
184 &cryptobam {
185 status = "okay";
186 };
187  
188 &gmac0 {
189 qcom,phy_mdio_addr = <4>;
190 qcom,poll_required = <1>;
191 qcom,forced_speed = <1000>;
192 qcom,forced_duplex = <1>;
193 vlan_tag = <2 0x20>;
194 };
195  
196 &gmac1 {
197 qcom,phy_mdio_addr = <3>;
198 qcom,poll_required = <1>;
199 qcom,forced_speed = <1000>;
200 qcom,forced_duplex = <1>;
201 vlan_tag = <1 0x10>;
202 };
203  
204 &usb2_hs_phy {
205 status = "okay";
206 };
207  
208 &wifi0 {
209 status = "okay";
210 qcom,ath10k-calibration-variant = "OM-A42";
211 };
212  
213 &wifi1 {
214 status = "okay";
215 qcom,ath10k-calibration-variant = "OM-A42";
216 };