Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions package/boot/uboot-envtools/files/qualcommax_ipq60xx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ yuncore,fap650)
[ -n "$idx" ] && \
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x10000"
;;
jdcloud,re-ss-01)
mmcpart="$(find_mmc_part 0:APPSBLENV)"
[ -n "$mmcpart" ] && \
ubootenv_add_uci_config "$mmcpart" "0x0" "0x40000" "0x20000" "2" ;;
esac

config_load ubootenv
Expand Down
2 changes: 2 additions & 0 deletions package/firmware/ipq-wifi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ ALLWIFIBOARDS:= \
dynalink_dl-wrx36 \
edgecore_eap102 \
edimax_cax1800 \
jdcloud_re-ss-01 \
linksys_homewrk \
linksys_mx4200 \
linksys_mx5300 \
Expand Down Expand Up @@ -171,6 +172,7 @@ $(eval $(call generate-ipq-wifi-package,compex_wpq873,Compex WPQ-873))
$(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_re-ss-01,JDCloud RE-SS-01))
$(eval $(call generate-ipq-wifi-package,linksys_homewrk,Linksys HomeWRK))
$(eval $(call generate-ipq-wifi-package,linksys_mx4200,Linksys MX4200))
$(eval $(call generate-ipq-wifi-package,linksys_mx5300,Linksys MX5300))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Signed-off-by: Sathishkumar Muruganandam <murugana@codeaurora.org>
if (cmd == DISABLE_KEY) {
/* TODO: Check if FW expects value other than NONE for del */
/* arg.key_cipher = WMI_CIPHER_NONE; */
@@ -4355,15 +4389,40 @@ static int ath11k_clear_peer_keys(struct
@@ -4307,6 +4307,31 @@
return first_errno;
}

Expand Down Expand Up @@ -167,9 +167,19 @@ Signed-off-by: Sathishkumar Muruganandam <murugana@codeaurora.org>
+ return 0;
+}
+
static int ath11k_mac_op_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
struct ieee80211_vif *vif, struct ieee80211_sta *sta,
struct ieee80211_key_conf *key)
static int ath11k_set_group_keys(struct ath11k_vif *arvif)
{
struct ath11k *ar = arvif->ar;
@@ -4316,7 +4341,7 @@
struct ath11k_peer *peer;

spin_lock_bh(&ab->base_lock);
- peer = ath11k_peer_find(ab, arvif->vdev_id, addr);
+ peer = ath11k_peer_find(ar, arvif->vdev_id, addr);
spin_unlock_bh(&ab->base_lock);

if (!peer)
@@ -4347,9 +4372,9 @@
{
struct ath11k *ar = hw->priv;
struct ath11k_base *ab = ar->ab;
Expand All @@ -178,9 +188,9 @@ Signed-off-by: Sathishkumar Muruganandam <murugana@codeaurora.org>
struct ath11k_peer *peer;
- struct ath11k_sta *arsta;
+ struct ath11k_sta *arsta = NULL;
bool is_ap_with_no_sta;
const u8 *peer_addr;
int ret = 0;
u32 flags = 0;
@@ -4381,17 +4440,38 @@ static int ath11k_mac_op_set_key(struct
if (key->keyidx > WMI_MAX_KEY_INDEX)
return -ENOSPC;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,242 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

/dts-v1/;

#include "ipq6018-512m.dtsi"
#include "ipq6018-ess.dtsi"
#include "ipq6018-cp-cpu.dtsi"

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

/ {
model = "JDCloud RE-SS-01";
compatible = "jdcloud,re-ss-01", "qcom,ipq6018";

aliases {
serial0 = &blsp1_uart3;
led-boot = &led_status_blue;
led-failsafe = &led_status_red;
led-running = &led_status_green;
led-upgrade = &led_status_red;
ethernet1 = &dp2;
ethernet2 = &dp3;
ethernet3 = &dp4;
ethernet4 = &dp5;
};

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

keys {
compatible = "gpio-keys";
wps {
label = "wps";
linux,code = <KEY_WPS_BUTTON>;
gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
};

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

leds {
compatible = "gpio-leds";
led_status_red: status-red {
label = "red:status";
gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>;
};

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

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

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

&mdio {
status = "okay";

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

ethernet-phy-package@0 {
compatible = "qcom,qca8075-package";
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;

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

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

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

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

&switch {
status = "okay";

switch_lan_bmp = <(ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>;
switch_wan_bmp = <ESS_PORT5>;
switch_mac_mode = <MAC_MODE_PSGMII>;

qcom,port_phyinfo {
port@2 {
port_id = <2>;
phy_address = <1>;
};

port@3 {
port_id = <3>;
phy_address = <2>;
};

port@4 {
port_id = <4>;
phy_address = <3>;
};

port@5 {
port_id = <5>;
phy_address = <4>;
};
};
};

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

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

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

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

&edma {
status = "okay";
};

&tlmm {
gpio-reserved-ranges = <20 1>;
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;
};
};
};

&wifi {
status = "okay";
qcom,ath11k-fw-memory-mode = <1>;
qcom,ath11k-calibration-variant = "JDCloud-RE-SS-01";
};

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

&rpm {
status = "disabled";
};

&crypto {
status = "okay";
};

&cryptobam {
status = "okay";
};

&pcie_phy {
status = "okay";
};

&prng {
status = "okay";
};

&qpic_bam {
status = "okay";
};

&qusb_phy_0 {
status = "okay";
};

&qusb_phy_1 {
status = "okay";
};

&ssphy_0 {
status = "okay";
};

&usb2 {
status = "okay";
};

&usb3 {
status = "okay";
};
14 changes: 14 additions & 0 deletions target/linux/qualcommax/image/ipq60xx.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,20 @@ define Device/cambiumnetworks_xe3-4
endef
TARGET_DEVICES += cambiumnetworks_xe3-4

define Device/jdcloud_re-ss-01
$(call Device/FitImage)
$(call Device/EmmcImage)
DEVICE_VENDOR := JDCloud
DEVICE_MODEL := RE-SS-01
BLOCKSIZE := 128k
KERNEL_SIZE := 6144k
SOC := ipq6000
DEVICE_DTS_CONFIG := config@cp03-c2
DEVICE_PACKAGES := ipq-wifi-jdcloud_re-ss-01
IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-rootfs | append-metadata
endef
TARGET_DEVICES += jdcloud_re-ss-01

define Device/netgear_wax214
$(call Device/FitImage)
$(call Device/UbiFit)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ ipq60xx_setup_interfaces()
cambiumnetworks,xe3-4)
ucidef_set_interface_lan "lan1 lan2" "dhcp"
;;
jdcloud,re-ss-01)
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan"
;;
netgear,wax214)
ucidef_set_interfaces_lan_wan "lan"
;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ case "$FIRMWARE" in
cambiumnetworks,xe3-4)
caldata_extract "0:ART" 0x1000 0x10000
;;
jdcloud,re-ss-01)
caldata_extract_mmc "0:ART" 0x1000 0x10000
;;
netgear,wax214)
caldata_extract "0:art" 0x1000 0x10000
;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ platform_do_upgrade() {
fw_setenv bootcount 0
nand_do_upgrade "$1"
;;
jdcloud,re-ss-01)
CI_KERNPART="0:HLOS"
CI_ROOTPART="rootfs"
emmc_do_upgrade "$1"
;;
netgear,wax214)
nand_do_upgrade "$1"
;;
Expand Down