From patchwork Thu May 19 18:21:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 624192 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (caladan.dune.hu [78.24.191.180]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3r9fhm0Xdlz9sdg for ; Fri, 20 May 2016 04:28:40 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=open-mesh-com.20150623.gappssmtp.com header.i=@open-mesh-com.20150623.gappssmtp.com header.b=ab1yNAV+; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id E4606B9209B; Thu, 19 May 2016 20:23:01 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP; Thu, 19 May 2016 20:23:01 +0200 (CEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id E881AB91FEB for ; Thu, 19 May 2016 20:22:06 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .open-mesh. - helo: .mail-wm0-f44.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7 Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Thu, 19 May 2016 20:22:06 +0200 (CEST) Received: by mail-wm0-f44.google.com with SMTP id a17so138685803wme.0 for ; Thu, 19 May 2016 11:22:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=open-mesh-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=uOUlmsOjBHdzd0O2/FPNb8QeZfIP1wuHLnvmedAiQgI=; b=ab1yNAV+ISURqrL116h7KUe/cGcQu/OXtLwKZ6jod3v9Qq6bLgiSmRxYopmIB8qUNR etylKUY1E9byqmclD+KElmCcYGVEkiJAqx5aB8bz5x6VD79iHUbVNVZwMsFOUWGZXYVq ZyvU4PXrnO6UtuQLzA8yn/D8E65wVXoswZHzBo9fs2tzoLEbKIjN3Piu4lVamWRVsS69 D+wwayRhgw41AJ6Fr/QozYxIKFXhX6+K51B6ukqst/ARizsZ51X5JxE4uKOWp2hC6anj 2GRt6RDZ7d+H+/Cxfnhl2uSoAsFF3FJnaY1zwmE1sxxWz6N/xfT9i0Y33yvzcvM9xJTA SMXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=uOUlmsOjBHdzd0O2/FPNb8QeZfIP1wuHLnvmedAiQgI=; b=IRzcy/Te8WPGm4Ka3K2QJHoqEgJzAPI9LpvvRHIIMWIqEkVd+DxrmaDPKetvSe8eFK cq/XJxrcyAqPKL3juHuEFVVeVjIupJ5AOInCl2ISPvrDBLux2cvBTxsV9Iu1ccb3Me9V N56sv2uuqCTA43eu0kLg62P+EoYjKGTMZXZMZyZu0mviP3qoA78sNMs14oASv7IqR0D0 O31dEwZnYU9YzTerl2bX38b38+QaKg/U6ZLWnWR0tbcw7EH/eWFvRhL7GEHROdpXDD38 6IF8Z2W2jY/PDJbjTuj24KCybaNtXgjKg+1XiR9UkdDyOyDN53nDDNX3QcHpJZQCwh+T gt3Q== X-Gm-Message-State: AOPr4FUIYhdb8X9xe9OJJcLU3yBXlRUWc0LpKwAR1fQIpkIUTdQaDoNPwvCDWO0hVgfJGvD+ X-Received: by 10.28.195.131 with SMTP id t125mr14463019wmf.25.1463682126025; Thu, 19 May 2016 11:22:06 -0700 (PDT) Received: from sven-desktop.home.narfation.org (p579E6DC9.dip0.t-ipconnect.de. [87.158.109.201]) by smtp.gmail.com with ESMTPSA id r8sm496407wme.14.2016.05.19.11.22.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 May 2016 11:22:05 -0700 (PDT) From: Sven Eckelmann To: openwrt-devel@lists.openwrt.org Date: Thu, 19 May 2016 20:21:04 +0200 Message-Id: <1463682077-19339-21-git-send-email-sven.eckelmann@open-mesh.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1463682077-19339-1-git-send-email-sven.eckelmann@open-mesh.com> References: <1463682077-19339-1-git-send-email-sven.eckelmann@open-mesh.com> Subject: [OpenWrt-Devel] [PATCH CC 21/34] ar71xx: add user-space support for the OpenMesh OM5P-AC X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sven Eckelmann MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Signed-off-by: Sven Eckelmann Backport of r49142 --- target/linux/ar71xx/base-files/etc/diag.sh | 3 +++ target/linux/ar71xx/base-files/etc/uci-defaults/01_leds | 5 +++++ target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++ 3 files changed, 11 insertions(+) diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index b2ee163..7528620 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -178,6 +178,9 @@ get_status_led() { om5p-an) status_led="om5p:blue:power" ;; + om5p-ac) + status_led="om5pac:blue:power" + ;; onion-omega) status_led="onion:amber:system" ;; diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds index c451124..9a768cd 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -304,6 +304,11 @@ om5p-an) ucidef_set_led_netdev "port2" "port2" "om5p:blue:lan" "eth1" ;; +om5p-ac) + ucidef_set_led_netdev "port1" "port1" "om5pac:blue:lan" "eth0" + ucidef_set_led_netdev "port2" "port2" "om5pac:blue:wan" "eth1" + ;; + qihoo-c301) ucidef_set_led_wlan "wlan2g" "WLAN2G" "qihoo:red:status" "phy1tpt" ;; diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 7af29db..9354057 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -572,6 +572,9 @@ ar71xx_board_detect() { *"OM5P AN") name="om5p-an" ;; + *"OM5P AC") + name="om5p-ac" + ;; *"Onion Omega") name="onion-omega" ;;