From patchwork Thu Jan 5 12:32:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 39511 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp284884wrt; Thu, 5 Jan 2023 04:54:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXv8PY0P5xZJhA1+chbTnEWCEIlhToLXAkScrh7e/UT7/73gA859Kxnz+/yDwEpTmdL9Iq8a X-Received: by 2002:a17:906:a290:b0:7c1:9eb:845b with SMTP id i16-20020a170906a29000b007c109eb845bmr47855521ejz.16.1672923242483; Thu, 05 Jan 2023 04:54:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672923242; cv=none; d=google.com; s=arc-20160816; b=KTNwRoWUjI61MmlcXXTxF3blgxH4tIUrijFJ4G25ry9TaWgj3JVnoSbL2cZFrvBx8/ cjv2BF5jHu2XtZ4i+rrVFVg/uLNSHZ/28fM6nVCE9B2FJ0T39St9ZNfNAH0IKAaGOwa9 81SrZIQfIswLS4QYmApf7nikKRdJ3pm27FxOYU754SxDqfSaVu1tcvQ8OGSV6VDc5gHu 7MG/gMFRZcuS/dRggN7Yatjrqr8hNDDs9imjQ995Kr4kTnIqE6bOf6ADnzc2hy2qlvYv WCSuC5H9AMaVCevI8uS1DVLqnAawM8R5hosdSO2RC3CS0fS6wzXVir20ZECFCs7sABZb seSA== 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=T2QiXkY/PA03IeJ053fCwrett0fmbThhwDZmzvaIfvc=; b=MEpQhP4Xz8WmzSBBNktZtQ8bkwZXCOG+/E91lleLkOxAjE8gkNuGolUTGsoruMEeBz u1ZMgf+F61yo3QYKIfAX9VRyebmjGcWBB6VCaTgS7qmEBZBMIVYWTN+teLEzBcg0StHJ 8Elhl3fk3reBmJZKC7LBddmICXvcDOoU9J7kkk0AXMVZWaeU9HInT6uyAXI0m8nicprj 4YoDieB3hryRsMUme+5nx/HCBccBSOHwlslCOWJgPR9CYy0wLGFD6o+uJE/AQfAMbo9j Qw415hvVm4UFOpzqWaklhN7o5F4naMFs5R4MR5Crt2L/hmhXBAd90VoK2A5c8+arvHEl 9m/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=rrBvPTL3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ae10-20020a17090725ca00b0084c855e9b5bsi21465717ejc.97.2023.01.05.04.53.38; Thu, 05 Jan 2023 04:54:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=rrBvPTL3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233371AbjAEMvi (ORCPT + 99 others); Thu, 5 Jan 2023 07:51:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233195AbjAEMvY (ORCPT ); Thu, 5 Jan 2023 07:51:24 -0500 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91DDB4C713; Thu, 5 Jan 2023 04:51:22 -0800 (PST) Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id 3D75C420E6; Thu, 5 Jan 2023 17:34:00 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1672922040; bh=nx/GvWswnauPtlRcTkUzfp1KQCpIEjRYLHbnYq0pPzQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rrBvPTL3SF0mjKJ694okNvj8K9aJlZmxxxaw/cKN2M1U07CDDExVKTbV1KRWKS3VQ QbPLkGInisouQ2yGKseO7PJLWQjMvcF1B1z2L13JaLXsRgZImuBlzWyObEAIPCUPDU EoPlG2PIvgpwDomaIRh2LylZzJAGlbyhh2LmGifngKkY8H+Lne3D2bsNNrQFzjK5ba nQBxd6HpG0GyKN8BKYt8Dcn+fjbgc+5OCwKvU0BW2otgRoBwpM2R80/28+q8w03Hpw UQe+seZaXlo8Y2AxIgGJkYq+FTGIXh67QHRkD4PDrOL4SsmGBmBDxVg1PJdpFrVyJa NRZ5XkfaUEv9A== From: Nikita Travkin To: Andy Gross , Bjorn Andersson Cc: Rob Herring , Krzysztof Kozlowski , Konrad Dybcio , Siddharth Manthan , Jasper Korten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Nikita Travkin Subject: [PATCH 6/8] arm64: dts: qcom: msm8916-samsung-gt58: Add touchscreen Date: Thu, 5 Jan 2023 17:32:38 +0500 Message-Id: <20230105123240.1089375-7-nikita@trvn.ru> In-Reply-To: <20230105123240.1089375-1-nikita@trvn.ru> References: <20230105123240.1089375-1-nikita@trvn.ru> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754187161566899395?= X-GMAIL-MSGID: =?utf-8?q?1754187161566899395?= From: Siddharth Manthan gt58 uses Zinitix bt532 touch controller. Add it to device tree. Signed-off-by: Siddharth Manthan Signed-off-by: Nikita Travkin --- .../boot/dts/qcom/msm8916-samsung-gt58.dts | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-gt58.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-gt58.dts index 37140d041a22..fcf516888739 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-gt58.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-gt58.dts @@ -9,6 +9,19 @@ / { compatible = "samsung,gt58", "qcom,msm8916"; chassis-type = "tablet"; + reg_vdd_tsp: regulator-vdd-tsp { + compatible = "regulator-fixed"; + regulator-name = "vdd_tsp"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + gpio = <&msmgpio 73 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 = <®_tsp_en_default>; + pinctrl-names = "default"; + }; + vibrator { compatible = "gpio-vibrator"; enable-gpios = <&msmgpio 76 GPIO_ACTIVE_HIGH>; @@ -18,7 +31,43 @@ vibrator { }; }; +&blsp_i2c5 { + status = "okay"; + + touchscreen@20 { + compatible = "zinitix,bt532"; + reg = <0x20>; + interrupt-parent = <&msmgpio>; + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; + + touchscreen-size-x = <768>; + touchscreen-size-y = <1024>; + + vcca-supply = <®_vdd_tsp>; + vdd-supply = <&pm8916_l6>; + + pinctrl-0 = <&tsp_int_default>; + pinctrl-names = "default"; + }; +}; + &msmgpio { + reg_tsp_en_default: reg-tsp-en-default-state { + pins = "gpio73"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + + tsp_int_default: tsp-int-default-state { + pins = "gpio13"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + vibrator_en_default: vibrator-en-default-state { pins = "gpio76"; function = "gpio";