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=-8.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham 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 41516CA9EAE for ; Tue, 29 Oct 2019 12:34:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 F2294214B2 for ; Tue, 29 Oct 2019 12:34:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="BZD4r5bu" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F2294214B2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-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=bombadil.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=hoZ6xPrDzqPUQXngUYlL+ivYvTDafU0KLFgCm70Hz0U=; b=BZD4r5bu8CVF1v NUONJCMUl/WwUWJNEgEjCOYkxA6BxjQQSZRBpissPCDJlXFPdBbDxHLKXgYyJD06iHYq2edeRTmSY 7ByUqKV9oWXwB1UuoWLMo43aToHmvc5eqVpAsqwsSk+o1b2WFCVjtDinuXxzZQ44GnnYYZP+wmg1V oDL71jIN1Kusgt+bMENZXIAj6FvxmIZlEwd/vIRe1kjGHCWzmfLhpKY+VO9GvEFVj3cJR+cGnVo8X 9iIsyCA7g3iXeGE8qcev1i7/yxl5kNRuW/C1EZys4CQfYI1hXQh6MJgsMfZsVMZye69yyL6CC+A8u Qpfes1K+ripU43RbyWWg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iPQhk-00072F-QF; Tue, 29 Oct 2019 12:34:32 +0000 Received: from mail-oi1-f194.google.com ([209.85.167.194]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iPQhi-00071f-8Y for linux-arm-kernel@lists.infradead.org; Tue, 29 Oct 2019 12:34:31 +0000 Received: by mail-oi1-f194.google.com with SMTP id g81so8743849oib.8 for ; Tue, 29 Oct 2019 05:34:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=NuGvNr5d2i3rf51wx85q7m6lDMmKS60m3xzeENQ/V5I=; b=UFXhS/1lC6obOPnXEKHUe7n/RAzj5pI7+yKx/qJ9BAt/ekOGRKWh20V559oKiUK4dT MFHylbu6DgI1d07poIP68Q/9rVu0Obh/Qeqb5vSUkRao49hIno+CjBpgLAe/L5j9jQKx gqMWcqvtM42g7msVlmIp06v1QZUVrizZUK5BdsdxMiq1jZ4y47NGTt9vXNSm8ObYbbpk zkGxgtRk+ehClI2wydb6V/sI0cVU+OaaNAL1qhvaTdqR5r/zuFsm2sThybDFiEsAQL/3 YSHsQt+qAJgMK6jzBeGyTENvr4+wxa8Jz59wz28zzloWSzC133B3AAhcgxTVY1L5fKHd SzFQ== X-Gm-Message-State: APjAAAVDyplfoj+8BiMoE5ECPBHUBDOXQvx9iQ8Nk/H4CQ3kCScDB1a8 1sDKj16Neaf6FJZlS3/fYQ== X-Google-Smtp-Source: APXvYqyKfHHEU0+WHpt8FAZ1kGjO3iGV0VKL6cIl4PDExXqHjBfHF/9A1De9Cet/U9+IxV6W9Nx6eA== X-Received: by 2002:aca:f046:: with SMTP id o67mr3664860oih.155.1572352468513; Tue, 29 Oct 2019 05:34:28 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id q5sm2691065oih.55.2019.10.29.05.34.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2019 05:34:27 -0700 (PDT) Date: Tue, 29 Oct 2019 07:34:26 -0500 From: Rob Herring To: Kamel Bouhara Subject: Re: [PATCH 2/2] ARM: dts: at91: add a common kizboxmini dtsi file Message-ID: <20191029123426.GB8412@bogus> References: <20191018140304.31547-1-kamel.bouhara@bootlin.com> <20191018140304.31547-3-kamel.bouhara@bootlin.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191018140304.31547-3-kamel.bouhara@bootlin.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191029_053430_306974_FC52EA5C X-CRM114-Status: GOOD ( 18.37 ) 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: devicetree@vger.kernel.org, Alexandre Belloni , Mickael GARDET , linux-kernel@vger.kernel.org, Ludovic Desroches , =?iso-8859-1?Q?K=E9vin?= RAYMOND , Thomas Petazzoni , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Oct 18, 2019 at 04:03:04PM +0200, Kamel Bouhara wrote: > Split the Kizbox Mini boards into two board configuration, the > Kizboxmini Mother board and the Kizboxmini RailDIN board. > = > Signed-off-by: Kamel Bouhara > Signed-off-by: K=E9vin RAYMOND > Signed-off-by: Mickael GARDET > --- > arch/arm/boot/dts/Makefile | 2 + > arch/arm/boot/dts/at91-kizboxmini-mb.dts | 38 ++++ > arch/arm/boot/dts/at91-kizboxmini-rd.dts | 54 ++++++ > arch/arm/boot/dts/at91-kizboxmini_common.dtsi | 166 ++++++++++++++++++ > 4 files changed, 260 insertions(+) > create mode 100644 arch/arm/boot/dts/at91-kizboxmini-mb.dts > create mode 100644 arch/arm/boot/dts/at91-kizboxmini-rd.dts > create mode 100644 arch/arm/boot/dts/at91-kizboxmini_common.dtsi > = > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index c976b72a4c94..6b3a65f3f6f8 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -38,6 +38,8 @@ dtb-$(CONFIG_SOC_AT91SAM9) +=3D \ > at91-ariettag25.dtb \ > at91-cosino_mega2560.dtb \ > at91-kizboxmini.dtb \ > + at91-kizboxmini-mb.dtb \ > + at91-kizboxmini-rd.dtb \ > at91-wb45n.dtb \ > at91sam9g15ek.dtb \ > at91sam9g25ek.dtb \ > diff --git a/arch/arm/boot/dts/at91-kizboxmini-mb.dts b/arch/arm/boot/dts= /at91-kizboxmini-mb.dts > new file mode 100644 > index 000000000000..52921f547dd6 > --- /dev/null > +++ b/arch/arm/boot/dts/at91-kizboxmini-mb.dts > @@ -0,0 +1,38 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (C) 2015-2018 Overkiz SAS > + * Author: Mickael Gardet > + * K=E9vin Raymond > + */ > +/dts-v1/; > +#include "at91-kizboxmini_common.dtsi" > + > +/ { > + model =3D "Overkiz Kizbox Mini Mother Board"; > + compatible =3D "overkiz,kizboxmini-mb", "atmel,at91sam9g25", > + "atmel,at91sam9x5", "atmel,at91sam9"; > + > + clocks { > + slow_xtal { Don't use '_' in node names. > + clock-frequency =3D <32768>; > + }; > + }; > + > + pwm_leds { > + blue { > + label =3D "pwm:blue:user"; > + pwms =3D <&pwm0 2 10000000 0>; > + max-brightness =3D <255>; > + linux,default-trigger =3D "none"; > + }; > + }; > +}; > + > +&usb0 { > + num-ports =3D <2>; > +}; > + > +&rtc { > + status =3D "okay"; > +}; > + > diff --git a/arch/arm/boot/dts/at91-kizboxmini-rd.dts b/arch/arm/boot/dts= /at91-kizboxmini-rd.dts > new file mode 100644 > index 000000000000..1d2db8e16271 > --- /dev/null > +++ b/arch/arm/boot/dts/at91-kizboxmini-rd.dts > @@ -0,0 +1,54 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (C) 2015-2018 Overkiz SAS > + * Author: Mickael Gardet > + * K=E9vin Raymond > + */ > +/dts-v1/; > +#include "at91-kizboxmini_common.dtsi" > + > +/ { > + model =3D "Overkiz Kizbox Mini RailDIN"; > + compatible =3D "overkiz,kizboxmini-rd", "atmel,at91sam9g25", > + "atmel,at91sam9x5", "atmel,at91sam9"; > + > + clocks { > + slow_xtal { > + clock-frequency =3D <32768>; > + }; > + adc_op_clk { > + status =3D "okay"; > + }; > + }; > +}; > + > +&pinctrl { > + adc0 { > + pinctrl_adc0_ad5: adc0_ad5-0 { > + /* pull-up disable */ > + atmel,pins =3D ; > + }; > + }; > +}; > + > +&usart0 { > + status =3D "disabled"; > +}; > + > +&rtc { > + status =3D "okay"; > +}; > + > +&leds { > + blue { > + status =3D "okay"; > + }; > +}; > + > +&adc0 { > + atmel,adc-vref =3D <2500>; > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&pinctrl_adc0_ad5>; > + atmel,adc-channels-used =3D <0x0020>; > + status =3D "okay"; > +}; > diff --git a/arch/arm/boot/dts/at91-kizboxmini_common.dtsi b/arch/arm/boo= t/dts/at91-kizboxmini_common.dtsi > new file mode 100644 > index 000000000000..2598b776a278 > --- /dev/null > +++ b/arch/arm/boot/dts/at91-kizboxmini_common.dtsi > @@ -0,0 +1,166 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * at91-kizboxmini.dts - Device Tree file for Overkiz Kizbox mini board > + * > + * Copyright (C) 2014-2018 Overkiz SAS > + * Author: Antoine Aubert > + * Ga=EBl Portay > + * K=E9vin Raymond > + * Dorian Rocipon > + */ > +#include "at91sam9g25.dtsi" > + > +/ { > + chosen { > + bootargs =3D "ubi.mtd=3Dubi"; > + stdout-path =3D &dbgu; > + }; > + > + memory { memory@20000000 Build your dtb with W=3D12 and fix any new warnings (feel free to fix = existing ones too :) ). > + reg =3D <0x20000000 0x8000000>; > + }; > + > + clocks { > + main_xtal { > + clock-frequency =3D <12000000>; > + }; > + > + adc_op_clk { > + status =3D "disabled"; > + }; > + }; > + > + gpio_keys { > + compatible =3D "gpio-keys"; > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + prog { > + label =3D "PB_PROG"; > + gpios =3D <&pioC 17 GPIO_ACTIVE_LOW>; > + linux,code =3D <0x102>; > + wakeup-source; > + }; > + > + reset { > + label =3D "PB_RST"; > + gpios =3D <&pioC 16 GPIO_ACTIVE_LOW>; > + linux,code =3D <0x100>; > + wakeup-source; > + }; > + }; > + > + leds: pwm_leds { > + compatible =3D "pwm-leds"; > + > + blue { > + label =3D "pwm:blue:user"; > + pwms =3D <&pwm0 2 10000000 0>; > + max-brightness =3D <255>; > + linux,default-trigger =3D "none"; > + status =3D "disabled"; > + }; > + > + green { > + label =3D "pwm:green:user"; > + pwms =3D <&pwm0 0 10000000 0>; > + max-brightness =3D <255>; > + linux,default-trigger =3D "default-on"; > + }; > + > + red { > + label =3D "pwm:red:user"; > + pwms =3D <&pwm0 1 10000000 0>; > + max-brightness =3D <255>; > + linux,default-trigger =3D "default-on"; > + }; > + }; > +}; > + > +&usart0 { > + atmel,use-dma-rx; > + atmel,use-dma-tx; > + status =3D "okay"; > +}; > + > +&macb0 { > + phy-mode =3D "rmii"; > + status =3D "okay"; > +}; > + > +&pwm0 { > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&pinctrl_pwm0_pwm0_1 > + &pinctrl_pwm0_pwm1_1 > + &pinctrl_pwm0_pwm2_1>; > + status =3D "okay"; > +}; > + > +&dbgu { > + status =3D "okay"; > +}; > + > +&watchdog { > + status =3D "okay"; > +}; > + > +&adc0 { > + status =3D "disabled"; > +}; > + > +&rtc { > + status =3D "disabled"; > +}; > + > +&ebi { > + pinctrl-0 =3D <&pinctrl_ebi_addr_nand > + &pinctrl_ebi_data_0_7>; > + pinctrl-names =3D "default"; > + status =3D "okay"; > +}; > + > +&nand_controller { > + status =3D "okay"; > + pinctrl-0 =3D <&pinctrl_nand_oe_we > + &pinctrl_nand_cs > + &pinctrl_nand_rb>; > + pinctrl-names =3D "default"; > + > + nand@3 { > + reg =3D <0x3 0x0 0x800000>; > + rb-gpios =3D <&pioD 5 GPIO_ACTIVE_HIGH>; > + cs-gpios =3D <&pioD 4 GPIO_ACTIVE_HIGH>; > + nand-bus-width =3D <8>; > + nand-ecc-mode =3D "hw"; > + nand-ecc-strength =3D <4>; > + nand-ecc-step-size =3D <512>; > + nand-on-flash-bbt; > + label =3D "atmel_nand"; > + > + partitions { > + compatible =3D "fixed-partitions"; > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + > + bootstrap@0 { > + label =3D "bootstrap"; > + reg =3D <0x0 0x20000>; > + }; > + > + ubi@20000 { > + label =3D "ubi"; > + reg =3D <0x20000 0x7fe0000>; > + }; > + }; > + }; > +}; > + > +&usb0 { > + num-ports =3D <1>; > + status =3D "okay"; > +}; > + > +&usb1 { > + status =3D "okay"; > +}; > + > -- = > 2.23.0 > = _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel