Skip to content

Commit

Permalink
qualcommax: ipq60xx: add support for JDCloud AX6600
Browse files Browse the repository at this point in the history
  • Loading branch information
breeze303 committed Oct 11, 2024
1 parent 33da59e commit 1c1eec1
Show file tree
Hide file tree
Showing 8 changed files with 387 additions and 8 deletions.
6 changes: 3 additions & 3 deletions feeds.conf.default
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
src-git packages https://git.openwrt.org/feed/packages.git
src-git luci https://git.openwrt.org/project/luci.git
src-git packages https://github.com/immortalwrt/packages.git
src-git luci https://github.com/immortalwrt/luci.git
src-git routing https://git.openwrt.org/feed/routing.git
src-git telephony https://git.openwrt.org/feed/telephony.git
src-git nss_packages https://github.com/qosmio/nss-packages.git;NSS-12.5-K6.x
src-git sqm_scripts_nss https://github.com/qosmio/sqm-scripts-nss.git
#src-git video https://github.com/openwrt/video.git
#src-git targets https://github.com/openwrt/targets.git
#src-git oldpackages http://git.openwrt.org/packages.git
#src-link custom /usr/src/openwrt/custom-feed
#src-link custom /usr/src/openwrt/custom-feed
2 changes: 2 additions & 0 deletions package/firmware/ipq-wifi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ ALLWIFIBOARDS:= \
edgecore_eap102 \
edimax_cax1800 \
jdcloud_ax1800-pro \
jdcloud_ax6600 \
linksys_mx4200 \
linksys_mx5300 \
linksys_mx8500 \
Expand Down Expand Up @@ -166,6 +167,7 @@ $(eval $(call generate-ipq-wifi-package,dynalink_dl-wrx36,Dynalink DL-WRX36))
$(eval $(call generate-ipq-wifi-package,edgecore_eap102,Edgecore EAP102))
$(eval $(call generate-ipq-wifi-package,edimax_cax1800,Edimax CAX1800))
$(eval $(call generate-ipq-wifi-package,jdcloud_ax1800-pro,JDCloud AX1800 Pro))
$(eval $(call generate-ipq-wifi-package,jdcloud_ax6600,JDCloud AX6600))
$(eval $(call generate-ipq-wifi-package,linksys_mx4200,Linksys MX4200))
$(eval $(call generate-ipq-wifi-package,linksys_mx5300,Linksys MX5300))
$(eval $(call generate-ipq-wifi-package,linksys_mx8500,Linksys MX8500))
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,357 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

/dts-v1/;

#include "ipq6018.dtsi"
#include "ipq6018-ess.dtsi"
#include "ipq6018-nss.dtsi"

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

/ {
model = "JDCloud AX6600";
compatible = "jdcloud,ax6600", "qcom,ipq6018";

aliases {
serial0 = &blsp1_uart3;
serial1 = &blsp1_uart6;
led-boot = &led_status_green;
led-failsafe = &led_status_red;
led-running = &led_status_blue;
led-upgrade = &led_status_red;

ethernet0 = "/soc/dp1";
ethernet1 = "/soc/dp2";
ethernet2 = "/soc/dp3";
ethernet3 = "/soc/dp4";
ethernet4 = "/soc/dp5";
};

chosen {
stdout-path = "serial0:115200n8";
};

keys {
compatible = "gpio-keys";
pinctrl-0 = <&button_pins>;
pinctrl-names = "default";

wps {
label = "wps";
linux,code = <KEY_WPS_BUTTON>;
gpios = <&tlmm 72 GPIO_ACTIVE_LOW>;
};

reset {
label = "reset";
linux,code = <KEY_RESTART>;
gpios = <&tlmm 56 GPIO_ACTIVE_LOW>;
};
};

leds {
compatible = "gpio-leds";

led_status_red: red {
label = "red:status";
gpios = <&tlmm 57 GPIO_ACTIVE_HIGH>;
};

led_status_blue: blue {
label = "blue:status";
gpios = <&tlmm 79 GPIO_ACTIVE_HIGH>;
};

led_status_green: green {
label = "green:status";
gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
};
};
};

&tlmm {
gpio-reserved-ranges = <20 1>;

button_pins: button_pins {
mux {
pins = "gpio56", "gpio71", "gpio72";
function = "gpio";
drive-strength = <8>;
bias-pull-up;
};
};

btuart_pins: btuart_pins {
mux {
pins = "gpio48", "gpio49";
function = "blsp5_uart";
drive-strength = <8>;
bias-pull-up;
};
};

mdio_pins: mdio-pins {
mdc {
pins = "gpio64";
function = "mdc";
drive-strength = <8>;
bias-pull-up;
};

mdio {
pins = "gpio65";
function = "mdio";
drive-strength = <8>;
bias-pull-up;
};
};

button_pins: button_pins {
joylink_button {
pins = "gpio72";
function = "gpio";
drive-strength = <8>;
bias-pull-down;
};

reset_button {
pins = "gpio56";
function = "gpio";
drive-strength = <8>;
bias-pull-down;
};

screen_button {
pins = "gpio71";
function = "gpio";
drive-strength = <8>;
bias-pull-down;
};
};

tmp1628_pins: tmp1628_pins {
dio {
pins = "gpio74";
function = "gpio";
drive-strength = <8>;
bias-pull-down;
};

clk {
pins = "gpio73";
function = "gpio";
drive-strength = <8>;
bias-pull-down;
};

stb1 {
pins = "gpio69";
function = "gpio";
drive-strength = <8>;
bias-pull-down;
};

stb2 {
pins = "gpio70";
function = "gpio";
drive-strength = <8>;
bias-pull-down;
};
};

usb_power: usb_power {
pins = "gpio23";
function = "gpio";
drive-strength = <8>;
output-high;
bias-pull-up;
};
};

&blsp1_uart3 {
pinctrl-0 = <&serial_3_pins>;
pinctrl-names = "default";
status = "okay";
};

&blsp1_uart6 {
pinctrl-0 = <&btuart_pins>;
pinctrl-names = "default";
status = "okay";
};

&pcie_phy {
status = "okay";
};

&pcie0 {
perst-gpio = <&tlmm 53 GPIO_ACTIVE_LOW>;
status = "okay";

bridge@0,0 {
reg = <0x00000000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
ranges;

wifi@1,0 {
status = "okay";
compatible = "pci17cb,1104";
qcom,ath11k-calibration-variant = "JDC-AX1800-Pro";
reg = <0x00010000 0 0 0 0>;
};
};
};

&qusb_phy_0 {
status = "okay";
};

&rpm {
status = "disabled";
};

&sdhc_1 {
bus-width = <8>;
mmc-ddr-1_8v;
mmc-hs200-1_8v;
non-removable;
status = "okay";
};

&ssphy_0 {
status = "okay";
};

&usb3 {
pinctrl-0 = <&usb_power>;
pinctrl-names = "default";
status = "ok";
};

&mdio {
status = "okay";

pinctrl-0 = <&mdio_pins>;
pinctrl-names = "default";
reset-gpios = <&tlmm 75 GPIO_ACTIVE_LOW>;

qca8075_0: ethernet-phy@24 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <24>;
};

qca8075_1: ethernet-phy@25 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <25>;
};

qca8075_2: ethernet-phy@26 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <26>;
};

qca8075_3: ethernet-phy@27 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <27>;
};

qca8081: ethernet-phy@12 {
compatible = "ethernet-phy-id004d.d101";
reg = <12>;
reset-gpios = <&tlmm 77 GPIO_ACTIVE_LOW>;
};
};

&switch {
status = "okay";

switch_cpu_bmp = <0x1>; /* cpu port bitmap */
switch_lan_bmp = <0x1e>; /* lan port bitmap */
switch_wan_bmp = <0x20>; /* wan port bitmap */
switch_inner_bmp = <0xc0>; /*inner port bitmap*/
switch_mac_mode = <0x0>; /* mac mode for uniphy 0*/
switch_mac_mode1 = <0xf>; /* mac mode for uniphy 1*/
switch_mac_mode2 = <0xff>; /* mac mode for uniphy 2*/

qcom,port_phyinfo {
port@1 {
port_id = <1>;
phy_address = <24>;
};
port@2 {
port_id = <2>;
phy_address = <25>;
};
port@3 {
port_id = <3>;
phy_address = <26>;
};
port@4 {
port_id = <4>;
phy_address = <27>;
};
port@5 {
port_id = <5>;
phy_address = <12>;
port_mac_sel = "QGMAC_PORT";
};
};
};

&edma {
status = "okay";
};

&dp1 {
status = "okay";
phy-handle = <&qca8075_0>;
label = "lan1";
};

&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
label = "lan2";
};

&dp3 {
status = "okay";
phy-handle = <&qca8075_2>;
label = "lan3";
};

&dp4 {
status = "okay";
phy-handle = <&qca8075_3>;
label = "lan4";
};

&dp5 {
status = "okay";
phy-handle = <&qca8081>;
label = "wan";
};

&wifi {
status = "okay";
qcom,ath11k-calibration-variant = "JDC-AX1800-Pro";
qcom,ath11k-fw-memory-mode = <1>;
};

&CPU0 {
/delete-property/ cpu-supply;
};

&CPU1 {
/delete-property/ cpu-supply;
};

&CPU2 {
/delete-property/ cpu-supply;
};

&CPU3 {
/delete-property/ cpu-supply;
};
Loading

0 comments on commit 1c1eec1

Please sign in to comment.