From patchwork Wed Jul 13 21:23:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 12917149 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 873FBCCA479 for ; Wed, 13 Jul 2022 21:21:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237352AbiGMVVl (ORCPT ); Wed, 13 Jul 2022 17:21:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231663AbiGMVVW (ORCPT ); Wed, 13 Jul 2022 17:21:22 -0400 Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D88FE283 for ; Wed, 13 Jul 2022 14:20:45 -0700 (PDT) Received: by mail-oi1-x231.google.com with SMTP id i126so151042oih.4 for ; Wed, 13 Jul 2022 14:20:45 -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=JSNOgX1qh7jhGjLbM6r9/+GLpFmurki5MvpbKU9Prwo=; b=kIrg/rcAm+vdfD+EhFDKva6EpHx37lp4NHF7nZi9BLbP1CYmSDXylGAMgWuJyPCbCT Ond1Pgk1zTrtci79E1vGQsbtvTYfI7GnGPOtbP7yp1dG0LSWu3m22/VvJf2xKpNKv7M1 W1/hEue8aOGNG5kaHnoQFVHvh7atVYYY+d4ZaBgKSHOzo0A+SzI8MndlPbQrTpp5cUJt lxRgFK+yquXMPSlNtThka1S+JkbdiaexCs3xIZJZwpbXS2+xmNmTA7tTV9Bnky5mI9kP sAg+mazG1O4j5vIPMvRcbIRuqh5lITExfkNZTz5RcxUPZ3waRLG6er6vms3Qx8il9ZHk N0+Q== 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=JSNOgX1qh7jhGjLbM6r9/+GLpFmurki5MvpbKU9Prwo=; b=OYjghdFzsaaj70e42osSoOz/MlgENSCJjU/0TfB4LJv2amrxqrxSpWIPLohx2UqED3 BI7EOnuXa6kShex3HTsqloPIqe6KNIQ5YwZkr48P+3lFDHYZ5U7DK0j9LZhXXV4QDNzO zMeLz+74fdODwMitGChAGfIzqaWVsm4jHCG1Nub4WTM7KwPjKdtrTeNXHZapB0hQ0vaO WWkUUNDU4sXjpKDRZKH9eii4abe4RfWfIcvnjQ0bb5DEGVc8IFUXfOCkFWIpIo5NtW2A C7LsUDdkj9S0prfJkelRNwZNyo4rrMoSunb5uC7/Mc2CyS7AtnOzQnnshgSh7jb7vDGe P5FQ== X-Gm-Message-State: AJIora+OJgHzQnV7VaEr5IV8Ro4Rrms7/L76tqa+9mfCmRwx7vTIgA0W WXNm228DwwScNirtxbMIDKTr8A== X-Google-Smtp-Source: AGRyM1t0ddgYG3I3aHAHy2c/m0NTsc9rq+mu62bVMF3BgnQw37sbezrjmiY4Q2bkXlW3w8LElj6RCA== X-Received: by 2002:a05:6808:4cd:b0:339:fdbe:ea4d with SMTP id a13-20020a05680804cd00b00339fdbeea4dmr2909762oie.229.1657747245190; Wed, 13 Jul 2022 14:20:45 -0700 (PDT) Received: from ripper.. (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id i19-20020a056871029300b0010c17e6c699sm6647897oae.47.2022.07.13.14.20.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jul 2022 14:20:44 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Konrad Dybcio Cc: Luca Weiss , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] ARM: dts: qcom: Add LPG node to pm8941 Date: Wed, 13 Jul 2022 14:23:08 -0700 Message-Id: <20220713212309.130230-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220713212309.130230-1-bjorn.andersson@linaro.org> References: <20220713212309.130230-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The PM8941 contains 8 LPG channels, as well as TRILED and LUT blocks. Add a node for these. Signed-off-by: Bjorn Andersson Reviewed-by: Konrad Dybcio --- Changes since v1: - Added #pwm-cells arch/arm/boot/dts/qcom-pm8941.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/qcom-pm8941.dtsi b/arch/arm/boot/dts/qcom-pm8941.dtsi index a68634397938..59d0cde63251 100644 --- a/arch/arm/boot/dts/qcom-pm8941.dtsi +++ b/arch/arm/boot/dts/qcom-pm8941.dtsi @@ -144,6 +144,16 @@ pm8941_1: pm8941@1 { #address-cells = <1>; #size-cells = <0>; + pm8941_lpg: lpg { + compatible = "qcom,pm8941-lpg"; + + #address-cells = <1>; + #size-cells = <0>; + #pwm-cells = <2>; + + status = "disabled"; + }; + pm8941_wled: wled@d800 { compatible = "qcom,pm8941-wled"; reg = <0xd800>; From patchwork Wed Jul 13 21:23:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 12917150 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 61B15C433EF for ; Wed, 13 Jul 2022 21:21:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231663AbiGMVVl (ORCPT ); Wed, 13 Jul 2022 17:21:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237402AbiGMVVW (ORCPT ); Wed, 13 Jul 2022 17:21:22 -0400 Received: from mail-oa1-x36.google.com (mail-oa1-x36.google.com [IPv6:2001:4860:4864:20::36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15CD610D8 for ; Wed, 13 Jul 2022 14:20:47 -0700 (PDT) Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-10c0d96953fso216967fac.0 for ; Wed, 13 Jul 2022 14:20:47 -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=jDIsFRxXwtCqxyONdxF5c1K9paBtFr3+08L7z2qU5vA=; b=j6cOJrctkCf7KseVBRdjSV7xlcfNt+7koxFBfEzD+TqfkyzpEbWiMDN5+d1JFAlUR1 4UWAlA7Y7QVimCdgfMGCV5T5leqdGRaLoe8ws+Uj9fgqQwS4b8SOpsIZtuehvXuI+xQo UFJKWvgemXRzSTOEgy/A+jHJpgXoPOrnxi+IEalxaNKcrp0DgtDTmzaU9N6aQ+abSW1S IilnnvVXk0xNL9DD52vVgrih36f14uWbKP9rFimyB5zdAH32DVassCoYu35wrNoqLNi7 lk9demUWCLl4bQ8ke7GM5ZQOmqIJbWNNbduoF8eLZRDgNLeyQB3Ohsx8x5GSTbEkfbnL uufw== 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=jDIsFRxXwtCqxyONdxF5c1K9paBtFr3+08L7z2qU5vA=; b=ffm6R8rT80RoFtBK/zFwQh4WvqB+wtFKODgBjA7QTGIxjYHC3tJANXGu+ykBe1VjmO dgLRrNo6ptxkz0BAiqIhp9Ev7RczqP0B/c5Pv3blBKcXxi5/gH8AUTvIYrNNERe9KfPk pYP+MiXiDIKcSaKYpWWWSV7kaT41UiU0bpuRA6MIGNSINMTMoejdUEnwuMw7V8HFjixw ASuQPaiSiyRydtnGiacWnuWHe87l1JETUT5EULCGVj5bRe4XN5N/hBJ0xfAcCmXvrG18 rT3kSrwglNKNvxIsmnGMk/sctRyXTPazFIzuWxeN4qSV1VsbP8Oxcot2qgrUL39Yjf+h Bg1w== X-Gm-Message-State: AJIora8RfR2n0IpnC0xHcKp/PVvIGIdJETfE9/GRHA8d1kF5iQwpe+js OZSYxzta74/yvnUq2pFHEJeP7A== X-Google-Smtp-Source: AGRyM1tJqqpZcbdmf0IjLs3JPzHYVSJn1XpT0FPSi1cB/Be9qVNnpyy+gRwJUYwTuBP+IukgYZYe8w== X-Received: by 2002:a05:6870:41ca:b0:101:d588:6241 with SMTP id z10-20020a05687041ca00b00101d5886241mr5611485oac.175.1657747246489; Wed, 13 Jul 2022 14:20:46 -0700 (PDT) Received: from ripper.. (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id i19-20020a056871029300b0010c17e6c699sm6647897oae.47.2022.07.13.14.20.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jul 2022 14:20:45 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Konrad Dybcio Cc: Luca Weiss , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] ARM: dts: qcom: msm8974-sony: Enable LPG Date: Wed, 13 Jul 2022 14:23:09 -0700 Message-Id: <20220713212309.130230-3-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220713212309.130230-1-bjorn.andersson@linaro.org> References: <20220713212309.130230-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Both Castor and Honami has RGB LEDs driven by the PM8941 LPG, define these. Signed-off-by: Bjorn Andersson Reviewed-by: Konrad Dybcio --- Changes since v1: - Corrected unit addresses and sort order of channels .../dts/qcom-msm8974-sony-xperia-rhine.dtsi | 30 +++++++++++++++++++ ...-msm8974pro-sony-xperia-shinano-castor.dts | 30 +++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-sony-xperia-rhine.dtsi b/arch/arm/boot/dts/qcom-msm8974-sony-xperia-rhine.dtsi index d42b85bda33a..5a70683d9103 100644 --- a/arch/arm/boot/dts/qcom-msm8974-sony-xperia-rhine.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974-sony-xperia-rhine.dtsi @@ -3,6 +3,7 @@ #include "qcom-pm8841.dtsi" #include "qcom-pm8941.dtsi" #include +#include #include / { @@ -172,6 +173,35 @@ gpio_keys_pin_a: gpio-keys-active-state { }; }; +&pm8941_lpg { + status = "okay"; + + qcom,power-source = <1>; + + rgb-led { + color = ; + function = LED_FUNCTION_STATUS; + + #address-cells = <1>; + #size-cells = <0>; + + led@5 { + reg = <5>; + color = ; + }; + + led@6 { + reg = <6>; + color = ; + }; + + led@7 { + reg = <7>; + color = ; + }; + }; +}; + &pm8941_wled { status = "okay"; diff --git a/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-castor.dts b/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-castor.dts index 9fc696a7399a..3f45f5c5d37b 100644 --- a/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-castor.dts +++ b/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-castor.dts @@ -3,6 +3,7 @@ #include "qcom-pm8841.dtsi" #include "qcom-pm8941.dtsi" #include +#include #include / { @@ -288,6 +289,35 @@ lcd_dcdc_en_pin_a: lcd-dcdc-en-active-state { }; +&pm8941_lpg { + status = "okay"; + + qcom,power-source = <1>; + + rgb-led { + color = ; + function = LED_FUNCTION_STATUS; + + #address-cells = <1>; + #size-cells = <0>; + + led@5 { + reg = <5>; + color = ; + }; + + led@6 { + reg = <6>; + color = ; + }; + + led@7 { + reg = <7>; + color = ; + }; + }; +}; + &rpm_requests { pm8941-regulators { compatible = "qcom,rpm-pm8941-regulators";