From patchwork Fri Jan 6 12:25:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 40112 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp794381wrt; Fri, 6 Jan 2023 04:27:42 -0800 (PST) X-Google-Smtp-Source: AMrXdXuyNnOTHXrXODhKv5dONPtGEHhK32/u4iZvEKmo3DWHXueL9jHmXRFRLrPZDop1Q3vfm65P X-Received: by 2002:a17:902:e84d:b0:192:8824:e516 with SMTP id t13-20020a170902e84d00b001928824e516mr50523687plg.51.1673008062302; Fri, 06 Jan 2023 04:27:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673008062; cv=none; d=google.com; s=arc-20160816; b=OF014lFZm0tP4ZUjDIiuxv05FfRFxNJzy/DQzKfzBZGI8CDnxq0oT4FFeHgOMXBp+I nUamC0kDOJIbLE5iIcID+lp2MfIzcF15Mxv8eYrQHDcLM9b/rzXZwg59QndRIDvVmAtw XgqYkatZvuzHfv3mYxWliAWKmmLkg5htNmbEYkcsxKwYifJnSZoyJwlW8WkGBGCpkRv/ Ok1EEySKwGazsE5bOAqoXg+cHd2PjisswXLkokS0JNf92H5JoxkCvuSiVnA7242cx7Jz C2UtV+i/ugrwUX92slDLhVI1yjja55mSa8Vrwpbi0rGcyb/knBBeNa+7S+bRAMBo3p2Q wskA== 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 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.27.29; Fri, 06 Jan 2023 04:27:42 -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 + 99 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 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?1754276102068680043?= X-GMAIL-MSGID: =?utf-8?q?1754276102068680043?= 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 Reviewed-by: Konrad Dybcio --- 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; + }; +};