Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4210996imm; Mon, 11 Jun 2018 08:40:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJwfMAeM3g+vS5EvYfJcGDwgCd6RbjEy8AoV3gCa0abpfhKRV5JA7cQao+K1Vunxj2Jf17T X-Received: by 2002:a17:902:6105:: with SMTP id t5-v6mr19229687plj.138.1528731619141; Mon, 11 Jun 2018 08:40:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528731619; cv=none; d=google.com; s=arc-20160816; b=FiivPBnbhDfN04xweUSlBj9E1+b7BeWnAUhsTpGQEiHblNV/8VZWt0Bt4C+wf4zUSe GN8aw4VhfKyp7iXZ1TvJNUjSYA2P47Zqu8tvlmtQM5TBc3HR25LanXlxyL/EjnFPbrWH zSLZRULo195OIr6nAv08xPYnvcnQV7xi8P5g4H/41sNJX/HZt+AT8aLkphB+UFL+ZItU cLcura4XW5bIPpJOyRCJpaVG8HN5A69vPwDUoQhH+cqvWJqYJBjitZzrs8sr0QHvCtrz 53p0fo2uWZnnCaGJthwMXg5qQ38rLvtM2HhrpcxJFlgyibI2wmXI0SxwV/4B7+r8eUf3 Cm0g== 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=02TnwKeHo6JqpW4JRxhJlAiKUZM0S4J9ZJr2rUuZgjA=; b=0i89bKcL0p6hnObtanxrRpkv9QniRPV/ubmsOZEqwAZKWODf4muitFt8UDzH29GrFX /q+XXvnmVX5jOyGOtA3D7dRsecZm5i5Gcas5GZ9IcNlcPpxDiRRQvJq/LJU2FI0azXFq /Kxsxfgx8m7G7zbS1yKRlIXElWoxzBDuXbv6ZxT64qiwEhSfhZ3ca5OjTnWnUGpywFzJ LwkIyVHMgK9om8Pza1LULDoW1BiXVxrpLlOjZTsbmQYZEa9QwhblH1Q26VN0hhU3FTkz vX/ddE37JAS8R4+Dyx+ZCYN9xKRAAGZFlaJeJmGvMOsqEfjCMinE95VVI9igaSlKLQsc PVcA== 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 p80-v6si22345299pfa.180.2018.06.11.08.40.04; Mon, 11 Jun 2018 08:40:19 -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 S932932AbeFKPiQ (ORCPT + 99 others); Mon, 11 Jun 2018 11:38:16 -0400 Received: from mail.bootlin.com ([62.4.15.54]:55292 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932433AbeFKPiO (ORCPT ); Mon, 11 Jun 2018 11:38:14 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 82A7F20702; Mon, 11 Jun 2018 17:38:12 +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 (242.171.71.37.rev.sfr.net [37.71.171.242]) by mail.bootlin.com (Postfix) with ESMTPSA id 85FF6203D9; Mon, 11 Jun 2018 17:37:57 +0200 (CEST) Date: Mon, 11 Jun 2018 17:37:58 +0200 From: Alexandre Belloni To: Radu Pirea Cc: broonie@kernel.org, nicolas.ferre@microchip.com, lee.jones@linaro.org, richard.genoud@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, gregkh@linuxfoundation.org, linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH v6 2/6] dt-bindings: add binding for atmel-usart in SPI mode Message-ID: <20180611153758.GH10521@piout.net> References: <20180607110020.20565-1-radu.pirea@microchip.com> <20180607110020.20565-3-radu.pirea@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180607110020.20565-3-radu.pirea@microchip.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 Hi, On 07/06/2018 14:00:16+0300, Radu Pirea wrote: > diff --git a/include/dt-bindings/mfd/at91-usart.h b/include/dt-bindings/mfd/at91-usart.h > new file mode 100644 > index 000000000000..ac811628a42d > --- /dev/null > +++ b/include/dt-bindings/mfd/at91-usart.h > @@ -0,0 +1,17 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * This header provides macros for AT91 USART DT bindings. > + * > + * Copyright (C) 2018 Microchip Technology > + * > + * Author: Radu Pirea > + * > + */ > + > +#ifndef __DT_BINDINGS_AT91_USART_H__ > +#define __DT_BINDINGS_AT91_USART_H__ > + > +#define AT91_USART_MODE_SERIAL 1 > +#define AT91_USART_MODE_SPI 2 > + Nitpick, I'd make that 0 and 1 instead of 1 and 2. That would feel more natural to me regarding the default value. -- Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com