From patchwork Fri May 3 10:47:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 350 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 261783F063 for ; Fri, 3 May 2019 12:48:24 +0200 (CEST) Received: by mail-pf1-f197.google.com with SMTP id d21sf2871048pfr.3 for ; Fri, 03 May 2019 03:48:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1556880503; cv=pass; d=google.com; s=arc-20160816; b=kGDRrtMvhXhjV7FQ1z+9+3bI71UcMNQrZgx+OTc7mvbOEFK/jI39hjDPRoPQsPhNOV NtTcAZ8hXPmp9MiflY6EYoSvEYKOECSqoIU1hp2ADINYP/+3qmlqa8uqAUI18Vr/0gPy vGdiIiAtFdZq3n84kIxkk2Kc/NT0tihkD2wjVTh9lbF0xagsJvgo6XvBiDJ4Ui0WNXyS WXjFjZ+JkwbToQLaunEmoX9PqtWp96DLzUcrC3XARhknH1EIIRGVz4Om+9v67q8j+hg3 xmR3dJXc7urSMgnibKc6Fg1hvjjSu3fM3seZGLkdCOzVsFDuPun1J2fFPCNTqeU1bwhu SHZA== 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=OfqdH8f+ua4m1bdlv7DUnraohowk+Zx0LU99P3BCXus=; b=bqCr7wyZxfUCyypR/OKlaL5raozUfAaU7u/nm4CX3Gf4MukaJYGescBWdKq0CLsCul popIlmJ3ilLUkHmBvKupxPO/YMxY1AQho0aF4duG4zhomxXD6cch19AEc0MXnSCmOxkP ymiSEZnLtetfW4IcyCpDWbk4kqZZBOrVpBfBc1HcNPanHWlbgH/AmPiA5gRZWvTkxEqH pFfvx+MdXy6Nt/Sm1S3VoBhbyVqmWkjvilbxuXQ+mOne7A+N/xvEyoNNFzJtSPMNDJ3s A9utZERoHf6Rx8sqQ6I3IQDypAlDLj3F97tsP5lTu5ox+iv79ucxOflp6V4jrn0NvIhL nvnA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JaYHuUbP; 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=OfqdH8f+ua4m1bdlv7DUnraohowk+Zx0LU99P3BCXus=; b=gSvReqisW+FQ5M2HvWN5YyFi2+sjvPcUNV1ofAn0OVc2yOT6JpRx2E3zIKSXhyIiLN KM8BFU7emvqU/qoKo4WM3kwMA1TQcenRThHwb8R6FzC9WX2b3zRTHNGWlJgqU0QKvpO7 OIEH+DF7ATJg0iGYYD8t+3Fy1qP+a7WLURL9E= 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=OfqdH8f+ua4m1bdlv7DUnraohowk+Zx0LU99P3BCXus=; b=PIa3IlzGhz26lVz31PNH20XgPSsj7MWxfo8r/CUads1Di4zvadyhG+vXW2clP3A6NC ebu9RDEBYTwvYMSxVefTLdUx6NvSuxzvAvpVTU3NjbdeOToM0wbhtmWGoSpZpvsdPBll wy/LQ73Pou+nd5I1614d7V8AXucgyffLzrwlGw5OqYUHBzDIc4LLWpBxj9byJureqdbs fP7Y0REtxzpPifBrugCyxwwejPJzvGQAH9GyGML/wuEbKiehfxDItDSSXdSmWUK6m/nF eMRVmQZOyuuG+/bVkVAW4Y75XLX1tzQLloTNXK9j70HxfbOqVbPH8XmwYoBqjSXf434S 3KsQ== X-Gm-Message-State: APjAAAV/kEt6XRDCV9z9LJ33JoLrjMjHmubWh56NSIV7dpURCgH/OhzD CyiHC7x1+7UgajL4XfGZS5mkHawK X-Google-Smtp-Source: APXvYqwXESMjqpdhltDaH2DKuxgezBVBLXSRnvtygH2yp6FPEA3H9P/hR/6a13HxATlltoiKhd/+KQ== X-Received: by 2002:a63:6b49:: with SMTP id g70mr9526259pgc.340.1556880502934; Fri, 03 May 2019 03:48:22 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:bd8a:: with SMTP id q10ls1268248pls.5.gmail; Fri, 03 May 2019 03:48:22 -0700 (PDT) X-Received: by 2002:a17:902:7284:: with SMTP id d4mr9214801pll.249.1556880502568; Fri, 03 May 2019 03:48:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556880502; cv=none; d=google.com; s=arc-20160816; b=UsaG8OLXqLTY6+KvXe/E0TM15Y68M2s6fhtDWXISToOCjwm3gZR6rbX8zJI2r9LEQ2 pOkuMUzz4tXN5PN9rOYJVeFXeRHdyWW3wuxp8l+tmkgJUf7K8EtuUpQIsql4ZwPBMohC RI9mHN7N2WRbSwf9D5A1gM2P+ODshf6giZ+IKcugXZoidV4icmAOpF4PmYEMB9Tb1Yay YAS35MVB4thoAmAfjS36Nh90THfdREwj43HBhZAnllaiW+WtUIyasiAgu0bBxVmhptit d/bkzQnwUvdHorrZXjpe7l2SfKUzD+Ih3ue7NL6yNOPnifRzxoglFAx9rrFqK6UiLyvb M/6Q== 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=bzeisKrbd3NVmsuHkycqQpZOOZrTkWkXq9WqgrEgfB0=; b=nq7JmkGYO5sfiAwgf63ISXjqNId/mz5GrrsHajiTd+DyBii6WjXOa7gK4STT39VUjw bWswUoxBDjZUVfA8/WZKhMPfWhhWzx9ggcmrbi17eaO5DfD0u9Npi5xjU13WQr6hUh+i YKpOWPeT6T/wa0r6VZPnGdCT5sZfCIfjuWt/3dEbfAQ5732UThYTwDkRkNS6sls2xzBv GE509A9wJK++fc0ukKemWMeZ+xu8hf8ec1K3yI/sZG0BLcpaWTCSI4xh6RVQNVjWnxd9 wC8x53HfXkgl17EkUrgj3XFMekA3C55mK+6PJqHTdgBgM+nbcUZ9baXdVHRfjzSYv7So SWaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JaYHuUbP; 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 j62sor2006787pfg.41.2019.05.03.03.48.22 for (Google Transport Security); Fri, 03 May 2019 03:48:22 -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:a62:b418:: with SMTP id h24mr9669983pfn.145.1556880502238; Fri, 03 May 2019 03:48:22 -0700 (PDT) Received: from localhost.localdomain ([49.206.203.165]) by smtp.gmail.com with ESMTPSA id k9sm1965479pga.22.2019.05.03.03.48.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 May 2019 03:48:21 -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 3/3] arm64: dts: allwinner: a64-oceanic-5205-5inmfd: Enable GT911 CTP Date: Fri, 3 May 2019 16:17:53 +0530 Message-Id: <20190503104753.27562-3-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=JaYHuUbP; 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 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 .../sun50i-a64-oceanic-5205-5inmfd.dts | 23 +++++++++++++++++++ 1 file changed, 23 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..787ebd805a3b 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,22 @@ status = "okay"; }; +&i2c0 { + 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 +68,13 @@ regulator-name = "vcc-phy"; }; +®_ldo_io0 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-name = "vdd-ctp"; + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>;