From patchwork Thu May 5 02:27:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 12839010 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 AB05DC4332F for ; Thu, 5 May 2022 02:25:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238705AbiEEC3H (ORCPT ); Wed, 4 May 2022 22:29:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239225AbiEEC3C (ORCPT ); Wed, 4 May 2022 22:29:02 -0400 Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECD5713E8B for ; Wed, 4 May 2022 19:25:23 -0700 (PDT) Received: by mail-ot1-x32c.google.com with SMTP id s18-20020a056830149200b006063fef3e17so2102389otq.12 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=19wiazEMftlaMevn97Pc6mIacJ8UxC78ygZkPQ6mLmfYUXcgrqSN9btsjiHO/kfQLq VEdUmPJ65kzLWqKVXY+Wg+oN+iJs7fo7ro+zt8l/Yk0mg8P6L4qAd6s97j9GvcDCLxKI UA2GdEH6U6e5C4NYACEYE62zDDoSaxyVXOe94GNb9om3vIIIJ8F5e7wsTBZLVoaUI5dG V+0p46YPdPAXCO45y4Bmam6tUGf8nE/i2HXI93JTodKoNbLXcLAHkHXKvlGiwXYbqKDy cU9ovgVm01l+5YH8zvdDoaTfkGKu2CIajSRoFikPCpToYEvT5yXTSzz1r5dgbSzyF5+l kVZg== X-Gm-Message-State: AOAM533yFa1/PnMdD1skW13KHRjv//zO9BfsmVBNb/2Jov4XA4BwYvp9 O2ijdkAT+RmKkeVdd8dNDW9p1A== 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 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add PWM/LPG nodes to the PMICs currently supported by the binding. Signed-off-by: Bjorn Andersson Reviewed-by: Caleb Connolly --- 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/qcom/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 = <1>; #size-cells = <0>; + pm8916_pwm: pwm { + compatible = "qcom,pm8916-pwm"; + + #pwm-cells = <2>; + + status = "disabled"; + }; + pm8916_vib: vibrator@c000 { compatible = "qcom,pm8916-vib"; reg = <0xc000>; diff --git a/arch/arm64/boot/dts/qcom/pm8994.dtsi b/arch/arm64/boot/dts/qcom/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 = <1>; #size-cells = <0>; + pm8994_lpg: lpg { + compatible = "qcom,pm8994-lpg"; + + #address-cells = <1>; + #size-cells = <0>; + #pwm-cells = <2>; + + status = "disabled"; + }; + pm8994_spmi_regulators: regulators { compatible = "qcom,pm8994-regulators"; }; diff --git a/arch/arm64/boot/dts/qcom/pmi8994.dtsi b/arch/arm64/boot/dts/qcom/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 = <1>; #size-cells = <0>; + pmi8994_lpg: lpg { + compatible = "qcom,pmi8994-lpg"; + + #address-cells = <1>; + #size-cells = <0>; + #pwm-cells = <2>; + + status = "disabled"; + }; + pmi8994_spmi_regulators: regulators { compatible = "qcom,pmi8994-regulators"; #address-cells = <1>; diff --git a/arch/arm64/boot/dts/qcom/pmi8998.dtsi b/arch/arm64/boot/dts/qcom/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 { }; }; + pmi8998_lpg: lpg { + compatible = "qcom,pmi8998-lpg"; + + #address-cells = <1>; + #size-cells = <0>; + #pwm-cells = <2>; + + status = "disabled"; + }; + pmi8998_wled: leds@d800 { compatible = "qcom,pmi8998-wled"; reg = <0xd800 0xd900>; @@ -52,6 +62,5 @@ pmi8998_wled: leds@d800 { status = "disabled"; }; - }; }; From patchwork Thu May 5 02:27:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 12839012 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 2110DC433FE for ; Thu, 5 May 2022 02:25:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238927AbiEEC3J (ORCPT ); Wed, 4 May 2022 22:29:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239248AbiEEC3C (ORCPT ); Wed, 4 May 2022 22:29:02 -0400 Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1F821B798 for ; Wed, 4 May 2022 19:25:24 -0700 (PDT) Received: by mail-oi1-x22c.google.com with SMTP id l203so3092131oif.0 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=1CqN3SaSmsaZu4L+JmxjUBeMDporha2gHozaGyjFxPQhFAy9FcLP08o/0N0nDqCclE UXB33n4GJSh/apvpAMR6XvftHg+KME6DI16afhU+UTMmiFWVR+YieVy0RwnbhZj9ZM27 YdVY6FlifMI9KFx9Ybcy8k14e0FIC3M/Sq2lNRwEj1a6ydH2Z7V+iZgZBTjjZx39NX3a LrMzymxeckfQiaZcy9ltoKh4/Ev2jqoER6ZwroEjC0RcuS+xLk8XKVkhqRK87/iArydY Q8x30F7oWbSVzt1Y4D7LZc7S28iZIMZoAlczCiagNdU7tfe6sVNa87BleXKYkFr+X2cC ly3g== X-Gm-Message-State: AOAM531MfGeoOg9QkAP28hB2rTistw5EmORQdRNAxRyBU885ROLQHABX YofA8SX9aU8AEP2x2dtYrgpFKQ== 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 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 --- 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/dts/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 @@ /dts-v1/; +#include #include #include #include @@ -606,6 +607,36 @@ resin { }; }; +&pmi8998_lpg { + status = "okay"; + + qcom,power-source = <1>; + + led@3 { + reg = <3>; + color = ; + function = LED_FUNCTION_HEARTBEAT; + function-enumerator = <3>; + + linux,default-trigger = "heartbeat"; + default-state = "on"; + }; + + led@4 { + reg = <4>; + color = ; + function = LED_FUNCTION_INDICATOR; + function-enumerator = <2>; + }; + + led@5 { + reg = <5>; + color = ; + function = LED_FUNCTION_INDICATOR; + function-enumerator = <1>; + }; +}; + /* QUAT I2S Uses 4 I2S SD Lines for audio on LT9611 HDMI Bridge */ &q6afedai { qi2s@22 { From patchwork Thu May 5 02:27:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 12839014 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 AC9E2C433FE for ; Thu, 5 May 2022 02:25:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238932AbiEEC3L (ORCPT ); Wed, 4 May 2022 22:29:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239337AbiEEC3D (ORCPT ); Wed, 4 May 2022 22:29:03 -0400 Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E013714091 for ; Wed, 4 May 2022 19:25:25 -0700 (PDT) Received: by mail-oi1-x229.google.com with SMTP id n24so3046138oie.12 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=APdztZRS65sBHbyosyDUfUNonC2sOjfPfDERJP8Qwkw2E2uvd5sbIuWBrpQC2XpWC6 30VLalE3Civ2baaNrdT6wE+tW6lL6TPAJkg+nD2olC+Wx8k2Fnh84mII11ktINan61Fl KxC26p+4YWXpPWpi2SP5fhUmnQPzPyTatbcwQDbMfv1t0E5TZVZVxjeLudab2KYS6uv+ wCN2gmeR7/lZQcP136/h4Xx+3OszJbKf8V1GgVUF7bFDpW/FIp9VTF6kFrivEBBPb0a4 X7O9cVvYo2Sm8e3LT1tRqg/brTXLNc+QqijbSPNq1MibVZHGOfqCOwgX16LrhOVX0Ctu Psow== X-Gm-Message-State: AOAM530TJNbxFmNw9gJfoaaJpwZQOorN5Bcez/RK/9/ZzCZMS83vIj/f FIsJ5XfP04/jgoVybIiS+zCLIA== 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 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The pmi8994 has 4 multi-purpose-pins, add these to the definition. Signed-off-by: Bjorn Andersson Reviewed-by: Dmitry Baryshkov --- 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/qcom/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 = <2>; }; + + pmi8994_mpps: mpps@a000 { + compatible = "qcom,pmi8994-mpp"; + reg = <0xa000>; + gpio-controller; + gpio-ranges = <&pmi8994_mpps 0 0 4>; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; }; pmic@3 { From patchwork Thu May 5 02:27:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 12839013 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 07E1FC4332F for ; Thu, 5 May 2022 02:25:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239008AbiEEC3K (ORCPT ); Wed, 4 May 2022 22:29:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239339AbiEEC3E (ORCPT ); Wed, 4 May 2022 22:29:04 -0400 Received: from mail-oa1-x33.google.com (mail-oa1-x33.google.com [IPv6:2001:4860:4864:20::33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C53F12AE4 for ; Wed, 4 May 2022 19:25:26 -0700 (PDT) Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-e2fa360f6dso3042714fac.2 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=dOH6eGz5fvs0Za+P4usd6r/bg267DZjRCDWm3wGAr30ABF21FcppL3OwZDc+P5WVB6 cQK15HJ+oXbO/RCIFQX/9oOBDaF3RY+rgYrhFD/R9AcLoJCGzjK/UzqthbBKx03/H2C+ 5ltgOrP2Sx2Mn0x0Cu1RenG9UkRlw7XfaYElYT8JRSQQ3/RjIYWXcA0vuh2pg6SWSoXi h83TmR6qOvcDgvJoOckkZGoMEO98lEBf5CVffdvzZ/QwPxwafZMHZNwQLjbGtGQkxgB6 udkS+jTLlPz3MKy9QMstYy+keq55l0As/EOyBI7yDnyJ0106NM2YcVgRLnBkbdb6Eikq hJAA== X-Gm-Message-State: AOAM53153qb2opZ+tFwbRJjU53RSO5I1t+wsZpf1V3683u5JMotMsD+g 12UsrcJAxSVVKOd4rE4wYBurAQ== 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 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 --- 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 { }; }; +&pmi8994_lpg { + qcom,power-source = <1>; + + pinctrl-names = "default"; + pinctrl-0 = <&pmi8994_mpp2_userled4>; + + qcom,dtest = <0 0>, + <0 0>, + <0 0>, + <4 1>; + + status = "okay"; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_HEARTBEAT; + function-enumerator = <1>; + + linux,default-trigger = "heartbeat"; + default-state = "on"; + }; + + led@2 { + reg = <2>; + color = ; + function = LED_FUNCTION_HEARTBEAT; + function-enumerator = <0>; + }; + + led@3 { + reg = <3>; + color = ; + function = LED_FUNCTION_HEARTBEAT; + function-enumerator = <2>; + }; + + led@4 { + reg = <4>; + color = ; + function = LED_FUNCTION_HEARTBEAT; + function-enumerator = <3>; + }; +}; + +&pmi8994_mpps { + pmi8994_mpp2_userled4: mpp2-userled4-state { + pins = "mpp2"; + function = "sink"; + + output-low; + qcom,dtest = <4>; + }; +}; + &pmi8994_spmi_regulators { vdd_s2-supply = <&vph_pwr>;