[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160406173140.GB38452@dtor-ws>
Date: Wed, 6 Apr 2016 10:31:40 -0700
From: Dmitry Torokhov <dmitry.torokhov@...il.com>
To: Raveendra Padasalagi <raveendra.padasalagi@...adcom.com>
Cc: Russell King <linux@....linux.org.uk>,
Rob Herring <robh+dt@...nel.org>,
Arnd Bergmann <arnd@...db.de>, devicetree@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-input@...r.kernel.org,
Pawel Moll <pawel.moll@....com>,
Mark Rutland <mark.rutland@....com>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
Kumar Gala <galak@...eaurora.org>,
Jonathan Richardson <jonathar@...adcom.com>,
Jon Mason <jonmason@...adcom.com>,
Florian Fainelli <f.fainelli@...il.com>,
Anup Patel <anup.patel@...adcom.com>,
Ray Jui <rjui@...adcom.com>,
Scott Branden <sbranden@...adcom.com>,
linux-kernel@...r.kernel.org, bcm-kernel-feedback-list@...adcom.com
Subject: Re: [PATCH v4 3/3] ARM: dts: use syscon in cygnus touchscreen dt node
On Sat, Feb 27, 2016 at 12:29:56PM +0530, Raveendra Padasalagi wrote:
> In Cygnus SOC touch screen controller registers are shared
> with ADC and flex timer. Using readl/writel could lead to
> race condition. So touchscreen driver is enhanced to support
> syscon based register access to take care of mutually exclusive
> access.
>
> This patch enables syscon support in touchscreen driver
> by adding necessary properties in touchscreen dt node and
> in addition to this renamed existing "tsc" touchscreen node
> name to "touchscreen".
>
> Signed-off-by: Raveendra Padasalagi <raveendra.padasalagi@...adcom.com>
> Reviewed-by: Ray Jui <ray.jui@...adcom.com>
> Reviewed-by: Scott Branden <scott.branden@...adcom.com>
OK, since the new dts is really needed for the driver I'll be folding
this into the touchscreen driver patch unless I hear someone yelling at
me.
Thanks!
> ---
> arch/arm/boot/dts/bcm-cygnus.dtsi | 11 +++++++++--
> 1 file changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi b/arch/arm/boot/dts/bcm-cygnus.dtsi
> index 3878793..b42fe55 100644
> --- a/arch/arm/boot/dts/bcm-cygnus.dtsi
> +++ b/arch/arm/boot/dts/bcm-cygnus.dtsi
> @@ -351,9 +351,16 @@
> <&pinctrl 142 10 1>;
> };
>
> - touchscreen: tsc@...a6000 {
> + ts_adc_syscon: ts_adc_syscon@...a6000 {
> + compatible = "brcm,iproc-ts-adc-syscon", "syscon";
> + reg = <0x180a6000 0xc30>;
> + };
> +
> + touchscreen: touchscreen@...a6000 {
> compatible = "brcm,iproc-touchscreen";
> - reg = <0x180a6000 0x40>;
> + #address-cells = <1>;
> + #size-cells = <1>;
> + ts_syscon = <&ts_adc_syscon>;
> clocks = <&asiu_clks BCM_CYGNUS_ASIU_ADC_CLK>;
> clock-names = "tsc_clk";
> interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
> --
> 1.9.1
>
--
Dmitry
Powered by blists - more mailing lists