[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180611153758.GH10521@piout.net>
Date: Mon, 11 Jun 2018 17:37:58 +0200
From: Alexandre Belloni <alexandre.belloni@...tlin.com>
To: Radu Pirea <radu.pirea@...rochip.com>
Cc: broonie@...nel.org, nicolas.ferre@...rochip.com,
lee.jones@...aro.org, richard.genoud@...il.com, robh+dt@...nel.org,
mark.rutland@....com, gregkh@...uxfoundation.org,
linux-spi@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org,
linux-serial@...r.kernel.org
Subject: Re: [PATCH v6 2/6] dt-bindings: add binding for atmel-usart in SPI
mode
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 <radu.pirea@...rochip.com>
> + *
> + */
> +
> +#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
Powered by blists - more mailing lists