From nobody Fri May 8 11:30:09 2026 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 E7AB7C433F5 for ; Thu, 5 May 2022 02:25:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239103AbiEEC3U (ORCPT ); Wed, 4 May 2022 22:29:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239235AbiEEC3C (ORCPT ); Wed, 4 May 2022 22:29:02 -0400 Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECED313F64 for ; Wed, 4 May 2022 19:25:23 -0700 (PDT) Received: by mail-ot1-x32f.google.com with SMTP id 31-20020a9d0822000000b00605f1807664so2126444oty.3 for ; Wed, 04 May 2022 19:25:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZnOPF3kLhHT3pxdKoIqWPDrlgDNrphBIZSYl1LKV7/E=; b=h3XafBA9PBkuQAjrCrgRBCJG7dJ9r8Wyr1WFUR+DZ3eG1CLuz/vNVR/xV1Zw41mIcJ vyk3Is9Kar5imsw6/27d0pFe9d4f2wihmY2UxUMqPkbSQRXRdtSqIjJ6AJ614woTZebC EMplROjmHKR909eDzE7JZCuj6HIWe2jn790pVe5Z/WTmJU9ZEuNS0kgMawHgy6a3p/DJ UO0IhIuscS3nTExHPIxT9Yzaa7z01a6qSdrN2vqwc9eLiSmCkS8tQqdpEqF+0RRx3MaI B5wDocKlrBG/mAcrZKj448GFEL1CBvKbWc0RQyTnlEjfu+bhc944LDwKR15H8i2FncC+ H8IA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZnOPF3kLhHT3pxdKoIqWPDrlgDNrphBIZSYl1LKV7/E=; b=DY2QGzQEU2i9GsUtRoj0e27BGJJ69qAtty7dshPqrIL8wBxKorc6mhx4N85I7S6/kX LkgkRZItgG9GtnWEyJ6EpPMf7QxShxQ3wpq9gHTER/a2DEpIEBevR9oo8AD7v+skOPyQ YIID5LtKDQxPj0RtZPGRShhPbzHj/5gwHWsd8/4tHJp+ysT/OuRWOBfhCCM9BjYdz81u mbeNUm7R9LkIpSS1z6wk6fv9878k6WELnUuIZcW3NBMUByu9i791I7434pJzr73/NPlr 3uUzKMC0FgzPyPG+ojQPOQSiN9fp95PLyADot0WBo4DA71Zlcu355AI+g3rGtZRicZ6h Ps4w== X-Gm-Message-State: AOAM5318N6iI3EQwIbcSHCO9MrTTC/+EAh8bjoCR/aVkuikVMdka0+3m s1pbELHCeIy42dPF62xr4qWzrw== X-Google-Smtp-Source: ABdhPJxr7DPoEo0JhEqWplRnP7W48zurVXt3Hkf+tiR1UiNBjBXrClNBz+VgcsjNfFHCaFV+88976Q== X-Received: by 2002:a05:6830:2648:b0:605:8d5c:3ca with SMTP id f8-20020a056830264800b006058d5c03camr8563258otu.331.1651717523150; Wed, 04 May 2022 19:25:23 -0700 (PDT) Received: from ripper.. (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id n8-20020a0568080a0800b00325cda1ff8csm238296oij.11.2022.05.04.19.25.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 19:25:22 -0700 (PDT) From: Bjorn Andersson To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] arm64: dts: qcom: Add LPG to pm8916, pm8994, pmi8994 and pmi8998 Date: Wed, 4 May 2022 19:27:03 -0700 Message-Id: <20220505022706.1692554-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220505022706.1692554-1-bjorn.andersson@linaro.org> References: <20220505022706.1692554-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add PWM/LPG nodes to the PMICs currently supported by the binding. Signed-off-by: Bjorn Andersson Reviewed-by: Caleb Connolly Reviewed-by: Dylan Van Assche --- arch/arm64/boot/dts/qcom/pm8916.dtsi | 8 ++++++++ arch/arm64/boot/dts/qcom/pm8994.dtsi | 10 ++++++++++ arch/arm64/boot/dts/qcom/pmi8994.dtsi | 10 ++++++++++ arch/arm64/boot/dts/qcom/pmi8998.dtsi | 11 ++++++++++- 4 files changed, 38 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/pm8916.dtsi b/arch/arm64/boot/dts/qco= m/pm8916.dtsi index d58902432812..99bf8387bfb6 100644 --- a/arch/arm64/boot/dts/qcom/pm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8916.dtsi @@ -125,6 +125,14 @@ pm8916_1: pmic@1 { #address-cells =3D <1>; #size-cells =3D <0>; =20 + pm8916_pwm: pwm { + compatible =3D "qcom,pm8916-pwm"; + + #pwm-cells =3D <2>; + + status =3D "disabled"; + }; + pm8916_vib: vibrator@c000 { compatible =3D "qcom,pm8916-vib"; reg =3D <0xc000>; diff --git a/arch/arm64/boot/dts/qcom/pm8994.dtsi b/arch/arm64/boot/dts/qco= m/pm8994.dtsi index 5ab46117d737..ab342397fcd8 100644 --- a/arch/arm64/boot/dts/qcom/pm8994.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8994.dtsi @@ -135,6 +135,16 @@ pmic@1 { #address-cells =3D <1>; #size-cells =3D <0>; =20 + pm8994_lpg: lpg { + compatible =3D "qcom,pm8994-lpg"; + + #address-cells =3D <1>; + #size-cells =3D <0>; + #pwm-cells =3D <2>; + + status =3D "disabled"; + }; + pm8994_spmi_regulators: regulators { compatible =3D "qcom,pm8994-regulators"; }; diff --git a/arch/arm64/boot/dts/qcom/pmi8994.dtsi b/arch/arm64/boot/dts/qc= om/pmi8994.dtsi index 6e7c252568e6..b1b50c99ada2 100644 --- a/arch/arm64/boot/dts/qcom/pmi8994.dtsi +++ b/arch/arm64/boot/dts/qcom/pmi8994.dtsi @@ -27,6 +27,16 @@ pmic@3 { #address-cells =3D <1>; #size-cells =3D <0>; =20 + pmi8994_lpg: lpg { + compatible =3D "qcom,pmi8994-lpg"; + + #address-cells =3D <1>; + #size-cells =3D <0>; + #pwm-cells =3D <2>; + + status =3D "disabled"; + }; + pmi8994_spmi_regulators: regulators { compatible =3D "qcom,pmi8994-regulators"; #address-cells =3D <1>; diff --git a/arch/arm64/boot/dts/qcom/pmi8998.dtsi b/arch/arm64/boot/dts/qc= om/pmi8998.dtsi index 0fef5f113f05..7af106683f8d 100644 --- a/arch/arm64/boot/dts/qcom/pmi8998.dtsi +++ b/arch/arm64/boot/dts/qcom/pmi8998.dtsi @@ -42,6 +42,16 @@ lab: lab { }; }; =20 + pmi8998_lpg: lpg { + compatible =3D "qcom,pmi8998-lpg"; + + #address-cells =3D <1>; + #size-cells =3D <0>; + #pwm-cells =3D <2>; + + status =3D "disabled"; + }; + pmi8998_wled: leds@d800 { compatible =3D "qcom,pmi8998-wled"; reg =3D <0xd800 0xd900>; @@ -52,6 +62,5 @@ pmi8998_wled: leds@d800 { =20 status =3D "disabled"; }; - }; }; --=20 2.35.1 From nobody Fri May 8 11:30:09 2026 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 615ACC433F5 for ; Thu, 5 May 2022 02:25:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239128AbiEEC3X (ORCPT ); Wed, 4 May 2022 22:29:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239272AbiEEC3C (ORCPT ); Wed, 4 May 2022 22:29:02 -0400 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAABA12AE4 for ; Wed, 4 May 2022 19:25:24 -0700 (PDT) Received: by mail-oi1-x232.google.com with SMTP id m11so3048814oib.11 for ; Wed, 04 May 2022 19:25:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jdqK6Dur5SPo0lYVwgMH9y/i4cpr1+v+A1l02sBcPXE=; b=tuiCr9FSJep+kbgAL7zjxv4q0EjdD4MPFudV1vifvs8o7yIRK0dXJccqAz7rjZsdcv Y4h4w253T0SEzBc6QTZvUPb97hHE5fD0f/PwegmvVrWb1ksP00VfxLNc1j30Ryp97tOi gp332t5vAlXA4ruv6uRF6n9ALOLydGs0FiLPGbr5La8KlRw52OGnz1V4TqJ9sp0IMBjH +dZwPvtCJASLnAuvhjhY7XG567Q9kIwaVRkkfxNnoqIoImiUA7rUPEnO4wqVH5hn5H0o g1La8yHLxjMKrb0hsZp1vpJJM8x670nEUkILXPRuMlGRyl6eZvGlIQ8ixOKkNDPunVbu IHcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jdqK6Dur5SPo0lYVwgMH9y/i4cpr1+v+A1l02sBcPXE=; b=dOXnvdCKV8zKsCkuDFnmoANvR54v0XWjz/96n+qbAJLf2IvLTDpRePOaJ/NhBGXePH MQ2q2/ypqn+L4XleF0nlWPabe3TM9p7wprRU7IzSXZBs+c5nT+yjNld8b5DRQt5QhxdW EAHcAywQKoehF3OoMsmGW79agPPsvBZY1gcGrOHOGhYPWHF+C4VqeGH1KNSUCX0dv8sf sov6bdEoefRL9yF5FjaSLaw8MpMxCtjl4O981OLKBcli8RIqMrzwEAQtajU3k69Q4OHA jQ9CO6T1eRjEqmjDBAAQeIETVEAAP74Xajat2WIaOU9xxmkFmJRMzriQ0AmXy5/189h8 zx1g== X-Gm-Message-State: AOAM531r407RXpSEWWdkyNqUGj4xPANsTM0Qr2Yg/US21I+9VkKSzJoS /eFtwZ/r0KV16c/svrQmedDO7Q== X-Google-Smtp-Source: ABdhPJwC7eisISmz1u4nSqSApX0CR3uWLsEeNv0QU+tguMtpzU45eQvD1Bz7xMlVJrHqv+E8qzDYyA== X-Received: by 2002:a54:468f:0:b0:322:5226:598e with SMTP id k15-20020a54468f000000b003225226598emr1252724oic.213.1651717524152; Wed, 04 May 2022 19:25:24 -0700 (PDT) Received: from ripper.. (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id n8-20020a0568080a0800b00325cda1ff8csm238296oij.11.2022.05.04.19.25.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 19:25:23 -0700 (PDT) From: Bjorn Andersson To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] arm64: dts: qcom: sdm845: Enable user LEDs on DB845c Date: Wed, 4 May 2022 19:27:04 -0700 Message-Id: <20220505022706.1692554-3-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220505022706.1692554-1-bjorn.andersson@linaro.org> References: <20220505022706.1692554-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The DB845c has 4 "user LEDs", the last one is already supported as it's just wired to a gpio. Now that the LPG binding is in place we can wire up the other 3 LEDs as well. Signed-off-by: Bjorn Andersson Reviewed-by: Caleb Connolly Reviewed-by: Dylan Van Assche --- arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/d= ts/qcom/sdm845-db845c.dts index 194ebeb3259c..e4d3de0a1e6d 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts @@ -5,6 +5,7 @@ =20 /dts-v1/; =20 +#include #include #include #include @@ -606,6 +607,36 @@ resin { }; }; =20 +&pmi8998_lpg { + status =3D "okay"; + + qcom,power-source =3D <1>; + + led@3 { + reg =3D <3>; + color =3D ; + function =3D LED_FUNCTION_HEARTBEAT; + function-enumerator =3D <3>; + + linux,default-trigger =3D "heartbeat"; + default-state =3D "on"; + }; + + led@4 { + reg =3D <4>; + color =3D ; + function =3D LED_FUNCTION_INDICATOR; + function-enumerator =3D <2>; + }; + + led@5 { + reg =3D <5>; + color =3D ; + function =3D LED_FUNCTION_INDICATOR; + function-enumerator =3D <1>; + }; +}; + /* QUAT I2S Uses 4 I2S SD Lines for audio on LT9611 HDMI Bridge */ &q6afedai { qi2s@22 { --=20 2.35.1 From nobody Fri May 8 11:30:09 2026 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 62872C433F5 for ; Thu, 5 May 2022 02:25:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239183AbiEEC31 (ORCPT ); Wed, 4 May 2022 22:29:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239298AbiEEC3D (ORCPT ); Wed, 4 May 2022 22:29:03 -0400 Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFF8E13D41 for ; Wed, 4 May 2022 19:25:25 -0700 (PDT) Received: by mail-oi1-x235.google.com with SMTP id q8so3041496oif.13 for ; Wed, 04 May 2022 19:25:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=moa0rcMvLHKuxdxI1h9ylYwMNI93SZwQx2b51rTmovE=; b=i9CKkmhIDyV9nMEWjRJ0TwdW2E5CkkbK6as+LIP4sG4W+z6CORxIJahsKGWUaOj2yZ VUruWYYQsSUutj5oHqEQoaX2jl5zdC4BwScNcy1RO9RvjpCY7FAfTveQ5hn8PrvonE+s hN4tolMPih77TlYlBXRd3+jSSfS7Iwm9YCa4LTXl01F3S6MxCkEhErPLI9gGRH238/ZR YFI3ALEuCdtRPkior2pllYVXU6Hy/ZbZ4s3+qlNO4GPkdof05oxrWr7EUygmqtu9uNzA 0ApIzXiEdoNosTbc4WGzELkbr0E1vlnpLePHXiM26J1uR8Y77Xx+X3mvnXTkFAq4dVcx TJ+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=moa0rcMvLHKuxdxI1h9ylYwMNI93SZwQx2b51rTmovE=; b=FLa6Zs6CB6tU8IWwlGo/4locgo5AmIdNkx8hfvja1uzGRLaKSBSF4gx9y7mlQATlKY NrMj9InSqzc0J77PelV4lABqTnIf0oNXasVambCGdX3eXnLTtQu//2WNWyfmw9WOj7pi BrfjILgjAKBq0aUfg0qkcZDOl/le+/+XOQ74oPgqrlrmLwjE1r6mMbpv5wobTWqM7/eH 70v3iaYKEzxZssgrGWwSrGv9unWoF7e0bTwUb4Zr0sAgPs3ZjUeoBeLOhzeAxVxl1koh 8PzJTV15CWTCxOQ1AqeXvYty11yUQqBG6hgiJ8c/be5A9hmUfwAHXQWJsRGhdsbcIlsM /pHQ== X-Gm-Message-State: AOAM53212AABjTkGEgVcdYK4ua4JWljAMSh7MdprI3m2IztsAAfDIHKl yJHt6WD86uRCGd6o2Qn6CHMzj4E3ftRiILi6 X-Google-Smtp-Source: ABdhPJyG7SJlL33vt+EhoJgcvJFYLIJTjiyxtXvmPN3r7wSO9e/Oxh657Q8n3uaryYzmvEhQ3pgSDw== X-Received: by 2002:aca:4254:0:b0:322:953b:872 with SMTP id p81-20020aca4254000000b00322953b0872mr1274456oia.32.1651717525118; Wed, 04 May 2022 19:25:25 -0700 (PDT) Received: from ripper.. (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id n8-20020a0568080a0800b00325cda1ff8csm238296oij.11.2022.05.04.19.25.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 19:25:24 -0700 (PDT) From: Bjorn Andersson To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] arm64: dts: qcom: pmi8994: Define MPP block Date: Wed, 4 May 2022 19:27:05 -0700 Message-Id: <20220505022706.1692554-4-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220505022706.1692554-1-bjorn.andersson@linaro.org> References: <20220505022706.1692554-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The pmi8994 has 4 multi-purpose-pins, add these to the definition. Signed-off-by: Bjorn Andersson Reviewed-by: Dmitry Baryshkov Reviewed-by: Dylan Van Assche --- arch/arm64/boot/dts/qcom/pmi8994.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pmi8994.dtsi b/arch/arm64/boot/dts/qc= om/pmi8994.dtsi index b1b50c99ada2..0dfdd42f6f55 100644 --- a/arch/arm64/boot/dts/qcom/pmi8994.dtsi +++ b/arch/arm64/boot/dts/qcom/pmi8994.dtsi @@ -19,6 +19,16 @@ pmi8994_gpios: gpios@c000 { interrupt-controller; #interrupt-cells =3D <2>; }; + + pmi8994_mpps: mpps@a000 { + compatible =3D "qcom,pmi8994-mpp"; + reg =3D <0xa000>; + gpio-controller; + gpio-ranges =3D <&pmi8994_mpps 0 0 4>; + #gpio-cells =3D <2>; + interrupt-controller; + #interrupt-cells =3D <2>; + }; }; =20 pmic@3 { --=20 2.35.1 From nobody Fri May 8 11:30:09 2026 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 2D22AC433EF for ; Thu, 5 May 2022 02:25:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239229AbiEEC33 (ORCPT ); Wed, 4 May 2022 22:29:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239350AbiEEC3F (ORCPT ); Wed, 4 May 2022 22:29:05 -0400 Received: from mail-oa1-x2e.google.com (mail-oa1-x2e.google.com [IPv6:2001:4860:4864:20::2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EE2713D34 for ; Wed, 4 May 2022 19:25:26 -0700 (PDT) Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-d6e29fb3d7so3033391fac.7 for ; Wed, 04 May 2022 19:25:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=28CuiJ6+N6QUrU1lecqpYcX63v6ThU0X4857o5oV5io=; b=zYYJ4gxCz7Rlz1zA3z1mWjWcihgkxm223I46Ok5Nm9lfnRKOyEEWMzZ6+ESXn97qlW IV5hv9zyswRHnyt0KToA+32MD4BUanp/HMkpULfd1PsPCV9/mXLgQzydj1pmum//cPww KK1AFty7kGbDelttsupxw2rFMxaAHA3iETvL5zL0yV6FW7hfRxgKNaL5sh3FpCd3rSfo ZCSH59wvQxiEHX/iwhgUVeQUFOq4dNKe8BTMTlFm+6F2CUmxrMYfZG6RKf+wmHgr8uTT 9CInciSk2RVv4qadDtYCs9fBq0QFLbQiaZCQa8Km2Ae9CxJJvxSGT699bM0dtGdb7wQg kibQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=28CuiJ6+N6QUrU1lecqpYcX63v6ThU0X4857o5oV5io=; b=0TPBUqeKE1KU2ol5hTNOF9ZFgBhUuIReZJH5mTw7JBLrz4qOb1ZUzy6JrkpYc8HuBv 3BVmP0IfY4mwHeauKbly0x0W6BdcGbk8UtqSNnzpQ3uop+WBNviR+wBgqaQKAFuuGJQh sJAhCYGX+3I040cUM2Y6plusVO8jFY5pQ4xMEW84Z3lShzOBqnVbEM7R/hTWuV4HYljk 9qb4wpuQPe0ei+S8SBRT1mH/Cq+So1rrach24AgG+3eA8OXoz957B3WyhII2wPFNLk/4 uJ/dA/5QmKnsSkFv2KGj5xKC/JEiFlEKriPAkmK0SW+tOcyKXwC8hkNwFN1KirpLgMtv 8Q/w== X-Gm-Message-State: AOAM533y0+fPw1pMIs633kj/pCYWcIuQ62RgAdzh+Q+aEMmCCSq6zhg6 wLzrGVKI4DTYuzCjcKVTkWQvUQ== X-Google-Smtp-Source: ABdhPJxktucYGoCB9lE0eXnZHIeEufCSHbz5dVcWr/o3lmQYRbhh11iXphH+jQ0Mt95gTCSGsIkxWg== X-Received: by 2002:a05:6870:1807:b0:d7:2a4c:14b8 with SMTP id t7-20020a056870180700b000d72a4c14b8mr1217692oaf.97.1651717526028; Wed, 04 May 2022 19:25:26 -0700 (PDT) Received: from ripper.. (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id n8-20020a0568080a0800b00325cda1ff8csm238296oij.11.2022.05.04.19.25.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 19:25:25 -0700 (PDT) From: Bjorn Andersson To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] arm64: dts: qcom: db820c: Add user LEDs Date: Wed, 4 May 2022 19:27:06 -0700 Message-Id: <20220505022706.1692554-5-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220505022706.1692554-1-bjorn.andersson@linaro.org> References: <20220505022706.1692554-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The db820c has 4 "user LEDs", all connected to the PMI8994. The first three are connected to the three current sinks provided by the TRILED and the fourth is connected to MPP2. By utilizing the DTEST bus the MPP is fed the control signal from the fourth LPG block, providing a consistent interface to the user. Signed-off-by: Bjorn Andersson Reviewed-by: Dmitry Baryshkov Reviewed-by: Dylan Van Assche --- arch/arm64/boot/dts/qcom/apq8096-db820c.dts | 56 +++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dts b/arch/arm64/boot/= dts/qcom/apq8096-db820c.dts index 56e54ce4d10e..e9039e68a095 100644 --- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dts +++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dts @@ -10,6 +10,7 @@ #include "pmi8994.dtsi" #include #include +#include #include #include #include @@ -683,6 +684,61 @@ pinconf { }; }; =20 +&pmi8994_lpg { + qcom,power-source =3D <1>; + + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pmi8994_mpp2_userled4>; + + qcom,dtest =3D <0 0>, + <0 0>, + <0 0>, + <4 1>; + + status =3D "okay"; + + led@1 { + reg =3D <1>; + color =3D ; + function =3D LED_FUNCTION_HEARTBEAT; + function-enumerator =3D <1>; + + linux,default-trigger =3D "heartbeat"; + default-state =3D "on"; + }; + + led@2 { + reg =3D <2>; + color =3D ; + function =3D LED_FUNCTION_HEARTBEAT; + function-enumerator =3D <0>; + }; + + led@3 { + reg =3D <3>; + color =3D ; + function =3D LED_FUNCTION_HEARTBEAT; + function-enumerator =3D <2>; + }; + + led@4 { + reg =3D <4>; + color =3D ; + function =3D LED_FUNCTION_HEARTBEAT; + function-enumerator =3D <3>; + }; +}; + +&pmi8994_mpps { + pmi8994_mpp2_userled4: mpp2-userled4-state { + pins =3D "mpp2"; + function =3D "sink"; + + output-low; + qcom,dtest =3D <4>; + }; +}; + &pmi8994_spmi_regulators { vdd_s2-supply =3D <&vph_pwr>; =20 --=20 2.35.1