1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/soc/qcom,tcsr.h>
9 model = "EdgeCore OAP-100";
10 compatible = "edgecore,oap100";
13 led-boot = &led_system;
14 led-failsafe = &led_system;
15 led-running = &led_system;
16 led-upgrade = &led_system;
20 bootargs-append = " root=/dev/ubiblock0_1";
26 pinctrl-0 = <&mdio_pins>;
27 pinctrl-names = "default";
31 compatible = "qcom,tcsr";
32 reg = <0x1949000 0x100>;
33 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
37 compatible = "qcom,tcsr";
38 reg = <0x1953000 0x1000>;
39 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
43 compatible = "qcom,tcsr";
44 reg = <0x1957000 0x100>;
45 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
50 compatible = "qcom,tcsr";
51 reg = <0x194b000 0x100>;
52 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
62 compatible = "gpio-keys";
66 linux,code = <KEY_RESTART>;
67 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
68 linux,input-type = <1>;
73 compatible = "gpio-leds";
75 led_system: led_system {
76 label = "green:system";
77 gpios = <&tlmm 22 GPIO_ACTIVE_HIGH>;
81 label = "blue:wlan2g";
82 gpios = <&tlmm 34 GPIO_ACTIVE_HIGH>;
86 label = "blue:wlan5g";
87 gpios = <&tlmm 35 GPIO_ACTIVE_HIGH>;
92 compatible = "gpio-export";
96 gpio-export,name = "usb-power";
97 gpio-export,output = <1>;
98 gpios = <&tlmm 44 GPIO_ACTIVE_HIGH>;
102 gpio-export,name = "poe-power";
103 gpio-export,output = <0>;
104 gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
114 serial_0_pins: serial_pinmux {
116 pins = "gpio16", "gpio17";
117 function = "blsp_uart0";
122 spi_0_pins: spi_0_pinmux {
124 function = "blsp_spi0";
125 pins = "gpio13", "gpio14", "gpio15";
126 drive-strength = <12>;
133 drive-strength = <2>;
139 nand_pins: nand_pins {
141 pins = "gpio53", "gpio58", "gpio59";
147 pins = "gpio54", "gpio55", "gpio56",
148 "gpio57", "gpio60", "gpio61",
149 "gpio62", "gpio63", "gpio64",
150 "gpio65", "gpio66", "gpio67",
157 mdio_pins: mdio_pinmux {
176 pinctrl-0 = <&spi_0_pins>;
177 pinctrl-names = "default";
179 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
182 #address-cells = <1>;
184 compatible = "jedec,spi-nor";
186 linux,modalias = "m25p80", "gd25q256";
187 spi-max-frequency = <24000000>;
190 compatible = "fixed-partitions";
191 #address-cells = <1>;
196 reg = <0x00000000 0x00040000>;
201 reg = <0x00040000 0x00020000>;
206 reg = <0x00060000 0x00060000>;
211 reg = <0x000c0000 0x00010000>;
215 label = "0:DDRPARAMS";
216 reg = <0x000d0000 0x00010000>;
220 label = "0:APPSBLENV";
221 reg = <0x000e0000 0x00010000>;
226 reg = <0x000f0000 0x00080000>;
231 reg = <0x00170000 0x00010000>;
235 compatible = "fixed-layout";
236 #address-cells = <1>;
239 precal_art_1000: precal@1000 {
240 reg = <0x1000 0x2f20>;
243 precal_art_5000: precal@5000 {
244 reg = <0x5000 0x2f20>;
253 pinctrl-0 = <&nand_pins>;
254 pinctrl-names = "default";
259 compatible = "fixed-partitions";
260 #address-cells = <1>;
265 reg = <0x00000000 0x4000000>;
276 pinctrl-0 = <&serial_0_pins>;
277 pinctrl-names = "default";
287 nvmem-cell-names = "pre-calibration";
288 nvmem-cells = <&precal_art_1000>;
289 qcom,ath10k-calibration-variant = "Edgecore OAP100";
294 nvmem-cell-names = "pre-calibration";
295 nvmem-cells = <&precal_art_5000>;
296 qcom,ath10k-calibration-variant = "Edgecore OAP100";
312 #address-cells = <1>;
317 #trigger-source-cells = <0>;
322 #trigger-source-cells = <0>;
335 #address-cells = <1>;
340 #trigger-source-cells = <0>;