From patchwork Mon Feb 6 20:40:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13130567 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D205C64EC6 for ; Mon, 6 Feb 2023 20:40:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230340AbjBFUkg (ORCPT ); Mon, 6 Feb 2023 15:40:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230048AbjBFUke (ORCPT ); Mon, 6 Feb 2023 15:40:34 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C220A7D91; Mon, 6 Feb 2023 12:40:33 -0800 (PST) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 05291CDFDF; Mon, 6 Feb 2023 20:40:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1675716032; bh=wlZhYLWOENv0UNIglzrm9eMdi8ajcS07tw10uEADoOs=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=jLMsJGUfMObpVXsvfF3SR4kkA5SgwvJ6jXXzfbapSgWcuqQZVXW4XboD93IKfuo7O JW0EBZH2Q5Lwmw6XjpzlgG/xp9q/XDqgR9mW8Ffa7/5rgrwQzfuEMiHsmIkH2wKciz 9eRM+HnCEQa9VN9LywXljjfLHXactYSFmXktgNQo= From: Luca Weiss Date: Mon, 06 Feb 2023 21:40:14 +0100 Subject: [PATCH v2 1/5] ARM: dts: qcom: pm8941: Add vibrator node MIME-Version: 1.0 Message-Id: <20230122-msm8974-bacon-features-v2-1-06bb83c20a58@z3ntu.xyz> References: <20230122-msm8974-bacon-features-v2-0-06bb83c20a58@z3ntu.xyz> In-Reply-To: <20230122-msm8974-bacon-features-v2-0-06bb83c20a58@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=768; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=wlZhYLWOENv0UNIglzrm9eMdi8ajcS07tw10uEADoOs=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBj4WW7V5Y9LcO7ZlIfqleBoBct/ux4tjEaaU+5i /4Aq5HETXqJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCY+FluwAKCRBy2EO4nU3X Vr5qD/kBOV5q24CuwqDrtQ05D/CRNVPXbTw99M2/HRAwTjfmwoAmTrIfF0qD2X0Dy4Lycb5J1KX 2hT2VhXadsumFOlAcZrAgedRnzkpbCDVXfx9foSiqmBpbxxu/vHWvhyaKU+rdBiqgRLJ9TuHSRl 4JVq2QOHluFUyY8PbWSz24WYj0ejjHhV3U/lS0xOv1Vz3eL6pwYXXLgSRKsj1MlG86R3t4NLbbZ FV/Yz94jPfN5d0RBX61wExOKTw6fiuc3R6FVdjUBW1yEyP/4qUV6/86lRcADlRwpLHWdJvZLo04 nlJvri8m6n5/g/NB5+DNed1uB8nCh4cnjn/0Tm+s3aw7h2127oIlFwTfaXfmRnj8r+mK1ati69R oCwRugCDOmp2Ohkd5iq4GNB4v/uQyOU+ZA9GdPxdVgW+xAEMsgqnTvQsq76PgSQ2OKwZLnv80nP S9BB4s1h6f6ar49w7Zelp+C4vGrkeXtcOZ47dZIjyNsOhJhnl39NbhAlHD29F09vF+Avb09de5n cTstjZNZWAE9h18LTjhWe9mZzB1l/+S5YZHsPLS1F3tKaT4N+rpZ7iM0xZrtukXl/sZQmuotKvK 2vTedL1B81dTI2F8EZJpKutZkBAIz7nD2kHIbpIFDvmHl3WqprhVwi1zHVb08KHUpf1khpT4YNz GCej1gwCXwwGKcA== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the node describing the vibrator that's found on pm8941. Reviewed-by: Konrad Dybcio Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom-pm8941.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/qcom-pm8941.dtsi b/arch/arm/boot/dts/qcom-pm8941.dtsi index cd957a1e7cdf..a821f0368a28 100644 --- a/arch/arm/boot/dts/qcom-pm8941.dtsi +++ b/arch/arm/boot/dts/qcom-pm8941.dtsi @@ -161,6 +161,12 @@ pm8941_lpg: pwm { status = "disabled"; }; + pm8941_vib: vibrator@c000 { + compatible = "qcom,pm8916-vib"; + reg = <0xc000>; + status = "disabled"; + }; + pm8941_wled: wled@d800 { compatible = "qcom,pm8941-wled"; reg = <0xd800>; From patchwork Mon Feb 6 20:40:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13130570 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D22EC636D4 for ; Mon, 6 Feb 2023 20:41:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230238AbjBFUlY (ORCPT ); Mon, 6 Feb 2023 15:41:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229776AbjBFUlX (ORCPT ); Mon, 6 Feb 2023 15:41:23 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E50A976A8; Mon, 6 Feb 2023 12:41:03 -0800 (PST) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 4CAD8CE06C; Mon, 6 Feb 2023 20:40:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1675716032; bh=bDlJVkD5QTEg5c7M328wQLe9SAzuVrBEP8dUuXHHvEw=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=RbFuaJtBRPaesr6pihtgvrTYh9CceszYn4HcP0AQCsocpeYnrctxugV8IQDvLhiVU i5HRChMqIXqHvLIBlO5ipkuO5v3Gk7XP9KvpZcoLPIHWs/NTZWhGHPJYCj9VLhnikI wBpXTSxY+pD1tpEZGUt91Ffx9SiJA5afsY8o/7CY= From: Luca Weiss Date: Mon, 06 Feb 2023 21:40:15 +0100 Subject: [PATCH v2 2/5] ARM: dts: qcom: msm8974-oneplus-bacon: Add vibrator MIME-Version: 1.0 Message-Id: <20230122-msm8974-bacon-features-v2-2-06bb83c20a58@z3ntu.xyz> References: <20230122-msm8974-bacon-features-v2-0-06bb83c20a58@z3ntu.xyz> In-Reply-To: <20230122-msm8974-bacon-features-v2-0-06bb83c20a58@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=746; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=bDlJVkD5QTEg5c7M328wQLe9SAzuVrBEP8dUuXHHvEw=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBj4WW8v3bg+ZGXlM/xf9PQS5fgx/qMCHMwVHTf8 PMPBJi7MkyJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCY+FlvAAKCRBy2EO4nU3X Vu0jD/wJCHQDC1sY5seIfZC938fqLmr3zKPbyecWMEJHMvvReqC5RvdhnIqPDxcjFx9t5a46qYJ J5B4XL58p2gSL6EC4WrsHzXEpuNY1gXO9QL414mWRi8SP/FizBn2ngGT1HcJstL3YyKrfrib7yc VpD7Ebo4dOEfNRRPMLrlPBCMnQv7B4tyukfIH0PtHy2pJLrQRWUMsj61YfBE/b+fL2WFk7Fc9k7 vJB2nODgdUx1e1iIvZr1ImJZWbKVIaawCOvV1gt5ZrlTwPPZpKd7FX29+2E20ynxBixH6WoEoTR PNdqxV07PHh177oMh4v0dewxY9sqryspMYucElpd5zy/RaphytSRvevwl7fXikgdHx4tD4MVJj6 2AnofUta0qfCrWQj1dIVqYJqKXkFUvGBh8E7QgAZioqt5sxxoy0r5+wLq4WSuQKb/Y+MYn9sER2 49wVVq6t5pwiCk4SJsfdTngU3Vv1PLGdtwfc+u5QYvNke/CaWF8uDkZi5SemrJNaGoZfp4qMYda G7VQJoy+sGItlxBOiRZTFbHnWojw1c86G/IziKOooemmRTS6KdI45wqX2y3L4KOpg/91pgMtwXB tg1TjaFaGb/8BrzSrWhF13S5FuTzLOaudK05Xdq10aq19sauHg2Oyde3+o+a+uJJgug/w9i4g33 E1Isl/bAUtKw+uQ== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Enable the pm8941 vibrator that's wired up on this device. Reviewed-by: Konrad Dybcio Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom-msm8974pro-oneplus-bacon.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974pro-oneplus-bacon.dts b/arch/arm/boot/dts/qcom-msm8974pro-oneplus-bacon.dts index b5606623f968..63180fe1d292 100644 --- a/arch/arm/boot/dts/qcom-msm8974pro-oneplus-bacon.dts +++ b/arch/arm/boot/dts/qcom-msm8974pro-oneplus-bacon.dts @@ -95,6 +95,10 @@ &pm8941_coincell { status = "okay"; }; +&pm8941_vib { + status = "okay"; +}; + &pronto { vddmx-supply = <&pm8841_s1>; vddcx-supply = <&pm8841_s2>; From patchwork Mon Feb 6 20:40:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13130571 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F674C64EC6 for ; Mon, 6 Feb 2023 20:41:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230379AbjBFUlZ (ORCPT ); Mon, 6 Feb 2023 15:41:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229961AbjBFUlX (ORCPT ); Mon, 6 Feb 2023 15:41:23 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 351213AA3; Mon, 6 Feb 2023 12:41:04 -0800 (PST) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 9AA66D1D67; Mon, 6 Feb 2023 20:40:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1675716032; bh=wwgeMDcIHU2HaiqoMeHN+n1sdl7b4K0Q6WOKBKwPojE=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=vy5pREk/fikTQRfiOwkkjMnAyalXialldNCDVHDEh5pvCdaXN5RAT1FcoNbVmmTU8 tTxGIjABPBiqroBUiDTLAYlfBFrDxoSVBfjtAPBRzBWXKbHw5izwOlk6zs/lTf3zsK NjMkq32XSCtbzwas9NUkT7Fl9Oa8+AUXW0e/QugE= From: Luca Weiss Date: Mon, 06 Feb 2023 21:40:16 +0100 Subject: [PATCH v2 3/5] ARM: dts: qcom: msm8974-oneplus-bacon: Add volume keys and hall sensor MIME-Version: 1.0 Message-Id: <20230122-msm8974-bacon-features-v2-3-06bb83c20a58@z3ntu.xyz> References: <20230122-msm8974-bacon-features-v2-0-06bb83c20a58@z3ntu.xyz> In-Reply-To: <20230122-msm8974-bacon-features-v2-0-06bb83c20a58@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2015; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=wwgeMDcIHU2HaiqoMeHN+n1sdl7b4K0Q6WOKBKwPojE=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBj4WW9cMsJDffoL5F/nnYd4uHuAG/ALeOzU4xD8 MEDUHAnmdqJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCY+FlvQAKCRBy2EO4nU3X VsbcD/4lg88Tzlp7dKAurpPvfTwj7bTVWR+VAY9nmRiezofihSk72uyv2hTSRnjFDFEf2M7t2lk OyNXW2NgF6wwdRZAHygfNIwnhcpemJ/q8hVcWpAP4NaopRbBMDjzSuGldyC1oGPo8iq7EK4geCb oF7RFpKYbGjtti4oE0X58ZsfmiyC6+vEJ4tr75aj2BoSQ2jernw2AaW5P4G45UJHFpp/Zz3m4Of B6CLnqcmiNoJQdLrsAHiU7lchGgVnWFcF6TN7JdVok4AuJoy2kM8CavPhUnHSbo2RMmMaebMIg7 j4LTQXAQ8YBErySNNYpaMZ7vjLsklKIxVi1c8/go51bI5PS9gXlOu7+w6z6TKwc7lbBDusXPI4a gloZVsKewIek5R4gmzqJfpuyvAUbvprJmaV+4LN4FwgUR+9Yt5eTXgLeNuSJr1ouAatXKgAI3MT kI8Sf1S2kw6U/B2zWIqFXZtWztH7LjRJnEahTHGI4KkF7vKrQ5SncIdKAEzG/jShcDDefM7FI86 VZggYKnxBVZbrLsIbZUPbJ6ZebDo4VrLexdKnM9XQQCpCDxN/OY/59S0d+0gX4gF10u5kVVKmvb Au2XIWg2iXhqNcr426egnQipwMlJK78YsERchCNOB+j+hnNeedVW79MPUa3XGwMZbX2Q5DI9RWy yedjJQp14C2C77w== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add nodes for the volume buttons and the hall sensor that are found on the device. Signed-off-by: Luca Weiss --- .../arm/boot/dts/qcom-msm8974pro-oneplus-bacon.dts | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974pro-oneplus-bacon.dts b/arch/arm/boot/dts/qcom-msm8974pro-oneplus-bacon.dts index 63180fe1d292..c4c355533149 100644 --- a/arch/arm/boot/dts/qcom-msm8974pro-oneplus-bacon.dts +++ b/arch/arm/boot/dts/qcom-msm8974pro-oneplus-bacon.dts @@ -19,6 +19,38 @@ aliases { chosen { stdout-path = "serial0:115200n8"; }; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-0 = <&gpio_keys_default>, <&gpio_hall_sensor_default>; + pinctrl-names = "default"; + + key-volume-down { + label = "Volume Down"; + gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + debounce-interval = <15>; + }; + + key-volume-up { + label = "Volume Up"; + gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + debounce-interval = <15>; + }; + + event-hall-sensor { + label = "Hall Effect Sensor"; + gpios = <&tlmm 68 GPIO_ACTIVE_LOW>; + linux,input-type = ; + linux,code = ; + linux,can-disable; + debounce-interval = <150>; + }; + }; }; &blsp1_i2c1 { @@ -95,6 +127,16 @@ &pm8941_coincell { status = "okay"; }; +&pm8941_gpios { + gpio_keys_default: gpio-keys-active-state { + pins = "gpio2", "gpio5"; + function = "normal"; + input-enable; + bias-disable; + power-source = ; + }; +}; + &pm8941_vib { status = "okay"; }; @@ -349,6 +391,13 @@ &sdhc_1 { }; &tlmm { + gpio_hall_sensor_default: gpio-hall-sensor-default-state { + pins = "gpio68"; + function = "gpio"; + drive-strength = <8>; + bias-pull-up; + }; + sdc1_on: sdc1-on-state { clk-pins { pins = "sdc1_clk"; From patchwork Mon Feb 6 20:40:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13130568 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D28CC64EC7 for ; Mon, 6 Feb 2023 20:40:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230310AbjBFUkg (ORCPT ); Mon, 6 Feb 2023 15:40:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229906AbjBFUkf (ORCPT ); Mon, 6 Feb 2023 15:40:35 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 938713AA3; Mon, 6 Feb 2023 12:40:34 -0800 (PST) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id E3C73D1D69; Mon, 6 Feb 2023 20:40:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1675716033; bh=4pVRIq9TxlreCENfNiVq+7cFfOavDFW8QxpNnrRtgu4=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=lBxzrB03zi298/xWdk5y5Ql6MAUn5nHh8BFJhHeGHPMdkvbBp5Hb3UtxQkiHoPnLz sCxOaQ09JxZ3BC5kdm3z4nhfjCZC9vPHkvHMT3sdhOf8rGFqiLuJticnsHk3kn/vFN iWWWs9YZcyYI4aY7p/7bj0Y9Y5OMfm79aOO9A4gA= From: Luca Weiss Date: Mon, 06 Feb 2023 21:40:17 +0100 Subject: [PATCH v2 4/5] ARM: dts: qcom: msm8974-oneplus-bacon: Add backlight MIME-Version: 1.0 Message-Id: <20230122-msm8974-bacon-features-v2-4-06bb83c20a58@z3ntu.xyz> References: <20230122-msm8974-bacon-features-v2-0-06bb83c20a58@z3ntu.xyz> In-Reply-To: <20230122-msm8974-bacon-features-v2-0-06bb83c20a58@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=938; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=4pVRIq9TxlreCENfNiVq+7cFfOavDFW8QxpNnrRtgu4=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBj4WW9CZ3vxbRhBDMlt7USEpsJjQ7cXQOB0IxqW LaHlcTC4GeJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCY+FlvQAKCRBy2EO4nU3X VpUTD/oCMFxSflnFAHiJsu9jNF9MU/sY7zNTEibALm3caHcx9yFX16GE1DP+rPpKOVRNDq7B0G0 U/XP/7NJDsZaJQCpSEuvYCrjYkbm/9arq5aJ1ql3y0UZDWZu+kX8hTj5NPG1QHy74uhjlwUI3mm 595zcIh1daKlcQVHrfeHRWp0vGICtKo4Dnhzdy7meUgDl5Toeb9Qt1DgZk74LukWS0X70/1L3HH QzV8+x4aSfSHd6PJVRuTZmS1Luvtbr37JskaCfo8B91N6BKbbSuoxVN6cGoMMrM+i09TEg52V3w cO0HTfuqKrUpdb0nqCNMVkewNPJmXCki8ZE4G5nzz6DCxBnLCg2IsYvnlX2CYt87GqeiilXeZEo Azx++JPFl04Gy/yiQI31n2TCR8f5fUa4upW2hNICy0whS95bikxFqit+xONUlb0YhD8lGaZmVNX PTnHnabkIUXx56bLQ5WiMzoUNfVVBZH6StKjQOcG8A4aqI9XlQIHgCgTWVgW3JUKH6Pd6oVN2/c plHUher8qg5fBUTiKHLTNrNR7o0vFLPdW4+iWf1rLkiwSF6SFl6V+wJgfpiwn/RRzxcO3hOlOYj 0JWp/bRPcf7VtDQdvpVX8yqKfC84rOr2EWeM/HlV0//DA2VLTCR8dRXKPcvYuPn/zZdTVVeYv2U hAfGph6Wvdp2HaQ== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the node for the lm3630 that is used to control backlight. Reviewed-by: Konrad Dybcio Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom-msm8974pro-oneplus-bacon.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974pro-oneplus-bacon.dts b/arch/arm/boot/dts/qcom-msm8974pro-oneplus-bacon.dts index c4c355533149..a4b5d680c097 100644 --- a/arch/arm/boot/dts/qcom-msm8974pro-oneplus-bacon.dts +++ b/arch/arm/boot/dts/qcom-msm8974pro-oneplus-bacon.dts @@ -99,6 +99,21 @@ rmi4-f12@12 { syna,clip-y-high = <1920>; }; }; + + led-controller@36 { + compatible = "ti,lm3630a"; + reg = <0x36>; + + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + led-sources = <0 1>; + label = "lcd-backlight"; + default-brightness = <80>; + }; + }; }; &blsp1_i2c6 { From patchwork Mon Feb 6 20:40:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13130569 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C30E8C64ED6 for ; Mon, 6 Feb 2023 20:40:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229958AbjBFUkh (ORCPT ); Mon, 6 Feb 2023 15:40:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230351AbjBFUkg (ORCPT ); Mon, 6 Feb 2023 15:40:36 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFA467D81; Mon, 6 Feb 2023 12:40:35 -0800 (PST) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 420E2D1D6A; Mon, 6 Feb 2023 20:40:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1675716033; bh=seYDTlxpMzvQVtMfNvABd2LwuWxm1YJSIuqTsjMROQ0=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=ZkJzW+HiurRMvK6zM3RziYdnQ6CQ3iVKDX1MMXj8zZAeb/wbBt21peEfGWNNrzNIO Qf5AvX/qNwCo5GFHYHcUmjqb/PnPhrrAzNx8Jk4BIj6j+ciKydBo5sLjlz79PLW3VC Vwoy/GyvVZwOFmus9R/a3Iwrq1rDKhe0fDn0z8fc= From: Luca Weiss Date: Mon, 06 Feb 2023 21:40:18 +0100 Subject: [PATCH v2 5/5] ARM: dts: qcom: msm8974-oneplus-bacon: Add notification LED MIME-Version: 1.0 Message-Id: <20230122-msm8974-bacon-features-v2-5-06bb83c20a58@z3ntu.xyz> References: <20230122-msm8974-bacon-features-v2-0-06bb83c20a58@z3ntu.xyz> In-Reply-To: <20230122-msm8974-bacon-features-v2-0-06bb83c20a58@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1319; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=seYDTlxpMzvQVtMfNvABd2LwuWxm1YJSIuqTsjMROQ0=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBj4WW+mUJuyLk9BQkGprDfxlRyZNuunRkz5zOCH FqK/HYoEpyJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCY+FlvgAKCRBy2EO4nU3X VswPD/wKDjVqF4QFKUAcYRtkolZouxmnvYmksqixKfon+Py8QjfSktMW074uXOZ2WqntQIkOaSE 7Lyp8RNjHvcrZ47HpVdOvkMzpYEyvF045/LTacuWZtlnnFyR0G4UjSg6tC17OHCQ26FKTPlD5E8 JgsOfucC3DUn20t5X3Hab2yjZR+HxIaWo0YBJEpBZL+Wo8aO7wbXdMb15En6rFwIlUJPGPyDhZv +xatnXEEI0NrKh3//jsBWNih+lVOwg74Zfb2VIXFp+nz94AOZ3byUw1qOMAWJVVDaumNhhLfgFo cxjtbE9I+ghLuwOCuidnGkASOZrMZq4/G4VWSqqmkXQ9V2xaPtu+cL0Uk1PIHHycDqdZx7STkhL 11zhJo20BrhUh4NlQR5oVL0o4gEdAuFDvwHscbUxS4mIglSsWA2UD1oIzVkVMOkbCDBW6/1xnH+ gIRbbFAhgD1scVLg8tkkzoeAwuFb+XbM1eqyBc8/eii1IUyZ31AX3b2OyN4EOPVnHI1hXt5pNVl L1WzoZSYZOtu2YDE7d/IQOrR3BfM+2PHAuRYBUK73vIkvPdPshqiwbszC2lIkiXWaCLGOeambY+ 9f7yEsC/a0WFP84YKOGzYoPM6NdDSJM7Hinq6f3kwITzqbWF7GWfrABnCP+me3mL7jYCx9/gbg3 pRyEDWNzmjQVGYQ== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the node describing the sn3193 that's used to provide notification LED. Unfortunately the driver currently supports neither multicolor API nor using the properties function & color, so we use label instead. Reviewed-by: Konrad Dybcio Signed-off-by: Luca Weiss --- .../arm/boot/dts/qcom-msm8974pro-oneplus-bacon.dts | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974pro-oneplus-bacon.dts b/arch/arm/boot/dts/qcom-msm8974pro-oneplus-bacon.dts index a4b5d680c097..8d2a054d8fee 100644 --- a/arch/arm/boot/dts/qcom-msm8974pro-oneplus-bacon.dts +++ b/arch/arm/boot/dts/qcom-msm8974pro-oneplus-bacon.dts @@ -114,6 +114,34 @@ led@0 { default-brightness = <80>; }; }; + + led-controller@68 { + compatible = "si-en,sn3193"; + reg = <0x68>; + + shutdown-gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>; + + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <1>; + label = "red:status"; + led-max-microamp = <17500>; + }; + + led@2 { + reg = <2>; + label = "green:status"; + led-max-microamp = <17500>; + }; + + led@3 { + reg = <3>; + label = "blue:status"; + led-max-microamp = <17500>; + }; + }; }; &blsp1_i2c6 {