Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4513038pxa; Mon, 10 Aug 2020 10:52:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5SkU1g7VbonkOLpGIXdpJv3wRG0Mvjw8pdd1jED2fnCFc7XllVZD9KxMtmsp4vInkWOq7 X-Received: by 2002:a05:6402:1430:: with SMTP id c16mr6876216edx.144.1597081953046; Mon, 10 Aug 2020 10:52:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597081953; cv=none; d=google.com; s=arc-20160816; b=Q4k/zsjJO86XSZOZcwiwG0YIuk7oh7+m03GmlLa8ga9A5vMM346KB/WLFNIlDsRxrx QOjHxR8QFTqcWOV74Mq0foIk7df0bOaZBiILVxTCtvtmWz0dzatc9df24bnpr6eH3MKJ z4IO0J7nbQToZK/K7SxLp+sTHnFUnxvfGfB5mqthH5ad91g7ihrrryUG2FlnkP5f0KA7 dT2RB/Q0MdOaWFnUhoRVIivN5D6IFQpmvhIku34tlmQbxFFLM/Y6+ynfeG1+GYt5WPtU 7l3/oZHBW75MtlpTKkpEut6cX+PGw1d7riB0zuyEU2poww8YAPJBEk7iM85inZzyzM+z mdkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=KVrXMhIPLhSTHPC0nfm7aSEQF1izFlgw5cTE7+oKfDs=; b=etOutzg9sEhRmtbGdywaJoS0/5sa4tSZal3NgBUKw/iVKWtmqIxExiNGD4SqbESqRd XnR5hnymlZC/+2eS2+1id94RNGvKMVm0PYE8mTA8aCW+NBU5KIGAiIobDeuraDfQiUvr I9Z1IqCP1JpwHWL5Ss449whRVuI8tCpqZyF4jKLKw7kn7d42MCGgfy/ADCYgu1fqAnHR yizbNIlXAPJDHEJGnXdzt86NE3lcc5idOZ5CRQbcT5E+8U28YmcXNsmL5swAeiUH+WXQ I+IPMvGoYagHpENrAiIKCXVAF4d9Ig2sJ4YnqaW3Sf5IugNiaHnoSLu/qpFMfwxzt7SP DMVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr21si4297042ejc.470.2020.08.10.10.52.09; Mon, 10 Aug 2020 10:52:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728008AbgHJRvK (ORCPT + 99 others); Mon, 10 Aug 2020 13:51:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727003AbgHJRvK (ORCPT ); Mon, 10 Aug 2020 13:51:10 -0400 X-Greylist: delayed 1763 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 10 Aug 2020 10:51:09 PDT Received: from mxout012.mail.hostpoint.ch (mxout012.mail.hostpoint.ch [IPv6:2a00:d70:0:e::312]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBD2AC061756; Mon, 10 Aug 2020 10:51:09 -0700 (PDT) Received: from [10.0.2.45] (helo=asmtp012.mail.hostpoint.ch) by mxout012.mail.hostpoint.ch with esmtp (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1k5BUJ-0008Az-SP; Mon, 10 Aug 2020 19:21:31 +0200 Received: from [2a02:168:6182:1:b8b7:9388:88c1:b332] (helo=ryzen2700.dss.husqvarnagroup.com) by asmtp012.mail.hostpoint.ch with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1k5BUJ-000DaV-PN; Mon, 10 Aug 2020 19:21:31 +0200 X-Authenticated-Sender-Id: reto-schneider@reto-schneider.ch From: Reto Schneider To: linux-arm-kernel@lists.infradead.org Cc: Reto Schneider , Stefan Roese , Michael Zimmermann , Rob Herring , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] ARM: at91: Add GARDENA smart Gateway AT91SAM board Date: Mon, 10 Aug 2020 19:19:19 +0200 Message-Id: <20200810171921.8679-1-code@reto-schneider.ch> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Reto Schneider This patch adds support for the GARDENA smart Gateway, which is based on the Atmel AT91SAM9G25. It is equipped with 128 MiB of DDR2 RAM and 256 MiB NAND storage. Please note that this gateway is not actually based on a AT91SAM9x5 EK board, but is close enough to allow its DT to be used. Co-developed-by: Stefan Roese Signed-off-by: Stefan Roese Co-developed-by: Michael Zimmermann Signed-off-by: Michael Zimmermann Signed-off-by: Reto Schneider --- arch/arm/boot/dts/Makefile | 1 + .../dts/at91sam9g25-gardena-smart-gateway.dts | 186 ++++++++++++++++++ 2 files changed, 187 insertions(+) create mode 100644 arch/arm/boot/dts/at91sam9g25-gardena-smart-gateway.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 4572db3fa5ae..d38d256f59fa 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -44,6 +44,7 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \ at91-wb45n.dtb \ at91sam9g15ek.dtb \ at91sam9g25ek.dtb \ + at91sam9g25-gardena-smart-gateway.dtb \ at91sam9g35ek.dtb \ at91sam9x25ek.dtb \ at91sam9x35ek.dtb diff --git a/arch/arm/boot/dts/at91sam9g25-gardena-smart-gateway.dts b/arch/arm/boot/dts/at91sam9g25-gardena-smart-gateway.dts new file mode 100644 index 000000000000..19b0f67a7af6 --- /dev/null +++ b/arch/arm/boot/dts/at91sam9g25-gardena-smart-gateway.dts @@ -0,0 +1,186 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Device Tree file for the GARDENA smart Gateway (AT91SAM) + * + * Copyright (C) 2020 GARDENA GmbH + */ + +/dts-v1/; + +#include "at91sam9g25.dtsi" +#include "at91sam9x5ek.dtsi" +#include + +/ { + model = "GARDENA smart Gateway (AT91SAM)"; + compatible = "gardena,smart-gateway-at91sam", "atmel,at91sam9g25", "atmel,at91sam9x5", "atmel,at91sam9"; + + aliases { + serial1 = &usart3; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory { + reg = <0x20000000 0x8000000>; + }; + + gpio-keys { + compatible = "gpio-keys"; + + user_btn1 { + label = "USER_BTN1"; + gpios = <&pioA 24 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + 1wire_cm { + status = "disabled"; + }; + + leds { + compatible = "gpio-leds"; + + power_blue { + label = "smartgw:power:blue"; + gpios = <&pioC 21 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + power_green { + label = "smartgw:power:green"; + gpios = <&pioC 20 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + + power_red { + label = "smartgw:power:red"; + gpios = <&pioC 19 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + radio_blue { + label = "smartgw:radio:blue"; + gpios = <&pioC 18 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + radio_green { + label = "smartgw:radio:green"; + gpios = <&pioC 17 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + radio_red { + label = "smartgw:radio:red"; + gpios = <&pioC 16 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + internet_blue { + label = "smartgw:internet:blue"; + gpios = <&pioC 15 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + internet_green { + label = "smartgw:internet:green"; + gpios = <&pioC 14 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + internet_red { + label = "smartgw:internet:red"; + gpios = <&pioC 13 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + heartbeat { + label = "smartgw:heartbeat"; + gpios = <&pioB 8 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + }; + + pb18 { + status = "disabled"; + }; + + pd21 { + status = "disabled"; + }; + }; +}; + +&dbgu { + status = "okay"; +}; + +&macb0 { + phy-mode = "rmii"; + status = "okay"; +}; + +&nand_controller { + status = "okay"; +}; + +&usb0 { + status = "okay"; + num-ports = <3>; +}; + +&usb1 { + status = "okay"; +}; + +&usart0 { + status = "disabled"; +}; + +&usart2 { + status = "disabled"; +}; + +&dbgu { + status = "okay"; +}; + +&usart3 { + status = "okay"; + + pinctrl-0 = <&pinctrl_usart3 + &pinctrl_usart3_rts + &pinctrl_usart3_cts + >; +}; + +&watchdog { + status = "okay"; +}; + +&mmc0 { + status = "disabled"; +}; + +&mmc1 { + status = "disabled"; +}; + +&spi0 { + status = "disabled"; +}; + +&i2c0 { + status = "disabled"; +}; + +&adc0 { + status = "disabled"; +}; + +&ssc0 { + status = "disabled"; +}; -- 2.27.0