mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-11-01 19:07:47 +00:00
ipq5332-zyxel-nwa50be.dts: use ipq5332-rdp442.dts
from feeds/qca-wifi-7/ipq53xx/files-6.1/arch/arm64/boot/dts/qcom/ipq5332-rdp442.dts Signed-off-by: YenLin Pan <YenLin.Pan@zyxel.com.tw>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
|
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
|
||||||
/*
|
/*
|
||||||
* IPQ5332 RDP468 board device tree source
|
* IPQ5332 RDP442 board device tree source
|
||||||
*
|
*
|
||||||
* Copyright (c) 2020-2021 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2020-2021 The Linux Foundation. All rights reserved.
|
||||||
* Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
* Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||||
@@ -8,15 +8,305 @@
|
|||||||
|
|
||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
|
#include "ipq5332.dtsi"
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
#include <dt-bindings/input/input.h>
|
#include <dt-bindings/input/input.h>
|
||||||
#include <dt-bindings/leds/common.h>
|
#include <dt-bindings/leds/common.h>
|
||||||
#include "ipq5332.dtsi"
|
|
||||||
#include "ipq5332-default-memory.dtsi"
|
#include "ipq5332-default-memory.dtsi"
|
||||||
|
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Zyxel NWA130BE";
|
model = "Qualcomm Technologies, Inc. IPQ5332/RDP442/AP-MI01.3";
|
||||||
compatible = "zyxel,nwa130be", "qcom,ipq5332-ap-mi01.6", "qcom,ipq5332-rdp468", "qcom,ipq5332";
|
compatible = "zyxel,nwa130be", qcom,ipq5332-ap-mi01.3", "qcom,ipq5332-rdp442", "qcom,ipq5332";
|
||||||
|
|
||||||
|
#ifdef __IPQ_MEM_PROFILE_512_MB__
|
||||||
|
|
||||||
|
/* 512M Layout for IPQ5332 + QCN6432 + QCN6432
|
||||||
|
* +==========+==============+========================+
|
||||||
|
* | | | |
|
||||||
|
* | Region | Start Offset | Size |
|
||||||
|
* | | | |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* | Q6 | | |
|
||||||
|
* | code/ | 0x4A900000 | 25MB |
|
||||||
|
* | data | | |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* | IPQ5332 | | |
|
||||||
|
* | data | 0x4C200000 | 17MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* | IPQ5332 | | |
|
||||||
|
* | M3 Dump | 0x4D300000 | 1MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* | IPQ5332 | | |
|
||||||
|
* | QDSS | 0x4D400000 | 1MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* | IPQ5332 | | |
|
||||||
|
* | CALDB | 0x4D500000 | 3MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* |QCN6432_1| | |
|
||||||
|
* | data | 0x4D800000 | 16MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* |QCN6432_1| | |
|
||||||
|
* | M3 Dump | 0x4E800000 | 1MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* |QCN6432_1| | |
|
||||||
|
* | QDSS | 0x4E900000 | 1MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* |QCN6432_1| | |
|
||||||
|
* | CALDB | 0x4EA00000 | 5MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* |QCN6432_2| | |
|
||||||
|
* | data | 0x4EF00000 | 16MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* |QCN6432_2| | |
|
||||||
|
* | M3 Dump | 0x4FF00000 | 1MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* |QCN6432_2| | |
|
||||||
|
* | QDSS | 0x50000000 | 1MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* |QCN6432_2| | |
|
||||||
|
* | CALDB | 0x50100000 | 5MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* | | | |
|
||||||
|
* | MLO | 0x50600000 | 12MB |
|
||||||
|
* +==================================================+
|
||||||
|
* | |
|
||||||
|
* | |
|
||||||
|
* | |
|
||||||
|
* | Rest of memory for Linux |
|
||||||
|
* | |
|
||||||
|
* | |
|
||||||
|
* | |
|
||||||
|
* +==================================================+
|
||||||
|
*/
|
||||||
|
|
||||||
|
reserved-memory {
|
||||||
|
|
||||||
|
/delete-node/ m3_dump@4cc00000;
|
||||||
|
/delete-node/ q6_etr_dump@1;
|
||||||
|
/delete-node/ mlo_global_mem_0@0x4db00000;
|
||||||
|
/delete-node/ wcnss@4a900000;
|
||||||
|
/delete-node/ q6_caldb_region@4ce00000;
|
||||||
|
|
||||||
|
q6_mem_regions: q6_mem_regions@4A900000 {
|
||||||
|
reg = <0x0 0x4a900000 0x0 0x5D00000>;
|
||||||
|
no-map;
|
||||||
|
};
|
||||||
|
|
||||||
|
q6_code_data: q6_code_data@4A900000 {
|
||||||
|
reg = <0x0 0x4a900000 0x0 0x1900000>;
|
||||||
|
no-map;
|
||||||
|
};
|
||||||
|
|
||||||
|
q6_ipq5332_data: q6_ipq5332_data@4C200000 {
|
||||||
|
reg = <0x0 0x4C200000 0x0 0x1100000>;
|
||||||
|
no-map;
|
||||||
|
};
|
||||||
|
|
||||||
|
m3_dump: m3_dump@4D300000 {
|
||||||
|
reg = <0x0 0x4D300000 0x0 0x100000>;
|
||||||
|
no-map;
|
||||||
|
};
|
||||||
|
|
||||||
|
q6_etr_region: q6_etr_dump@4D400000 {
|
||||||
|
reg = <0x0 0x4D400000 0x0 0x100000>;
|
||||||
|
no-map;
|
||||||
|
};
|
||||||
|
|
||||||
|
q6_ipq5332_caldb: q6_ipq5332_caldb@4D500000 {
|
||||||
|
reg = <0x0 0x4D500000 0x0 0x300000>;
|
||||||
|
no-map;
|
||||||
|
};
|
||||||
|
|
||||||
|
q6_qcn6432_data_1: q6_qcn6432_data_1@4D800000 {
|
||||||
|
reg = <0x0 0x4D800000 0x0 0x1000000>;
|
||||||
|
no-map;
|
||||||
|
};
|
||||||
|
|
||||||
|
m3_dump_qcn6432_1: m3_dump_qcn6432_1@4E800000 {
|
||||||
|
reg = <0x0 0x4E800000 0x0 0x100000>;
|
||||||
|
no-map;
|
||||||
|
};
|
||||||
|
|
||||||
|
q6_qcn6432_etr_1: q6_qcn6432_etr_1@4E900000 {
|
||||||
|
reg = <0x0 0x4E900000 0x0 0x100000>;
|
||||||
|
no-map;
|
||||||
|
};
|
||||||
|
|
||||||
|
q6_qcn6432_caldb_1: q6_qcn6432_caldb_1@4EA00000 {
|
||||||
|
reg = <0x0 0x4EA00000 0x0 0x500000>;
|
||||||
|
no-map;
|
||||||
|
};
|
||||||
|
|
||||||
|
q6_qcn6432_data_2: q6_qcn6432_data_2@4EF00000 {
|
||||||
|
reg = <0x0 0x4EF00000 0x0 0x1000000>;
|
||||||
|
no-map;
|
||||||
|
};
|
||||||
|
|
||||||
|
m3_dump_qcn6432_2: m3_dump_qcn6432_2@4FF00000 {
|
||||||
|
reg = <0x0 0x4FF00000 0x0 0x100000>;
|
||||||
|
no-map;
|
||||||
|
};
|
||||||
|
|
||||||
|
q6_qcn6432_etr_2: q6_qcn6432_etr_2@50000000 {
|
||||||
|
reg = <0x0 0x50000000 0x0 0x100000>;
|
||||||
|
no-map;
|
||||||
|
};
|
||||||
|
|
||||||
|
q6_qcn6432_caldb_2: q6_qcn6432_caldb_2@50100000 {
|
||||||
|
reg = <0x0 0x50100000 0x0 0x500000>;
|
||||||
|
no-map;
|
||||||
|
};
|
||||||
|
|
||||||
|
mlo_global_mem0: mlo_global_mem_0@50600000 {
|
||||||
|
reg = <0x0 0x50600000 0x0 0xC00000>;
|
||||||
|
no-map;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
#else
|
||||||
|
|
||||||
|
/* 1G Layout for IPQ5332 + QCN6432 + QCN6432
|
||||||
|
* +==========+==============+========================+
|
||||||
|
* | | | |
|
||||||
|
* | Region | Start Offset | Size |
|
||||||
|
* | | | |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* | Q6 | | |
|
||||||
|
* | code/ | 0x4A900000 | 25MB |
|
||||||
|
* | data | | |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* | IPQ5332 | | |
|
||||||
|
* | data | 0x4C200000 | 21MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* | IPQ5332 | | |
|
||||||
|
* | M3 Dump | 0x4D700000 | 1MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* | IPQ5332 | | |
|
||||||
|
* | QDSS | 0x4D800000 | 1MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* | IPQ5332 | | |
|
||||||
|
* | CALDB | 0x4D900000 | 5MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* |QCN6432_1| | |
|
||||||
|
* | data | 0x4DE00000 | 21MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* |QCN6432_1| | |
|
||||||
|
* | M3 Dump | 0x4F300000 | 1MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* |QCN6432_1| | |
|
||||||
|
* | QDSS | 0x4F400000 | 1MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* |QCN6432_1| | |
|
||||||
|
* | CALDB | 0x4F500000 | 5MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* |QCN6432_2| | |
|
||||||
|
* | data | 0x4FA00000 | 21MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* |QCN6432_2| | |
|
||||||
|
* | M3 Dump | 0x50F00000 | 1MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* |QCN6432_2| | |
|
||||||
|
* | QDSS | 0x51000000 | 1MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* |QCN6432_2| | |
|
||||||
|
* | CALDB | 0x51100000 | 5MB |
|
||||||
|
* +---------+--------------+-------------------------+
|
||||||
|
* | | | |
|
||||||
|
* | MLO | 0x51600000 | 12MB |
|
||||||
|
* +==================================================+
|
||||||
|
* | |
|
||||||
|
* | |
|
||||||
|
* | |
|
||||||
|
* | Rest of memory for Linux |
|
||||||
|
* | |
|
||||||
|
* | |
|
||||||
|
* | |
|
||||||
|
* +==================================================+
|
||||||
|
*/
|
||||||
|
reserved-memory {
|
||||||
|
|
||||||
|
/delete-node/ m3_dump@4cc00000;
|
||||||
|
/delete-node/ q6_etr_dump@1;
|
||||||
|
/delete-node/ mlo_global_mem_0@0x4db00000;
|
||||||
|
/delete-node/ wcnss@4a900000;
|
||||||
|
/delete-node/ q6_caldb_region@4ce00000;
|
||||||
|
|
||||||
|
q6_mem_regions: q6_mem_regions@4A900000 {
|
||||||
|
no-map;
|
||||||
|
reg = <0x0 0x4a900000 0x0 0x6D00000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
q6_code_data: q6_code_data@4A900000 {
|
||||||
|
no-map;
|
||||||
|
reg = <0x0 0x4a900000 0x0 0x1900000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
q6_ipq5332_data: q6_ipq5332_data@4C200000 {
|
||||||
|
no-map;
|
||||||
|
reg = <0x0 0x4C200000 0x0 0x1500000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
m3_dump: m3_dump@4D700000 {
|
||||||
|
no-map;
|
||||||
|
reg = <0x0 0x4D700000 0x0 0x100000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
q6_etr_region: q6_etr_dump@4D800000 {
|
||||||
|
no-map;
|
||||||
|
reg = <0x0 0x4D800000 0x0 0x100000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
q6_ipq5332_caldb: q6_ipq5332_caldb@4D900000 {
|
||||||
|
no-map;
|
||||||
|
reg = <0x0 0x4D900000 0x0 0x500000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
q6_qcn6432_data_1: q6_qcn6432_data_1@4DE00000 {
|
||||||
|
no-map;
|
||||||
|
reg = <0x0 0x4DE00000 0x0 0x1500000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
m3_dump_qcn6432_1: m3_dump_qcn6432_1@4F300000 {
|
||||||
|
no-map;
|
||||||
|
reg = <0x0 0x4F300000 0x0 0x100000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
q6_qcn6432_etr_1: q6_qcn6432_etr_1@4F400000 {
|
||||||
|
no-map;
|
||||||
|
reg = <0x0 0x4F400000 0x0 0x100000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
q6_qcn6432_caldb_1: q6_qcn6432_caldb_1@4F500000 {
|
||||||
|
no-map;
|
||||||
|
reg = <0x0 0x4F500000 0x0 0x500000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
q6_qcn6432_data_2: q6_qcn6432_data_2@4FA00000 {
|
||||||
|
no-map;
|
||||||
|
reg = <0x0 0x4FA00000 0x0 0x1500000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
m3_dump_qcn6432_2: m3_dump_qcn6432_2@50F00000 {
|
||||||
|
no-map;
|
||||||
|
reg = <0x0 0x50F00000 0x0 0x100000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
q6_qcn6432_etr_2: q6_qcn6432_etr_2@51000000 {
|
||||||
|
no-map;
|
||||||
|
reg = <0x0 0x51000000 0x0 0x100000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
q6_qcn6432_caldb_2: q6_qcn6432_caldb_2@51100000 {
|
||||||
|
no-map;
|
||||||
|
reg = <0x0 0x51100000 0x0 0x500000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
mlo_global_mem0: mlo_global_mem_0@51600000 {
|
||||||
|
no-map;
|
||||||
|
reg = <0x0 0x51600000 0x0 0xC00000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
aliases {
|
aliases {
|
||||||
serial0 = &blsp1_uart0;
|
serial0 = &blsp1_uart0;
|
||||||
@@ -94,19 +384,57 @@
|
|||||||
phy-handle = <&phy2>;
|
phy-handle = <&phy2>;
|
||||||
phy-mode = "usxgmii";
|
phy-mode = "usxgmii";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
port@4 {
|
||||||
|
reg = <4>;
|
||||||
|
label = "lan4";
|
||||||
|
phy-handle = <&phy3>;
|
||||||
|
phy-mode = "usxgmii";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
leds {
|
||||||
|
compatible = "gpio-leds";
|
||||||
|
pinctrl-0 = <&gpio_leds_default>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
|
||||||
|
led-0 {
|
||||||
|
color = <LED_COLOR_ID_GREEN>;
|
||||||
|
function = LED_FUNCTION_WLAN;
|
||||||
|
gpios = <&tlmm 36 GPIO_ACTIVE_HIGH>;
|
||||||
|
linux,default-trigger = "phy0tx";
|
||||||
|
default-state = "off";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
gpio_keys {
|
||||||
|
compatible = "gpio-keys";
|
||||||
|
pinctrl-0 = <&button_pins>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
button@1 {
|
||||||
|
label = "wps";
|
||||||
|
linux,code = <KEY_WPS_BUTTON>;
|
||||||
|
gpios = <&tlmm 35 GPIO_ACTIVE_LOW>;
|
||||||
|
linux,input-type = <1>;
|
||||||
|
debounce-interval = <60>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
ess-instance {
|
ess-instance {
|
||||||
num_devices = <0x2>;
|
num_devices = <0x2>;
|
||||||
|
|
||||||
ess-switch@3a000000 {
|
ess-switch@3a000000 {
|
||||||
|
pinctrl-0 = <&sfp_pins>;
|
||||||
|
pinctrl-names = "default";
|
||||||
switch_cpu_bmp = <0x1>; /* cpu port bitmap */
|
switch_cpu_bmp = <0x1>; /* cpu port bitmap */
|
||||||
switch_lan_bmp = <0x2>; /* lan port bitmap */
|
switch_lan_bmp = <0x2>; /* lan port bitmap */
|
||||||
switch_wan_bmp = <0x4>; /* wan port bitmap */
|
switch_wan_bmp = <0x4>; /* wan port bitmap */
|
||||||
switch_mac_mode = <0xc>; /* mac mode for uniphy instance0*/
|
switch_mac_mode = <0xc>; /* mac mode for uniphy instance0*/
|
||||||
switch_mac_mode1 = <0xf>; /* mac mode for uniphy instance1*/
|
switch_mac_mode1 = <0xe>; /* mac mode for uniphy instance1*/
|
||||||
switch_mac_mode2 = <0xff>; /* mac mode for uniphy instance2*/
|
switch_mac_mode2 = <0xff>; /* mac mode for uniphy instance2*/
|
||||||
|
|
||||||
qcom,port_phyinfo {
|
qcom,port_phyinfo {
|
||||||
@@ -117,17 +445,10 @@
|
|||||||
};
|
};
|
||||||
port@1 {
|
port@1 {
|
||||||
port_id = <2>;
|
port_id = <2>;
|
||||||
phy_address = <4>;
|
phy_address = <30>;
|
||||||
|
media-type = "sfp"; /* fiber mode */
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
led_source@5 {
|
|
||||||
source = <5>;
|
|
||||||
mode = "normal";
|
|
||||||
speed = "all";
|
|
||||||
blink_en = "enable";
|
|
||||||
active = "high";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
ess-switch1@1 {
|
ess-switch1@1 {
|
||||||
@@ -138,7 +459,7 @@
|
|||||||
switch_mac_mode = <0xc>; /* mac mode for uniphy instance0 */
|
switch_mac_mode = <0xc>; /* mac mode for uniphy instance0 */
|
||||||
switch_mac_mode1 = <0xff>; /* mac mode1 for uniphy instance1 */
|
switch_mac_mode1 = <0xff>; /* mac mode1 for uniphy instance1 */
|
||||||
switch_cpu_bmp = <0x1>; /* cpu port bitmap */
|
switch_cpu_bmp = <0x1>; /* cpu port bitmap */
|
||||||
switch_lan_bmp = <0xe>; /* lan port bitmap */
|
switch_lan_bmp = <0x1e>; /* lan port bitmap */
|
||||||
switch_wan_bmp = <0x0>; /* wan port bitmap */
|
switch_wan_bmp = <0x0>; /* wan port bitmap */
|
||||||
link-polling-required = <0>;
|
link-polling-required = <0>;
|
||||||
fdb_sync = "interrupt";
|
fdb_sync = "interrupt";
|
||||||
@@ -162,6 +483,10 @@
|
|||||||
port_id = <3>;
|
port_id = <3>;
|
||||||
phy_address = <3>;
|
phy_address = <3>;
|
||||||
};
|
};
|
||||||
|
port@4 {
|
||||||
|
port_id = <4>;
|
||||||
|
phy_address = <4>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
led_source@2 {
|
led_source@2 {
|
||||||
@@ -185,6 +510,13 @@
|
|||||||
blink_en = "enable";
|
blink_en = "enable";
|
||||||
active = "high";
|
active = "high";
|
||||||
};
|
};
|
||||||
|
led_source@11 {
|
||||||
|
source = <11>;
|
||||||
|
mode = "normal";
|
||||||
|
speed = "all";
|
||||||
|
blink_en = "enable";
|
||||||
|
active = "high";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -196,7 +528,7 @@
|
|||||||
qcom,mactype = <1>;
|
qcom,mactype = <1>;
|
||||||
local-mac-address = [000000000000];
|
local-mac-address = [000000000000];
|
||||||
mdio-bus = <&mdio>;
|
mdio-bus = <&mdio>;
|
||||||
qcom,phy-mdio-addr = <4>;
|
qcom,phy-mdio-addr = <30>;
|
||||||
qcom,link-poll = <1>;
|
qcom,link-poll = <1>;
|
||||||
phy-mode = "sgmii";
|
phy-mode = "sgmii";
|
||||||
};
|
};
|
||||||
@@ -283,76 +615,107 @@
|
|||||||
<0 182 4>; /* MHT port Tx complete ring id #23 IRQ info */
|
<0 182 4>; /* MHT port Tx complete ring id #23 IRQ info */
|
||||||
};
|
};
|
||||||
|
|
||||||
leds {
|
|
||||||
compatible = "gpio-leds";
|
|
||||||
pinctrl-0 = <&led_pins>;
|
|
||||||
pinctrl-names = "default";
|
|
||||||
led_blue{
|
|
||||||
label = "led_blue";
|
|
||||||
gpio = <&tlmm 22 GPIO_ACTIVE_HIGH>;
|
|
||||||
linux,default-trigger = "led_blue";
|
|
||||||
default-state = "off";
|
|
||||||
};
|
|
||||||
led_green {
|
|
||||||
label = "led_green";
|
|
||||||
gpio = <&tlmm 31 GPIO_ACTIVE_HIGH>;
|
|
||||||
linux,default-trigger = "led_green";
|
|
||||||
default-state = "on";
|
|
||||||
};
|
|
||||||
led_white {
|
|
||||||
label = "led_white";
|
|
||||||
gpio = <&tlmm 32 GPIO_ACTIVE_HIGH>;
|
|
||||||
linux,default-trigger = "led_white";
|
|
||||||
default-state = "off";
|
|
||||||
};
|
|
||||||
led_red {
|
|
||||||
label = "led_red";
|
|
||||||
gpio = <&tlmm 44 GPIO_ACTIVE_HIGH>;
|
|
||||||
linux,default-trigger = "led_red";
|
|
||||||
default-state = "off";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
gpio_keys {
|
|
||||||
compatible = "gpio-keys";
|
|
||||||
pinctrl-0 = <&button_pins>;
|
|
||||||
pinctrl-names = "default";
|
|
||||||
button@1 {
|
|
||||||
label = "reset";
|
|
||||||
linux,code = <KEY_RESTART>;
|
|
||||||
gpios = <&tlmm 30 GPIO_ACTIVE_LOW>;
|
|
||||||
linux,input-type = <1>;
|
|
||||||
debounce-interval = <60>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
wsi: wsi {
|
wsi: wsi {
|
||||||
id = <0>;
|
id = <0>;
|
||||||
num_chip = <2>;
|
num_chip = <3>;
|
||||||
status = "okay";
|
chip_info = <0 2 1 2>,
|
||||||
chip_info = <0 1 1>,
|
<1 2 2 0>,
|
||||||
<1 1 0>;
|
<2 2 0 1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
q6v5_wcss: remoteproc@d100000 {
|
||||||
|
boot-args = <0x1 0x4 0x3 0x0 0x26 0x2>,
|
||||||
|
<0x1 0x4 0x4 0x1 0x2f 0x2>;
|
||||||
|
memory-region = <&q6_mem_regions>;
|
||||||
|
|
||||||
|
/delete-node/ remoteproc_pd1;
|
||||||
|
/delete-node/ remoteproc_pd2;
|
||||||
|
/delete-node/ remoteproc_pd3;
|
||||||
|
|
||||||
|
q6_wcss_pd4: remoteproc_pd4 {
|
||||||
|
compatible = "qcom,ipq5332-mpd-upd-text";
|
||||||
|
firmware = "IPQ5332/q6_fw4.mdt";
|
||||||
|
|
||||||
|
q6_wcss_pd1: remoteproc_pd1 {
|
||||||
|
compatible = "qcom,ipq5332-wcss-ahb-mpd";
|
||||||
|
firmware = "IPQ5332/q6_fw1.mdt";
|
||||||
|
m3_firmware = "IPQ5332/iu_fw.mdt";
|
||||||
|
interrupts-extended = <&wcss_smp2p_in 8 0>,
|
||||||
|
<&wcss_smp2p_in 9 0>,
|
||||||
|
<&wcss_smp2p_in 12 0>,
|
||||||
|
<&wcss_smp2p_in 11 0>;
|
||||||
|
interrupt-names = "fatal",
|
||||||
|
"ready",
|
||||||
|
"spawn-ack",
|
||||||
|
"stop-ack";
|
||||||
|
|
||||||
|
qcom,smem-states = <&wcss_smp2p_out 8>,
|
||||||
|
<&wcss_smp2p_out 9>,
|
||||||
|
<&wcss_smp2p_out 10>;
|
||||||
|
qcom,smem-state-names = "shutdown",
|
||||||
|
"stop",
|
||||||
|
"spawn";
|
||||||
|
memory-region = <&q6_ipq5332_data>,
|
||||||
|
<&m3_dump>,
|
||||||
|
<&q6_etr_region>,
|
||||||
|
<&q6_ipq5332_caldb>;
|
||||||
|
};
|
||||||
|
|
||||||
|
q6_wcss_pd2: remoteproc_pd2 {
|
||||||
|
compatible = "qcom,ipq5332-wcss-pcie-mpd";
|
||||||
|
firmware = "IPQ5332/q6_fw2.mdt";
|
||||||
|
m3_firmware = "qcn6432/iu_fw.mdt";
|
||||||
|
interrupts-extended = <&wcss_smp2p_in 16 0>,
|
||||||
|
<&wcss_smp2p_in 17 0>,
|
||||||
|
<&wcss_smp2p_in 20 0>,
|
||||||
|
<&wcss_smp2p_in 19 0>;
|
||||||
|
interrupt-names = "fatal",
|
||||||
|
"ready",
|
||||||
|
"spawn-ack",
|
||||||
|
"stop-ack";
|
||||||
|
|
||||||
|
qcom,smem-states = <&wcss_smp2p_out 16>,
|
||||||
|
<&wcss_smp2p_out 17>,
|
||||||
|
<&wcss_smp2p_out 18>;
|
||||||
|
qcom,smem-state-names = "shutdown",
|
||||||
|
"stop",
|
||||||
|
"spawn";
|
||||||
|
memory-region = <&q6_qcn6432_data_1>,
|
||||||
|
<&m3_dump_qcn6432_1>,
|
||||||
|
<&q6_qcn6432_etr_1>,
|
||||||
|
<&q6_qcn6432_caldb_1>;
|
||||||
|
status = "ok";
|
||||||
|
};
|
||||||
|
|
||||||
|
q6_wcss_pd3: remoteproc_pd3 {
|
||||||
|
compatible = "qcom,ipq5332-wcss-pcie-mpd";
|
||||||
|
firmware = "IPQ5332/q6_fw3.mdt";
|
||||||
|
interrupts-extended = <&wcss_smp2p_in 24 0>,
|
||||||
|
<&wcss_smp2p_in 25 0>,
|
||||||
|
<&wcss_smp2p_in 28 0>,
|
||||||
|
<&wcss_smp2p_in 27 0>;
|
||||||
|
interrupt-names = "fatal",
|
||||||
|
"ready",
|
||||||
|
"spawn-ack",
|
||||||
|
"stop-ack";
|
||||||
|
|
||||||
|
qcom,smem-states = <&wcss_smp2p_out 24>,
|
||||||
|
<&wcss_smp2p_out 25>,
|
||||||
|
<&wcss_smp2p_out 26>;
|
||||||
|
qcom,smem-state-names = "shutdown",
|
||||||
|
"stop",
|
||||||
|
"spawn";
|
||||||
|
memory-region = <&q6_qcn6432_data_2>,
|
||||||
|
<&m3_dump_qcn6432_2>,
|
||||||
|
<&q6_qcn6432_etr_2>,
|
||||||
|
<&q6_qcn6432_caldb_2>;
|
||||||
|
status = "ok";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&wifi0 {
|
|
||||||
led-gpio = <&tlmm 36 GPIO_ACTIVE_HIGH>;
|
|
||||||
qcom,rproc = <&q6_wcss_pd1>;
|
|
||||||
qcom,rproc_rpd = <&q6v5_wcss>;
|
|
||||||
qcom,multipd_arch;
|
|
||||||
qcom,userpd-subsys-name = "q6v5_wcss_userpd1";
|
|
||||||
memory-region = <&q6_region>;
|
|
||||||
qcom,wsi = <&wsi>;
|
|
||||||
qcom,wsi_index = <0>;
|
|
||||||
qcom,board_id = <0x12>;
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&qcn9224_pcie1 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&blsp1_uart0 {
|
&blsp1_uart0 {
|
||||||
pinctrl-0 = <&serial_0_pins>;
|
pinctrl-0 = <&serial_0_pins>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
@@ -360,9 +723,16 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&blsp1_uart1 {
|
&blsp1_uart1 {
|
||||||
pinctrl-0 = <&serial_1_pins>;
|
pinctrl-0 = <&serial_1_pins>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
&blsp1_i2c1 {
|
||||||
|
clock-frequency = <400000>;
|
||||||
|
pinctrl-0 = <&i2c_1_pins>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
status = "disabled";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&blsp1_spi0 {
|
&blsp1_spi0 {
|
||||||
@@ -418,66 +788,65 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&pcie1_phy_x2 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&pcie1 {
|
|
||||||
pinctrl-0 = <&pcie1_default_state>;
|
|
||||||
pinctrl-names = "default";
|
|
||||||
perst-gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
|
|
||||||
status = "okay";
|
|
||||||
|
|
||||||
pcie1_rp {
|
|
||||||
reg = <0 0 0 0 0>;
|
|
||||||
|
|
||||||
qcom,mhi@1 {
|
|
||||||
reg = <0 0 0 0 0>;
|
|
||||||
boot-args = <0x2 0x4 0x34 0x3 0x0 0x0 /* MX Rail, GPIO52, Drive strength 0x3 */
|
|
||||||
0x4 0x4 0x18 0x3 0x0 0x0 /* RFA1p2 Rail, GPIO24, Drive strength 0x3 */
|
|
||||||
0x0 0x4 0x0 0x0 0x0 0x0>; /* End of arguments */
|
|
||||||
memory-region = <&qcn9224_pcie1>;
|
|
||||||
qcom,wsi = <&wsi>;
|
|
||||||
qcom,wsi_index = <1>;
|
|
||||||
qcom,board_id = <0x1019>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
/* PINCTRL */
|
/* PINCTRL */
|
||||||
|
|
||||||
&tlmm {
|
&tlmm {
|
||||||
|
qspi_default_state: qspi-default-state {
|
||||||
led_pins: led_pins {
|
qspi_clock {
|
||||||
led_blue {
|
pins = "gpio13";
|
||||||
pins = "gpio22";
|
function = "qspi_clk";
|
||||||
function = "gpio";
|
|
||||||
drive-strength = <8>;
|
drive-strength = <8>;
|
||||||
bias-pull-down;
|
bias-pull-down;
|
||||||
};
|
};
|
||||||
|
|
||||||
led_green {
|
qspi_cs {
|
||||||
pins = "gpio31";
|
pins = "gpio12";
|
||||||
function = "gpio";
|
function = "qspi_cs";
|
||||||
drive-strength = <8>;
|
drive-strength = <8>;
|
||||||
bias-pull-down;
|
bias-pull-up;
|
||||||
};
|
};
|
||||||
|
|
||||||
led_white {
|
qspi_data {
|
||||||
pins = "gpio32";
|
pins = "gpio8", "gpio9", "gpio10", "gpio11";
|
||||||
function = "gpio";
|
function = "qspi_data";
|
||||||
drive-strength = <8>;
|
|
||||||
bias-pull-down;
|
|
||||||
};
|
|
||||||
|
|
||||||
led_red {
|
|
||||||
pins = "gpio44";
|
|
||||||
function = "gpio";
|
|
||||||
drive-strength = <8>;
|
drive-strength = <8>;
|
||||||
bias-pull-down;
|
bias-pull-down;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
serial_1_pins: serial1-pinmux {
|
||||||
|
pins = "gpio33", "gpio34", "gpio35", "gpio36";
|
||||||
|
function = "blsp1_uart2";
|
||||||
|
drive-strength = <8>;
|
||||||
|
bias-pull-up;
|
||||||
|
};
|
||||||
|
|
||||||
|
i2c_1_pins: i2c-1-state {
|
||||||
|
pins = "gpio29", "gpio30";
|
||||||
|
function = "blsp1_i2c0";
|
||||||
|
drive-strength = <8>;
|
||||||
|
bias-pull-up;
|
||||||
|
};
|
||||||
|
|
||||||
|
gpio_leds_default: gpio-leds-default-state {
|
||||||
|
pins = "gpio36";
|
||||||
|
function = "gpio";
|
||||||
|
drive-strength = <8>;
|
||||||
|
bias-pull-down;
|
||||||
|
};
|
||||||
|
|
||||||
|
button_pins: button-state {
|
||||||
|
pins = "gpio35";
|
||||||
|
function = "gpio";
|
||||||
|
drive-strength = <8>;
|
||||||
|
bias-pull-up;
|
||||||
|
};
|
||||||
|
|
||||||
|
pwm_pins: pwm-state {
|
||||||
|
pins = "gpio46";
|
||||||
|
function = "pwm0";
|
||||||
|
drive-strength = <8>;
|
||||||
|
};
|
||||||
|
|
||||||
sdc_default_state: sdc-default-state {
|
sdc_default_state: sdc-default-state {
|
||||||
clk-pins {
|
clk-pins {
|
||||||
@@ -516,55 +885,19 @@
|
|||||||
bias-pull-up;
|
bias-pull-up;
|
||||||
};
|
};
|
||||||
|
|
||||||
qspi_default_state: qspi-default-state {
|
sfp_pins: sfp-state {
|
||||||
qspi_clock {
|
sfp_rx {
|
||||||
pins = "gpio13";
|
pins = "gpio45";
|
||||||
function = "qspi_clk";
|
function = "rx1";
|
||||||
|
bias-disable;
|
||||||
|
};
|
||||||
|
sfp_tx {
|
||||||
|
pins = "gpio24";
|
||||||
|
function = "gpio";
|
||||||
drive-strength = <8>;
|
drive-strength = <8>;
|
||||||
bias-pull-down;
|
bias-pull-down;
|
||||||
|
output-low;
|
||||||
};
|
};
|
||||||
|
|
||||||
qspi_cs {
|
|
||||||
pins = "gpio12";
|
|
||||||
function = "qspi_cs";
|
|
||||||
drive-strength = <8>;
|
|
||||||
bias-pull-up;
|
|
||||||
};
|
|
||||||
|
|
||||||
qspi_data {
|
|
||||||
pins = "gpio8", "gpio9", "gpio10", "gpio11";
|
|
||||||
function = "qspi_data";
|
|
||||||
drive-strength = <8>;
|
|
||||||
bias-pull-down;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
serial_1_pins: serial1-pinmux {
|
|
||||||
pins = "gpio33", "gpio34", "gpio35", "gpio36";
|
|
||||||
function = "blsp1_uart2";
|
|
||||||
drive-strength = <8>;
|
|
||||||
bias-pull-up;
|
|
||||||
};
|
|
||||||
|
|
||||||
button_pins: button-state {
|
|
||||||
pins = "gpio30";
|
|
||||||
function = "gpio";
|
|
||||||
drive-strength = <8>;
|
|
||||||
bias-pull-up;
|
|
||||||
};
|
|
||||||
|
|
||||||
pwm_pins: pwm-state {
|
|
||||||
pins = "gpio46";
|
|
||||||
function = "pwm0";
|
|
||||||
drive-strength = <8>;
|
|
||||||
};
|
|
||||||
|
|
||||||
pcie1_default_state: pcie1-default-state {
|
|
||||||
pins = "gpio47";
|
|
||||||
function = "gpio";
|
|
||||||
drive-strength = <8>;
|
|
||||||
bias-pull-up;
|
|
||||||
output-low;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -573,8 +906,14 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&usb3 {
|
&usb3 {
|
||||||
qcom,multiplexed-phy;
|
qcom,select-utmi-as-pipe-clk;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
|
dwc3@8a00000 {
|
||||||
|
/delete-property/ #phy-cells;
|
||||||
|
/delete-property/ phys;
|
||||||
|
/delete-property/ phy-names;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&pwm {
|
&pwm {
|
||||||
@@ -587,6 +926,81 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&ssuniphy_0 {
|
&wifi0 {
|
||||||
status = "okay";
|
qcom,multipd_arch;
|
||||||
|
qcom,rproc = <&q6_wcss_pd1>;
|
||||||
|
qcom,rproc_rpd = <&q6v5_wcss>;
|
||||||
|
qcom,userpd-subsys-name = "q6v5_wcss_userpd1";
|
||||||
|
qcom,bdf-addr = <0x4C200000 0x4C200000 0x4C200000 0x0 0x0 0x0>;
|
||||||
|
qcom,caldb-addr = <0x4D900000 0x4D500000 0x0 0x0 0x0 0x0>;
|
||||||
|
#ifdef __IPQ_MEM_PROFILE_512_MB__
|
||||||
|
qcom,tgt-mem-mode = <1>;
|
||||||
|
qcom,caldb-size = <0x300000>;
|
||||||
|
#else
|
||||||
|
qcom,tgt-mem-mode = <0>;
|
||||||
|
qcom,caldb-size = <0x500000>;
|
||||||
|
#endif
|
||||||
|
qcom,board_id = <0x13>;
|
||||||
|
#if defined(__CNSS2__)
|
||||||
|
mem-region = <&q6_ipq5332_data>;
|
||||||
|
#else
|
||||||
|
memory-region = <&q6_ipq5332_data>;
|
||||||
|
#endif
|
||||||
|
qcom,wsi = <&wsi>;
|
||||||
|
qcom,wsi_index = <0>;
|
||||||
|
status = "ok";
|
||||||
|
};
|
||||||
|
|
||||||
|
&wifi1 {
|
||||||
|
qcom,multipd_arch;
|
||||||
|
qcom,rproc = <&q6_wcss_pd2>;
|
||||||
|
qcom,rproc_rpd = <&q6v5_wcss>;
|
||||||
|
qcom,userpd-subsys-name = "q6v5_wcss_userpd2";
|
||||||
|
qcom,bdf-addr = <0x4DE00000 0x4D800000 0x0 0x0 0x0 0x0>;
|
||||||
|
qcom,caldb-addr = <0x4F500000 0x4EA00000 0x0 0x0 0x0 0x0>;
|
||||||
|
qcom,umac-irq-reset-addr = <0x20000884>;
|
||||||
|
qcom,caldb-size = <0x500000>;
|
||||||
|
#ifdef __IPQ_MEM_PROFILE_512_MB__
|
||||||
|
qcom,tgt-mem-mode = <1>;
|
||||||
|
#else
|
||||||
|
qcom,tgt-mem-mode = <0>;
|
||||||
|
#endif
|
||||||
|
qcom,board_id = <0x060>;
|
||||||
|
#if defined(__CNSS2__)
|
||||||
|
mem-region = <&q6_qcn6432_data_1>;
|
||||||
|
#else
|
||||||
|
memory-region = <&q6_qcn6432_data_1>;
|
||||||
|
#endif
|
||||||
|
qcom,wsi = <&wsi>;
|
||||||
|
qcom,wsi_index = <1>;
|
||||||
|
status = "ok";
|
||||||
|
interrupts = <GIC_SPI 33 IRQ_TYPE_EDGE_RISING>;
|
||||||
|
interrupt-names = "umac_reset";
|
||||||
|
};
|
||||||
|
|
||||||
|
&wifi2 {
|
||||||
|
qcom,multipd_arch;
|
||||||
|
qcom,rproc = <&q6_wcss_pd3>;
|
||||||
|
qcom,rproc_rpd = <&q6v5_wcss>;
|
||||||
|
qcom,userpd-subsys-name = "q6v5_wcss_userpd3";
|
||||||
|
qcom,bdf-addr = <0x4FA00000 0x4EF00000 0x4FA00000 0x0 0x0 0x0>;
|
||||||
|
qcom,caldb-addr = <0x51100000 0x50100000 0x51100000 0x0 0x0 0x0>;
|
||||||
|
qcom,umac-irq-reset-addr = <0x18000884>;
|
||||||
|
qcom,caldb-size = <0x500000>;
|
||||||
|
#ifdef __IPQ_MEM_PROFILE_512_MB__
|
||||||
|
qcom,tgt-mem-mode = <1>;
|
||||||
|
#else
|
||||||
|
qcom,tgt-mem-mode = <0>;
|
||||||
|
#endif
|
||||||
|
qcom,board_id = <0x0b0>;
|
||||||
|
#if defined(__CNSS2__)
|
||||||
|
mem-region = <&q6_qcn6432_data_2>;
|
||||||
|
#else
|
||||||
|
memory-region = <&q6_qcn6432_data_2>;
|
||||||
|
#endif
|
||||||
|
qcom,wsi = <&wsi>;
|
||||||
|
qcom,wsi_index = <2>;
|
||||||
|
status = "ok";
|
||||||
|
interrupts = <GIC_SPI 410 IRQ_TYPE_EDGE_RISING>;
|
||||||
|
interrupt-names = "umac_reset";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user