From patchwork Thu Apr 18 08:35:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 226 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id CC24040B29 for ; Thu, 18 Apr 2019 10:36:05 +0200 (CEST) Received: by mail-pg1-f198.google.com with SMTP id h14sf927892pgn.23 for ; Thu, 18 Apr 2019 01:36:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1555576563; cv=pass; d=google.com; s=arc-20160816; b=d1aKUekWrxqyMYAPteAVqdBis7t+AdborQUYbF9D/2Gwc4gYMWaOi1FgZQ4S0TeDd4 jwV53QXWNLA2S5MclPp2ol09MDjYFR2U9Qn38Quk6NSQNHzWxq1mNZgkIYxJnHwJOOXU NFwAHT5SVSJWXc+9qVHMOWBTPFTezMeo8aofYzeuW0JkFSoVsCYDN08XmY6q/kdLCb60 S8XK0CLHU+H2Uyb108Jx4G+3nIXZjeCGIblszASszTc/ORnlKFOjIkrVId7wOYyzQ/dZ yyYE0LMv+2YNrByruslMIGx5tC+ZHyWx++6tM8WUhRmEKrkMFMeA2LjVp85DqsaVtEMa 8J4w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=e1YlcPDhEVFgK1U5vWk9VCNLVfqaik4/KYhBk8HMzto=; b=xfkoHGCP7l6ZI+sfVtbs/x9/13XmBkBckmm0/A/EODHJUrxvk8RXTR0XnfZdztPnac moOo7OLPG87iHRjKlaFvTegqNkmyeH5AxqgpkAYeW/7qYaxKqar/xbZ5zpqlpX2UWD2P +1ucsD1Oepie/4WZOypeShU8SK2pfEJ4ZlnEDY1jTmReXZ+lh0FTzJuXG60ofIEL96Rw lRElGvUiuFuPtj9o8BU5G5vBIlbBctopsMkDfqjjcekuHEM6Lpb2xMq/clDB0CtOBl/H vfEn5VfPTLAM0PLRn0fFDiFNlbJ3qnYtr5bxJtgYbuhkg2TZfzhl1AgpJGCxTvVuAhgp CAEg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LSbJ75ez; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=e1YlcPDhEVFgK1U5vWk9VCNLVfqaik4/KYhBk8HMzto=; b=SnELDWCnfXx9Y7BL9Mp9RwIU9vvaNQHPUK2725tYHh76FEC8naAcYDZPVM0m2z18r5 CglU44l+xaFVPpTdWuB5aoHj+m5uZHwkhAtVbOI/nqmTCmu7duv4XoBpEHGy7ErIhkAJ VQ9w2tyoqRG9JYSwkN6ZS1K7oVhf2UgsVB2V8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=e1YlcPDhEVFgK1U5vWk9VCNLVfqaik4/KYhBk8HMzto=; b=dLzaBGXzoLv/kUqsN5U4kI/R76Sflf2q8AYDWGS5wscw/s16rZbXHPLkQDJJHpT87z Fad9JtAxund3Ua2NFk9KADndWxCD451Gm9IOQCaH8TnFbkHqSJhezzsZ8F+OQCITo8Jg RePTN2mt7poc7eZ7bXMUEGpX/2iE8E3P5EEnVTNmyak1dhrknlIW5GSYDAdYZq69Hqun 47vxF+AGcsTu3Udv9OwcXn0C2fYs1wBj/nuwcI/7QdJwwY+a5JG1cI1X6kvA6m4NbqWI SIYZwyZXYuolPitbot17bXreJC+sd5EHfb6VB+kb/09lfUMM3fOJL+yufIv7zo6L/6PQ 0sLg== X-Gm-Message-State: APjAAAWo5NILJ5TZ7tnY78QuZ3smE8EiauefQC9KHGXq8TMZ+UqCkqih zkDstt1M6TqNcS8LmIZwQImYIa/d X-Google-Smtp-Source: APXvYqx71cUDG7US+kMHLxGYtfmKJ6Tnp0g4ef0xm5s8looYx6i+plYCOwJBQHS9zsZqy5hMDz7orw== X-Received: by 2002:a63:1a1b:: with SMTP id a27mr86344932pga.59.1555576560440; Thu, 18 Apr 2019 01:36:00 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:6f8a:: with SMTP id k132ls508282pfc.3.gmail; Thu, 18 Apr 2019 01:36:00 -0700 (PDT) X-Received: by 2002:a63:5c56:: with SMTP id n22mr75827318pgm.108.1555576560051; Thu, 18 Apr 2019 01:36:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555576560; cv=none; d=google.com; s=arc-20160816; b=Kg17une+z88dFXnMpu4ufr/QqGwlnEHhe3eSUCqombWveW0Y4dHWZjbe0+m9cLdkzY f+drKJioIXCS2H67U7MDkeAhB/Qu9f6IBYzugmS04iim0Vz9U3TleQ65Hzr7FeK5fHDn 2akMHsr5/JDeC7YoY/dRiGqkJ/llmUbjAfqQ9OtIR2P8gTTWhgMesgR4VuId1n5kJiDb cIOpdPbRl1TuGQNwbqrC0hV7zqobAk23AelOU2qSkTHZuFZ6Cq64mUUt8gVRLxdTOKZF yQUg+OdcxR6mpfCgtGhFokz0mUfg5NtySILhPNCkIv0YA+kNj0/sOwmMliVT6YgR7Rhc xOiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=6qV3KxK0aW64iJSBNcMR5tp9F6Bs2X4FIoa5U3lna/o=; b=SJfUJuUA3mISjmRlXug33sfrsy7FWKnuV3skgQV9ZLv1Igs4m24dgjCc7uYcVPlMEs S2f1a61HM1ThYNjvjFaHvEH6Ai3DIOcIIuCeFAI9v9BhYUIRQip7LgghE7GNBiIjfbBt EmoHaNI/qr+ZWm5+5Zrc8N4xffBOnlKPTeVU3vhoii+GNSPpxKl3t1PETMhKyMLwglYC IIgWc/9QHj8o3EkBrhnTnE4bQPnFZf77dlfENg4El1Pc7fvkUzhb5lorNXAzp8A4UuKX wpJvXU1CysF7ZI8zjNAYq49fuvpJ1ky+9q1SLWoHMlMYyNAO0uX0JKWHL6ZhRrFb1Ud+ K5hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LSbJ75ez; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id d12sor1424900pla.26.2019.04.18.01.35.58 for (Google Transport Security); Thu, 18 Apr 2019 01:35:58 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:5c5:: with SMTP id f63mr4612220plf.327.1555576557680; Thu, 18 Apr 2019 01:35:57 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id s12sm3166255pgc.28.2019.04.18.01.35.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Apr 2019 01:35:56 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Rob Herring , Mark Rutland Cc: Michael Trimarchi , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 1/2] arm64: dts: allwinner: a64-amarula-relic: Add GT5663 CTP node Date: Thu, 18 Apr 2019 14:05:42 +0530 Message-Id: <20190418083543.11695-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LSbJ75ez; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add Goodix GT5663 capacitive touch controller node on Amarula A64-Relic board. The CTP connected to board with, - SDA, SCK from i2c1 - GPIO-LD0 as AVDD28 supply - PH4 gpio as interrupt pin - PH8 gpio as reset pin - X axis is inverted - Y axis is inverted Signed-off-by: Jagan Teki --- Changes for v2: - drop i2c1, bias-pull-up .../allwinner/sun50i-a64-amarula-relic.dts | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts index 3575db216016..3819ce396073 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts @@ -49,6 +49,24 @@ bias-pull-up; }; +&i2c1 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins>; + status = "okay"; + + touchscreen@5d { + compatible = "goodix,gt5663"; + reg = <0x5d>; + AVDD28-supply = <®_ldo_io0>; /* VCC-CTP: GPIO0-LDO */ + interrupt-parent = <&pio>; + interrupts = <7 4 IRQ_TYPE_EDGE_FALLING>; + irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* CTP-INT: PH4 */ + reset-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* CTP-RST: PH8 */ + touchscreen-inverted-x; + touchscreen-inverted-y; + }; +}; + &mmc1 { pinctrl-names = "default"; pinctrl-0 = <&mmc1_pins>; @@ -212,6 +230,13 @@ regulator-name = "vdd-cpus"; }; +®_ldo_io0 { + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-ctp"; + status = "okay"; +}; + ®_rtc_ldo { regulator-name = "vcc-rtc"; };