Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1336183

[PATCH v2 3/3] ARM: dts: use syscon in cygnus touchscreen dt node

From Raveendra Padasalagi <raveendra.padasalagi@broadcom.com>
Newsgroups linux.kernel
Subject [PATCH v2 3/3] ARM: dts: use syscon in cygnus touchscreen dt node
Date 2016-02-17 10:50 +0100
Message-ID <r36Ua-4uj-23@gated-at.bofh.it> (permalink)
References <r36U9-4uj-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


In Cygnus SOC touch screen controller registers are shared
with ADC and flex timer. Using readl/writel could lead to
race condition. So in such case register access is handled
through syscon framework API's in the touch screen driver.
This feature is enabled if "brcm,iproc-touchscreen-syscon"
compatible string is selected in touchscreen dt node.

So this patch enables syscon support in touchscreen driver
by adding necessary properties in touchscreen dt node.

Signed-off-by: Raveendra Padasalagi <raveendra.padasalagi@broadcom.com>
Reviewed-by: Ray Jui <ray.jui@broadcom.com>
Reviewed-by: Scott Branden <scott.branden@broadcom.com>
---
 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..79678c1 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>;
 		};
 
+		ts_adc_syscon: ts_adc_syscon@0x180a6000 {
+			compatible = "syscon";
+			reg = <0x180a6000 0xc30>;
+		};
+
 		touchscreen: tsc@180a6000 {
-			compatible = "brcm,iproc-touchscreen";
-			reg = <0x180a6000 0x40>;
+			compatible = "brcm,iproc-touchscreen-syscon";
+			#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

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/3] Syscon support for iProc touchscreen driver Raveendra Padasalagi <raveendra.padasalagi@broadcom.com> - 2016-02-17 10:50 +0100
  [PATCH v2 1/3] input: cygnus-update touchscreen dt node document Raveendra Padasalagi <raveendra.padasalagi@broadcom.com> - 2016-02-17 10:50 +0100
    Re: [PATCH v2 1/3] input: cygnus-update touchscreen dt node document Rob Herring <robh@kernel.org> - 2016-02-18 15:40 +0100
      Re: [PATCH v2 1/3] input: cygnus-update touchscreen dt node document Raveendra Padasalagi <raveendra.padasalagi@broadcom.com> - 2016-02-19 07:20 +0100
        Re: [PATCH v2 1/3] input: cygnus-update touchscreen dt node document Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-02-22 20:40 +0100
          Re: [PATCH v2 1/3] input: cygnus-update touchscreen dt node document Ray Jui <ray.jui@broadcom.com> - 2016-02-22 20:50 +0100
          Re: [PATCH v2 1/3] input: cygnus-update touchscreen dt node document Scott Branden <scott.branden@broadcom.com> - 2016-02-22 20:50 +0100
  [PATCH v2 3/3] ARM: dts: use syscon in cygnus touchscreen dt node Raveendra Padasalagi <raveendra.padasalagi@broadcom.com> - 2016-02-17 10:50 +0100

csiph-web