From patchwork Thu Apr 18 17:47:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 237 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 48DF540B29 for ; Thu, 18 Apr 2019 19:47:37 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id g1sf1831149pfo.2 for ; Thu, 18 Apr 2019 10:47:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1555609655; cv=pass; d=google.com; s=arc-20160816; b=ahNFr0dfzkSlorBfrlNsXCfkMFHmyssKphNY6oEKgJg+7l28fqHO033/JwiwBr50dp fuCJF2pD1b2uENpE27EO8C8KNIq1wN1Qb4CwQVXZtDbYEGjttnuXw1pvYZAzQ66n02D+ 2UgXVx69SkYlm+Ze5C2crcmxAgMARcUlFgwHRJFQWmH/gxQCWEK0Zqs5ktO6nihRgxBz LzDrXKwfJrDf+tcs2la8WdakLVbAQPOniklTTgyGy24N4k6iTQpeEp7E28R/qXZxBx59 T4tkoxD/5dxEgRRg2aZBXYtWt9L/Wgf7erKnvq1NYAWuaG4eaIkTkfdHp9sflPjLOGsD ElkQ== 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:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=aXWRiu6n9FfZyrXbWUx0mBs0QxwB5HkrdcYz0vng1C4=; b=jdNSsam5kTaPcR0lbjKwiupPlp9+dAF64E1teJ3hD+2L88pnQi8b50zq7zeAaeZ5MC 1Fzn9+mfCJkusnmidsdU9gLCPE9uYI8lT+l6Z3py7Ir5havL7O5Op5aoVFjFCDWfcX9e tdIJzvmGeABXx4uC82I5t4nFklRemcRfSbDzzp3GhlhRyHUYOylq7prZv1KxMPEAE0Zz sMzNY2GNlzsoZUTfpOObQGD6uMo5B5KaA+hC1Ru2de6uNQH13GTt9sxpPl0Yx9KA2KlD 9YXDjMM6hjlakAJnFenB4cCsXu+svsVXLktOebUE3vfUODMh9Ss9ETCkrf8s1ZV/OVPu Is+A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=n2GAQy6A; 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:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=aXWRiu6n9FfZyrXbWUx0mBs0QxwB5HkrdcYz0vng1C4=; b=oqbuAESyGi7Ct3YRztB137AQ9P1QsxCZOgLhpaw5giadUunmF2+wWYLFnmhHmqyL3x peEKO27moKh/EzoIjPR6oex+rB7JcK5poyex5Z4ju3nB+9qnT97ymY+J/EEL2WRnSjC3 TYaz1CPBj5vVuBeA6wKXvuR+k/SCzSzJXLv8A= 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:in-reply-to :references: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=aXWRiu6n9FfZyrXbWUx0mBs0QxwB5HkrdcYz0vng1C4=; b=a4nA7dcdFY1OehLsdqCpEfAUBZmG35jMLwayymeCGEJgzIYqJXCS1AKL6cqm/q3gCG qVlUJKqqz1sKhly10mBSrgEPEK0zd2Dp3uXwuxthZ771EXpywmfGoMEiTWaH5N3UrWM5 MY5zVyVziKQ3JXoKqW+lmlyvL5alfZ8Vnr0L6iUXH0F2vz39i4gWHd0ftOsM3TlwMrby XinYSQ3DaeQWADddSFry+aBf3N4N7tK2uZRhxIePkt2QxsXRVCAtV0xvkobIItEoPbD6 f7vJ+yBqZcuU49lM9tihEkEl83zqo02SAm4i0wUm0S1L+F1XdD1CMQ/MbgzXWJSW+eLe khGw== X-Gm-Message-State: APjAAAX48FwRaCB/PvJW3ke2Yzn21dihWXKxo5L8JuKO0pJi4Hh9QlPx /y+DSzYoJQtAiScXXPlSAbUVVerX X-Google-Smtp-Source: APXvYqwHFGjr2UTnsOd+usggdOv1u+omtRNbGoqHpYYk7BcyJZDuDCBKwA+93cqFwexIKRCus0GAQQ== X-Received: by 2002:a17:902:9a85:: with SMTP id w5mr54777084plp.157.1555609655777; Thu, 18 Apr 2019 10:47:35 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:1282:: with SMTP id 2ls857215pfs.4.gmail; Thu, 18 Apr 2019 10:47:35 -0700 (PDT) X-Received: by 2002:a63:6842:: with SMTP id d63mr87271353pgc.49.1555609655360; Thu, 18 Apr 2019 10:47:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555609655; cv=none; d=google.com; s=arc-20160816; b=cmStEXZ5r2E56D+Q2RwwSAVDFnYrf8O+AXTepc5OFoqMiC/Gw8I2zFpg1fJLAkfmdP vxuZNo2OYEFzSW+MH8PCjlBdd/cD4p2Xlhfok9AtRcnmY1QTDFQXerkbAh8CdEsj4njv 7fp05Rv2mq3aJvk9R9EUjlGl8i1scjV/6wfwb3tkZWJ/3HQMjUrvIAEfRhO8IRHATbMu zqTUk398jCey0i4xjqMp0kbF5N9bT4HgHV8w3fOLcgjQRDDC+oQ+2g85fYk3QcU4XoWe vATfXQzjky5bKjrYbDJo286UHE7/gtjGE5B1+iJk+mpMd8nYcsV7xqlrbLa4PDA+Wd9B 8U2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=bgyCo4kvfvwJMN5IY06/QZqxQNQ+gwbYmank+FUuDRs=; b=H1TjFrNxojNmCUhlGm2k40pmnj2g2NC7FcLQiOBSQGHxhTTDibpMEB2MX2L48PhP4g dfYXMzkm+htqWu7CNKIORMZyBUeXefyaxlTuicLFwvrR0GBbe2jGYB4tNvecpa6ejpPS hn9BhliLMh/GgO5XYXaKKxeNoaoet8qSmBTZt15LN0KHI4r+irfpx2xgDMbJtkG/1mDf iw7yv0qPF8uJmWvmhs+TaoC7eiGKGm9VSMHU2JCfMEFcYcFtgwWTL+CklnJ7TvBBPIRt 65KmgepsUJMAECyRTZWuWKCpUdNadQvUZYlEx0N1+nBtS2aROelBnZan+OEdmjp8qQSX +Vlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=n2GAQy6A; 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 i190sor2772000pge.43.2019.04.18.10.47.35 for (Google Transport Security); Thu, 18 Apr 2019 10:47:35 -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:a65:6645:: with SMTP id z5mr65454449pgv.251.1555609655055; Thu, 18 Apr 2019 10:47:35 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id j4sm5223547pgi.71.2019.04.18.10.47.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Apr 2019 10:47:34 -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, linux-sunxi@googlegroups.com, Jagan Teki Subject: [PATCH v4 2/3] arm64: dts: allwinner: a64-amarula-relic: Add GT5663 CTP node Date: Thu, 18 Apr 2019 23:17:19 +0530 Message-Id: <20190418174720.17230-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190418174720.17230-1-jagan@amarulasolutions.com> References: <20190418174720.17230-1-jagan@amarulasolutions.com> 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=n2GAQy6A; 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 v4: - drop i2c1 pinctrl Changes for v3: - Use 2.8v for reg_ldo_io0 Changes for v2: - drop i2c1, bias-pull-up .../allwinner/sun50i-a64-amarula-relic.dts | 23 +++++++++++++++++++ 1 file changed, 23 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 c41131c03231..5634245d11db 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts @@ -97,6 +97,22 @@ bias-pull-up; }; +&i2c1 { + 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>; @@ -260,6 +276,13 @@ regulator-name = "vdd-cpus"; }; +®_ldo_io0 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-name = "vcc-ctp"; + status = "okay"; +}; + ®_rtc_ldo { regulator-name = "vcc-rtc"; };