Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1725210imm; Thu, 14 Jun 2018 02:51:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ3y2xq7LX+q8uIu72uoOO02hiAAuUZBfF+eCOaFnF+0guGcvj6ztvAR8txFSl8T/Lh0Xtd X-Received: by 2002:a65:6645:: with SMTP id z5-v6mr1714912pgv.43.1528969896155; Thu, 14 Jun 2018 02:51:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528969896; cv=none; d=google.com; s=arc-20160816; b=Ky5tFxqMXid6R+j07I8n17TM7yINrIShybheceyiTYr5/XcnqU/KU57oDddy9CqoHe YeEA3zPciunulpWo9RInMyMn6Ta6vDUGy+kjQ8aNUK6Rm9HUfN5svgvJhcmfUlV4EWPP Zs8+J1UJEy23GxyLjWRkMyDIoebtzik+prDBn/pyyLyPUG2yWR9A3uEymHpZBpR/EPF0 rD8H4r2QddM6s8OVFi/pSG1uO6s6JCFLSWZ8dYt1Ub0gzJs+/78RExOvr3y/vuuwkwSa N5WjRF2NcbHH+YVjV1GC2EHPFRh9l0mhl6xVacwaSeE7jI/W16l4sOrB5LIfaU9PllJ1 m9MA== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Ywe9kXVZlDhO/Y6AyYHEsQ8DhWJ6vWYYxaE+xiZ/i/g=; b=CBZzeZVPGUpIOVovZEbm1Ku9YvLBpSCSsxzad8+neVwPbIbYxhx1FvqaeB8fi148UF dsipFxOYNfuF3T541JLsINfhWw/pYTtZ9x3KGj++g6zJqethlG63GxpOmHdOooJ2BkLe s7oFlAHFzD3oL9ciwu0PU26+8gOg8po9kO8ugtzT8y++5GXy0siVOEyfHuWFHFIggm68 ai6W9XWaevB3mwHoVuUqZk/S2xnIVs1eiR20YptWnSPTjuZQXKFk072a2AivilGDVk9t 81M3rHmFNGpqfi6Gn9cIg4GfobwNoK5gnPtUT5p7uKoopy7qpcK7TSgF/IIDGRuvhat1 8LXg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10-v6si4963111plh.306.2018.06.14.02.51.21; Thu, 14 Jun 2018 02:51:36 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754903AbeFNJuy (ORCPT + 99 others); Thu, 14 Jun 2018 05:50:54 -0400 Received: from mail.bootlin.com ([62.4.15.54]:45041 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754636AbeFNJux (ORCPT ); Thu, 14 Jun 2018 05:50:53 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 8B24A207BD; Thu, 14 Jun 2018 11:50:51 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [37.170.129.148]) by mail.bootlin.com (Postfix) with ESMTPSA id 49681206A6; Thu, 14 Jun 2018 11:50:41 +0200 (CEST) Date: Thu, 14 Jun 2018 11:50:41 +0200 From: Alexandre Belloni To: Ben Whitten , Nicolas Ferre Cc: devicetree@vger.kernel.org, Ben Whitten , Rob Herring , Mark Rutland , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 2/4] arm: dts: add support for Laird WB50N cpu module and DVK Message-ID: <20180614095041.GW10521@piout.net> References: <1528966340-23216-1-git-send-email-ben.whitten@lairdtech.com> <1528966340-23216-2-git-send-email-ben.whitten@lairdtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1528966340-23216-2-git-send-email-ben.whitten@lairdtech.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/06/2018 09:51:55+0100, Ben Whitten wrote: > Signed-off-by: Ben Whitten > --- > arch/arm/boot/dts/Makefile | 3 +- > arch/arm/boot/dts/at91-wb50n.dts | 116 ++++++++++++++++++++++ > arch/arm/boot/dts/at91-wb50n.dtsi | 202 ++++++++++++++++++++++++++++++++++++++ > 3 files changed, 320 insertions(+), 1 deletion(-) > create mode 100644 arch/arm/boot/dts/at91-wb50n.dts > create mode 100644 arch/arm/boot/dts/at91-wb50n.dtsi > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index 1ee94ee..fd5f8a6 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -61,7 +61,8 @@ dtb-$(CONFIG_SOC_SAM_V7) += \ > at91-sama5d4_ma5d4evk.dtb \ > at91-sama5d4_xplained.dtb \ > at91-sama5d4ek.dtb \ > - at91-vinco.dtb > + at91-vinco.dtb \ > + at91-wb50n.dtb I know we have been bad at this but this should be at91--.dtb so at91-sama5d31-wb50n.dtb > dtb-$(CONFIG_ARCH_ATLAS6) += \ > atlas6-evb.dtb > dtb-$(CONFIG_ARCH_ATLAS7) += \ > diff --git a/arch/arm/boot/dts/at91-wb50n.dts b/arch/arm/boot/dts/at91-wb50n.dts > new file mode 100644 > index 0000000..ee4f823 > --- /dev/null > +++ b/arch/arm/boot/dts/at91-wb50n.dts > @@ -0,0 +1,116 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * at91-wb50n.dts - Device Tree file for wb50n evaluation board > + * > + * Copyright (C) 2018 Laird > + * > + */ > + > +/dts-v1/; > +#include "at91-wb50n.dtsi" > + > +/ { > + model = "Laird Workgroup Bridge 50N - Atmel SAMA5D"; > + compatible = "laird,wb50n", "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5"; > + > + ahb { > + apb { > + watchdog@fffffe40 { I don't mind if you want to have a preparation patch adding the necessary labels in the soc dtsi so you don't have to reproduce the ahb/apb hierarchy here. > + ahb { > + apb { > + pinctrl@fffff200 { Ditto > + board { > + pinctrl_mmc0_cd: mmc0_cd { > + atmel,pins = ; /* PC26 GPIO with pullup deglitch */ > + }; > + > + pinctrl_usba_vbus: usba_vbus { > + atmel,pins = ; /* PB13 GPIO with deglitch */ > + }; > + }; > + }; > + }; > + }; > +}; > + > +&slow_osc { > + atmel,osc-bypass; > +}; After the clock binding rework, this will have to be moved to the pmc node (the rework is not posted, this is just to remind me that this will have to be done). > + > +&usart1_clk { > + atmel,clk-output-range = <0 132000000>; > +}; The datasheet explicitly states that 66 MHz is the maximum allowed frequency for the USART. Note that the new binding will not allow you to do that. However, I see the table disappeared from the latest datasheet. Maybe Nicolas can comment on that? -- Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com