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";
32 function = LED_FUNCTION_POWER;
33 color = <LED_COLOR_ID_BLUE>;
38 compatible = "gpio-export";
41 gpio_modem_reset: modem {
42 gpio-export,name = "modem-reset";
43 gpio-export,output = <0>;
48 compatible = "gpio-keys";
50 key_reset: key-reset {
52 linux,code = <KEY_RESTART>;
57 linux,code = <KEY_WPS_BUTTON>;
67 compatible = "qcom,tcsr";
68 reg = <0x1949000 0x100>;
69 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
74 compatible = "qcom,tcsr";
75 reg = <0x194b000 0x100>;
76 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
81 compatible = "qcom,tcsr";
82 reg = <0x1953000 0x1000>;
83 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
87 compatible = "qcom,tcsr";
88 reg = <0x1957000 0x100>;
89 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
115 pinctrl-0 = <&serial_pins>;
116 pinctrl-names = "default";
130 nvmem-cell-names = "mac-address";
131 nvmem-cells = <&macaddr_mac_0 2>;
180 nvmem-cell-names = "pre-calibration", "mac-address";
181 nvmem-cells = <&precal_art_1000>, <&macaddr_mac_0 0>;
186 nvmem-cell-names = "pre-calibration", "mac-address";
187 nvmem-cells = <&precal_art_5000>, <&macaddr_mac_0 1>;