Fix support for the Comtrend CT-536p, CT-5361 and CT-5621T routers support.
Currently the firmware is broken for these routers, because there is a missing bar in the code at the DTS file. The power led also has a typo. This causes the router boots without ethernet connectivity. Fixed and and also renamed the DTS file to keep coherence with names. Signed-off-by: Daniel Gonzalez <[email protected]> diff --git a/target/linux/brcm63xx/base-files/etc/diag.sh b/target/linux/brcm63xx/base-files/etc/diag.sh index b864964..8b433d8 100644 --- a/target/linux/brcm63xx/base-files/etc/diag.sh +++ b/target/linux/brcm63xx/base-files/etc/diag.sh @@ -58,7 +58,7 @@ set_state() { cpva642) status_led="CPVA642:green:power:" ;; - ct536_ct5621) + ct-536p_5621t) status_led="CT536_CT5621:green:power" ;; cvg834g) diff --git a/target/linux/brcm63xx/dts/ct-536plus.dts b/target/linux/brcm63xx/dts/ct-536plus.dts new file mode 100644 index 0000000..e0bb5e3 --- /dev/null +++ b/target/linux/brcm63xx/dts/ct-536plus.dts @@ -0,0 +1,38 @@ +/dts-v1/; + +#include "bcm6348.dtsi" + +#include <dt-bindings/input/input.h> + +/ { + model = "Comtrend CT-536+/CT-5621T"; + compatible = "comtrend,ct-536+", "brcm,bcm6348"; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + debounce-interval = <60>; + + reset { + label = "reset"; + gpios = <&gpio1 1 1>; + linux,code = <KEY_RESTART>; + }; + }; + + gpio-leds { + compatible = "gpio-leds"; + + power_green { + label = "CT536_CT5621:green:power"; + gpios = <&gpio0 0 1>; + default-state = "on"; + }; + adsl_fail_green { + label = "CT536_CT5621:green:adsl-fail"; + gpios = <&gpio0 2 1>; + }; + }; +}; diff --git a/target/linux/brcm63xx/dts/ct536plus.dts b/target/linux/brcm63xx/dts/ct536plus.dts deleted file mode 100644 index c05068a..0000000 --- a/target/linux/brcm63xx/dts/ct536plus.dts +++ /dev/null @@ -1,38 +0,0 @@ -/dts-v1/; - -#include "bcm6348.dtsi" - -#include <dt-bindings/input/input.h> - -/ { - model = "Comtrend CT-536+/CT-5621T"; - compatible = "comtrend,ct536+", "brcm,bcm6348"; - - gpio-keys-polled { - compatible = "gpio-keys-polled"; - #address-cells = <1>; - #size-cells = <0>; - poll-interval = <20>; - debounce-interval = <60>; - - reset { - label = "reset"; - gpios = <&gpio1 1 1>; - linux,code = <KEY_RESTART>; - }; - }; - - gpio-leds { - compatible = "gpio-leds"; - - power_green { - label = "CT536_CT5621:green:power"; - gpios = <&gpio0 0 1>; - default-state = "on"; - }; - adsl_fail_green { - label = "CT536_CT5621:green:adsl-fail"; - gpios = <&gpio0 2 1>; - }; - }; -}; diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile index e00b6fb..e5f2670 100644 --- a/target/linux/brcm63xx/image/Makefile +++ b/target/linux/brcm63xx/image/Makefile @@ -527,7 +527,7 @@ $(eval $(call bcm63xxCfe,AR5381u,AR-5381u,ar-5381u,96328A-1241N,6328,--pad 8)) # Comtrend AR-5387un $(eval $(call bcm63xxCfe,AR5387un,AR-5387un,ar-5387un,96328A-1441N1,6328,--pad 8)) # Comtrend 536, 5621 -$(eval $(call bcm63xxCfe,CT536_CT5621,CT536_CT5621,ct536plus,96348GW-11,6348)) +$(eval $(call bcm63xxCfe,CT536_CT5621,CT536_CT5621,ct-536plus,96348GW-11,6348)) # Comtrend CT-5365 $(eval $(call bcm63xxCfe,CT5365,CT-5365,ct-5365,96348A-122,6348)) # Comtrend CT-6373 _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
