From patchwork Fri Jun 15 13:40:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Whitten X-Patchwork-Id: 10466519 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 740F06020F for ; Fri, 15 Jun 2018 13:49:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F7B928D8D for ; Fri, 15 Jun 2018 13:49:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5203028DA2; Fri, 15 Jun 2018 13:49: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 F2C9028D8D for ; Fri, 15 Jun 2018 13:49: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=Bx8Lrv1jvwOl67mtU6Go3E+smVa02GGZt/5Dd0cuScw=; b=qoHyB5nihbyWAcbWl780yG7Ttb +e0ZcgNJmUPMft9mS2ri5WuDv7d7gkjcwkCL3IaPyMdoZQxcSyFDfM2YkWVu6x2GRbWZK2bf1y0/4 HK6S0K3AhksSPQV3YrU0pV9O43qR2tui9P82qUrHmWfS5c7YD4w9Raqqcbqw331BHHBtgaM6ddtvj xfpO6jwRBC8e6zdEOOQYKLqGIJwevj/fpPJN0fHarw7dEbf4VEinWULjKhZdxdfFs9ys/FSGxCLIC u6olWDpKa+K2qTjZtIbvVJthGAnvo8e/SmPi+zMYYj4+w29D2JbdnfFtFJ4pjPOrmphzNIE7J84AN koAqsRww==; 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 1fTp6G-00079W-6Z; Fri, 15 Jun 2018 13:49:12 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fTozt-0003km-RL for linux-arm-kernel@lists.infradead.org; Fri, 15 Jun 2018 13:43:03 +0000 Received: by mail-wr0-x242.google.com with SMTP id a12-v6so10009217wro.1 for ; Fri, 15 Jun 2018 06:42:32 -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=JPioVH2mnsPJaYDd22xH9WF9j6WkBBupLOzML1a8SLk=; b=DorHfkOQnAbq34TCl4ALWIOYHa9DhhK9futGaTOnSRPDyPI7TfGvcWtoM/Hnx2tDBj iIBnGBen3FLf1Pvbd3ZZMXIYNS3ZqsoQzvKZj7nvIMi8W+Rave3LPeqBLr/2u3apcvHP Vrx8LoV/LY0a7shNjN6A0PX+Bu3WWLIDTjGCkf7CtGic+DjSY4YSL+1SOAgxaC/IPRw2 mEpzmPQCspUBcTuIO+sNidKzdsdBYCbQrKJgirA+VsA7ZGfprbYguBUQB5RMwJ9mJH4+ TXO9xBekRA3xFrkTiP2zXikIstGYL26wgFMs7/sWQqoemKdJYoDQ2utFfBOzzKZlAbdp 8EiQ== 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=JPioVH2mnsPJaYDd22xH9WF9j6WkBBupLOzML1a8SLk=; b=cJNj0MSUyKX0FNHiYbn/5SBKaozmbBpMjABxM9MamuHG65oHP7eBIvLvwj8m6UiJww stfGXLIMPLs3fAbz2SIAOQE+fv5bbTTPNyCrdTN6Jd3nZWFNlEh/FfW1c8qeVDmxU7bz EaR6kP8SmIte9UD0zwL+RMUG2U4SEbd6wlVdh7Gt2rwpHc+PsVKi/jK2AHURq4vZ+lf3 EtdEBv47GTYk9clof5/duMIDjsFakx1lH+6xWlRaRdw3uy7fcPw7noW6BXHWDX545DTS XtoXZqsVRRkfbQRXtNaV/zvg2DwmFkg5IAJZwOadk3eKFMyz9QnL64X+l+z7chJ7/qqK Vddw== X-Gm-Message-State: APt69E1bGDSj7kz68Z2jOKGO7NoyV3CpRbnFfiCbgzTHTSrh+S4Fk58b 0xxVUwFN12VO5fhf9KgIJA4= X-Google-Smtp-Source: ADUXVKJWjhy1GVaIaJO8UrkkahBOXSVVBSPr1/2o1uqcFwOVmy4bOvYHzmizz85Nqz9jeOUaj+J9Rg== X-Received: by 2002:adf:a792:: with SMTP id j18-v6mr1787040wrc.187.1529070151471; Fri, 15 Jun 2018 06:42:31 -0700 (PDT) Received: from Sarah.corp.lairdtech.com ([109.174.151.67]) by smtp.gmail.com with ESMTPSA id d5-v6sm9816346wrp.64.2018.06.15.06.42.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 Jun 2018 06:42:30 -0700 (PDT) From: Ben Whitten X-Google-Original-From: Ben Whitten To: devicetree@vger.kernel.org Subject: [PATCH v2 5/6] arm: dts: add support for Gatwick board based on WB50N Date: Fri, 15 Jun 2018 14:40:54 +0100 Message-Id: <1529070055-18701-5-git-send-email-ben.whitten@lairdtech.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529070055-18701-1-git-send-email-ben.whitten@lairdtech.com> References: <1529070055-18701-1-git-send-email-ben.whitten@lairdtech.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180615_064237_928140_2D72468E X-CRM114-Status: GOOD ( 16.38 ) 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@arm.com, alexandre.belloni@bootlin.com, Ben Whitten , linux-kernel@vger.kernel.org, robh+dt@kernel.org, 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 Add support for the LoRa gateway from Laird, the RG1xx. This board houses the WB50NBT CPU module along with a Semtech SX1301 based concentrator card. https://www.lairdtech.com/products/rg1xx-lora-gateway Signed-off-by: Ben Whitten # Conflicts: # arch/arm/boot/dts/Makefile --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/at91-gatwick.dts | 121 +++++++++++++++++++++++++++++++++++++ 2 files changed, 122 insertions(+) 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 07823be..214d5d9 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -51,6 +51,7 @@ dtb-$(CONFIG_SOC_SAM_V7) += \ at91-sama5d2_ptc_ek.dtb \ at91-sama5d2_xplained.dtb \ at91-sama5d3_xplained.dtb \ + at91-gatwick.dtb \ at91-tse850-3.dtb \ at91-wb50n.dtb \ sama5d31ek.dtb \ diff --git a/arch/arm/boot/dts/at91-gatwick.dts b/arch/arm/boot/dts/at91-gatwick.dts new file mode 100644 index 0000000..5a81cab --- /dev/null +++ b/arch/arm/boot/dts/at91-gatwick.dts @@ -0,0 +1,121 @@ +// 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"; + + 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"; + }; + }; +}; + +&pinctrl { + board { + pinctrl_key_gpio: key_gpio_0 { + atmel,pins = + ; /* PE31 GPIO with pullup deglitch */ + }; + }; +}; + +&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"; +};