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: 92163 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp805209qgi; Sun, 22 Jan 2017 04:26:43 -0800 (PST) X-Received: by 10.98.9.206 with SMTP id 75mr27375173pfj.159.1485088003721; Sun, 22 Jan 2017 04:26:43 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f81si12535850pfa.44.2017.01.22.04.26.43; Sun, 22 Jan 2017 04:26:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751502AbdAVMYX (ORCPT + 25 others); Sun, 22 Jan 2017 07:24:23 -0500 Received: from mail-lf0-f41.google.com ([209.85.215.41]:36108 "EHLO mail-lf0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750985AbdAVMYP (ORCPT ); Sun, 22 Jan 2017 07:24:15 -0500 Received: by mail-lf0-f41.google.com with SMTP id z134so80648698lff.3 for ; Sun, 22 Jan 2017 04:22:59 -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=cjRYU7NePSrOjulF+fHdKNTCWoBpZjvOnzOpr9cSAPoMAWJo5Et103ZKcI8Vla10hn g4e7JdLKv743FU7ZiSLzWqeRUK+cbAwLzFSkz0CVeumDicqtaeraYdSsBmv8QRIjkiFW qUyAs/mVMQbm+KKAPsHpmks1EL+ASJ5bFkYhi6+JhB6mUQu2HyyI2J8Hi8dfw5cZUsKA OR2cxIm5oEAJSy1nDlD6bBdYjvrzcwEVPDQaToZWrxWrgGkDQnbTcWsdx4U0iz/6jbfO g8kvT5+ugesV3OcoDJS9M0EeX+0GQp0RX98VC1iPhwFcKeVW1ctJGfkYXGwL1X+t92yI 1bWQ== X-Gm-Message-State: AIkVDXJPfhfDrb3WuXya3kizUUpMQ7TS6BRZEJ3mDRlFyp+LCuYKPgss2L2vAT0hWgKt2luo 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 Cc: Janos Laube , Paulius Zaleckas , openwrt-devel@openwrt.org, Arnd Bergmann , linux-kernel@vger.kernel.org, Linus Walleij Subject: [PATCH 14/22] ARM: dts: add a devicetree for Raidsonic NAS IB-4220-B 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.9.3 Signed-off-by: Hans Ulli Kroll 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 */ + }; +};