From patchwork Tue Apr 5 15:17:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 606509 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 3qfXbZ080Rz9t5n for ; Wed, 6 Apr 2016 01:20:09 +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=NPA6PnAD; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id E1881B916E3; Tue, 5 Apr 2016 17:18:27 +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=2.4 required=5.0 tests=RDNS_NONE,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP; Tue, 5 Apr 2016 17:18:27 +0200 (CEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 6F492B916C9 for ; Tue, 5 Apr 2016 17:18:24 +0200 (CEST) X-policyd-weight: using cached result; rate:hard: -7 Received: from mail-wm0-f44.google.com (unknown [74.125.82.44]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Tue, 5 Apr 2016 17:18:24 +0200 (CEST) Received: by mail-wm0-f44.google.com with SMTP id u206so8865051wme.1 for ; Tue, 05 Apr 2016 08:18:24 -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=+Erjx1ydAnD9ljhe8g0/yvq3G9w1CuE7WtQLe5K7Aiw=; b=NPA6PnADecU2cvQ2A3wUAjIsVN1LhJ4TpdpnZlIsgzxPdNi+vN7DhEj+tvsTdYuxFz qKwP1Lr7STMEJfaGvbmvMLvc0X0aK44jbK4O72+Uv86pjdtPt8wgNHfvltdmee/pTR9W SSg4QyFyyzPddA0sIOBvDyxwRXQUE0qvJWW/egxVkQEKvcPz6mby7SKjF+nM3NBsQZzB +kMMfoA6yr9tBHGALnPa5f+S8MndB3fGDXJUqJYodWqu8g9T1nAPSH6C/x5HyMEPApeY Cg1mwjq9I43oHf5VZnpkrgI4EkrL+H3G7iJA/pSGFXax/I16erKUyayyrb4AJxI2JvmX 9Fbw== 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=+Erjx1ydAnD9ljhe8g0/yvq3G9w1CuE7WtQLe5K7Aiw=; b=Bo85/z+XWz5l6yJoace/8yVyVw9vEu7E8xMM/iFViioI4rqyT2XXtQq2NdFxS1TA4G hUwazflYjlgKZvj9HWhNDpcOY0eYb7KwWVg8mv7yKqyQYkGhE0uS0Xd/S8ZFmFOEA/Di eSer7CZQRgoyisFx6DMBcpD2uvfDGXdUkOZLEUkRJsWPWZXaXF72ISuxQ5G9OqL+XoE0 7ziSl70DnXM0YSEPar6wAOqHAjrMR7hTmKQpNkiP1RHk6sUUzvbLg+X6qcCOK4SrfHFY 0u4XKNenLNC+Fg+OFaDQMTDZO7jdH3sTjWI8DeSvV78ihcd1AU5aWmGmLj/DcSYbvbYV +IJg== X-Gm-Message-State: AD7BkJKtozQpSgg+cTjcvxZPPu+PpXcaa7zM5chI8AQnYo9E4K0aez5K+6cdBpl68VhWMxIy X-Received: by 10.28.102.6 with SMTP id a6mr11276910wmc.75.1459869503852; Tue, 05 Apr 2016 08:18:23 -0700 (PDT) Received: from sven-desktop.home.narfation.org (x5d84b455.dyn.telefonica.de. [93.132.180.85]) by smtp.gmail.com with ESMTPSA id by7sm35113587wjc.18.2016.04.05.08.18.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Apr 2016 08:18:23 -0700 (PDT) From: Sven Eckelmann X-Google-Original-From: Sven Eckelmann To: openwrt-devel@lists.openwrt.org Date: Tue, 5 Apr 2016 17:17:48 +0200 Message-Id: <1459869481-29376-3-git-send-email-sven@open-mesh.com> X-Mailer: git-send-email 2.8.0.rc3 In-Reply-To: <1459869481-29376-1-git-send-email-sven@open-mesh.com> References: <1459869481-29376-1-git-send-email-sven@open-mesh.com> Subject: [OpenWrt-Devel] [PATCH 03/16] 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" From: Sven Eckelmann Signed-off-by: Sven Eckelmann --- target/linux/ar71xx/base-files/etc/board.d/01_leds | 5 +++++ target/linux/ar71xx/base-files/etc/diag.sh | 3 +++ target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++ 3 files changed, 11 insertions(+) diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds index 708ebb9..ab19a61 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -394,6 +394,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" + ;; + omy-x1) ucidef_set_led_default "power" "POWER" "omy:green:power" "1" ucidef_set_led_default "wan" "WAN" "omy:green:wan" "eth0" diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index a2251d1..da976bd 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -214,6 +214,9 @@ get_status_led() { om5p-an) status_led="om5p:blue:power" ;; + om5p-ac) + status_led="om5pac:blue:power" + ;; omy-x1) status_led="omy:green:power" ;; diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 6b8550a..ded9e7e 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -646,6 +646,9 @@ ar71xx_board_detect() { *"OM5P AN") name="om5p-an" ;; + *"OM5P AC") + name="om5p-ac" + ;; *"OMY-X1") name="omy-x1" ;;