From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EFAF5C433E1 for ; Mon, 17 Aug 2020 10:23:24 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BDE922078A for ; Mon, 17 Aug 2020 10:23:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="EBhxKUuw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BDE922078A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=XynZ/naQIT9xJ6NNt9CMC3MzW13W770wwLzTN/ILmFY=; b=EBhxKUuwXq5iBYbtu3EIR72o1 AXz3DdMKWTP5d2wELzWG7dl3gyzHKAL+7mkwt/u0tkoaeju9m8M/oMIwI+gNgnHN6oW9YTwOSKgmZ Aa0JKQm/k0EUFit3ddGBUkYMy6uTekIAdX5WQ1etHFBgzlV5cdffAhffQleQX/+AxesW+mCvRv5hm pQert7g+4zkY4J2yd2IoyBFdonC0VudB5nkHpuAHvsJ/WNegIFkdzcvpmyeh8FCQWg8PtjQuZx7WO iZInKVnHYdcHE4ZDnbjDbbZ3IyKKFoqVLzCUGX+JFTKUd9ri5qi/3xQ/tAm7bajoJkNcPfZyBTtBm HzHG1OP1g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k7cH9-0004Eh-Ra; Mon, 17 Aug 2020 10:21:59 +0000 Received: from relay12.mail.gandi.net ([217.70.178.232]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k7cGx-000444-4h for linux-arm-kernel@lists.infradead.org; Mon, 17 Aug 2020 10:21:49 +0000 Received: from localhost (sto93-h02-176-184-36-142.dsl.sta.abo.bbox.fr [176.184.36.142]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id E5CC3200002; Mon, 17 Aug 2020 10:21:41 +0000 (UTC) Date: Mon, 17 Aug 2020 12:21:36 +0200 From: Alexandre Belloni To: Reto Schneider Subject: Re: [PATCH] ARM: at91: Add GARDENA smart Gateway AT91SAM board Message-ID: <20200817102136.GC4500@piout.net> References: <20200810171921.8679-1-code@reto-schneider.ch> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200810171921.8679-1-code@reto-schneider.ch> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200817_062147_454961_E6E388FA X-CRM114-Status: GOOD ( 22.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Michael Zimmermann , open list , Ludovic Desroches , Rob Herring , Stefan Roese , Reto Schneider , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello, Thank you for this submission. On 10/08/2020 19:19:19+0200, Reto Schneider wrote: > 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"; You should document the vendor string. And ideally, gardena,smart-gateway-at91sam should be documented in Documentation/devicetree/bindings/arm/atmel-at91.yaml > + > + aliases { > + serial1 = &usart3; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; This is already in at91sam9x5ek.dtsi > + }; > + > + memory { > + reg = <0x20000000 0x8000000>; This is already in at91sam9x5cm.dtsi, included fromat91sam9x5ek.dtsi > + }; > + > + 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"; > +}; This is already in at91sam9x5ek.dtsi and is duplicated below > + > +&macb0 { > + phy-mode = "rmii"; > + status = "okay"; > +}; > + > +&nand_controller { > + status = "okay"; This is already in at91sam9x5cm.dtsi > +}; > + > +&usb0 { > + status = "okay"; > + num-ports = <3>; This is already in at91sam9x5ek.dtsi > +}; > + > +&usb1 { > + status = "okay"; This is already in at91sam9x5ek.dtsi > +}; > + > +&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"; > +}; Overall, I'm not convinced it is a good idea to start from at91sam9x5ek.dtsi as it makes you dtb bigger than necessary but if you want it that way, I'm fine with that. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel