Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4326388ybg; Tue, 29 Oct 2019 05:36:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/gl7dRVykIICTxln+X0v4FOh2zbMJWyQlkkh0rR03kADXaJyF9rlRoX2E4Rh0PHBP6kOg X-Received: by 2002:aa7:cd59:: with SMTP id v25mr4094066edw.26.1572352574630; Tue, 29 Oct 2019 05:36:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572352574; cv=none; d=google.com; s=arc-20160816; b=pqgwZsUJzuY/CBz+8sE1N3W/avXIkaPMNmpH/tWbWsWwts1YHsaTItq7E8NHbTkzfK zK7519BKPayKTeNUH7IM3VpxzJ03fUgbw7RAyRcaeRPUgNKSL+MYmMI3IqkOH6VUnwEF inTnN870vXGuYK48CXYgh6VZDRaNlNZD1+Ap8nM6xI8RbCvqTOBaxN3rizKc+xs2pGFw o5RgCRsuNl5+eLOYdOrm5ZiPQJy139sHbSifJN9J8hO2yaD/tNJ11Lgu4mL09GV1GcFJ bV5e2r1w+76fWYHOkL/FPGr/Qypn4T8w1zMSmvLxTbDRYR0Riqhiy8xf2kcPCC3dzWo5 pU0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=NuGvNr5d2i3rf51wx85q7m6lDMmKS60m3xzeENQ/V5I=; b=k8OZ+qY0lZqUGUWedgm8cJAV92EZWCuShKvHVXKjvy3u473ndt98xJ6fbx4Q3cpoXg sml6A16HlOmFAC6S/c8ejHICHTVvYPEnuiE8g0fuzhPyaQnebcnCcwCZHb0O7oSldftN I6F4R53XfZeRkVTn3WXut2wpgKvokzy1reOdEvJr6FdTjOnkvGmS5lqceGNUoUuIM6QF URm3vQii8lmYnU/GL9RMc3lwAd+uKDbrR97yBKRoM+LficXjDJXxHCz/A4APYRR3qIfR HPufbgOdkUPpb7ii4Kjk5JyA6VDUDOibBMgyBCFJQObISpk8sDcdrFQvDF/TbjClzKek CLlA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f54si9500202edb.255.2019.10.29.05.35.50; Tue, 29 Oct 2019 05:36:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727121AbfJ2Mea (ORCPT + 99 others); Tue, 29 Oct 2019 08:34:30 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:42875 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726048AbfJ2Mea (ORCPT ); Tue, 29 Oct 2019 08:34:30 -0400 Received: by mail-oi1-f195.google.com with SMTP id i185so8748378oif.9; 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=doZ0rvRets4olFvKXpxlrrCVVS6rlQGsqLhi7kHXnuKqN2dDM1xlqxRqAQG5/H2zUK 8L8Dt7opLT+tNm2qCYqw1aIA1/cC5eZqURUHgOJqZEL/gIJuZv6w9w2dmYBmxyKKfGUM BUHE1k5vX3lMkg2saTKSHJBRamiZCKy7l3aY+4UOX3450sD2Qs5zS+GiyWdTW0iI3Nxe gXuZWB+atLLB72aeS3a63atHXApooozaw9TNVH4RgJnrZzrtzE8tEwfh/fcygJ9SxVL/ EI8SI6Kh2tgKE7hiiS3k4y6KRmOYFfi51Ebc9pA0KBJ1kBqCIMMm9pubmqcYSShL4bbl 3V1w== X-Gm-Message-State: APjAAAUbCH0aaViVn+BvC/G5gJW98QZodOFA6EGzzlfP9M3UVHPI8Mum laiZvDaG/FVWW3DVKny3fA== 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 Cc: Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , linux-arm-kernel@lists.infradead.org, Thomas Petazzoni , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?iso-8859-1?Q?K=E9vin?= RAYMOND , Mickael GARDET 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-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191018140304.31547-3-kamel.bouhara@bootlin.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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?vin 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) += \ > 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?vin Raymond > + */ > +/dts-v1/; > +#include "at91-kizboxmini_common.dtsi" > + > +/ { > + model = "Overkiz Kizbox Mini Mother Board"; > + compatible = "overkiz,kizboxmini-mb", "atmel,at91sam9g25", > + "atmel,at91sam9x5", "atmel,at91sam9"; > + > + clocks { > + slow_xtal { Don't use '_' in node names. > + clock-frequency = <32768>; > + }; > + }; > + > + pwm_leds { > + blue { > + label = "pwm:blue:user"; > + pwms = <&pwm0 2 10000000 0>; > + max-brightness = <255>; > + linux,default-trigger = "none"; > + }; > + }; > +}; > + > +&usb0 { > + num-ports = <2>; > +}; > + > +&rtc { > + status = "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?vin Raymond > + */ > +/dts-v1/; > +#include "at91-kizboxmini_common.dtsi" > + > +/ { > + model = "Overkiz Kizbox Mini RailDIN"; > + compatible = "overkiz,kizboxmini-rd", "atmel,at91sam9g25", > + "atmel,at91sam9x5", "atmel,at91sam9"; > + > + clocks { > + slow_xtal { > + clock-frequency = <32768>; > + }; > + adc_op_clk { > + status = "okay"; > + }; > + }; > +}; > + > +&pinctrl { > + adc0 { > + pinctrl_adc0_ad5: adc0_ad5-0 { > + /* pull-up disable */ > + atmel,pins = ; > + }; > + }; > +}; > + > +&usart0 { > + status = "disabled"; > +}; > + > +&rtc { > + status = "okay"; > +}; > + > +&leds { > + blue { > + status = "okay"; > + }; > +}; > + > +&adc0 { > + atmel,adc-vref = <2500>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_adc0_ad5>; > + atmel,adc-channels-used = <0x0020>; > + status = "okay"; > +}; > diff --git a/arch/arm/boot/dts/at91-kizboxmini_common.dtsi b/arch/arm/boot/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?l Portay > + * K?vin Raymond > + * Dorian Rocipon > + */ > +#include "at91sam9g25.dtsi" > + > +/ { > + chosen { > + bootargs = "ubi.mtd=ubi"; > + stdout-path = &dbgu; > + }; > + > + memory { memory@20000000 Build your dtb with W=12 and fix any new warnings (feel free to fix existing ones too :) ). > + reg = <0x20000000 0x8000000>; > + }; > + > + clocks { > + main_xtal { > + clock-frequency = <12000000>; > + }; > + > + adc_op_clk { > + status = "disabled"; > + }; > + }; > + > + gpio_keys { > + compatible = "gpio-keys"; > + #address-cells = <1>; > + #size-cells = <0>; > + > + prog { > + label = "PB_PROG"; > + gpios = <&pioC 17 GPIO_ACTIVE_LOW>; > + linux,code = <0x102>; > + wakeup-source; > + }; > + > + reset { > + label = "PB_RST"; > + gpios = <&pioC 16 GPIO_ACTIVE_LOW>; > + linux,code = <0x100>; > + wakeup-source; > + }; > + }; > + > + leds: pwm_leds { > + compatible = "pwm-leds"; > + > + blue { > + label = "pwm:blue:user"; > + pwms = <&pwm0 2 10000000 0>; > + max-brightness = <255>; > + linux,default-trigger = "none"; > + status = "disabled"; > + }; > + > + green { > + label = "pwm:green:user"; > + pwms = <&pwm0 0 10000000 0>; > + max-brightness = <255>; > + linux,default-trigger = "default-on"; > + }; > + > + red { > + label = "pwm:red:user"; > + pwms = <&pwm0 1 10000000 0>; > + max-brightness = <255>; > + linux,default-trigger = "default-on"; > + }; > + }; > +}; > + > +&usart0 { > + atmel,use-dma-rx; > + atmel,use-dma-tx; > + status = "okay"; > +}; > + > +&macb0 { > + phy-mode = "rmii"; > + status = "okay"; > +}; > + > +&pwm0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_pwm0_pwm0_1 > + &pinctrl_pwm0_pwm1_1 > + &pinctrl_pwm0_pwm2_1>; > + status = "okay"; > +}; > + > +&dbgu { > + status = "okay"; > +}; > + > +&watchdog { > + status = "okay"; > +}; > + > +&adc0 { > + status = "disabled"; > +}; > + > +&rtc { > + status = "disabled"; > +}; > + > +&ebi { > + pinctrl-0 = <&pinctrl_ebi_addr_nand > + &pinctrl_ebi_data_0_7>; > + pinctrl-names = "default"; > + status = "okay"; > +}; > + > +&nand_controller { > + status = "okay"; > + pinctrl-0 = <&pinctrl_nand_oe_we > + &pinctrl_nand_cs > + &pinctrl_nand_rb>; > + pinctrl-names = "default"; > + > + nand@3 { > + reg = <0x3 0x0 0x800000>; > + rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>; > + cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>; > + nand-bus-width = <8>; > + nand-ecc-mode = "hw"; > + nand-ecc-strength = <4>; > + nand-ecc-step-size = <512>; > + nand-on-flash-bbt; > + label = "atmel_nand"; > + > + partitions { > + compatible = "fixed-partitions"; > + #address-cells = <1>; > + #size-cells = <1>; > + > + bootstrap@0 { > + label = "bootstrap"; > + reg = <0x0 0x20000>; > + }; > + > + ubi@20000 { > + label = "ubi"; > + reg = <0x20000 0x7fe0000>; > + }; > + }; > + }; > +}; > + > +&usb0 { > + num-ports = <1>; > + status = "okay"; > +}; > + > +&usb1 { > + status = "okay"; > +}; > + > -- > 2.23.0 >