From patchwork Sun Jan 22 12:23:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 718163 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 3v5tsQ6gLJz9s2Q for ; Sun, 22 Jan 2017 23:23:54 +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="O2BPKdJH"; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 09B5AB9119B; Sun, 22 Jan 2017 13:23:09 +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:09 +0100 (CET) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 82AF9B9119B for ; Sun, 22 Jan 2017 13:23:07 +0100 (CET) X-policyd-weight: using cached result; rate: -7 Received: from mail-lf0-f41.google.com (mail-lf0-f41.google.com [209.85.215.41]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sun, 22 Jan 2017 13:23:06 +0100 (CET) Received: by mail-lf0-f41.google.com with SMTP id v186so80710369lfa.1 for ; Sun, 22 Jan 2017 04:23:06 -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=OyhC6lkuKMSaWf5aR6T1vw6Meam2JRdPvYRbBWR7i8A=; b=O2BPKdJHWChZVcqSkRVlpqknH+9Vh0qv5sngtifCBQfkRKe8EGq+Ro17KfE6b8/ium jPygceMBOc80YGCq1fSL6N/92vm7hwnhCNMVCN+DCso3fNU8qwUtMBbaiUeBLkk84xgk 2LJdCB5WKTcuzvuMcau0wCGcBbmJI54UQWwAE= 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=OyhC6lkuKMSaWf5aR6T1vw6Meam2JRdPvYRbBWR7i8A=; b=QC4uDwWhqyIPM8e1v0IbR1KtY7AVFcnmLltQf8noHaEyF2b+I67PdXhCnI3jSpEf7w mTyQE7twxg+jTMtOzBwsZBrEB1twCCYdSIIggtwkX/CX/U1bejxoLovfsW1bU0/ysTTm vdhyGdLkD9EWcfbHvWmJDP9qKlAOCBBX7hZeA0FxEFEhpgtCw8IyuAoR8knOM4cpI4g2 qe3+kgRFtZomwWOaVwdVPd2HNWhs/6+uUCW6B1foPy3zEtdwZ3QEWcE2CpwEee332sgM V1gUFiF/M7YqjlfVesLNrPbmi2YvBrgGaPdphVGnqwCcaa9HXTaoydV1gXUfHTOPrgw6 bdiQ== X-Gm-Message-State: AIkVDXJH/4RvYt+7WQzJ7iXsPCkYp4sesFt1d++Ffa2gn9d84jwIH/eTKftR6k9u1LKWUllg X-Received: by 10.25.20.152 with SMTP id 24mr6613993lfu.152.1485087786326; Sun, 22 Jan 2017 04:23:06 -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 l133sm3499797lfg.40.2017.01.22.04.23.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jan 2017 04:23:05 -0800 (PST) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org, Hans Ulli Kroll , Florian Fainelli Date: Sun, 22 Jan 2017 13:23:03 +0100 Message-Id: <20170122122303.10813-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 Subject: [OpenWrt-Devel] [PATCH 15/22] ARM: dts: add a devicetree for Teltonika RUT1xx 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-rut1xx.c and contain the equivalent platform data, mainly just moving the GPIOs from the global numberspace to explicitly reference their parent GPIO. 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-rut1xx.dts | 63 +++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 arch/arm/boot/dts/gemini-rut1xx.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index fb141e11f8ed..517306f28427 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -170,6 +170,7 @@ dtb-$(CONFIG_ARCH_EXYNOS5) += \ exynos5800-peach-pi.dtb dtb-$(CONFIG_ARCH_GEMINI) += \ gemini-nas4220b.dtb \ + gemini-rut1xx.dtb \ gemini-sq201.dtb dtb-$(CONFIG_ARCH_HI3xxx) += \ hi3620-hi4511.dtb diff --git a/arch/arm/boot/dts/gemini-rut1xx.dts b/arch/arm/boot/dts/gemini-rut1xx.dts new file mode 100644 index 000000000000..4807974bbf22 --- /dev/null +++ b/arch/arm/boot/dts/gemini-rut1xx.dts @@ -0,0 +1,63 @@ +/* + * Device Tree file for Teltonika RUT1xx + */ + +/dts-v1/; + +#include "gemini.dtsi" +#include + +/ { + model = "Teltonika RUT1xx"; + compatible = "teltonika,rut1xx", "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@28 { + debounce_interval = <50>; + wakeup-source; + linux,code = ; + label = "Reset to defaults"; + gpios = <&gpio1 28 GPIO_ACTIVE_LOW>; + }; + }; + + leds { + compatible = "gpio-leds"; + led@7 { + /* FIXME: add the LED color */ + label = "rut1xx::gsm"; + gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + led@31 { + /* FIXME: add the LED color */ + label = "rut1xx::power"; + gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>; + default-state = "off"; + linux,default-trigger = "heartbeat"; + }; + }; + + flash@30000000 { + status = "okay"; + /* 8MB of flash */ + reg = <0x30000000 0x00800000>; + /* TODO: add flash partitions here */ + }; +};