From patchwork Wed May 4 20:54:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 12838521 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 317C4C433EF for ; Wed, 4 May 2022 20:52:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245148AbiEDU4H (ORCPT ); Wed, 4 May 2022 16:56:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235480AbiEDU4H (ORCPT ); Wed, 4 May 2022 16:56:07 -0400 Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2642651319 for ; Wed, 4 May 2022 13:52:29 -0700 (PDT) Received: by mail-oi1-x234.google.com with SMTP id r1so2423287oie.4 for ; Wed, 04 May 2022 13:52:29 -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:mime-version :content-transfer-encoding; bh=64pNyWcA3OZD47OFBCx63tFfb3O6MICh1sM7rQq4QOY=; b=T2za65o+UNyKokMAhXWl6vJhPzWM97thHDyc4ha0YV5i42ZT0x/HEoeXGYuH7sc4uu o42fItSQwmrK0rTJja66L7VB55fsFKcxQ3JEPtw/uEoKcuZrjsoMinMJ/gGHLv6aUZIi Cm8R0AVZeKteMuvn3gnvzzej5mjtWZmGHm+ae/pXEC8Xhe1/SJZ3Gqu/I05uJk13q1Of mppc9b9JWl8fiAKHkMV69T0NRBxw6RUh7tgF0n0gtf58i2HH2W92sRG79vWwqSyrw9X1 QeKAn8wo54z3hbDZyvGxVcipTKeRHFMUSgZw+w/ug2mpVMI8mZ9ftq4NU+JJxYsXRTZJ co+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:mime-version :content-transfer-encoding; bh=64pNyWcA3OZD47OFBCx63tFfb3O6MICh1sM7rQq4QOY=; b=0f2ShkSgPlw9uo6gvyBy7fTztvRYLEWqwzXeqQhvsNkR1X0gLoBSlodD4RiKWXBg/x qECR+MaO88tXtPqnMMkxgcLW9a/hMicF2BkPW/dsSHZt+1PVDg3//zknYRio7HDPlU8P eKsIJg2YebO2OYYzCQ4utElq8kZtO0cLbFkxcr2r3wLViaNIyIw3pmkrRN/HRisdYhYX zLkE/jJd5A3TqcUVIGw/GlynAd97gdgQwI2e7XCwqnsmraGqFZMx9BwjKevfmP2cJV05 D5WMwaOf5Ql7Nyp7MO9e7weg8O63k7wrhMzpoF/fV+5EpPOEzmxcTD1CohxzBxKk2n87 uymw== X-Gm-Message-State: AOAM530Nr1BJNRddWB8Z3PbnPhKjcysoCJEKCSIpAPD1ShxyrjzHrZek olqLQrcLIFYtZeyX0Od0ZTDDLw== X-Google-Smtp-Source: ABdhPJwCw+i8KO3RG8kYBjNvvrAgZMnF5jigYFLSSnuBg6j7wt7vPBghhcJRxFtChGr9PhJ177SYDQ== X-Received: by 2002:a05:6808:2105:b0:326:3589:f7d0 with SMTP id r5-20020a056808210500b003263589f7d0mr693134oiw.45.1651697548458; Wed, 04 May 2022 13:52:28 -0700 (PDT) Received: from ripper.. (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id q23-20020a05683031b700b0060603221234sm5520468ots.4.2022.05.04.13.52.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 13:52:27 -0700 (PDT) From: Bjorn Andersson To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio Subject: [PATCH 1/2] ARM: dts: qcom: Add LPG node to pm8941 Date: Wed, 4 May 2022 13:54:10 -0700 Message-Id: <20220504205411.1510667-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.35.1 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 Tested-by: Luca Weiss Reviewed-by: Luca Weiss --- arch/arm/boot/dts/qcom-pm8941.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/qcom-pm8941.dtsi b/arch/arm/boot/dts/qcom-pm8941.dtsi index cdd2bdb77b32..7881a071b372 100644 --- a/arch/arm/boot/dts/qcom-pm8941.dtsi +++ b/arch/arm/boot/dts/qcom-pm8941.dtsi @@ -144,6 +144,15 @@ pm8941_1: pm8941@1 { #address-cells = <1>; #size-cells = <0>; + pm8941_lpg: lpg { + compatible = "qcom,pm8941-lpg"; + + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + pm8941_wled: wled@d800 { compatible = "qcom,pm8941-wled"; reg = <0xd800>; From patchwork Wed May 4 20:54:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 12838522 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 3683BC43217 for ; Wed, 4 May 2022 20:52:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355453AbiEDU4J (ORCPT ); Wed, 4 May 2022 16:56:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232251AbiEDU4I (ORCPT ); Wed, 4 May 2022 16:56:08 -0400 Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F39365133B for ; Wed, 4 May 2022 13:52:29 -0700 (PDT) Received: by mail-ot1-x330.google.com with SMTP id z15-20020a9d65cf000000b00605f064482cso1688881oth.6 for ; Wed, 04 May 2022 13:52:29 -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=78wyRzQ5DjH1PDbOlX/8S7WrCIMcVv9/em5vGahsukg=; b=YgyaI1cI6Edppv1Nw1S69ew6QG83NjUZuk7w4r5CMEtxbAvDepHEyY2tn0PEsfkuMd Tbc17mHoFbigVTi0bwFaKfZlbcUgF3UmtE3r+d+c9eexCImdGDI0GB0r9NWAijnA8Lgf 2yOfJK5AZrjqVWmR9qnBwjP/vy2a4IPaWDYppr9K1jOQm9T+bVKvulEuxYwwETbW8plI BniC5yZGQ5jDOjCVLUKaswOYhEYsPmMhsvzwSXwm7hOdgvKlrckYY2sJNpbeYMXUd7ux 36odESCpczA0CYi3LT1ZYlzo7UDE5fhBBOZp6t9xBD32+n1XRl2Y7ovD8CBd6i8DfgfW q3cg== 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=78wyRzQ5DjH1PDbOlX/8S7WrCIMcVv9/em5vGahsukg=; b=zZf1GTG97zAwhRlxw5LfzUpH1nk9ouniwuXcz/PmxpbtGf/4HIO2eFd3sIi2gNB/4P QzvQ+E5kbrEiUmQfFEWxC7Evoqf4il2rWNf73OJilyQ6ZWdq1ra85LrbK4FemkJt854F C24bM3201jYBx/pNVhrJ5EWCCsdZ3LSpYhqHBmKXjtrMh3Edy6sGJkWDIZ4j2k7eBCbD UBI/IFZTsOCJRWhBYd04h3zMXIMsvM4Xs5hlLNkUNYEABDkYsb1bgYLBzTLvf99wu5t7 U6g9Ob600lzAF85LtopX/nCoXrzwjT8aETU2wObT7qD+POiLQ2I6hAhwimVOU0QmwMLB CXAA== X-Gm-Message-State: AOAM532sjWc95N7NULwdkmvGcgJ5SInAV8yTVPJuut7xPzGZwADsHjb8 D2FP+y8CYmpGzdYmy805Jj7msPGEyK8W2i1E X-Google-Smtp-Source: ABdhPJxUJ6MQIvvvAVaWWkl4Rl/PdSMgsm4x6cwgJCUgJ1pXfcxcmeWi5Y98W/GpkYdYpUxHtDG2WQ== X-Received: by 2002:a9d:6ac7:0:b0:605:a666:5c06 with SMTP id m7-20020a9d6ac7000000b00605a6665c06mr8175321otq.15.1651697549339; Wed, 04 May 2022 13:52:29 -0700 (PDT) Received: from ripper.. (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id q23-20020a05683031b700b0060603221234sm5520468ots.4.2022.05.04.13.52.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 13:52:28 -0700 (PDT) From: Bjorn Andersson To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio Subject: [PATCH 2/2] ARM: dts: qcom: msm8974-sony: Enable LPG Date: Wed, 4 May 2022 13:54:11 -0700 Message-Id: <20220504205411.1510667-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220504205411.1510667-1-bjorn.andersson@linaro.org> References: <20220504205411.1510667-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 --- .../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 1d21de46f85c..9891d0d40945 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 { }; }; +&pm8941_lpg { + status = "okay"; + + qcom,power-source = <1>; + + rgb-led { + color = ; + function = LED_FUNCTION_STATUS; + + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <7>; + color = ; + }; + + led@2 { + reg = <6>; + color = ; + }; + + led@3 { + reg = <5>; + 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 9bd8faea61a5..da1593192306 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 { }; +&pm8941_lpg { + status = "okay"; + + qcom,power-source = <1>; + + rgb-led { + color = ; + function = LED_FUNCTION_STATUS; + + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <7>; + color = ; + }; + + led@2 { + reg = <6>; + color = ; + }; + + led@3 { + reg = <5>; + color = ; + }; + }; +}; + &rpm_requests { pm8941-regulators { compatible = "qcom,rpm-pm8941-regulators";