From patchwork Sun Jan 22 16:48:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 46968 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1225722wrn; Sun, 22 Jan 2023 08:49:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXtcgT23NPrjz7aC8ORLQv60/P0/cN6a2CmwLFSRFXixKgCOwjlESmGHT3fJUTC58T4mt0Rr X-Received: by 2002:a05:6a20:549e:b0:ae:47a6:e6d9 with SMTP id i30-20020a056a20549e00b000ae47a6e6d9mr28650111pzk.6.1674406198398; Sun, 22 Jan 2023 08:49:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674406198; cv=none; d=google.com; s=arc-20160816; b=PniFSOUUR/KIY/EwkiA0bGSG/68OUXYPmUBNBc2g5AuOxb4vm4bsY5zC2XaN46IlxF mF6AGdsHub0O83DSLZsQGBfsiivIqHPNRkQUK17/+hqxwixGk905c8j6cbBHkVGAlSMw 7ELWXCMt+ECTe3cFz2HNGPoi1SMCgssMCAHpno8zC42YGfykMfXmStgCMa7W0kT3Z9KA UwAj6SDZ2tonbNRKMIBx/mAw3l5+Wq8Tf6sTTDhwjeTVbGtc0e9FdLWcsqBcun369Ti2 jinufHpuEsKJEXlE2oh5hvdyn4PGUXYLtVRXkZirlHDB1bz1WsZP0/3V9b8BVg7WgfaP e6rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=CIqMlQkkbpQmuOGXbumcpjSseB/BDO6032JuZqvZITs=; b=YN9oHdITwEQmbynv7Yt9BxCvEdm8EO6IBdJ/gDjb9b5kEIEJ6CMsvyB2tYmxLuDnsP NsTzvX8aWlT07Ds40BZPDx1NLavQzNsLMETSwXZekd1NMHkqFC6lU7TJCHRE4pPo1iz5 xQSK8BOX0eQtrVrI5Qj3jTcGYh6bO8vkqOyKgVCxgi2pIxRB1cb83d4/oLl4PXUqtoHF t0gytSJyWX5XN8PHZuMXQgCINLeLwv2hKlE6MgxaGtWHsmMadRtjLNsP+cptx9bwbg2K EOSC4qO2YYpKzhLhPQZjgZSTxQ/QBOFvEcMyDmCVQ7u124jhhKeQ8EDAMWndYFLnE6Sl DC2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=CSP84unq; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q8-20020a63cc48000000b0046b1dabcb34si49007310pgi.765.2023.01.22.08.49.45; Sun, 22 Jan 2023 08:49:58 -0800 (PST) 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=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=CSP84unq; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229566AbjAVQtk (ORCPT + 99 others); Sun, 22 Jan 2023 11:49:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229895AbjAVQtj (ORCPT ); Sun, 22 Jan 2023 11:49:39 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F94D7D93; Sun, 22 Jan 2023 08:49:27 -0800 (PST) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id A0B0FCD17F; Sun, 22 Jan 2023 16:48:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1674406135; bh=hkk3joZ0mTC0UcwxuuHdlSXDDx0OPBvCwaw8zRjJjaU=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=CSP84unqgU3MNiA4kMM1RnRhf7wVjOYOC/6RcN9qrJfRdGVeeiKP/o+JrQP3Tm5B6 xtUOm7HBJ9UsHzGUFvdl72+Z1WVMf+jZ2k9/B4+JSIRX9wPZgSQy4KFDKVlFgGNMc/ aSxuxnOVHVog0yovNyl/y1ZnlhQ1WxcAGDY5FUMQ= From: Luca Weiss Date: Sun, 22 Jan 2023 17:48:32 +0100 Subject: [PATCH 1/5] ARM: dts: qcom: pm8941: Add vibrator node MIME-Version: 1.0 Message-Id: <20230122-msm8974-bacon-features-v1-1-4049f565c24c@z3ntu.xyz> References: <20230122-msm8974-bacon-features-v1-0-4049f565c24c@z3ntu.xyz> In-Reply-To: <20230122-msm8974-bacon-features-v1-0-4049f565c24c@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.11.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=713; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=hkk3joZ0mTC0UcwxuuHdlSXDDx0OPBvCwaw8zRjJjaU=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBjzWjyA2uq3IAKgtXVZ+hXAHDmyTJuKDODtcN1ynjz IxxQqyCJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCY81o8gAKCRBy2EO4nU3XVpVjD/ 9PQLiq2tz2CpOqjGEKldludYM3tJ/avYS7mRo5d0XOPn8cZYuASTdJCxRbN2e/rQrb5rBWNROLaTxB e5CRmB2BH7kDLHjefoYUeGA21/+GyyC2+DsHc/UuWF6vC6JmjRnRRTM9IYq15ud8yihbmeu+6C8Zsm FGizuTNE1wdxNFeosN5iOlke3pdDGKj6p+deinSQ2HRXaS+LBV7V4Yxb1XJ7h5XdJSiX0kUdVCMR3u WPNfYl69sJhyANLn401J8Y/b0qRMuz3LUMM4k0UXs/tUr3hGzrWNZQP/Ru/tnKdC/3SGgZnL/EZXdH T1fU32jTjyOmr9z9Ge39Fy6gT65eVTdgcozdk83nl7xQewgbvdIlLAVeukkjOCaGj/WNNWdE/29egS NzNPjfTE7IHGylI1gnPVAnVfokMFmn8luO0A2eFrHbkSKCNp/tv0+kAJAx6KsHPXv7AuoA/uVqsz3I B6hXFUeIL9/9mxl7RcwskoQH+9jxL2qHjwf5ETxpGxNKitFPzLs7yy7cKgL3nyhXssWvvDgJGcdhRr ut3JvL5VeaqEp/woRyxYcb7z0l7nRrT9ZxKNQasDeL92GS/tch7OmzSpkgOH6Osk3DbeK0OQkGu07o svQehs3qqEnnE3U2MIMKk0mNhlmgZOSB14EqtT3IemyhzD2e/fZiqSXg6yPQ== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, SPF_HELO_NONE,SPF_PASS,T_PDS_OTHER_BAD_TLD,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755742154153854497?= X-GMAIL-MSGID: =?utf-8?q?1755742154153854497?= Add the node describing the vibrator that's found on pm8941. Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio --- 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 Sun Jan 22 16:48:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 46970 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1225826wrn; Sun, 22 Jan 2023 08:50:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXuqPHF7eDxKbriNrtMAj23Kf63TAcBouDNXZ2pKY0qGpXAZx+HnSKwJhYnm+EV4IQWEDWdw X-Received: by 2002:a17:902:9a81:b0:190:d273:38a9 with SMTP id w1-20020a1709029a8100b00190d27338a9mr21389586plp.14.1674406220804; Sun, 22 Jan 2023 08:50:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674406220; cv=none; d=google.com; s=arc-20160816; b=XYb5IyoEM6sfn9ySrMQezzgyD55nS+dhDJ/NFqNOr/7MHzIEwXXjT/A8o4yI9JzVYq Er6FxJz/WFnaYsfZ42o/OTUkeV6w+W8De2TmMGpQJ04723ZTexR69KCCmkH9un/uNS0g rSA7hu3O5YszoF7TUaqSdvlZ9vqUsU0YQuj/iCbPzJuB20u+faRn8pF7BKnuasWo31l3 8lccjEJUUseITPLnonuIpZvJolP6iDkRjRV6RjolPbg1ScbqIFW4JmAYAngxmn7nnzxm KJpTmMfImSPtv81Atk4O1b9NTNEWnmzFwIugfAuYnESCOZOtJiS1zH6zL+H7Pl71r0s0 DZrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=DlCZupQawy2I7UM12iAQQMEadZIbvQEIL12rt8T2ioM=; b=VQo9DQFpUfLZah44R9E5EGyAfl2s2OZ/AsQP1zsFSJjjV6agsXLAs3N88TYmDSXnAO X79b+Y7oYlCYMYfaONst/Vndy1fT0p0eH1nBPvt1Xyzxb5NVxzAI/JRpTuhivYWP8sYO Ji5h6rcjhZENYNZy3Jq5FCK3BaWu57i17rnEDYX4jo6eJyBkgyRNQC/v7K41bLE8/437 QQKrLnNmPqp3R7VK7RHWJF0s0QqjPUxz68X8BJDZSmHHl9rmU2gCOYMvB06ZZVqaUkV6 Pc6RaHJGU+cSQf8pUfyMAs9MATTuKpVq5Vh6OLQkZMbkCDZZEUW28m5Q2hFEmtJIBHQX C2jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=olOeDCUL; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t9-20020a170902e84900b00192a5275dc6si19231582plg.585.2023.01.22.08.50.09; Sun, 22 Jan 2023 08:50:20 -0800 (PST) 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=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=olOeDCUL; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230123AbjAVQtF (ORCPT + 99 others); Sun, 22 Jan 2023 11:49:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229799AbjAVQtB (ORCPT ); Sun, 22 Jan 2023 11:49:01 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88D7B7D9F; Sun, 22 Jan 2023 08:48:57 -0800 (PST) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id E3647CD525; Sun, 22 Jan 2023 16:48:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1674406136; bh=FeNVtUdytvubaP0uimVMcr9Plbnb7l5JICVHXAO6K/4=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=olOeDCUL+2FF8X/aJOzERYlr+skdR12Jp7iUZ3eq/H+maHJIbqbvIU9X7zbUi8FBO /Kz5TPgmoywFCMsTBRtorT17YiY9Ogguua6bs3v2QB8AcVZ25RHgcO4RGxBA2msiee yNJbKgXJ2iLE/A3l5HZGgasS7InTEDcvIa4BqeRs= From: Luca Weiss Date: Sun, 22 Jan 2023 17:48:33 +0100 Subject: [PATCH 2/5] ARM: dts: qcom: msm8974-oneplus-bacon: Add vibrator MIME-Version: 1.0 Message-Id: <20230122-msm8974-bacon-features-v1-2-4049f565c24c@z3ntu.xyz> References: <20230122-msm8974-bacon-features-v1-0-4049f565c24c@z3ntu.xyz> In-Reply-To: <20230122-msm8974-bacon-features-v1-0-4049f565c24c@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.11.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=691; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=FeNVtUdytvubaP0uimVMcr9Plbnb7l5JICVHXAO6K/4=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBjzWjzzh4/8zbBHv3mCEHVv66Nv1+91v2ctZk1G4vK VXhtH8uJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCY81o8wAKCRBy2EO4nU3XVrRjD/ 4sLwt6105gqxpVAMn7x+2rNXXjMTkRN9Vz64Yj7WW2wnEZ2ziS1OMwJTME5y9c+G5nAiGfW1tI+QTp XCWbrwat/llyg4dIaR4kqrq7/G52mZp/mcpWl93jwJ7ybeifmyTMTF/wsugOwkQg4qCFXUcolayVOZ BxmbeM+DSgsKYKEztg5JQzX+INEGodreTiWUct/KSNGf0cSfC8m3VOKaVG5g0m2iK+ISzvhGBbREpc POClyqF4Ebd8x0BTIYLb29w4dH7Apo/ReUHp/ANyyWuUZvBUbmSwYB/4EMBvofm75CVrI4BOQw+4+h kUDYv6MDeNFXDPb/V0Dwitdgr9N2+64Q6uztD/4MxrjrLGZV6dtRP7HE7d6BWVnYUQYAWu3Ij42iUu 3HAC0MGzoLJNXD4XxIQpz5RXZw4jbQ+yVhlbMqHdbjNN0cfqZViF5GCcNuzLR3XA/38hQKrAtcuGh8 LSHkjOM9DJi4Db+wKro8yhFgNSWveGqZHmxsjtLiCKZ53g722oeTg568R05lHrx0VoxtuOUgy+WgLr PpuHetkp856nmxuillfFpTT+qI44kIU4wbNU23rFoSXkp7sTz06nEWBaSCVxAOUosL3eIcPV5/gYSt 33EwMwEOdFibXdx9Zx6BpAvZKI6sILUm3CvEIcUKqWmhrkaVgBhur+Gi2TRg== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, SPF_HELO_NONE,SPF_PASS,T_PDS_OTHER_BAD_TLD,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755742177116234025?= X-GMAIL-MSGID: =?utf-8?q?1755742177116234025?= Enable the pm8941 vibrator that's wired up on this device. Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio --- 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 Sun Jan 22 16:48:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 46969 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1225815wrn; Sun, 22 Jan 2023 08:50:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXvgQ0yIXS8gvOJt2AxABW5P6o0zaNhtI2Fa3pPS9ysJOyV+gcZGe/RbTBVs7zsxcDgNDXlS X-Received: by 2002:a17:903:32c1:b0:194:7c95:dc3c with SMTP id i1-20020a17090332c100b001947c95dc3cmr30589210plr.12.1674406218360; Sun, 22 Jan 2023 08:50:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674406218; cv=none; d=google.com; s=arc-20160816; b=BncpgfUxmeyYG8IFfEZzKgIwLLVjf+/QMyRVxxJ2PkM5CSIK+4wr1V8WhgYJvVOcmj fgAHaR/q15RxN3EcN9/SEeh+HvLyZeLXMEzK7Zf9iz/MUqQ37LIjyOSQwZLUQ+S2GHya cX1pxy63rvV+1Fa67TQAIcBvCRzag2j83+ppSEKXGCJfjDCJw8YVKblPBLv9mLiEMwRZ q0TDIN4gPesDSNHBC37qUEhQPl5ed3A5T/lbMv3ZrKH1tLDKwKKsRsBRipHkjGLT17Fh KTQpQuPwlLzXvrIDibbLyBNwMWPs4lP6RwaUz6P8pKfZdRyO11kfdNS3Hs6KaKkwjzHo I5lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=EX9NuH4iWG8omPBdGhLf07htM6cd3pN1cjaFaiAt/To=; b=lF1L8xgGUNNjJpx0jrQ3qgu96ZVzqTVMb77OSMuGZZupav5reo/buGt83Gpx4oT+VE DYnLWz0QOR3L/F8RX/pMMYyb0GDmj7RosafmrxS/fmX9Vrws3K2NMWzXxOhyobHbrtGK pc4ffRiq90yMWYbz2TafxiLl7AogiiRI/7B06abalJzRFfk3QZ9bLGEI4Wq6zF6iGSAD myOGfX3wBQyDQVZKi2SrGW8v+2oKIRURgG92HVTjfTOeUQrrWuNFVRKtYQ3OGpztfcxs HICgAu/2dwpNekkLNxcDEK9w9lGHUsMGxzk6TqXaBOuR8ZTOzwstFpkMPmJHSyleGB+o ve5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=YVLytJs5; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n6-20020a170903110600b0019274931758si1631423plh.577.2023.01.22.08.50.06; Sun, 22 Jan 2023 08:50:18 -0800 (PST) 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=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=YVLytJs5; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229895AbjAVQtl (ORCPT + 99 others); Sun, 22 Jan 2023 11:49:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229999AbjAVQtj (ORCPT ); Sun, 22 Jan 2023 11:49:39 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB460977F; Sun, 22 Jan 2023 08:49:27 -0800 (PST) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 2D032CD52A; Sun, 22 Jan 2023 16:48:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1674406136; bh=MCYD/uKQXcuXE8zoypcmrFGZUxOYwaOpgwRq/s5nvUg=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=YVLytJs541OFZq9By4XMD03QPGYxaFK82j7xt4j+3kTUHeN/6rClGXLMDtWtpBcmV 94SqW2L3fYCOU35IZPf3Payo2gBQv1dLBA0hoNrl4BPgT0GcBuKVIbHD074RVX8C4u kGM1l0fNLe0WjuI0yU/gBbg3487sAi72++GwcRCk= From: Luca Weiss Date: Sun, 22 Jan 2023 17:48:34 +0100 Subject: [PATCH 3/5] ARM: dts: qcom: msm8974-oneplus-bacon: Add volume keys and hall sensor MIME-Version: 1.0 Message-Id: <20230122-msm8974-bacon-features-v1-3-4049f565c24c@z3ntu.xyz> References: <20230122-msm8974-bacon-features-v1-0-4049f565c24c@z3ntu.xyz> In-Reply-To: <20230122-msm8974-bacon-features-v1-0-4049f565c24c@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.11.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2018; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=MCYD/uKQXcuXE8zoypcmrFGZUxOYwaOpgwRq/s5nvUg=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBjzWj0K+Sjdz33+q+ZiyEneatD28/kXhatCcKKTvc7 O0Kdjz2JAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCY81o9AAKCRBy2EO4nU3XVrGpD/ 4+7bo644DmLWzueuSheIyicxki8irbf8K/fI9kXquRj1+dfJuHK+n+piVA7IpCUSvRSRwK3xe7K4dY M+B0x7GAxA+A2YjWsyANk1yh8Ytcl/EVH3eXoa4ZyKYHFsaJudqZgflm7zrWCC9kp9xn4v7rePo9HN FXUIuYTCFSqR3UgS7ANYErPY3EoYhzSrLVfgnwSTYMV+esUowhz5TB3u1GRAZuY/n9al2hodE5DzFs z6dIPx0NDMim++3P8VgxMrQftXB1FejQW/9OcydUY4hUyf/nVwG8oqTRp860Uffzz6kjAnN5dVoeJu MZOFVxe64mOA152KC4nilZUhdHq1+lU1Cy1gsAlE89Uz2o/nFCaLwZt/C9W1H/9uWdHlXn3TjD6w54 /JP79LY9NVkNSM0jOYS+Su1gf/DYoJWI9I5v93Ct656w/iDW4NcykGipSwkTFPr8/O4TniFF6Zsxxd LnPo/6t/KRGQokDoVDvtVdyUtMeZ3mrtnJ/+zlKvjy+o0Xg/uWhFrinxe1vW6LB3OR77g77H0UiEvi wWC/dFIf/Vyp2IwhFgo/lSJYZfSVLxhOnAzpT+7vUx2L5BlRlHwN6ACU+MIMJlR8NxIbdZr4uLTi3N jlF6QkRnjIS857G8c68QbTuw4iKnCAYaXQQXF1D0m4bTwZwKJDdtC146BjTw== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, SPF_HELO_NONE,SPF_PASS,T_PDS_OTHER_BAD_TLD,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755742175111810886?= X-GMAIL-MSGID: =?utf-8?q?1755742175111810886?= 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 | 50 ++++++++++++++++++++++ 1 file changed, 50 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..10ba3c94e26d 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-names = "default"; + pinctrl-0 = <&gpio_keys_default>, <&gpio_hall_sensor_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,17 @@ &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 +392,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 Sun Jan 22 16:48:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 46971 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1225838wrn; Sun, 22 Jan 2023 08:50:23 -0800 (PST) X-Google-Smtp-Source: AMrXdXvsiQbffif71gLDyRlBq+ihE8wIZ4IAv5WeSQbHjVveA6SLP6XJNjefopEuJxPq9jvxelVY X-Received: by 2002:a05:6a20:491a:b0:af:98cd:846a with SMTP id ft26-20020a056a20491a00b000af98cd846amr23757498pzb.30.1674406223201; Sun, 22 Jan 2023 08:50:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674406223; cv=none; d=google.com; s=arc-20160816; b=iYoFVfgAF7rgGUwVPObiz4MI2tPc/Nj0GEY2SoKbVo+whXSG3Gj2L4FSEcEYXrBd2P aP0Z3BPWJNugeyG7EEq3/MbYxjWRfqx4mumkNImVrnNzfu5G0yfRwbe3ZqioquH2dPPB NIsHump9hJxOFj6BiHVXLPmjXKLj2mEitcoEeKvHRTjJQVs74OT+ITZJXZ+oJ6LBogwE G56ucYO6LcZj7pgLSnktkMVoKj/P6awwfBvP/U8J7MKJAz8pN6fc9juMx1osvqCpwqbo DOpwquimBAFxNOQm0ME/boz00VvGEhXGNXbsA8A59x2yGyL1RhNi4IPlQh8w3tWLz1pt 53Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=C7dLFCijPxg767p0GuG/26h1ZYuNf3Ax/0pU1yUg+34=; b=hFKbrCJO2OY0l17HAmjZEU4CMk1if7U/evRQQN6FAElSImk22OmQWwMS/1QIIaO8Du osNSTKrpafrdK5p5od3C6+H2xA5qKjV+LJUaRdRloPim/oDlUmWASzFbaQrj2n7u6ieL xkCVh4z9FD/lkGnZkYFlZZE6UUZ6wDIfKZ/Xlhz5Unv/b7qTe7EKGv4VrHIKjdPqobyz b+oJpKjE0Y/S0bGa9Vb2Oz/SuEFCSPc4wWzoXl0zacTERY/GZ76MBD0Gpr5oEUhkVxUh hJXoLHsmc5Q+d51BYoE6WA2gs/gcfGEf97GF4gcjnp98BuyQohaFFEGfcuUawqqDBvA9 a0/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=apDm9kJc; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 204-20020a6302d5000000b004a42c4cc051si50860978pgc.657.2023.01.22.08.49.41; Sun, 22 Jan 2023 08:50:23 -0800 (PST) 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=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=apDm9kJc; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230153AbjAVQtI (ORCPT + 99 others); Sun, 22 Jan 2023 11:49:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229895AbjAVQtB (ORCPT ); Sun, 22 Jan 2023 11:49:01 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E91A69760; Sun, 22 Jan 2023 08:48:57 -0800 (PST) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 6DC1FCD52C; Sun, 22 Jan 2023 16:48:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1674406136; bh=DqwruzUCCJYrcCYrda9C8IRCq0DuKHje6Db9P9sSPWA=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=apDm9kJczk72vAZhzkclWOjco7iqsaQFsWWCWFewAiCQL+Lf2FLO041tB23e/+YOE vWoc+BJrsa2RA7Dv+NIKLyjfwtVaNMJXe2LrnoLAdHKOnesXW8FUntYNGrlmE/hGJu YE0MUzL/EeznRRh9HpFI98DzdreMveK+N974DfuU= From: Luca Weiss Date: Sun, 22 Jan 2023 17:48:35 +0100 Subject: [PATCH 4/5] ARM: dts: qcom: msm8974-oneplus-bacon: Add backlight MIME-Version: 1.0 Message-Id: <20230122-msm8974-bacon-features-v1-4-4049f565c24c@z3ntu.xyz> References: <20230122-msm8974-bacon-features-v1-0-4049f565c24c@z3ntu.xyz> In-Reply-To: <20230122-msm8974-bacon-features-v1-0-4049f565c24c@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.11.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=883; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=DqwruzUCCJYrcCYrda9C8IRCq0DuKHje6Db9P9sSPWA=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBjzWj1i8z82nJDQrfm2hIadOFkbhNiX190iIzC7etK eyh72iWJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCY81o9QAKCRBy2EO4nU3XVmDyEA C7xFrBO3XCd0ZelVBBxSBpWUCRsEHsLTrXeEyQyq5A+AMJq3YRdz1VWxdcFkTj+rbx77mrylJUgkan CXgC5camIKX8oOZhq0IxpGzsfYjm6L6hLyedXwP7zCCrPulwapgtbbHJJTX2MwmNcZbcw6dc88zaNw +iQ5MAI3DAYz0asSSrY0iaQgtV/LqcvsXPMY8iWJ4uFap+sONDBnDtu957Z5zL1dhyYuSHKOgOPqan c7jJOYccrAQMb4jT3snVUvuHEE9+FQPqVvTo1+nLcjl9hSOqt1NTMwfAM8da1y80SlGxeTmDnJuxP5 m84ipe/SqSGbREePu1wqEAiM8DpbCB1HzY+emCMiyfNq5aRik4ATAwSYMDYTBc4zyA1a4uX/9zlzRT g4i8DFfj1ipXLz43fenCC2vaaClKlo8+9l8XZCHdx0Kxu2afbiY6SuccwNomsIX2mFDDjiZZ90lMVu UqZQIosb2Qwz7WgUy/IUZwffkRku3vC0iLTM9oQHW30eTCp/1yDWdpZETsWTyStzUjJThz7cnqDnAg RelIVrOdwzFrxbvrqnAWCXjUVmIhwGUvMZopxvJxJ8VS2jyS9m2KE6R9YOIyn5ZP1Xfjhv+5Eqn11K /kBvrXwpMcOlLHJlo/XEnkqRFrOkXdWprzvuYI9HsM+UTezVFH3mU1Zw6guA== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, SPF_HELO_NONE,SPF_PASS,T_PDS_OTHER_BAD_TLD,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755742179595350011?= X-GMAIL-MSGID: =?utf-8?q?1755742179595350011?= Add the node for the lm3630 that is used to control backlight. Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio --- 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 10ba3c94e26d..ffb486ceb6a6 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 Sun Jan 22 16:48:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 46972 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1232292wrn; Sun, 22 Jan 2023 09:07:46 -0800 (PST) X-Google-Smtp-Source: AMrXdXsBzPzgGqoVz0c1hM75zcsq7gWnVuqYDMxirLVeCZCKike8wiPCoenUhJxvyMAqlBsh1R1i X-Received: by 2002:a17:907:8b87:b0:877:91b2:b11a with SMTP id tb7-20020a1709078b8700b0087791b2b11amr10611382ejc.76.1674407266262; Sun, 22 Jan 2023 09:07:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674407266; cv=none; d=google.com; s=arc-20160816; b=xOsjobXqX4BHoB2TsbfnV17dL3WZF199wiS/0e0VRfGHFB4fxZOjiCPwmBf67EkZTP dRiMNuWXEsi1TBtjNmViYQhQU9UlpzN+003h9mtQGx6/oJCS7iVPC041oKw8rY62MSig RtgwT92QvT3PtjEyZMY0U5Mjo8MeCVGSnDyFIsyLtMBn7l1V8YlHYRmvNFlRMcwT6blg vGqXVW1flGML4O9l6TBjn9odvVb5+/6MJzM192t4RmyaOAVoDLvi2UjpRq4sJzuPE0Ds jvDaf9kiFs26RNzIngE2C9FtYSIk2Lk0zJMvnJ5tQ5px292l0rxm1glp1xPK0QmPuvAR /Q+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=foOr8bwKMgPvFq9lsN9LW/0jKYs307hdASgSTfrk3kQ=; b=R3aj0n3lqh5lF2e27/kHr/k0S32tCflop7LSGtKLwGMUxhBvf9/TahFy8Hp6XNKAHv lduHE6bjPGfjUSJXulrpeYFsT81HPRG3X5Yib7Ie1DxribFMidCO2idp1XpZsCkTUg5C 2lPw2STIU2/SboI3QDw6jqll5V9Wd626CdvPn7HkGmXLKB9bX1ty2cGh7HLMiaNNvtrF VsFiN9ZPSixA9QMqFWqJq0/QHkjTBs7Z3fkmixI452xDOuYxWQKih5urWdmU/ZWCCeKl Gh/sbsOD5YoiqMCBaO3qO7hunj0puus/iwhxgr+fCVMeBPMOG4eCkEbVzTdiVxus42VI PQsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=fVblwWHY; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wv4-20020a170907080400b007c0b52d0df1si50876734ejb.660.2023.01.22.09.07.22; Sun, 22 Jan 2023 09:07:46 -0800 (PST) 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=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=fVblwWHY; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230241AbjAVQtn (ORCPT + 99 others); Sun, 22 Jan 2023 11:49:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230037AbjAVQtm (ORCPT ); Sun, 22 Jan 2023 11:49:42 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78F281C320; Sun, 22 Jan 2023 08:49:32 -0800 (PST) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id AE834CD52F; Sun, 22 Jan 2023 16:48:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1674406136; bh=UC4MZp7joZ5KIGVSNAjIE3z+woZwa8RY5kG95For80s=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=fVblwWHYIq+sZjwawB8O/+pjliEqr1MXSpYnZ4VYptxGu/htsKJQYy3mvkJNPL/Re qnJC9+OEUQ+h0mMU+Rq6PhvP2xrNcbMwYxxWmVbPlrBHPdCOl+2+xU110ZhDqMtN4B hBNLu3aL9/t/mrFmF2DMtf+a7qyhEHH1BaP1wFsc= From: Luca Weiss Date: Sun, 22 Jan 2023 17:48:36 +0100 Subject: [PATCH 5/5] ARM: dts: qcom: msm8974-oneplus-bacon: Add notification LED MIME-Version: 1.0 Message-Id: <20230122-msm8974-bacon-features-v1-5-4049f565c24c@z3ntu.xyz> References: <20230122-msm8974-bacon-features-v1-0-4049f565c24c@z3ntu.xyz> In-Reply-To: <20230122-msm8974-bacon-features-v1-0-4049f565c24c@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.11.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1264; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=UC4MZp7joZ5KIGVSNAjIE3z+woZwa8RY5kG95For80s=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBjzWj2Melh4WgPgof4i5KIb9eQCvJo0gQAcgbgA6Ml Zfm8VqOJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCY81o9gAKCRBy2EO4nU3XVrm3EA C/KppKnzqSEjeDp67YBOnF3nRIdl7sMxjYsRfYN0kkt3dOtwmFkhbXoqplheSGGdjdIpOqWWYyu5p5 vbabckzcp6SPm/XhlGBPFtq+diyApCW8CUx6JzsS0LhLEVrJpHH5+0gJeRaPQc/rVq8r+wld8x4y+h pT0kpn/f3SDYycRw0QwvY6poLHZxu6/BUx54rrKS5klUOuwUatphUBLHO2F9ms0EO5VHsHcoKj4e1S rwygzJH1uQnRN4Na6SK6VO9uO9aXcwd4tFqw1Fhrq2KVvpJvN/TmIaxfZBp5OcLEOiUWsYZzDzr8ud ie2j811S73Bs3yZdmGfkJUilDHOjJoQyqAcDQBQORrQ5EdldgFuEVHgxfRev8FMCgoMQTFIWunbq0u VM7ENcBQ7tBDlX95Ne7tMEUdMXsM/2obbPKYDKJRQ/4cJWbAlfSAVGIZP/TVPq6q+Yj6Bfnz8jcPyH 3Hva2cUGoMKhrGv93G5Tolj7NLnNnF3JB2Aq9L2HZlZZhuvdBK/uETx96gAmpA/TBpp8HrM9iJZ5WU La9QVrfGOcypa7xbAFB/Ut49xBt3dfuQxRBwh7ppTrR8xRYf8OslVNoJNBnf/+TBQ01AmMF34JImMO 8yDLkg4icyACHND+hdUkb2f6K6q0Q9mdcYQYnSnD44tTAsc0z81scOnc8ytw== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,SPF_HELO_NONE,SPF_PASS, T_PDS_OTHER_BAD_TLD,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755743273442632152?= X-GMAIL-MSGID: =?utf-8?q?1755743273442632152?= 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. Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio --- .../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 ffb486ceb6a6..a672c45d7070 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 {