Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp1974300imi; Sun, 24 Jul 2022 03:01:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tfb0uL7vI1QgU0+6IpTeLUeIoYHT4GQ+sXM9CE/FUVCwlYFeTGULai02omcTfLHVFD9oZN X-Received: by 2002:a17:90a:3ea7:b0:1f2:2d62:bfc1 with SMTP id k36-20020a17090a3ea700b001f22d62bfc1mr9075330pjc.8.1658656886642; Sun, 24 Jul 2022 03:01:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658656886; cv=none; d=google.com; s=arc-20160816; b=Pr018+h6QboDNSDDOP8UzyqgXzuhgaX2b4cRPpzfZkeJsnt1ZOHpRw79EjEslgEgZb XH75Mk6+yQFQcJILERYK4TYys5CAwwBLBCLZoYuj9Q3YlH/aKkxtbNlPl15osr3oA012 Bss5knyxINsRo6P1Ke6aIaT4DhLORxCQJA4vf/ulihkz4/XvM7Gjmj9Iz+zRweoKnY4F CAGpMRo5v14PrM/5AF5PAqCASi7FGRrxj8YZdaTZgEw+2NsEi9x1AyAe4LbSU31gwGPp HH94ZMJyflnZbfHGLSTP2KVb6JyiTkPL/zJpagllJ/Ao+XIQGI/6S7SSsnZz+HLrZdY4 jcbA== 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=FEF5AAiMS4gD8qsqPLEZ7xhLZ3WtoMjzRd22rrrxYf4=; b=oN0MQ9ljKGUqd+fLD6gdJvpUZX9fQ1flh7eTQe4BhIGwBAh4VWuFTrD5H5U2KvZN7Q LgWDif1xLYy1iLoK6fQrYytVaBr+dkunr+XtawLwii7RsIuNyyHlucF0ENQ83QWxh7fu kJ8EguuXkH8hm+fS3KNq0cIC3RaVov/ijf8Gcmf0AtUfKcYKrcKFf4TqWZtAmcicMYYY kBuQA4DMuz3DHBeJY3gNomjD3ynjdL7SvKsqRv5FVRd25mU9ajLklcbmSP1h8spZIBqm PPGCLljoXLFBuqqXqDZ5C3bLAyghcdZAAFvdo+onsjU1wAJHm1LdgApJuUzb4KiPAwhP q23g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=bbTAC0eG; 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 t2-20020a170902e84200b0016c4f0fc8dfsi13651488plg.598.2022.07.24.03.01.11; Sun, 24 Jul 2022 03:01:26 -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=bbTAC0eG; 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 S234492AbiGXJ4M (ORCPT + 99 others); Sun, 24 Jul 2022 05:56:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234073AbiGXJ4F (ORCPT ); Sun, 24 Jul 2022 05:56:05 -0400 Received: from mail-40141.protonmail.ch (mail-40141.protonmail.ch [185.70.40.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27E01DEE4 for ; Sun, 24 Jul 2022 02:55:56 -0700 (PDT) Date: Sun, 24 Jul 2022 09:55:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1658656554; x=1658915754; bh=FEF5AAiMS4gD8qsqPLEZ7xhLZ3WtoMjzRd22rrrxYf4=; 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=bbTAC0eGK0IsA02e6NpZaAKsH8aw6uHMRcwaz1R9tvUkTIY0MHBz35dyT+c8Ej5Au KWYsJAT3IB2nLHVMTCiWuvBQU3BWr+/KxdYJlfzc5dNCS71dOeg5tvzfNkTMpilGWH P2gRiQNby5uB2GmPREutQAQn84twp8gd70V0vGp/rPjxjHFt96EDfjL+t5bGhG1FTR fENX7i13Vlq/wISFTasvVs9ncgg6ZQkit+cUbi/uWZlypx6FTPjmLTgZO5/FUBLWZo UScWBhECWTdxi7e6aAbNaiNeVkUEMAv09NXVnTj1fKjlBc/VIjatNCLeLt9CMNv9n8 A/ZVDKItArixQ== 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 v7 4/5] arm64: dts: qcom: msm8916-samsung-e2015: Add touchkey Message-ID: <20220724095426.14189-1-linmengbo0689@protonmail.com> In-Reply-To: <20220724095039.13568-1-linmengbo0689@protonmail.com> References: <20220724095039.13568-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 9caa8a161d31..542010fdfb8a 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi @@ -38,6 +38,19 @@ reg_motor_vdd: regulator-motor-vdd { =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 { @@ -48,6 +61,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"; @@ -56,4 +74,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 4c1becdb9428..bc7134698978 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 @@ ®_motor_vdd { =09gpio =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