From patchwork Wed Aug 5 18:30:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Piotr Dymacz X-Patchwork-Id: 504176 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 467FE140CEB for ; Thu, 6 Aug 2015 04:41:38 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=H7sF+6Ed; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 487C5280163; Wed, 5 Aug 2015 20:33:50 +0200 (CEST) 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 891A32845FE for ; Wed, 5 Aug 2015 20:30:55 +0200 (CEST) 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-lb0-f173.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com [209.85.217.173]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Wed, 5 Aug 2015 20:30:48 +0200 (CEST) Received: by lbbpu9 with SMTP id pu9so2089878lbb.3 for ; Wed, 05 Aug 2015 11:31:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=jaiZFmerCyG5/ClBaqyQIWc8yVXJjNHhETKjZYVF+P8=; b=H7sF+6EdncZv4KfyVgVGzE2D6ySnXoOLmEh/A2+Cs2vpDA1T3WbvFyOy40ScOt8Voc iasahZ4VKAyDR+J6mgwAmkYqplk061VV7GP7d5/jE6GNh9Dm1ZVQEXsevu6X7AGxpEi9 3jsPkJMsyM6Vrxak6oWg2sC9djj3lx2fS4Tm6lhwb6F3/YkZDCoyKzWQJL+4ryvbapof f6sg9WLNMCSeL+s3A4nEkRjrPMQaeVzss8RujsNUszH+jZO0rmABQ6Dfmu3ywfiI3l+m C9jBClTesIMrLGkhOG2h+gTgq5BZoYszaTd4PEM2daVWwJ1B4aUi3KZkwY52DMKL13HY yXgA== X-Received: by 10.112.12.233 with SMTP id b9mr10394124lbc.91.1438799467355; Wed, 05 Aug 2015 11:31:07 -0700 (PDT) Received: from ubuntu1404vm.lan (178235196055.warszawa.vectranet.pl. [178.235.196.55]) by smtp.gmail.com with ESMTPSA id ao8sm726686lac.38.2015.08.05.11.31.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Aug 2015 11:31:06 -0700 (PDT) From: Piotr Dymacz To: openwrt-devel@lists.openwrt.org Date: Wed, 5 Aug 2015 20:30:11 +0200 Message-Id: <1438799426-24409-11-git-send-email-pepe2k@gmail.com> X-Mailer: git-send-email 2.4.6 In-Reply-To: <1438799426-24409-1-git-send-email-pepe2k@gmail.com> References: <1438799426-24409-1-git-send-email-pepe2k@gmail.com> Subject: [OpenWrt-Devel] [PATCH v2 10/25] ramips: fix Sitecom WL-341v3 board and image names 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: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" The following patch changes: * board name from "wl341v3" to "wl-341v3" * dts filename * LED names in dts file for Sitecom WL-341v3 device. Signed-off-by: Piotr Dymacz --- target/linux/ramips/base-files/lib/ramips.sh | 2 +- .../ramips/base-files/lib/upgrade/platform.sh | 2 +- target/linux/ramips/dts/WL-341V3.dts | 123 +++++++++++++++++++++ target/linux/ramips/dts/WL341V3.dts | 123 --------------------- target/linux/ramips/image/Makefile | 10 +- 5 files changed, 130 insertions(+), 130 deletions(-) create mode 100644 target/linux/ramips/dts/WL-341V3.dts delete mode 100644 target/linux/ramips/dts/WL341V3.dts diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index d25fa3a..aff380b 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -335,7 +335,7 @@ ramips_board_detect() { name="whr-g300n" ;; *"Sitecom WL-341 v3") - name="wl341v3" + name="wl-341v3" ;; *"Sitecom WL-351 v1 002") name="wl-351" diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index f46155f..f78bc22 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -109,7 +109,7 @@ platform_check_image() { wl-330n | \ wl-330n3g | \ wl-351 | \ - wl341v3 | \ + wl-341v3 | \ wli-tx4-ag300n | \ wzr-agl300nh | \ wmr300 |\ diff --git a/target/linux/ramips/dts/WL-341V3.dts b/target/linux/ramips/dts/WL-341V3.dts new file mode 100644 index 0000000..ce5e820 --- /dev/null +++ b/target/linux/ramips/dts/WL-341V3.dts @@ -0,0 +1,123 @@ +/dts-v1/; + +/include/ "rt3050.dtsi" + +/ { + compatible = "WL-341V3", "ralink,rt3052-soc"; + model = "Sitecom WL-341 v3"; + + cfi@1f000000 { + compatible = "cfi-flash"; + reg = <0x1f000000 0x800000>; + bank-width = <2>; + device-width = <2>; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x20000>; + read-only; + }; + + boardnvram: partition@20000 { + label = "board-nvram"; + reg = <0x20000 0x10000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + partition@40000 { + label = "firmware"; + reg = <0x40000 0x3b0000>; + }; + }; + + pinctrl { + state_default: pinctrl0 { + gpio { + ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; + ralink,function = "gpio"; + }; + }; + }; + + ethernet@10100000 { + mtd-mac-address = <&boardnvram 0xffa0>; + }; + + esw@10110000 { + ralink,portmap = <0x3e>; + }; + + wmac@10180000 { + ralink,mtd-eeprom = <&boardnvram 0xfd70>; + }; + + gpio-leds { + compatible = "gpio-leds"; + + first { + label = "wl-341v3:amber:first"; + gpios = <&gpio0 9 1>; + }; + + first2 { + label = "wl-341v3:blue:first"; + gpios = <&gpio0 13 1>; + }; + + third { + label = "wl-341v3:amber:third"; + gpios = <&gpio0 11 1>; + }; + + third2 { + label = "wl-341v3:blue:third"; + gpios = <&gpio0 14 1>; + }; + + fourth { + label = "wl-341v3:blue:fourth"; + gpios = <&gpio0 10 1>; + }; + + fifth { + label = "wl-341v3:amber:fifth"; + gpios = <&gpio0 12 1>; + }; + + fifth2 { + label = "wl-341v3:blue:fifth"; + gpios = <&gpio0 8 1>; + }; + }; + + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <20>; + + reset { + label = "reset"; + gpios = <&gpio0 7 1>; + linux,code = <0x198>; + }; + + wps { + label = "wps"; + gpios = <&gpio0 5 1>; + linux,code = <0x211>; + }; + }; + + otg@101c0000 { + status = "okay"; + }; +}; diff --git a/target/linux/ramips/dts/WL341V3.dts b/target/linux/ramips/dts/WL341V3.dts deleted file mode 100644 index 40ce630..0000000 --- a/target/linux/ramips/dts/WL341V3.dts +++ /dev/null @@ -1,123 +0,0 @@ -/dts-v1/; - -/include/ "rt3050.dtsi" - -/ { - compatible = "WL341V3", "ralink,rt3052-soc"; - model = "Sitecom WL-341 v3"; - - cfi@1f000000 { - compatible = "cfi-flash"; - reg = <0x1f000000 0x800000>; - bank-width = <2>; - device-width = <2>; - #address-cells = <1>; - #size-cells = <1>; - - partition@0 { - label = "u-boot"; - reg = <0x0 0x20000>; - read-only; - }; - - boardnvram: partition@20000 { - label = "board-nvram"; - reg = <0x20000 0x10000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - partition@40000 { - label = "firmware"; - reg = <0x40000 0x3b0000>; - }; - }; - - pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; - ralink,function = "gpio"; - }; - }; - }; - - ethernet@10100000 { - mtd-mac-address = <&boardnvram 0xffa0>; - }; - - esw@10110000 { - ralink,portmap = <0x3e>; - }; - - wmac@10180000 { - ralink,mtd-eeprom = <&boardnvram 0xfd70>; - }; - - gpio-leds { - compatible = "gpio-leds"; - - first { - label = "wl341v3:amber:first"; - gpios = <&gpio0 9 1>; - }; - - first2 { - label = "wl341v3:blue:first"; - gpios = <&gpio0 13 1>; - }; - - third { - label = "wl341v3:amber:third"; - gpios = <&gpio0 11 1>; - }; - - third2 { - label = "wl341v3:blue:third"; - gpios = <&gpio0 14 1>; - }; - - fourth { - label = "wl341v3:blue:fourth"; - gpios = <&gpio0 10 1>; - }; - - fifth { - label = "wl341v3:amber:fifth"; - gpios = <&gpio0 12 1>; - }; - - fifth2 { - label = "wl341v3:blue:fifth"; - gpios = <&gpio0 8 1>; - }; - }; - - gpio-keys-polled { - compatible = "gpio-keys-polled"; - #address-cells = <1>; - #size-cells = <0>; - poll-interval = <20>; - - reset { - label = "reset"; - gpios = <&gpio0 7 1>; - linux,code = <0x198>; - }; - - wps { - label = "wps"; - gpios = <&gpio0 5 1>; - linux,code = <0x211>; - }; - }; - - otg@101c0000 { - status = "okay"; - }; -}; diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index 78fffcd..af09f27 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -637,8 +637,8 @@ Image/Build/Profile/WL-330N3G=$(call BuildFirmware/Default4M/$(1),$(1),wl-330n3g kernel_size_wl341v3=917504 rootfs_size_wl341v3=2949120 -define BuildFirmware/WL341V3/squashfs - $(call BuildFirmware/Default4M/$(1),$(1),wl341v3,WL341V3) +define BuildFirmware/WL-341V3/squashfs + $(call BuildFirmware/Default4M/$(1),$(1),wl-341v3,WL-341V3) # This code looks broken and really needs to be converted to C if [ -e "$(call sysupname,$(1),$(2))" ]; then \ ( \ @@ -654,8 +654,8 @@ define BuildFirmware/WL341V3/squashfs ) > $(call imgname,$(1),$(2))-factory.bin; \ fi endef -BuildFirmware/WL341V3/initramfs=$(call BuildFirmware/OF/initramfs,$(1),wl341v3,WL341V3) -Image/Build/Profile/WL341V3=$(call BuildFirmware/WL341V3/$(1),$(1)) +BuildFirmware/WL-341V3/initramfs=$(call BuildFirmware/OF/initramfs,$(1),wl-341v3,WL-341V3) +Image/Build/Profile/WL-341V3=$(call BuildFirmware/WL-341V3/$(1),$(1)) Image/Build/Profile/WL-351=$(call BuildFirmware/Default4M/$(1),$(1),wl-351,WL-351) @@ -765,7 +765,7 @@ define Image/Build/Profile/Default $(call Image/Build/Profile/WIZARD8800,$(1)) $(call Image/Build/Profile/WL-330N,$(1)) $(call Image/Build/Profile/WL-330N3G,$(1)) - $(call Image/Build/Profile/WL341V3,$(1)) + $(call Image/Build/Profile/WL-341V3,$(1)) $(call Image/Build/Profile/WL-351,$(1)) $(call Image/Build/Profile/WNCE2001,$(1)) $(call Image/Build/Profile/WR512-3GN,$(1))