From patchwork Thu Jan 5 12:32:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 39512 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp284935wrt; Thu, 5 Jan 2023 04:54:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXuJvAnvTVunuFXfzgVUB0Pd1ycSiO4IWYQ0P5Oq1yzw23tE14N0mTBoe047xu+rCPjTSo6w X-Received: by 2002:a05:6402:f02:b0:46f:a2c2:405b with SMTP id i2-20020a0564020f0200b0046fa2c2405bmr54349494eda.37.1672923252128; Thu, 05 Jan 2023 04:54:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672923252; cv=none; d=google.com; s=arc-20160816; b=Ux66NZHBD89CcpN3RKL1PUbsWsqP7kRS2bQJHqE+0NaT5fO+geqj1zRj1sALGfJL2k f5saY7YkT4A/9Dnv3eWIPNfvmh/vyeZN0UekbFotfpqnCXZmubhSmOSGu1jlSYMyD/+p NZcitqzrZG+4iCQnxGHmgkBXDNrmREDrPrhxYGsRnTT32aw6g+2WnDbv4nBLGGmtRG8O UNqbV9r/SKolcHtEDwCUIVzsPsykDWuyEVNocpwuHTJnbCebb6AugXOrzG+XjtO0Qmxm 4FTCUMEb2eZXNdL+YQvRISx6MEJGOFWu3pa1F3bu9kdRnlqEmL1vpAGOzFmPvxVCo+e5 q6PA== 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=ZZh035rx7oMN02/eaB1kEyqycXmmDffqbcy5TzITxd0=; b=jKbwckZo3y/4XXpvxZ0DlVc+BB2Vw9TJGTK3HW1xDECgMETH2P1ROE65phA9c5nq4I h3Gj/ByueM/bPhnEj1Tj7astx71V9KM8qyV/8304e1kuAk0uQ1SmCWQPfrHR7rBXvd/t TRXoo5QTiBrZt7jsdUR3tRvdYXRFwtA7TLcfCme6DSi06FXwKCzfQz1NKAplcdQj/2AY FprvTKSGA8z5XIcXjWAWC7C1Ey3mMBxYr0MIhJ2QDN2VN6ZQhGZJirkyOe05BmZnfcTv ABdLNx1N7zVyKC+EUGZDLAcfFbfpVFK0W9lwt+0FvgwLijHbImS1+ee+6X1NMH69ch// wsGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b="c/MzpmVw"; 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 x5-20020aa7d385000000b004844fcb5435si25836168edq.313.2023.01.05.04.53.48; Thu, 05 Jan 2023 04:54:12 -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="c/MzpmVw"; 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 S233416AbjAEMvm (ORCPT + 99 others); Thu, 5 Jan 2023 07:51:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233231AbjAEMvZ (ORCPT ); Thu, 5 Jan 2023 07:51:25 -0500 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 921914C72E; 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 BF980420CF; Thu, 5 Jan 2023 17:33:56 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1672922037; bh=hh4JNQz29tUUJcJOb3jkHgRe0Gpymsou/pdkJ3B9+30=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c/MzpmVwjlNi9C36AuedP+/78tiPnHi2V2JxPt5m+9OQSftZAOKWO9x3qPztaHFEY P/s9txObvGo7uNmE6YgcxCzCUuE7cglCpZ2KbaytAHYbHTBJxxrFaiLnDLNBRBkQZr yRBL86Yn/pfjGuDTi8pelVlVg73DdUFJc1yN95atyn8VQmyhkBcJ9TzpBk3MUfsNAW YdbjqqUwr/oHUBkVuvUKjlcCHGgz/mXgNtXXOv+pCUuNPVYVm9YZWg4enPr75gBy6d KnMepgqxGR5Z7uZYGBKcQtAhyoNn9ClTQVZDztknKDDVsDlOyv6+41IFNIlVuTDl7Y zzQQYLMWw4NIQ== 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 3/8] arm64: dts: qcom: msm8916-samsung-gt58: Add Vibrator Date: Thu, 5 Jan 2023 17:32:35 +0500 Message-Id: <20230105123240.1089375-4-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?1754187171744626678?= X-GMAIL-MSGID: =?utf-8?q?1754187171744626678?= From: Siddharth Manthan Motor is powered by VPH_PWR (aka Vbat) and controlled by GPIO. Signed-off-by: Siddharth Manthan Signed-off-by: Nikita Travkin --- .../boot/dts/qcom/msm8916-samsung-gt58.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-gt58.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-gt58.dts index 688e9be590ba..37140d041a22 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-gt58.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-gt58.dts @@ -8,4 +8,22 @@ / { model = "Samsung Galaxy Tab A 8.0 (2015)"; compatible = "samsung,gt58", "qcom,msm8916"; chassis-type = "tablet"; + + vibrator { + compatible = "gpio-vibrator"; + enable-gpios = <&msmgpio 76 GPIO_ACTIVE_HIGH>; + + pinctrl-0 = <&vibrator_en_default>; + pinctrl-names = "default"; + }; +}; + +&msmgpio { + vibrator_en_default: vibrator-en-default-state { + pins = "gpio76"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; };