From patchwork Sun Jan 22 12:22:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 718162 X-Patchwork-Delegate: blogic@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 3v5ts024Njz9t17 for ; Sun, 22 Jan 2017 23:23:32 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="GUmw2Y1g"; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 64AF6B9119F; Sun, 22 Jan 2017 13:23:01 +0100 (CET) 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; Sun, 22 Jan 2017 13:23:01 +0100 (CET) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 1F5DBB9119E for ; Sun, 22 Jan 2017 13:22:59 +0100 (CET) X-policyd-weight: using cached result; rate: -7 Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sun, 22 Jan 2017 13:22:58 +0100 (CET) Received: by mail-lf0-f54.google.com with SMTP id k86so80469606lfi.0 for ; Sun, 22 Jan 2017 04:22:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=8kbZQN0z5FmchGSijpgX3PD8iZnfXefz7Ly84jtGAfI=; b=GUmw2Y1gKIiNkYEomwCw9tZ432p8Xvjwis+SXnzhqy/voGIuZBU5LxXabDSUFnmuB2 5SPbBVxOnAlYKY9W1gzoAhnYCzfAJ04QNX6ncoE4xh0p02qvl/taWUGhFDomxw4Xqt2D H6kj/WxPTLmoexTYmwjZ8cZLgn0lAlJ0BpDgQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=8kbZQN0z5FmchGSijpgX3PD8iZnfXefz7Ly84jtGAfI=; b=B7S0jZ/1BblfaDikJA9o4MRy820Ck5c63Os5IovmVZn9KVSe5/3x2eOqi7VOqGwuHR M1ArJAbDjFn82ySm7OWNbGEb5k4kFWTZUoRJUZ+Wcu0xAtgsIsVeg9qiQcX08znvYr8E 1geXS1XS7Uj6O0o8i6+vr5+lvkihDCY7t8hD8CNvWMXkc5uok3Ls08hLeMivYHt21n4S 2Rf07vgFyLj2DiVuJMIYDI5qoh2L1AqZ+XSNbe/imKwX4Q6gm4s6PFozpUP9yIqBTqDS DldGazigdLINNswzUEl0QZb0FzHXjmIc97BQQWL77H5TS5V4SdQ8sYHD6b47g8C8bXbg EeDg== X-Gm-Message-State: AIkVDXLkJNITBL5+4r5DUQqdldVXjtlqrK4bb13LkW4ivE8msEaCE2c0/j9GDOAm/5FG3K1M X-Received: by 10.25.10.6 with SMTP id 6mr8041789lfk.88.1485087778437; Sun, 22 Jan 2017 04:22:58 -0800 (PST) Received: from localhost.localdomain (c-357171d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.113.53]) by smtp.gmail.com with ESMTPSA id 96sm5372763lfp.18.2017.01.22.04.22.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jan 2017 04:22:57 -0800 (PST) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org, Hans Ulli Kroll , Florian Fainelli Date: Sun, 22 Jan 2017 13:22:54 +0100 Message-Id: <20170122122254.10764-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 Subject: [OpenWrt-Devel] [PATCH 14/22] ARM: dts: add a devicetree for Raidsonic NAS IB-4220-B 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: openwrt-devel@openwrt.org, Paulius Zaleckas , Arnd Bergmann , linux-kernel@vger.kernel.org, Janos Laube MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" This devicetree is simply based on the board file in arch/arm/mach-gemini/board-nas4220b.c and contain the equivalent platform data, mainly just moving the GPIOs from the global numberspace to explicitly reference &gpio1. Cc: Janos Laube Cc: Paulius Zaleckas Cc: Hans Ulli Kroll Cc: Florian Fainelli Signed-off-by: Linus Walleij --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/gemini-nas4220b.dts | 68 +++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 arch/arm/boot/dts/gemini-nas4220b.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 10edd72a6f3d..fb141e11f8ed 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -169,6 +169,7 @@ dtb-$(CONFIG_ARCH_EXYNOS5) += \ exynos5440-ssdk5440.dtb \ exynos5800-peach-pi.dtb dtb-$(CONFIG_ARCH_GEMINI) += \ + gemini-nas4220b.dtb \ gemini-sq201.dtb dtb-$(CONFIG_ARCH_HI3xxx) += \ hi3620-hi4511.dtb diff --git a/arch/arm/boot/dts/gemini-nas4220b.dts b/arch/arm/boot/dts/gemini-nas4220b.dts new file mode 100644 index 000000000000..bf12638abb45 --- /dev/null +++ b/arch/arm/boot/dts/gemini-nas4220b.dts @@ -0,0 +1,68 @@ +/* + * Device Tree file for the Gemini-based Raidsonic NAS IB-4220-B + */ + +/dts-v1/; + +#include "gemini.dtsi" +#include + +/ { + model = "Raidsonic NAS IB-4220-B"; + compatible = "raidsonic,ib-4220-b", "cortina,gemini"; + #address-cells = <1>; + #size-cells = <1>; + + memory { /* 128 MB */ + device_type = "memory"; + reg = <0x00000000 0x8000000>; + }; + + chosen { + bootargs = "console=ttyS0,115200n8"; + stdout-path = &uart0; + }; + + gpio_keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + + button@29 { + debounce_interval = <50>; + wakeup-source; + linux,code = ; + label = "Backup button"; + gpios = <&gpio1 29 GPIO_ACTIVE_LOW>; + }; + button@31 { + debounce_interval = <50>; + wakeup-source; + linux,code = ; + label = "Softreset button"; + gpios = <&gpio1 31 GPIO_ACTIVE_LOW>; + }; + }; + + leds { + compatible = "gpio-leds"; + led@28 { + label = "nas4220b:orange:hdd"; + gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + led@30 { + label = "nas4220b:green:os"; + gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>; + default-state = "on"; + linux,default-trigger = "heartbeat"; + }; + }; + + flash@30000000 { + status = "okay"; + /* 16MB of flash */ + reg = <0x30000000 0x01000000>; + /* TODO: add flash partitions here */ + }; +};