Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2277371rwl; Fri, 6 Jan 2023 04:28:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXtTI9Md7haCMDerDLsQ1CnhEveFmGr0VWhwZ6ESHYS5anQgCfxIa2zaDuIksLAFoJrZt7gX X-Received: by 2002:a05:6a20:5487:b0:ad:b4a5:8d2f with SMTP id i7-20020a056a20548700b000adb4a58d2fmr86040966pzk.42.1673008095045; Fri, 06 Jan 2023 04:28:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673008095; cv=none; d=google.com; s=arc-20160816; b=y28Jkh7b14+39Zb63+JxV4pGt9XjOn9rExmQcAfLr3Ps8wniBy5/7eVS81mWgPZuKg TnWVf22/YKRYfPtORih6valij3GNTa8m6dqrQQNnPmuF7ufvPWTMx5j8XxDagdgIZaPp elZ1t9RdpldqNnzlfje6O2s19bXpQHE7rx+nH68n7zrHmtBmohaF3/iKQvMfqLIHW/Ju yO0UNNensg747fXumhDLxHH/vOdgrdKf5qfGYJUz9Hdc024yYIWNys3pY4VNnF8hOhCV wvGmSarhAvLYZB9FmUGLEviCtX3qSITLRrBCHal447Jha7OJLMCsJ3j80opKAeNSzjmG Q28A== 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=cP9jlDQFsK0DxtB0tAV3WIvjL+aBPPQsvFqXyNBMLcc=; b=wZnpUbVDXb7sx+1dPdmTqEW/r7p9v+vJXtsPywWlV23rzd3Ys3/MS8QlwrXdqxEqTa V2BgGkTiJgiC5wtcx+uLKa9mJCloxM42AtauGwcjCk4CfHJpbnzirJzVxagC9Yyz/7FS 5yJ0mmC80AxyOz/r+dCcsbYdaEUv2Gp61YcdW3OruebIfarSHpIyQDfpELyzNsPDbgZN +F+WlyArJDmrQCb9r6Tgq/iE+JMrqD7Mptz7q8M3RdGOHU/u0zn5nbB9M9ybXPz5S4xT qYnS8ZbbT6wvw6bZy2ujsY3MY8LWP+V/dOJ16g5cIQ/D+9TlbhUkwj4DqtJ8yGHITHJV tmHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=usIRpBPN; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o17-20020a639211000000b004a3492595dcsi1389376pgd.248.2023.01.06.04.28.07; Fri, 06 Jan 2023 04:28:15 -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=usIRpBPN; 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 S232784AbjAFM0d (ORCPT + 54 others); Fri, 6 Jan 2023 07:26:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229945AbjAFM0S (ORCPT ); Fri, 6 Jan 2023 07:26:18 -0500 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1060EB4A5; Fri, 6 Jan 2023 04:26:13 -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 71033420DB; Fri, 6 Jan 2023 17:26:10 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1673007970; bh=wg8JNpq9AvwF4/UE4LxIWsEbYMZOmEvMwfA6fBrhr+c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=usIRpBPNoPC15w9jBF0CLlXcEPzEq+xnAPCSd4lb5m498cZjauqetoStPO9wEFOLY CcfUMPWqgrb++X7QvpklNAJZqbQRSfHil8e6CCa4KqJOEUQZdShzD1Rc4igDQszpzd 72+EytJq9+HhpQ25GOIsFuvaH8GMF8yg17QO+nLzKXl6zfAIL8CYPjgBNfe7KzrnxO etYRilelYKL/rTGq1iCJrPCVBup5Q2kqG12MwfzUTVWFWPtKglUfmZZYOY8tOLGjfJ v+DkaYxNtDieYDElLa9zOE0g557bWGHjxZr0mvdaJ7UUi1Tf1eCHd/4MabLQwjxAmL yCgwzKH238x7A== 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 v2 3/3] arm64: dts: qcom: Add device tree for Samsung Galaxy Tab A 8.0 (2015) Date: Fri, 6 Jan 2023 17:25:32 +0500 Message-Id: <20230106122532.3310265-4-nikita@trvn.ru> In-Reply-To: <20230106122532.3310265-1-nikita@trvn.ru> References: <20230106122532.3310265-1-nikita@trvn.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 From: Siddharth Manthan Galaxy Tab A 8.0 is a tablet, very similar to Tab A 9.7 with major differences being the display and touchscreen. Add it's devicetree reusing a common dtsi from gt510. Signed-off-by: Siddharth Manthan [Squashed multiple commits] Signed-off-by: Nikita Travkin --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/msm8916-samsung-gt58.dts | 78 +++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-gt58.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 70e3b109aeff..062561db33f1 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -20,6 +20,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-e5.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-e7.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-grandmax.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-gt510.dtb +dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-gt58.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-j5.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-serranove.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-wingtech-wt88047.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-gt58.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-gt58.dts new file mode 100644 index 000000000000..fcf516888739 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-gt58.dts @@ -0,0 +1,78 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8916-samsung-gt5-common.dtsi" + +/ { + model = "Samsung Galaxy Tab A 8.0 (2015)"; + 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>; + + pinctrl-0 = <&vibrator_en_default>; + pinctrl-names = "default"; + }; +}; + +&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"; + + drive-strength = <2>; + bias-disable; + }; +}; -- 2.38.1