Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4454656imw; Tue, 19 Jul 2022 06:58:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ucMmcK2n2MoubfokOT7tBGbnucfq7FQUoOkpvaVV1StlUNm2R2tsN0cx5ucGjNIoRLdNmd X-Received: by 2002:a05:6402:194b:b0:43a:bc62:69a0 with SMTP id f11-20020a056402194b00b0043abc6269a0mr42822632edz.400.1658239136088; Tue, 19 Jul 2022 06:58:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658239136; cv=none; d=google.com; s=arc-20160816; b=gKwRDovq8rtevKCjr5AeyprCIocnuDNXAfY/lA9zilqe5LmXfVRoETae4i/FQMLw0/ TYxC3KZBO8oAGP0yVBdVw2kEBADV6DyhZT+SbxfB37O4y+Zh5jG5NznjdL+jazVOCx+i dg8aL+V1vQNx55O2DYeS/7p4ASzO4yS3Vnv2h+pB54N9v7rgSpa7rYBno8XRYZc0bPpr Xv1eFhMKPuFNyG82gxWy53arLh2xopvDwcQdSEZKWTbCcIVDtpYSksnjRoOI3XzKPjVL P3EMlkMU9PhGiFXt02kZHelMSymyWBw9vGgGUm9HaYmFg4jItUEv4i/8njzrA1lyAzdf uO+A== 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 :feedback-id:references:in-reply-to:message-id:subject:reply-to:cc :from:to:dkim-signature:date; bh=zPqdR+HafcwDy1W0JQxmXtHI+hMl6rra+AYRnvrWqpM=; b=hZOUTXtRx0WmqtGxhQtlIB4LRuKvDZPJyZkaDH5Z08lxy+d0+qpkiHHePW0aS5Xy4j XRvsKAA/CHlIl+vK34x3lvNWcNYPoZtK2k6zv/vAyJ327wUH4frPDR/UwwEj1kjJDIAP S+2Y4B0ePJFBFvqRUsnpFCXp8QmUjVF1/fPEYJYn8SikHvMhABzc7vn3X5JgeIO432Fh wOcARriX2Gv6kNFufYNY3alJlI7ca2ZxxJbaE2w1h7xjviUIPbtf/Wb2vblpGOPtvbTR VgBsNmZMw2+GH+J9BhoZGA80uwUpDlaXLckgSdVpyUyUwxVl/TM0oW5XfRAiJbVgcbT6 IV/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=M6TbppgO; 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=protonmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp37-20020a1709071b2500b0072b4ad153dasi23250310ejc.635.2022.07.19.06.58.29; Tue, 19 Jul 2022 06:58:56 -0700 (PDT) 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=@protonmail.com header.s=protonmail3 header.b=M6TbppgO; 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=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235080AbiGSNtV (ORCPT + 99 others); Tue, 19 Jul 2022 09:49:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237799AbiGSNsz (ORCPT ); Tue, 19 Jul 2022 09:48:55 -0400 Received: from mail-40135.protonmail.ch (mail-40135.protonmail.ch [185.70.40.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91AA010A595 for ; Tue, 19 Jul 2022 06:02:16 -0700 (PDT) Date: Tue, 19 Jul 2022 13:01:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1658235727; x=1658494927; bh=zPqdR+HafcwDy1W0JQxmXtHI+hMl6rra+AYRnvrWqpM=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=M6TbppgOnLsPkpqhAbGDbPlJJgdQrLMcIGYAmQHRYh25/95n0y69NxHnAT/bE6jpX Z3fYHZZ/rOiA+zUDJ7keOCCYkkHp1IxMnLTtaZQOo70LW5BlVzw7Jff+dlJdKdjrdq zRHuLxvHvWE+gJeS1YigDc2wLW3ryoyKXL6y7GVhQEV4M7Qh5seD1aQiHQD1uwt58J ulGhkIifDL4Q2QjK86Cw8FQjLnvgRyMSzPP/xbWcA2E5BfPa4qZkOG3JDGvrpqziyq J/DWDq5FEnFE6YW1Kikch6KrGrIDZ/zVCfhP2i70ynwcXjR09dHROMZF5CvY3oH+KF 6fZGPervHqzUQ== To: devicetree@vger.kernel.org From: "Lin, Meng-Bo" Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Stephan Gerhold , Nikita Travkin , ~postmarketos/upstreaming@lists.sr.ht Reply-To: "Lin, Meng-Bo" Subject: [PATCH v3 4/4] arm64: dts: qcom: msm8916-samsung-e2015: Add touchkey Message-ID: <20220719130014.54847-1-linmengbo0689@protonmail.com> In-Reply-To: <20220715102055.3844-1-linmengbo0689@protonmail.com> References: <20220715102055.3844-1-linmengbo0689@protonmail.com> Feedback-ID: 40467236:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS autolearn=no 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 On the Samsung Galaxy E5 and E7 the touch key is supplied by a single fixed regulator (enabled via GPIO 97) that supplies both MCU and LED. Add it to the device tree. Signed-off-by: Lin, Meng-Bo --- .../qcom/msm8916-samsung-e2015-common.dtsi | 26 +++++++++++++++++++ .../dts/qcom/msm8916-samsung-grandmax.dts | 4 +++ 2 files changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi b/a= rch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi index 373154ee2643..9f3aca17130d 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi @@ -19,6 +19,19 @@ muic: extcon@14 { =09=09}; =09}; +=09reg_touch_key: regulator-touch-key { +=09=09compatible =3D "regulator-fixed"; +=09=09regulator-name =3D "touch_key"; +=09=09regulator-min-microvolt =3D <3300000>; +=09=09regulator-max-microvolt =3D <3300000>; + +=09=09gpio =3D <&msmgpio 97 GPIO_ACTIVE_HIGH>; +=09=09enable-active-high; + +=09=09pinctrl-names =3D "default"; +=09=09pinctrl-0 =3D <&tkey_en_default>; +=09}; + =09vibrator: vibrator { =09=09compatible =3D "gpio-vibrator"; =09=09enable-gpios =3D <&msmgpio 76 GPIO_ACTIVE_HIGH>; @@ -28,6 +41,11 @@ vibrator: vibrator { =09}; }; +&touchkey { +=09vcc-supply =3D <®_touch_key>; +=09vdd-supply =3D <®_touch_key>; +}; + &msmgpio { =09motor_en_default: motor-en-default { =09=09pins =3D "gpio76"; @@ -36,4 +54,12 @@ motor_en_default: motor-en-default { =09=09drive-strength =3D <2>; =09=09bias-disable; =09}; + +=09tkey_en_default: tkey-en-default { +=09=09pins =3D "gpio97"; +=09=09function =3D "gpio"; + +=09=09drive-strength =3D <2>; +=09=09bias-disable; +=09}; }; diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-grandmax.dts b/arch/a= rm64/boot/dts/qcom/msm8916-samsung-grandmax.dts index 41aada4bfb80..f68dd3d69a33 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-grandmax.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-grandmax.dts @@ -27,6 +27,10 @@ / { =09/delete-node/ i2c-tkey; }; +®_touch_key { +=09status =3D "disabled"; +}; + &vibrator { =09enable-gpios =3D <&msmgpio 72 GPIO_ACTIVE_HIGH>; }; -- 2.30.2