1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include "ipq8074.dtsi"
6 #include "ipq8074-hk-cpu.dtsi"
7 #include "ipq8074-ess.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
13 model = "prpl Foundation Haze";
14 compatible = "prpl,haze", "qcom,ipq8074";
17 serial0 = &blsp1_uart5;
18 /* Aliases are required by U-Boot to patch MAC addresses */
23 label-mac-device = &dp6_syn;
24 led-boot = &led_system_blue;
25 led-failsafe = &led_system_red;
26 led-running = &led_system_green;
27 led-upgrade = &led_system_blue;
31 stdout-path = "serial0:115200n8";
35 compatible = "gpio-keys";
36 pinctrl-0 = <&button_pins>;
37 pinctrl-names = "default";
41 gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_WPS_BUTTON>;
47 gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_RESTART>;
54 mdio_pins: mdio-state {
70 button_pins: button-state {
86 i2c_3_pins: i2c-3-state {
87 pins = "gpio46", "gpio47";
88 function = "blsp2_i2c";
138 &blsp1_spi1 { /* BLSP1 QUP1 */
139 pinctrl-0 = <&spi_0_pins>;
140 pinctrl-names = "default";
145 #address-cells = <1>;
148 compatible = "jedec,spi-nor";
149 spi-max-frequency = <50000000>;
152 compatible = "qcom,smem-part";
160 pinctrl-0 = <&mdio_pins>;
161 pinctrl-names = "default";
162 reset-gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
164 qca8075_1: ethernet-phy@0 {
165 compatible = "ethernet-phy-ieee802.3-c22";
169 qca8075_2: ethernet-phy@1 {
170 compatible = "ethernet-phy-ieee802.3-c22";
174 qca8075_3: ethernet-phy@2 {
175 compatible = "ethernet-phy-ieee802.3-c22";
179 qca8075_4: ethernet-phy@3 {
180 compatible = "ethernet-phy-ieee802.3-c22";
184 aqr113c: ethernet-phy@5 {
185 compatible ="ethernet-phy-ieee802.3-c45";
187 reset-gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
194 vqmmc-supply = <&l11>;
200 switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
201 switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
202 switch_mac_mode = <MAC_MODE_PSGMII>; /* mac mode for uniphy instance0*/
203 switch_mac_mode1 = <MAC_MODE_10GBASE_R>; /* mac mode for uniphy instance1*/
204 switch_mac_mode2 = <MAC_MODE_USXGMII>; /* mac mode for uniphy instance2*/
226 compatible = "ethernet-phy-ieee802.3-c45";
227 ethernet-phy-ieee802.3-c45;
239 phy-handle = <&qca8075_1>;
245 phy-handle = <&qca8075_2>;
251 phy-handle = <&qca8075_3>;
257 phy-handle = <&qca8075_4>;
264 phy-handle = <&aqr113c>;
275 perst-gpio = <&tlmm 58 GPIO_ACTIVE_LOW>;
278 reg = <0x00020000 0 0 0 0>;
279 #address-cells = <3>;
292 perst-gpio = <&tlmm 61 GPIO_ACTIVE_LOW>;
295 reg = <0x00010000 0 0 0 0>;
296 #address-cells = <3>;
303 /* ath11k has no DT compatible for PCI cards */
304 compatible = "pci17cb,1104";
305 reg = <0x00010000 0 0 0 0>;
307 qcom,ath11k-calibration-variant = "prpl-Haze";
315 qcom,ath11k-calibration-variant = "prpl-Haze";
319 pinctrl-0 = <&i2c_3_pins>;
320 pinctrl-names = "default";
324 compatible = "ti,lp5562";
326 clock-mode = /bits/ 8 <2>;
327 #address-cells = <1>;
330 led_system_red: chan@0 {
332 led-cur = /bits/ 8 <0x20>;
333 max-cur = /bits/ 8 <0x60>;
334 color = <LED_COLOR_ID_RED>;
338 led_system_green: chan@1 {
340 led-cur = /bits/ 8 <0x20>;
341 max-cur = /bits/ 8 <0x60>;
342 color = <LED_COLOR_ID_GREEN>;
346 led_system_blue: chan@2 {
348 led-cur = /bits/ 8 <0x20>;
349 max-cur = /bits/ 8 <0x60>;
350 color = <LED_COLOR_ID_BLUE>;