From patchwork Thu Feb 11 17:13:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Daniel_Gonz=C3=A1lez_Cabanelas?= X-Patchwork-Id: 581977 X-Patchwork-Delegate: jogo@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id DAB7C140BA5 for ; Fri, 12 Feb 2016 04:13:35 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=G+pcEJ6Y; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 7BB7B28059E; Thu, 11 Feb 2016 18:13:23 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 97F17283E46 for ; Thu, 11 Feb 2016 18:13:18 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-wm0-f53.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Thu, 11 Feb 2016 18:13:13 +0100 (CET) Received: by mail-wm0-f53.google.com with SMTP id c200so83243672wme.0 for ; Thu, 11 Feb 2016 09:13:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-transfer-encoding:content-type; bh=9tBBXcY9OvUwWaWsq7cHwB7pE4nPGZCDEJSCYqB5jCs=; b=G+pcEJ6Y4xOSxgPbTjX2tTNUgdaXg8eVz+h7Tx/DZv4y7ebOH9iYMN1hxkKTiuYMoU bq1gI0sL1R+frTtCQ2zYCoDoqLtM2da16cXoBsAfRO16ynyhCC+HRB30bp4yu3skvs8K 4mFFO1Wo35cqIl8HfwZJaDaPRc+Yr1XXOSeP216WP45LPVHQJGLtRlMY/soU6WX3VuFk fK0pYsziW551bwlpBBX4kkhFjbFmdJc0FwCGeGguEaHtPBDSsymm2KW54MmTGLvvz0AC Euc1uEWc18JzFWgqXJ4WQqNn2B61siODBN/btGvhHCq4UE9D/uIl4uVGi2Gs5PkRu/R7 p0IA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version:content-transfer-encoding:content-type; bh=9tBBXcY9OvUwWaWsq7cHwB7pE4nPGZCDEJSCYqB5jCs=; b=MCd6nzLm/wTyJmmQiDYnGups0baN+PJ334DOulafPRWoQReUiXDVZis8oBK7RyObSv hkbxKHLb+ZTnkhMqA/YM1TkiMynCEKIoJlo0EzyT8/GFl5figdN8Z/VQzuRjfgSfAU3D gFQdK7VAXfs7m1u12fc278xv7FhXqq2pZOjjj4pkjUcQ6Ska8wn3eJZYLVIyr7Z8n7G2 OPomW90ZLgZKbBvOckPmNA9A82NgXMvcFM8KR8mrRiq7Kw38rEl8KRRBfrv5HL5Uvluc rJxlOwy7hRCVJc3pL/A7KTYD7RPsqzKYMgN70QdBCMnS4GGjcIYmoqzLXrH/zbxcgDLO JFCg== X-Gm-Message-State: AG10YOQ6yOm8dRLxqyX73IAlcv4Rv4R4RQyfK3H9SZ6CVL0aCTachbkA/9G8LYaxOppnFQ== X-Received: by 10.28.223.69 with SMTP id w66mr19918652wmg.89.1455210791230; Thu, 11 Feb 2016 09:13:11 -0800 (PST) Received: from tool.localnet ([159.147.246.127]) by smtp.googlemail.com with ESMTPSA id w136sm27777864wmw.0.2016.02.11.09.13.10 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 11 Feb 2016 09:13:10 -0800 (PST) From: dani To: openwrt-devel@lists.openwrt.org, jogo@openwrt.org Date: Thu, 11 Feb 2016 18:13:08 +0100 Message-ID: <6868846.jcrgi8ozWn@tool> User-Agent: KMail/4.14.10 (Linux/4.2.5-1-ARCH; KDE/4.14.14; x86_64; ; ) MIME-Version: 1.0 Subject: [OpenWrt-Devel] [PATCH] brcm63xx: fix CT-536p/CT-5621T support X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" 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 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 + +/ { + 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 = ; + }; + }; + + 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 - -/ { - 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 = ; - }; - }; - - 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