Skip to content

Commit

Permalink
Revert "qualcommax: ipq807x: mx4200v2: fix LED controller"
Browse files Browse the repository at this point in the history
This reverts commit 7ce4ed4.

Turns out that this requires more work, so revert to prevent making the
LED uncontrollable.

Signed-off-by: Robert Marko <[email protected]>
  • Loading branch information
robimarko committed Jan 5, 2025
1 parent 7ce4ed4 commit 39b61ee
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 91 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,6 @@
compatible = "linksys,mx4200v1", "qcom,ipq8074";
};

&blsp1_i2c2 {

led-controller@62 {
compatible = "nxp,pca9633";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x62>;
nxp,hw-blink;

led_system_red: led@0 {
reg = <0>;
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_STATUS;
};

led_system_green: led@1 {
reg = <1>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
};

led_system_blue: led@2 {
reg = <2>;
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_STATUS;
};
};
};

&wifi {
status = "okay";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,6 @@
compatible = "linksys,mx4200v2", "qcom,ipq8074";
};

&blsp1_i2c2 {

led-controller@58 {
compatible = "st,led1202";
reg = <0x58>;
#address-cells = <1>;
#size-cells = <0>;

led_system_green: led@0 {
reg = <0>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
};
led_system_red: led@1 {
reg = <1>;
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_STATUS;
};
led_system_blue: led@2 {
reg = <2>;
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_STATUS;
};
};
};

&wifi {
status = "okay";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,35 +242,6 @@
};
};

&blsp1_i2c2 {

led-controller@62 {
compatible = "nxp,pca9633";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x62>;
nxp,hw-blink;

led_system_red: led@0 {
reg = <0>;
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_STATUS;
};

led_system_green: led@1 {
reg = <1>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
};

led_system_blue: led@2 {
reg = <2>;
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_STATUS;
};
};
};

&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,32 @@

&blsp1_i2c2 {
status = "okay";

led-controller@62 {
compatible = "nxp,pca9633";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x62>;
nxp,hw-blink;

led_system_red: led@0 {
reg = <0>;
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_STATUS;
};

led_system_green: led@1 {
reg = <1>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
};

led_system_blue: led@2 {
reg = <2>;
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_STATUS;
};
};
};

&mdio {
Expand Down
12 changes: 5 additions & 7 deletions target/linux/qualcommax/image/ipq807x.mk
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ define Device/linksys_mx
SOC := ipq8072
IMAGES += factory.bin
IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=$$$$(DEVICE_MODEL)
DEVICE_PACKAGES := kmod-leds-pca963x
endef

define Device/linksys_mx4x00
Expand All @@ -179,15 +180,13 @@ define Device/linksys_mx4200v1
$(call Device/linksys_mx4x00)
DEVICE_MODEL := MX4200
DEVICE_VARIANT := v1
DEVICE_PACKAGES += kmod-bluetooth kmod-leds-pca963x
DEVICE_PACKAGES += kmod-bluetooth
endef
TARGET_DEVICES += linksys_mx4200v1

define Device/linksys_mx4200v2
$(call Device/linksys_mx4x00)
DEVICE_MODEL := MX4200
$(call Device/linksys_mx4200v1)
DEVICE_VARIANT := v2
DEVICE_PACKAGES += kmod-bluetooth kmod-leds-st1202
endef
TARGET_DEVICES += linksys_mx4200v2

Expand All @@ -199,23 +198,22 @@ define Device/linksys_mx4300
KERNEL_SIZE := 8192k
IMAGE_SIZE := 171264k
NAND_SIZE := 1024m
DEVICE_PACKAGES += kmod-leds-pca963x
endef
TARGET_DEVICES += linksys_mx4300

define Device/linksys_mx5300
$(call Device/linksys_mx)
DEVICE_MODEL := MX5300
DEVICE_PACKAGES += kmod-rtc-ds1307 ipq-wifi-linksys_mx5300 \
kmod-ath10k-ct ath10k-firmware-qca9984-ct kmod-leds-pca963x
kmod-ath10k-ct ath10k-firmware-qca9984-ct
endef
TARGET_DEVICES += linksys_mx5300

define Device/linksys_mx8500
$(call Device/linksys_mx)
DEVICE_MODEL := MX8500
DEVICE_PACKAGES += ipq-wifi-linksys_mx8500 kmod-ath11k-pci \
ath11k-firmware-qcn9074 kmod-bluetooth kmod-leds-pca963x
ath11k-firmware-qcn9074 kmod-bluetooth
endef
TARGET_DEVICES += linksys_mx8500

Expand Down

0 comments on commit 39b61ee

Please sign in to comment.