From patchwork Thu Jun 14 08:51:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Whitten X-Patchwork-Id: 10463689 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 50CD9603B4 for ; Thu, 14 Jun 2018 08:54:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F153289B7 for ; Thu, 14 Jun 2018 08:54:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3082C289C2; Thu, 14 Jun 2018 08:54:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CCD80289B7 for ; Thu, 14 Jun 2018 08:54:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=w7928HHKEioR6+vTiCmrY1zmhHSYM4ugyxGBpNhGzwE=; b=KA9tWUppPXUe98xOKYPj9ZO0cC f85niu2NdRYp3c1eIYJcRhF2UnQ/iVn/8JjQtkbvCzgw/HvTshaDdyXvh4yvYD/Kjt7gsqxpKtL+q IQv5XqS1/l5fwegET3T/7GnKCtulJmcrsKu53x7w+Zvec1xnO4Sh3TfVlqUoCqCvBRxhR3N54mAUl aEX+REI1uxOCvCP+MAA9xRoNI6KMmer3hM3jfE3VWoV3KDNvMI44NV6fdTI/6akB6RBAlLpLB3JUh x5pF9TG0AL+daHQTZSn/E1cITttSin/hvQZd0Kuy8ZCS5wR/+KqF746IFhwaokEZSt9HR602saQxw IMhhsOSg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fTO19-0005uV-0S; Thu, 14 Jun 2018 08:54:07 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fTO0H-0005Py-Ox for linux-arm-kernel@lists.infradead.org; Thu, 14 Jun 2018 08:53:30 +0000 Received: by mail-wm0-x243.google.com with SMTP id x6-v6so9117457wmc.3 for ; Thu, 14 Jun 2018 01:53:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=kcH5V+3EqQ+JBPdgze4Eg/wv/eAvc8Nd6L8aOxl8hdE=; b=TV1nWlAjhe6Plco36AoU9vCaBoKiJbEn22cRTVEdTGljSdIvwQlmWnxODEYL7OhW8x LPlfgdoq3FNOEiz8u+8taHaos3Zc4eW7WbpbyJq54ZNB9JnMBSp1DHGlxrcnKe81lGPh LfVBQnqdCwdSzlrHRV46EYZY+CS1i7509PmuAl4eZEaMFAtYWQysFL0xzhdRzxU/R2Gi wIzwx5naqVYWuZQQFPthx2m/QCt+EY/Fxu83x/eo8FgXZ8uJWdRuK02/dAMkh9QzUBoH nMrLSBcRth41gFOmoM4IopvYCqP7OqTWFjiBFAGzSLeq+LSPWS4a/3QCUBE/hBkPRJXq Pc7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=kcH5V+3EqQ+JBPdgze4Eg/wv/eAvc8Nd6L8aOxl8hdE=; b=WR3yYUMpTS4t7zrwCgKG5StFDF3wd/ntYF+e880w4GuYCuvIMf6Wnr+5AFiNIcQcR7 PzgvlqCeufrynki+072tT4hcu/AjInYy3QfTGxpCDfc3CyQMb6JgwV1dnFAN6ck1YlbQ UqhBv1VLFXSYRUayq3JyirVaymBw0zIXepOT989J6V2fWwf3BpWh6z7nLYeH8q4HO//0 K26HYQhY4PScyvAy1Exv4ckVSW5uaoW3PL8yZZZPqps/AGEQTgScQhNx2cBZuYMFb87M SH5mhYdnuAAD1dehWGjZRT5t+dJ+kzywscd0kaVh7YyIqCEeOqOi48hTaNUq+4OcGR3/ x91g== X-Gm-Message-State: APt69E0xyTz5SFIaB/yKVOgatxGS1qS0JeVVsTra7Bkt5fbJI9aZcIdU nSXAZxurTF3TElfrKGN5HJA= X-Google-Smtp-Source: ADUXVKKFMzOI+FQkf6EbVwxO7QsDhHA0gOymubAZdBknMXk0sk8ZQw1aLmnVrQjbUMvfBwuUk4jcRg== X-Received: by 2002:a1c:6d85:: with SMTP id b5-v6mr1011794wmi.135.1528966381729; Thu, 14 Jun 2018 01:53:01 -0700 (PDT) Received: from Sarah.lan (83-167-250-20.static.masterinter.net. [83.167.250.20]) by smtp.gmail.com with ESMTPSA id 72-v6sm5452204wrb.22.2018.06.14.01.52.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Jun 2018 01:53:00 -0700 (PDT) From: Ben Whitten X-Google-Original-From: Ben Whitten To: devicetree@vger.kernel.org Subject: [PATCH 3/4] arm: dts: add support for Gatwick board based on WB50N Date: Thu, 14 Jun 2018 09:51:56 +0100 Message-Id: <1528966340-23216-3-git-send-email-ben.whitten@lairdtech.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528966340-23216-1-git-send-email-ben.whitten@lairdtech.com> References: <1528966340-23216-1-git-send-email-ben.whitten@lairdtech.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180614_015313_845405_9F8A6EAD X-CRM114-Status: GOOD ( 16.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Alexandre Belloni , Ben Whitten , linux-kernel@vger.kernel.org, Rob Herring , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Ben Whitten --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/at91-gatwick.dts | 125 +++++++++++++++++++++++++++++++++++++ 2 files changed, 127 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/at91-gatwick.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index fd5f8a6..486ab59 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -62,7 +62,8 @@ dtb-$(CONFIG_SOC_SAM_V7) += \ at91-sama5d4_xplained.dtb \ at91-sama5d4ek.dtb \ at91-vinco.dtb \ - at91-wb50n.dtb + at91-wb50n.dtb \ + at91-gatwick.dtb dtb-$(CONFIG_ARCH_ATLAS6) += \ atlas6-evb.dtb dtb-$(CONFIG_ARCH_ATLAS7) += \ diff --git a/arch/arm/boot/dts/at91-gatwick.dts b/arch/arm/boot/dts/at91-gatwick.dts new file mode 100644 index 0000000..1350c08 --- /dev/null +++ b/arch/arm/boot/dts/at91-gatwick.dts @@ -0,0 +1,125 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * at91-gatwick.dts - Device Tree file for the Gatwick board + * + * Copyright (C) 2018 Laird + * + */ +/dts-v1/; +#include "at91-wb50n.dtsi" +#include + +/ { + model = "Laird Workgroup Bridge 50N - Project Gatwick"; + compatible = "laird,gatwick", "laird,wb50n", "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5"; + + ahb { + apb { + pinctrl@fffff200 { + board { + pinctrl_key_gpio: key_gpio_0 { + atmel,pins = + ; /* PE31 GPIO with pullup deglitch */ + }; + }; + }; + }; + }; + + gpio_keys { + compatible = "gpio-keys"; + autorepeat; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_key_gpio>; + + reset-button { + label = "Reset Button"; + linux,code = ; + gpios = <&pioE 31 GPIO_ACTIVE_LOW>; + wakeup-source; + }; + }; + + leds { + compatible = "gpio-leds"; + + ethernet { + label = "gatwick:yellow:ethernet"; + gpios = <&pioA 10 GPIO_ACTIVE_LOW>; + default-state = "off"; + }; + + wifi { + label = "gatwick:green:wifi"; + gpios = <&pioA 28 GPIO_ACTIVE_LOW>; + default-state = "off"; + }; + + ble { + label = "gatwick:blue:ble"; + gpios = <&pioA 22 GPIO_ACTIVE_LOW>; + default-state = "off"; + }; + + lora { + label = "gatwick:orange:lora"; + gpios = <&pioA 26 GPIO_ACTIVE_LOW>; + default-state = "off"; + }; + + blank { + label = "gatwick:green:blank"; + gpios = <&pioA 24 GPIO_ACTIVE_LOW>; + default-state = "off"; + }; + + user { + label = "gatwick:yellow:user"; + gpios = <&pioA 12 GPIO_ACTIVE_LOW>; + default-state = "off"; + }; + }; +}; + +&mmc0 { + status = "okay"; +}; + +&macb1 { + status = "okay"; +}; + +&dbgu { + status = "okay"; +}; + +/* FTDI USART */ +&usart0 { + status = "okay"; +}; + +/* GPS USART */ +&usart1 { + pinctrl-0 = <&pinctrl_usart1>; + status = "okay"; +}; + +&spi1 { + status = "okay"; + + spidev@0 { + compatible = "semtech,sx1301"; + reg = <0>; + spi-max-frequency = <8000000>; + }; +}; + +&usb1 { + status = "okay"; + /delete-property/atmel,oc-gpio; +}; + +&usb2 { + status = "okay"; +};