Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp101875imi; Thu, 21 Jul 2022 16:58:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uUxxKuNYiya16VrnrHjkBgnS/ALJuHAMn54igR4oYnFzCqUqEj1mzOwgFoK5qkk9yuKxtf X-Received: by 2002:a17:90b:1bc1:b0:1f0:3830:8c99 with SMTP id oa1-20020a17090b1bc100b001f038308c99mr14344246pjb.1.1658447891609; Thu, 21 Jul 2022 16:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658447891; cv=none; d=google.com; s=arc-20160816; b=gxMN7KeoIKXzEHs5Frn6vpXTJyJyFEduPxVp/KLJhnDSogOYTVQZIqZfJ669VTSdSp ZiW6n73PBiSaHMEaw7aZispP3q/Okyq7b6xLQgykAcvZgXVubk9oILPUseg2J7w+Z89W 1D2qejsxlXkJ0gn4LacUgaUteM3Riu1R+l2EMMB3XmXHn0zsOTcN8eEa694rn8wvZXNf niDoY6sbgOsA3VvrXwuyynRm5eb7tyrktMb1t5SOYZRXN7Q2+D/oGDl6o0SypnI7my/E CyC900eOFx0DGwGeRa3FmbCUTWjr1IvJkwX5Pc13sdyx41o5Gt3Sd6FKGkSnorkeaIYp do7Q== 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=f7S0wFYVa94uuYvy/CA+AbuAXJ6TWBZwRlc6ONo3zXs=; b=Qtd4a/lb+yxoKhS0yTk1KlVdWVX0tOHKvHp+UkCRyXgtJp2mCdLps9N73hWfaoS/Zd jQ3NjVF204TukTpiSwau491WKh127dT3dKUBZXcvPU2/Kai1W8h3fKJp/OjpCxSIsrCl Ut46wYprWazI1C8miyIfOIlTt6OXY7OYaQknHeIvDMUwOu/S4KWHF34rZB/OOiwPHOHt bpQl86hKzy9WszsUYJhEH1XXnAalbOCDpdRPGHN7VszV1KZeO8IDLegUP7UySMnIZHEL FNAF51vkMK5gAH9jgHKher6e1ONQOPc0on5QFtHSsSLQq1p+CFpNMGyg2butLhHdN7MY pMTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=boNTiMLN; 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 m8-20020a170902db0800b0016d20cfb129si4073479plx.232.2022.07.21.16.57.56; Thu, 21 Jul 2022 16:58:11 -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=boNTiMLN; 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 S233780AbiGUXzR (ORCPT + 99 others); Thu, 21 Jul 2022 19:55:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233810AbiGUXzK (ORCPT ); Thu, 21 Jul 2022 19:55:10 -0400 Received: from mail-40130.protonmail.ch (mail-40130.protonmail.ch [185.70.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C135DEE9 for ; Thu, 21 Jul 2022 16:55:07 -0700 (PDT) Date: Thu, 21 Jul 2022 23:54:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1658447705; x=1658706905; bh=f7S0wFYVa94uuYvy/CA+AbuAXJ6TWBZwRlc6ONo3zXs=; 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=boNTiMLNpCM8YWqVx7D1wRp8FsMvGWxCuFG/oOsBELSC3wrLE/lq73XwT9UA/wErm n/EdrS6YO+0GzN8uxlFyfd4ZfA7JRv9DHAljWwB1yz79tSXq2DvJqsslaSLqXItkk2 ae9A/sfTq8IzdUQ+SnhUDT1s3KbTurdrDqbfWRenOKloBfUzQLOJ3494o2dAXM6rRy dhlBmAMTdE8Q8kVpgeE1zaNCOO0RWmz8X9huclWITfRAFOzK4EqiTDDEGX3KefAFod CDIKsyOlLmfxJrq6LWOxOjPyVkWmAdLMxVmW6nKBfONM9daqYqnzIkTcXeVLyKE9hX 3XExs5GbaZSEw== 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 v4 4/4] arm64: dts: qcom: msm8916-samsung-e2015: Add touchkey Message-ID: <20220721235353.75440-1-linmengbo0689@protonmail.com> In-Reply-To: <20220721235205.74741-1-linmengbo0689@protonmail.com> References: <20220721235205.74741-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,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 93a14bfcf8f8..4a6cc575c451 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>; @@ -36,6 +49,11 @@ &blsp_i2c2 { =09status =3D "disabled"; }; +&touchkey { +=09vcc-supply =3D <®_touch_key>; +=09vdd-supply =3D <®_touch_key>; +}; + &msmgpio { =09motor_en_default: motor-en-default { =09=09pins =3D "gpio76"; @@ -44,4 +62,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 74c07a970317..87e990f4f9fc 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-grandmax.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-grandmax.dts @@ -37,6 +37,10 @@ keyled { =09}; }; +®_touch_key { +=09status =3D "disabled"; +}; + &vibrator { =09enable-gpios =3D <&msmgpio 72 GPIO_ACTIVE_HIGH>; }; -- 2.30.2