From patchwork Thu Apr 18 08:35:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 227 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 CAC6B40B21 for ; Thu, 18 Apr 2019 10:36:05 +0200 (CEST) Received: by mail-pg1-f198.google.com with SMTP id x2sf940572pge.16 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=lq+nmGQFCguLOuaonXE5RcOht+sgPF47zgmoYimPSZjhsISwfPNeAvM3UzX+/Plwnj ltGe8tD21Rs8/j0cWaaEK4u6SvdXHZn7Pp+tXSD8NIFQtVS8eQeGef3bKoo2RNMh//HI 2cZda4k9cvrxca3T/kmNldEqGPiTQ9zvGYyGcSYQE9uWO4gvBdtB/fGl8rR+Q/E1A7mR rALA9Dg6+hA4tztT6t3CviKFStQzLzsWTTbqoeBqPadYGuf44+iLzR8VFCDbmCazXI07 vXeiDOxvlM2xfmHS5EQ052ofglSXF5pqsljKRLAKV/u8+0qKQpwwgJPdhcWtOxBZwEfq tXyA== 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=ssZ0t+gv/QqRTzLvgO91Om17UjUotaWAHS1sTGA6R7Y=; b=wkDdsxReyR3AgeMQhfgFdLTZq6AEg7pwQzLdTjo+mXSLgzcmpDuwzDEq0BVk4w1UxA KCmbNTVsZVOFCh2yukbvsLa4erp/S3kooN42qvl8LT5+2xG3oDUEiijWgYA1r8cazyDw HlqWnh8N95p+rvXC8GTPdV9lLmQ5u29moh+MQKTdh0QkxucnV9oa7YsDtmA53okH9g2p WWT7C2RH85Dmaixo7eqhSpHb1W6Bmlg/smfr42DK2YR1EI3Bk6x1CxsdDCjtfuuRnn1e KrEPGihLV3LjkGwjU1ZOQIQeOLuW9MnZNvaSazi8TaxbMLHJQ7tzpvTe53XUmmu7iPtX IPWA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=E7ePRdEu; 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=ssZ0t+gv/QqRTzLvgO91Om17UjUotaWAHS1sTGA6R7Y=; b=mgCDCkO0FNDNOyFZ+vvLVPsOdVBoBNA2UTF9e0raNCjmlCAoJuTSB5FAWbmojzx1Ah Whj5Zwx0u38fP5lpoXtT9nqHR65XeociScV9IhD20F0Hc0EnzcgfA6rsg9X4XVRJJjm+ jfaziD+hcf8TPLwFZwb1/8ZL66VVChePuxidA= 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=ssZ0t+gv/QqRTzLvgO91Om17UjUotaWAHS1sTGA6R7Y=; b=j6vt5xK2OZ9VISYO5Id7ynm9ist/H1zZhA3ZduWrk6hMF1u9GFL1NJueeUZSFcjDGF 2ZtVwzkWl+6SSFr/3jMRFAlYaR7Lq0yDc2bNnDQRveBKwyM2H4tyFO8/MyOc++WhwpjX pP4y2CJufOmDYDNNeHOdGMRgiShU/b1xn5p87eQ42zKsijfbI/8iqKR9seQUg7jMhqlL 7siQGvw+kHImNk8iQr/HWnIV+5eafteQ8IkPR8YAzsLaN6FAoZjNCjTDUeI8pPAIU09e 4bECk60V4awV1qWZpgb1TkUsz9bZK+vbbhiMXcmOV5CA8TCdV5lkrTDtgTgH9Ejp5aEl CuAQ== X-Gm-Message-State: APjAAAUiDUD0azQ9juVhR/8p8t2wk6loUvt8i1JoHUgDjwS8MRi03p1+ xIXbPABxvtGAyKKpumggfaUUuATD X-Google-Smtp-Source: APXvYqyZyutwwhIHsBh1E4elljRrt/Hrptbw+uaH/RLDWM0GYPVb8UmyeofOQgK0qE1nWg0YefLyWw== X-Received: by 2002:a65:654c:: with SMTP id a12mr40325882pgw.101.1555576562765; Thu, 18 Apr 2019 01:36:02 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:683:: with SMTP id 3ls497963plh.1.gmail; Thu, 18 Apr 2019 01:36:02 -0700 (PDT) X-Received: by 2002:a17:902:2:: with SMTP id 2mr94758763pla.61.1555576562409; Thu, 18 Apr 2019 01:36:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555576562; cv=none; d=google.com; s=arc-20160816; b=ydgZlMmTi7oItUA41iV4Un0+d+w6lGADmEsKadVRnKmMi4x0uOgSkDHjAhLpghbtKG uctxWI6KnBgv9VQfSMOznaSqF1ALQ+/7IpBjOulDS6NTV00XIp4zNGRaMb7eKbQTe7sR HE3V+aEZ5dv8RK+k2k3wOdvYbAZ1N3i+/fyo31nSZYhNm+v7wtuWSTRtckmss0TPrqmG MI+NaRhlsl0B0S1+myVXmWwi0T/wlfhbkBEDZjkLl/EXrHztPe3CCs06uavYTOa7vhIV Ray21wV9o8atNny3y6bfv3Yf5JT0XQn+uVBuXL4JUziRcQS2rqiyb1W4kygHCIdxP+kt jgUg== 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=sQCAZaAXBkJK3V2xhT9DV7p/g0whMniNBsAqfvNfq5A=; b=C7PxGpppjn0jsostsyjL3D1bqAwaVb1kagm1Ylgn8HdTGD0uR/6SFfi13xr+AnMlJ8 nqSyS0Nl0afXTroIuLLyHMecIeKYh0bhLVPAA+Jp3z13r8IMuVcTd5Jza16SuGGd6ASa vbjvdcoMsxwjFg8loraRzHgGb2WzmpE+rBhGy/yxu82/oJD4vJ+v8/GgJru1UF9OQnZu jgE9jMAfa1cJ6T9RwRcjazJ8xM2Il4A2n1TdtovwEWbpJgNr+z+dpkYzaj+VfqX+4iIT PELt3oMDdtrBZyvtCjDR6WdUv7Dv6UThXXdS5kycLFEGFlfgcXsFO/5qwdA25hdJj2+7 sDQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=E7ePRdEu; 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 z37sor1258739pgl.76.2019.04.18.01.36.01 for (Google Transport Security); Thu, 18 Apr 2019 01:36:01 -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:a63:c112:: with SMTP id w18mr88519262pgf.200.1555576561226; Thu, 18 Apr 2019 01:36:01 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id s12sm3166255pgc.28.2019.04.18.01.35.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Apr 2019 01:36:00 -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 2/2] arm64: dts: allwinner: a64-oceanic-5205-5inmfd: Enable GT911 CTP Date: Thu, 18 Apr 2019 14:05:43 +0530 Message-Id: <20190418083543.11695-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190418083543.11695-1-jagan@amarulasolutions.com> References: <20190418083543.11695-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=E7ePRdEu; 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: , Goodix GT911 CTP is bound with Oceanic 5205 5inMFD board. The CTP connected to board with, - SDA, SCK from i2c0 - GPIO-LD0 as AVDD28 supply - PH4 gpio as interrupt pin - PH11 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 .../sun50i-a64-oceanic-5205-5inmfd.dts | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-oceanic-5205-5inmfd.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-oceanic-5205-5inmfd.dts index 6a2154525d1e..02c1a04cc7eb 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-oceanic-5205-5inmfd.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-oceanic-5205-5inmfd.dts @@ -37,6 +37,24 @@ status = "okay"; }; +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins>; + status = "okay"; + + touchscreen@5d { + compatible = "goodix,gt911"; + reg = <0x5d>; + AVDD28-supply = <®_ldo_io0>; /* VDD_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 11 GPIO_ACTIVE_HIGH>; /* CTP-RST: PH11 */ + touchscreen-inverted-x; + touchscreen-inverted-y; + }; +}; + &mdio { ext_rgmii_phy: ethernet-phy@1 { compatible = "ethernet-phy-ieee802.3-c22"; @@ -52,6 +70,13 @@ regulator-name = "vcc-phy"; }; +®_ldo_io0 { + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vdd-ctp"; + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>;