Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1337331pxb; Fri, 13 Nov 2020 10:01:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRIp+4lSQ8NbWTO1z/USM7NiFHb0HXyATWQsp/0CjG7LQ6ve0UC8MxuQRzx1djZ2x/FGkJ X-Received: by 2002:aa7:d493:: with SMTP id b19mr3551134edr.279.1605290510903; Fri, 13 Nov 2020 10:01:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605290510; cv=none; d=google.com; s=arc-20160816; b=Kxcq9JzvEVhBHIEOfwVrg1fnEZOFPwage4v4bVFONB4O6B/TkHCTfCyp/BMyRBEXcu VO/m3sAl9GaZiVv51mtrzm6ErpMZldxnBS+KOOCmVueVC4/r5bWgnwbBP8lBA2lV3Bw2 6F4J3frnsU2fvB6aSI6Pe0Kp7QIuYefWSV7BP1+fNz4DdpfB8O0HjvUBHg9Faq0Lft5N zO1MvHzJFNdsBURX0fehId2HxyBMiSTGaBcFvICDdPb0sn6WKV6mv1X+YYiDZGaHuvjq vXmrfs3V3ykpz794ck7mWI06Nk+EJDprNDhfOuU30K5dybFmAHr0rGtpPV7mis03Ki9y aj7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=exASMvYkyEYqC+lh9hPdT4ZQ+jUAX0JeQgUTZEQXM/g=; b=ifrb81YcvJEYAVLMHt6Tg61lJIZ/g86IS3aUiFOnoisSoPMMsRy8oEzTntts+Hwu9b c6taRdiwJ2HnECq0QlIruS8cx/Y3HsHGJehjFlm5wzPRg4wvikNQVoucSZBOnUQjWmdE CVBoqYyehtNbKIY0qf/TZgZU2m6K6EednZvHhLmsrdXSOdau56re8jPOYcoiC0s9aXgn 48qe3J7dMXMhIJjobrOlatHfHmXjzjzlZrEw2ZulX2uMlJC4N1X2u7gYGrnl6FCqwpTd nc7mdpNigyFTFTYkVdpIoGTme/kEQeJ57IUeR5pZ4AXfjjj9iNpttA62BdpyASwzjok0 3+2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Pm4I3E0k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w5si5945808edt.245.2020.11.13.10.01.27; Fri, 13 Nov 2020 10:01:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Pm4I3E0k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726385AbgKMSAA (ORCPT + 99 others); Fri, 13 Nov 2020 13:00:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726395AbgKMR75 (ORCPT ); Fri, 13 Nov 2020 12:59:57 -0500 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1E7FC0613D1; Fri, 13 Nov 2020 09:59:55 -0800 (PST) Received: by mail-lf1-x143.google.com with SMTP id s30so15199705lfc.4; Fri, 13 Nov 2020 09:59:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=exASMvYkyEYqC+lh9hPdT4ZQ+jUAX0JeQgUTZEQXM/g=; b=Pm4I3E0kKvXIlE3WfhHLyglQIFbAvO17XHC/ip4hGwGpimzQLhFgA0R0SVt8yyPCg2 Ja+kZ4NFq+O7gJ5gsCCjDFZXeEInmbxVls2A+zTZxILHgs2qqaTIzpZFb0SZUo1lIW7k cdEFINRZTT6OLfyj6KY9uRmXwlXbl+Kh1QwqAjyfneD6u3SzuW8WQhw8M5/WkguWGMrF hx2lI+3ZxBj2EjRAh1T1S80FJBSOZvXvbq5sX9haxx1TMf55cPKxO8jHvCWjrl64GJZP l88EQRi4syB+wbuu3nC/2wSRCj8SWzbt1jotoVhQgNHUHKVIYsr2OhGYCGQRa8Z1bA3a cdYA== 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:content-transfer-encoding; bh=exASMvYkyEYqC+lh9hPdT4ZQ+jUAX0JeQgUTZEQXM/g=; b=diUmCOpPcgnRDvENxrFqZSjazlC7atokvoSaAYzcYPn9faYlXEOPUHfiexTuTAvPTq cBAee//MpsK0zKWqvRYiC4GyVr2nu81v3keVcyzmTkba6GxNc/s137/2nZrbaKP3KyDZ HGkjTfXMHtopT8kqigBR81Vj8iBnQweGwCe6wkDDr2P26Ju5Pv8yvR6L1fnAR3H2GIO0 Z0W9DAQPE7b2n6zEIMtqfFVosK/KKEtTrh6UO7pCd41VdH8ti/BaKgpwuKtC23maMJWh 6coKll9c/ltndm/es92Gg7Wli/s8hT4F5AkI9pIq+xLBWLw7TdNw4k6hc9HQ8b9Cu0G7 LHaQ== X-Gm-Message-State: AOAM530FUX0flXFX3YAL9Ior4KfYb0qgT1kF+aQGzUAHi2Vzx1UnoJcB 5EBgYI7XgCtb4t6GgzoKtdU= X-Received: by 2002:a19:484f:: with SMTP id v76mr1341718lfa.142.1605290391500; Fri, 13 Nov 2020 09:59:51 -0800 (PST) Received: from localhost.localdomain ([2a01:540:2326:b00:1d75:252:b367:4629]) by smtp.gmail.com with ESMTPSA id c1sm1629363lfj.222.2020.11.13.09.59.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 09:59:51 -0800 (PST) From: nikitos.tr@gmail.com To: agross@kernel.org, bjorn.andersson@linaro.org Cc: robh+dt@kernel.org, stephan@gerhold.net, Michael.Srba@seznam.cz, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Nikita Travkin Subject: [PATCH 2/6] arm64: dts: msm8916-longcheer-l8150: Add touchscreen Date: Fri, 13 Nov 2020 22:59:13 +0500 Message-Id: <20201113175917.189123-2-nikitos.tr@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201113175917.189123-1-nikitos.tr@gmail.com> References: <20201113175917.189123-1-nikitos.tr@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nikita Travkin L8150 has RMI4 compatible Synaptics touchscreen on blsp_i2c5. It is powered by fixed regulator. Add both to the device tree. Signed-off-by: Nikita Travkin --- .../boot/dts/qcom/msm8916-longcheer-l8150.dts | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts b/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts index d106bdbfda68..21f2e8e0d05e 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts @@ -5,6 +5,7 @@ #include "msm8916-pm8916.dtsi" #include #include +#include / { model = "Longcheer L8150"; @@ -50,6 +51,52 @@ volume-up { linux,code = ; }; }; + + reg_ctp: regulator-ctp { + compatible = "regulator-fixed"; + regulator-name = "ctp"; + + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + + gpio = <&msmgpio 17 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-names = "default"; + pinctrl-0 = <&ctp_pwr_en_default>; + }; +}; + +&blsp_i2c5 { + status = "okay"; + + rmi4@20 { + compatible = "syna,rmi4-i2c"; + reg = <0x20>; + #address-cells = <1>; + #size-cells = <0>; + + interrupt-parent = <&msmgpio>; + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; + + vdd-supply = <®_ctp>; + vio-supply = <&pm8916_l6>; + + pinctrl-names = "default"; + pinctrl-0 = <&tp_int_default>; + + syna,startup-delay-ms = <10>; + + rmi4-f01@1 { + reg = <0x1>; + syna,nosleep-mode = <1>; // Allow sleeping + }; + + rmi4-f12@12 { + reg = <0x12>; + syna,sensor-type = <1>; // Touchscreen + }; + }; }; &blsp1_uart2 { @@ -201,6 +248,14 @@ l18 { }; &msmgpio { + ctp_pwr_en_default: ctp-pwr-en-default { + pins = "gpio17"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + gpio_keys_default: gpio-keys-default { pins = "gpio107"; function = "gpio"; @@ -209,6 +264,14 @@ gpio_keys_default: gpio-keys-default { bias-pull-up; }; + tp_int_default: tp-int-default { + pins = "gpio13"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + usb_vbus_default: usb-vbus-default { pins = "gpio62"; function = "gpio"; -- 2.25.1