Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp1637363imi; Sat, 23 Jul 2022 12:05:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1upBOFrgfpLZcgQhi9cOeTaOi/h+IEN07/RPUlGq3c/LDjB/hMJA/s1Jgb/+WvSnMNpEkZe X-Received: by 2002:a05:6402:3807:b0:435:20fb:318d with SMTP id es7-20020a056402380700b0043520fb318dmr5344080edb.272.1658603151049; Sat, 23 Jul 2022 12:05:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658603151; cv=none; d=google.com; s=arc-20160816; b=IqvCL0YeWT4YB57XeXshVd5ZmW77hVoBo6DF1r4yaAx5k7Y1vocsyMxiDLKvyh2m4w tKL4wOTlPuSaRKtTJJRsKWPVyi3ktIirROVgvpoW9v3mKaOLP9q0C90vWa19ePYxLL5b jMZRtOnuqnh5WdQq8jx7IxNKLaK7bhSjgTw6AIalpv9L8Rs1RdfR+dMaDREjR7HxPT6C bfQpoO1JrpBCz+U09vRgC3m4AnSbA0GM6jSaRaGe0mlcrq1JR+cv8jNfAzqRFKc42Ger HhPnDq3JL2M28/reT06fgHB0fLo/zW4VsT8O7RY6ZGTE7SddNlpmL+YpyzsnfjtVeoHi fXsA== 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=mfjREIH6eIyAt2qN+nS56MGp6DqRaaVCCioAstVF3bw=; b=Jp5U4aqbd9G1CgubR5kZO6ZWA4X2IXn1IeCEdru8vDm0q/Siw9tejz5dERyt/GrFfW kZT6G2xmVuUdk0QCq0diBBIBYoYY3nTxozFKDSQzdijW6WyJjfC+PLczMhEC7FNObadp oNIHwDGw2by/sMyuZ/TFBgWv55GUMb9gxmvUjCEhATobbSocyADrMv+GgDoBylhuQUuX o8ueyUh9n9T73eE+F6ujV1JoPYgad/I1+Qanqmqg4IrY0o5x5w1Vgt7e+5zBroBYp5dD VTDYCF1EcvWNUgZqgnyhXSEHf63xQNOr+pE+iW43MguH3eXTAVKxDmxAkLxu97KnvcLD siMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=vGeNcS5o; 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 oz16-20020a1709077d9000b0072b452b0fe4si7975741ejc.156.2022.07.23.12.05.25; Sat, 23 Jul 2022 12:05:51 -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=vGeNcS5o; 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 S238857AbiGWTBI (ORCPT + 99 others); Sat, 23 Jul 2022 15:01:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238891AbiGWTA6 (ORCPT ); Sat, 23 Jul 2022 15:00:58 -0400 Received: from mail-4325.protonmail.ch (mail-4325.protonmail.ch [185.70.43.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 273D019287; Sat, 23 Jul 2022 12:00:53 -0700 (PDT) Date: Sat, 23 Jul 2022 19:00:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1658602851; x=1658862051; bh=mfjREIH6eIyAt2qN+nS56MGp6DqRaaVCCioAstVF3bw=; 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=vGeNcS5ofTGG4xB1kIGIkugi+4IOiDzTw7Tc2Qa+I9BzscTYGKx73uO4+EFstNe2J /UCdYOGb8twCJaCLZ2WxrnhyA0IpyAKsmgXini4X91k+O17cI+UiXNBV6ZbGyw/T3N WI2OwkJmRA9JJ1mQ6X14KAhoQSM4vHgrtqkD6FsNTu8VAIYXbilRzRzIky0PfqstNZ ahuoc86l7hM7iH5zLGiAkNpXs5TE4gAwkYubLS4iVs9OYFTwYKTPj9tgzPQcK6CIQR bmdmrmXCHhMthMzKL3BNltYVQRETqaDK45utKeOTbQcj8NRdzWu2SYV7D4HwXF30zC loGYiEeslFsVQ== To: devicetree@vger.kernel.org From: "Lin, Meng-Bo" Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Arnd Bergmann , Olof Johansson , Stephen Boyd , Stephan Gerhold , Nikita Travkin , soc@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, ~postmarketos/upstreaming@lists.sr.ht Reply-To: "Lin, Meng-Bo" Subject: [PATCH v6 4/5] arm64: dts: qcom: msm8916-samsung-e2015: Add touchkey Message-ID: <20220723185927.203801-1-linmengbo0689@protonmail.com> In-Reply-To: <20220723185424.203340-1-linmengbo0689@protonmail.com> References: <20220723185424.203340-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 3677fd81b6c1..3b56892a05d2 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi @@ -26,6 +26,19 @@ vibrator: vibrator { =09=09pinctrl-names =3D "default"; =09=09pinctrl-0 =3D <&motor_en_default>; =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}; }; &blsp_i2c2 { @@ -36,6 +49,11 @@ &blsp_i2c2 { =09/delete-node/ magnetometer@12; }; +&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..cbb012d02a35 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-grandmax.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-grandmax.dts @@ -41,6 +41,10 @@ &vibrator { =09enable-gpios =3D <&msmgpio 72 GPIO_ACTIVE_HIGH>; }; +®_touch_key { +=09status =3D "disabled"; +}; + &msmgpio { =09gpio_leds_default: gpio-led-default { =09=09pins =3D "gpio60"; -- 2.30.2