From patchwork Sat Jan 7 14:19:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 40406 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1320081wrt; Sat, 7 Jan 2023 06:23:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXswIGDVRHVSlaQa9Lj6BuXzAthfhYNmIX6L4XGJUBYoPtyAq36+OiRny7SVs/JnRlB1keD+ X-Received: by 2002:a17:907:3ea1:b0:7c1:7f84:10ac with SMTP id hs33-20020a1709073ea100b007c17f8410acmr84785319ejc.33.1673101383338; Sat, 07 Jan 2023 06:23:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673101383; cv=none; d=google.com; s=arc-20160816; b=AWnrxxpHQusszjTtEJjgSWPHtGwyoSR5RLD1zEPRmc6ES0FLuRk1YYv45YOdtY+lIZ vtRLlJ0UNBF8SLOi/6/itNL6dWZ5IHmgYFCSNFtHVNbnMdqDFxD1ByW6VykRo027pedj 6SXSimBdTB/rhDs9mBDExyKYIKyQqb4derUnJjOuoilFE+uvdqPA8Yr1adwJEIfbGBuO fopFF7yqjWulD/mzl68DlRwMYctCWpeqzWdq3w1rgN7Ha3PC0+J/14LMLecwfVNgN7lS c0I+ErIc+9Fls2/2c1766eFv3zrM0xwTA4brJpuB546/35dDVPFtNLEuIVIG92ZHcoXf rdqw== 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=Cxz9ZNILMpXKjvaBZM1bqG+gzI7xu8mhZ4lsqYXuz2Q=; b=EOgfghGf3mvPGF4RjpHD50ILoxrftqYfbg5ZDmSiTMKxtTrv8U8aSxw6muoKBkr9GW rPcrpKdiQQdg1pAhmVis8Itlj0C/Nny2MGVpPvgKPq5WNKK46zy7j7lj5SdBRsHF8l2Z txbappSg28vzI9dpHYtfJP+c/3xsN7ZCAiubNUEMM2yB/0Iqqt22OT7Ne9cTTrcDRrV1 EcRpIiPxL+RAJ6mIybFnhOqHoVBFTRvgA5U0sfWWgFFLolRFx/hkPaRbfIrB9Ppk6vUq LC5Rzds70ngGmiMdN0qSPUPPH0gSWDJWllWu0746Y8xx4tuF/ITBnMd0Ws0yLVbhyGcL Pc3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=feEc1IHT; 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 qf11-20020a1709077f0b00b007bd6264c2dbsi4386529ejc.28.2023.01.07.06.22.40; Sat, 07 Jan 2023 06:23:03 -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=feEc1IHT; 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 S232830AbjAGOUE (ORCPT + 99 others); Sat, 7 Jan 2023 09:20:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232750AbjAGOTc (ORCPT ); Sat, 7 Jan 2023 09:19:32 -0500 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C640D4D4B6; Sat, 7 Jan 2023 06:19:27 -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 BB1054BF42; Sat, 7 Jan 2023 19:19:20 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1673101161; bh=98yN+f2gbc0QP8iZEQUmpTCgZk/fJzPj6sESd2fvICU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=feEc1IHTz6shvxyG9chz4pYm2EfEJZst/iv7un6D4UKntYxv2zUSHmulAb+psKcaL 74zhTqu2WTGFgV1FSBaGPZVOaDLUVULKeGX9tKgLve+awfh6wJctFl04U5TyIMCJum tYUIepSrldRtQaXRl/uttlu23KrsLMc6eo7d7jViLqNWsMKGRoYkxwRfVIyu+MYrXh AI1W8E9y1Bdm1eXysIB+o0Z+6y/DgRCRuJHLV4ibECtXz7zbErdhNAtW2HA/Zrh7vp 8Y+nQeGSeKTU5A+yypt0V+W3J1/BV1I85S7Ooms4wH7owyGphmrJrRvaCF8B0JJO8K mWinzZl0SRYOw== 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 v3 3/3] arm64: dts: qcom: Add device tree for Samsung Galaxy Tab A 8.0 (2015) Date: Sat, 7 Jan 2023 19:19:11 +0500 Message-Id: <20230107141911.47229-4-nikita@trvn.ru> In-Reply-To: <20230107141911.47229-1-nikita@trvn.ru> References: <20230107141911.47229-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?1754373956362306617?= X-GMAIL-MSGID: =?utf-8?q?1754373956362306617?= 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] Reviewed-by: Konrad Dybcio Signed-off-by: Nikita Travkin --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/msm8916-samsung-gt58.dts | 75 +++++++++++++++++++ 2 files changed, 76 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..5d6f8383306b --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-gt58.dts @@ -0,0 +1,75 @@ +// 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; + }; +};