From patchwork Fri May 3 10:47:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 349 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 024743F063 for ; Fri, 3 May 2019 12:48:18 +0200 (CEST) Received: by mail-pf1-f199.google.com with SMTP id s26sf2840004pfm.18 for ; Fri, 03 May 2019 03:48:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1556880496; cv=pass; d=google.com; s=arc-20160816; b=fASK4u4RXVAzvIVFkNoT1O07i1Ae++ifSteA9s/S2zKUAJvdaPvbOn75qSr33U1VjA YLFc5SKrMzq/ONgHU597cowzje36E1/aPq/Vcmpf1x/4X1xorV5KFCjxTYvlGJFA4bEO dZKJvS0K4qpiC/1YAyvIZmsKUYMfPO9y0bInPrgKvl+fzmbSPGakeGCS+Mqwb9eb/TQ2 LQdDlQF4vr0e5MSlmlji1eRm2J+XBVYmfD8rKSIQLpRIj5TuZPDQXI1XS0MoGIhlRflL SgMdeONU7DDpYDw8M1w1zVA26gZERFvArESHmg0rUVrXaGa7ExEZhhaxRvi3GWY7oVvi ejcA== 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=xnbJmVhFViDjMXGnzO6/ZrrslEuD5YsTmfL+FUjsvUI=; b=uT/8sySvIUekcsPp8cdJ+EVBzWFRTfpd+kYPukDv23MPnxA8jBZEhESwWDG63ELOq8 gvpEk6xtaiCRs5gjgUJYIWDx41CLrdyZhSUMqTbeox6oEGFUDDTgE4zeGOq+dMLuGt7o S3+keyNDoLhkUE+Z2kCxSsZH99nXfd6jusMNMjcEhr3jCfNgTtKMBGMX/7/pGmCCH+I8 8GeDDgKX/wDNU+FCkmX4HxopUu0kY6J1/nlLgbLlUUZ2iEfgQdnIes4NcNkitdb42TXU UH/DoF0v0lEzP32M77d5PlUHjw9V3KT4J2DqfBN6w05TraDA/2im1zpfzGICV8armSig eKUw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mk7OvXbb; 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=xnbJmVhFViDjMXGnzO6/ZrrslEuD5YsTmfL+FUjsvUI=; b=KBlIcQAQzZz2KTNx9SxsfLEC/uJWMNKl75p1BhdL+zTdEQaMh9Mwl3i1GlHzmWGa/j 9CVm4buR20mgkSmF/VlaK8lCNO0CSVuC9FbrJzyz8dhUIc4fetsNFIgfI4BdUL1o7+gm aOgouLUmpcFc8p2mDtGA6ZOMDSnpB9IbZXnis= 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=xnbJmVhFViDjMXGnzO6/ZrrslEuD5YsTmfL+FUjsvUI=; b=WmninOCbTBmRFfNldLps3NCHzCRHrQbqD96aAHpcu4/bObMymTRIJFY30Tmdj3zN3U 7w24XnXKdfyWB8R9lThhZJOTD1ahqoslDSwIxytJua+t92sHHebmu9R5oDolmYHlzY74 ezb2sXcNH2NQt9FBBJLHIUl4o7dIFHx/ce9WKtoXZO/FXaOMhOVVWbUyl2iIB03ITznU fB5s8XAbDPUgC61VXrswoVyaBp/uO9MVJhAwyZk0zy3K+WJyPYbWo1KdharrWnqxHAZ1 3SRKacOrzsT5HOpROgpTiWQubV0WWQ1VGoC8o6E/WlftoQPMa3u2QQqU/zIs2wHys1Jk JmuA== X-Gm-Message-State: APjAAAW8591GM29eTvh07j5KRHdUkC5Z6jSkeQZfa9EutUc86qqnODdk /hgQBgk4/EK84VxFzMpI8chxxn5x X-Google-Smtp-Source: APXvYqx89W1ZOR+Mf1D4mWpqGI0Rmg67v7pW8oa9sc/VDaFIcu+7I4+aehSDLUOSsuGJn8aelinghg== X-Received: by 2002:a17:902:a3:: with SMTP id a32mr9353928pla.111.1556880496653; Fri, 03 May 2019 03:48:16 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:4d4a:: with SMTP id n10ls1134717pgl.9.gmail; Fri, 03 May 2019 03:48:16 -0700 (PDT) X-Received: by 2002:a65:584f:: with SMTP id s15mr5989546pgr.171.1556880496336; Fri, 03 May 2019 03:48:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556880496; cv=none; d=google.com; s=arc-20160816; b=ZQQUOIIcs+d/nbYim2sCNCkz8QLIDQT6YRoJPKjvkjylGg3V4tIQm7ySGRo/05zeoz qIRTcsdmWTKCjsozsgixDz16E5e3kYdVXSR9gqE5cz6h0mYP5OM3VyOEWcpghgR+gQTY lT7OU1OWH3m6j89s9k44nmvKD3N+cCEW2qoj7fTA3tYCGLodE0+x8QakJaoFWx2P98S6 BsSP5POA/gVNVmr47LcMqGvaYIkWcIvYpXrI/i3Coa+rAgVDNsZgdVlLKQyQn2GyCk+r hx/7oUVkS8fexzM2G8Ba7faC0j+E5gBfQHCdAQ2HNvNRVR/3PSC0EUM030fwnalldeHn Ntbw== 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=flSGHj+m/Po54A3Jce083UtgM5nOT0MXPFx0OmO6SII=; b=FzzsiAdmnjSIwoev4iw8eyP8JqpXaIDSTqwx/+yXf5NF1UdsqPl3e9ZbnyPh7ZnbH3 QMzFHXFM+b7Zc9FlqOjd5j6eaPylt7YdbG6jJzHi5XXHbjUOmdQ+h0SjUxsv7/qCdS0c d2AIT4QwaUCdOV5AhSGaSSKx7B6v9G5/yWz6mkQRi+NVXlHheKeHKjgFF4YFvxoOJByE CtE+1EKzAZWZMiNOXlXLHZmOlbp/BEZR0O1xZtNEck+NRkp7uY3u+mUHcmJEj13EaqJe m2QKjgVF9BQMWuQIgcmTfYDIo8VmazV8aJgmDnp6LiKpxsRJkYnVxBrgXPmT+W73CI/M KLgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mk7OvXbb; 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 a34sor2041416pld.48.2019.05.03.03.48.16 for (Google Transport Security); Fri, 03 May 2019 03:48:16 -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:22f:: with SMTP id 44mr9254610plc.175.1556880496050; Fri, 03 May 2019 03:48:16 -0700 (PDT) Received: from localhost.localdomain ([49.206.203.165]) by smtp.gmail.com with ESMTPSA id k9sm1965479pga.22.2019.05.03.03.48.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 May 2019 03:48:15 -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 v5 2/3] arm64: dts: allwinner: a64-amarula-relic: Add GT5663 CTP node Date: Fri, 3 May 2019 16:17:52 +0530 Message-Id: <20190503104753.27562-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190503104753.27562-1-jagan@amarulasolutions.com> References: <20190503104753.27562-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=mk7OvXbb; 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 v5: - none 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"; };