[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1409412988.93020165@f362.i.mail.ru>
Date: Sat, 30 Aug 2014 19:36:28 +0400
From: Alexander Shiyan <shc_work@...l.ru>
To: Philippe Reynes <tremyfr@...il.com>
Cc: kernel@...gutronix.de, shawn.guo@...escale.com,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
devicetree@...r.kernel.org
Subject: Re: [PATCH] apf27dev: add max1027 in the dts
Sat, 30 Aug 2014 15:22:12 +0200 от Philippe Reynes <tremyfr@...il.com>:
>
> Signed-off-by: Philippe Reynes <tremyfr@...il.com>
> ---
> arch/arm/boot/dts/imx27-apf27dev.dts | 20 ++++++++++++++++++++
> 1 files changed, 20 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/boot/dts/imx27-apf27dev.dts b/arch/arm/boot/dts/imx27-apf27dev.dts
> index b982309..25b9ecd 100644
> --- a/arch/arm/boot/dts/imx27-apf27dev.dts
> +++ b/arch/arm/boot/dts/imx27-apf27dev.dts
> @@ -82,6 +82,19 @@
> pinctrl-names = "default";
> pinctrl-0 = <&pinctrl_cspi1 &pinctrl_cspi1_cs>;
> status = "okay";
> +
> + adc@0 {
> + compatible = "maxim,max1027";
> + reg = <0>;
> + interrupt-parent = <&gpio5>;
> + interrupts = <15 IRQ_TYPE_EDGE_FALLING>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_max1027>;
> + /* SPI mode = 0 */
> + spi-cpol = <0>;
> + spi-cpha = <0>;
Mode0 is default.
Afaik you not need to specify SPOL & SPHA for this. Is not it?
---
Powered by blists - more mailing lists