1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 // Copyright (c) 2022, Pawel Dembicki <paweldembicki@gmail.com>.
3 // Copyright (c) 2022, Giammarco Marzano <stich86@gmail.com>.
4 // Copyright (c) 2023, Andreas Böhler <dev@aboehler.at>
6 #include "qcom-ipq4019.dtsi"
7 #include <dt-bindings/soc/qcom,tcsr.h>
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
14 led-boot = &led_status;
15 led-failsafe = &led_status;
16 led-running = &led_status;
17 led-upgrade = &led_status;
22 * bootargs forced by u-boot bootipq command:
23 * 'ubi.mtd=rootfs root=mtd:ubi_rootfs rootfstype=squashfs rootwait'
25 bootargs-append = " root=/dev/ubiblock0_1";
29 compatible = "gpio-leds";
33 function = LED_FUNCTION_POWER;
34 color = <LED_COLOR_ID_BLUE>;
39 compatible = "gpio-export";
42 gpio_modem_reset: modem {
43 gpio-export,name = "modem-reset";
44 gpio-export,output = <0>;
49 compatible = "gpio-keys";
51 key_reset: key-reset {
53 linux,code = <KEY_RESTART>;
58 linux,code = <KEY_WPS_BUTTON>;
68 compatible = "qcom,tcsr";
69 reg = <0x1949000 0x100>;
70 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
75 compatible = "qcom,tcsr";
76 reg = <0x194b000 0x100>;
77 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
82 compatible = "qcom,tcsr";
83 reg = <0x1953000 0x1000>;
84 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
88 compatible = "qcom,tcsr";
89 reg = <0x1957000 0x100>;
90 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
116 pinctrl-0 = <&serial_pins>;
117 pinctrl-names = "default";
131 nvmem-cell-names = "mac-address";
132 nvmem-cells = <&macaddr_mac_0 2>;
181 nvmem-cell-names = "pre-calibration", "mac-address";
182 nvmem-cells = <&precal_art_1000>, <&macaddr_mac_0 0>;
187 nvmem-cell-names = "pre-calibration", "mac-address";
188 nvmem-cells = <&precal_art_5000>, <&macaddr_mac_0 1>;