From patchwork Tue Jun 7 10:29:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 579515 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 965E8CCA47F for ; Tue, 7 Jun 2022 10:33:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241035AbiFGKdz (ORCPT ); Tue, 7 Jun 2022 06:33:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241014AbiFGKdy (ORCPT ); Tue, 7 Jun 2022 06:33:54 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 590085DD26 for ; Tue, 7 Jun 2022 03:33:53 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id fd25so22407562edb.3 for ; Tue, 07 Jun 2022 03:33:53 -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=yaAyEYart5W/dwFAnhvBseFevDB8DHepYlNxBeb2VnY=; b=QTf5Tf1f4M2ATD8dha5HBnZYU+wwAB7rNUuguGCymxo2IhPHFzJvJVIS6PmNbaOSR/ o4SP7y5juUyn4QH+RxonEbP9PKZ/c+CDhyKx1ny7xAvHY5/Gr1cKTlKC7v45IVOcxzlL 9hxRKSZa1FAjNaqSQMLeITT2UQDdAFJDxCK3vpWSlg0DxkmJ0+NFy+I0jUU6kjecmx9U AvHsDDSHmnSTp4mBn0iHzNsXUCjrvPoM+E7xEyu9ZP4hSvJjyEgE5EsjnPx2OkBydBzh 71w1bPNyXsvGJoa+Z3k8cnSJg+LJfGAagwqqSmPdXl94pflhWcR+AAVU/mV8sRgqTByY ZbEw== 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=yaAyEYart5W/dwFAnhvBseFevDB8DHepYlNxBeb2VnY=; b=HEx/6cHiWYBJbzovyZTcx2YRjmd48M7gr/xHSrIlffgtFlnki0vy5LNbMvR75H1E+R Y+l1TO2q/WfEgBP/ILuA4Sd9rOeLeSvPPHLGcwH0HJ8r95oWFYOij/7Wwcp58Uc0zHfv nZLBWxpY73DWyZLFHzcTareJ2/n/nuGuRNIHYpP973gS1tU3p3J7eOTQMEOCMwbOGWDG u9GQhY5gOerZbIcavbNOxWwmGEbp88lqAQoNSi4dAmBpDwRmZK3qNVf+DqeaYVDOUltE 166H2O/yHvz2rHwAOoJajzZxeRb2j0m9NNWqTPqE8Blst8c/afDHpptBucX7AbmcPHYU ZYLw== X-Gm-Message-State: AOAM533IjokPVxvDKqLSm23IIuIAAEZwzKzLWfm91E9AjtPtC+YKP7Xq 4oN3ef0VCx3zFr3GAoqyCRyNlw== X-Google-Smtp-Source: ABdhPJx+NtMDOSu9BL6XxbzXC2K3sqhCuYXgfSgA0/OPE2AkkzYXc/tOTPk27U9aJ8on5KZJeshETA== X-Received: by 2002:aa7:d4c6:0:b0:42e:561:8c70 with SMTP id t6-20020aa7d4c6000000b0042e05618c70mr32042748edr.131.1654598031819; Tue, 07 Jun 2022 03:33:51 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id x4-20020a1709065ac400b00704fa2748ffsm7505359ejs.99.2022.06.07.03.33.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 03:33:51 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 02/10] ARM: dts: qcom: apq8060-ifc6410: add color to LED node Date: Tue, 7 Jun 2022 12:29:23 +0200 Message-Id: <20220607102931.102805-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220607102931.102805-1-krzysztof.kozlowski@linaro.org> References: <20220607102931.102805-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add common LED property - the color - to LED node. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index 2638b380be20..49607b7b2120 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 #include "qcom-apq8064-v2.0.dtsi" #include +#include #include / { @@ -39,6 +40,7 @@ leds { led@1 { label = "apq8064:green:user1"; + color = ; gpios = <&pm8921_gpio 18 GPIO_ACTIVE_HIGH>; default-state = "on"; }; From patchwork Tue Jun 7 10:29:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 579514 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 F20CDCCA47C for ; Tue, 7 Jun 2022 10:33:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241058AbiFGKd6 (ORCPT ); Tue, 7 Jun 2022 06:33:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241009AbiFGKd4 (ORCPT ); Tue, 7 Jun 2022 06:33:56 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 349315DD0E for ; Tue, 7 Jun 2022 03:33:55 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id c2so22372145edf.5 for ; Tue, 07 Jun 2022 03:33:55 -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=Z7y5ppJgpzR4qJH3r+2SuIsoUHOGR5gCCdmikAjr6os=; b=iafDT1DDwDEdaSEgRX3WPj+F2TFV+kSWzzGnXk73O6kjG9PAdA0kkCxcKSMV+QS0la o1H5nzhiF+qihE4lxY6qEkZi+s0ijawk3o3ZIiRQak1GtUKecvJPI5CckELrNcPr29zY TObd6Jbeoqw++uq9ObdZEE5C3NuGE1lndHQZzsEc92a7J7ITbK5D+AJGHxL3g/IwyWsa lFnsaRDq9Wn1MwU6uEun1TebfUvESQzemAEkRUBzPs0UIZ88B6eYebYm0HYt97PtM0WS ZRT0BzrC+9LGcMpTVkveM6D4UEFOCEQSjUrtpzguRo8BnEyKddmxPlDUndnmIPe8wetA 5MNw== 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=Z7y5ppJgpzR4qJH3r+2SuIsoUHOGR5gCCdmikAjr6os=; b=yLpdlCJ4KiGIzWlKZuoCOR1z7Jx2viO4IoP6yjyspvB/d+82PNtxDmPpIb2dehQNMh 68WKj7VHKqJBWoTWfCHYwjcwetMEmpK/dHCoIweF77X6ItdFfYFyrc8K7taVe+ClOiW/ 4gUceP92gH+jqc/uLPLizQMQzdscO+wXi4+cEJsR6wjdV/Yl8lz8F2uMh/PQQLctLv6Z o/nf7uA4xjAWwTkzFEUDsHxoTDlCSN0qKI6i7PHiCzBl+CL5dp2xGgQodh8E9c1xtEoH tt/e/3M133Ks724bZswC4g10IaeRISsiV0vbL9TCUoOoOl7UpozrU6hXsJQ1phwZWuLR ArAw== X-Gm-Message-State: AOAM533awoj4VT48I1Rez9K7FUuYMsBnj1dBWcPDT8IDKzwCSJZ2YYqA UrpMaNxyw+UUjdhgcrrv4t9ATQ== X-Google-Smtp-Source: ABdhPJyxYwqsplvcowIuHcsSL/grfb+PJx9uT+VKmzzUJQHNtEUlYEAqW9RA7AFndpQzw8UPyklvbA== X-Received: by 2002:a05:6402:703:b0:42d:d347:a586 with SMTP id w3-20020a056402070300b0042dd347a586mr33024148edx.316.1654598033813; Tue, 07 Jun 2022 03:33:53 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id x4-20020a1709065ac400b00704fa2748ffsm7505359ejs.99.2022.06.07.03.33.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 03:33:53 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 04/10] ARM: dts: qcom: ipq8064-rb3011: add color to LED node Date: Tue, 7 Jun 2022 12:29:25 +0200 Message-Id: <20220607102931.102805-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220607102931.102805-1-krzysztof.kozlowski@linaro.org> References: <20220607102931.102805-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add common LED property - the color - to LED node. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/qcom-ipq8064-rb3011.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts b/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts index 596d129d4a95..68b2074807e1 100644 --- a/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts +++ b/arch/arm/boot/dts/qcom-ipq8064-rb3011.dts @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 #include "qcom-ipq8064.dtsi" #include +#include / { model = "MikroTik RB3011UiAS-RM"; @@ -208,6 +209,7 @@ leds { led@7 { label = "rb3011:green:user"; + color = ; gpios = <&qcom_pinmux 33 GPIO_ACTIVE_HIGH>; default-state = "off"; }; From patchwork Tue Jun 7 10:29:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 579513 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 AAA2ECCA47C for ; Tue, 7 Jun 2022 10:34:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241015AbiFGKeD (ORCPT ); Tue, 7 Jun 2022 06:34:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241060AbiFGKeA (ORCPT ); Tue, 7 Jun 2022 06:34:00 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2967B62CF2 for ; Tue, 7 Jun 2022 03:33:58 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id m20so34219577ejj.10 for ; Tue, 07 Jun 2022 03:33:58 -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=WdAxh+O0uIjFe4UvozVO34klV0ZIe/hi3OtAodjcZGE=; b=Mb0K0i/8GyglpnlM9LcfaGHP6z5FNt+4CH6xvL7yruCiCSjz9yV8dDlC/rrkNEfPkP OwCgk8SfaQc9DTDXA78F/nql/eOsSFR/gZcI7A1PnFQAt0mJUSrLh/fM1k1kpG3mHN2O 2/Ic/F7zJxl1KA0NGD8BnnR8j4kGWRDSBKZpPkYbsfaDXgLCRNetWMxdE+t6gWF+S9+i 240S7z8aSqm19wXigQDlaLCKbHOtzx97sMy2ns1mLpdTdC5ljmcvt2Xo2/ycby9QfsEf U1ih6H+BHoXc2VljsDuf6jGLcaVJFE586ohHZFoMEJ0gBZer2c5bvLvqshRITognF00L STnQ== 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=WdAxh+O0uIjFe4UvozVO34klV0ZIe/hi3OtAodjcZGE=; b=qhponpzkAOaJjfi8SqDnvEpHRirZopsmToKXrAjwSt7mG2kwx22+N+9ovdPbHKcJeD WXJ9RUfK3dvaUNP49QNP5F+IKltWh90L5Tm4RhlCfYMVuIgFjxxcw/OOJuLqglZaJZ5t 2Umd31vV0ZAAHdLvnedqm4MxBxN3RkuLOWnMAl1YHpmxym5s2aHIjKWo0KG9G7KQF/oK ETx65bNarlckQNWsgutyxAJAkKKZ43CxEcTkFlgtmI+U8JiVzP0oROCNm2avgVaOGhvd cNolb0MxBQorPJIRnj4Gk4zsTPjdFsEciOkScDi46/xSaINYgb/etOmPISpN2DInDyTe nNwA== X-Gm-Message-State: AOAM530ymdIu1FGRk7NQ/q4LppS+IFOGodID7gESN76Y2s5uHsax83RK 4tUEzWcV+G+kH8T3AK1Sl3u4dg== X-Google-Smtp-Source: ABdhPJzvRlBXV1eQi92TT0ErMTBYtwbQKRdn24Vp05ftWF8pyeD1zchH+8Mlvqdt1bbOp7ohlNEIGw== X-Received: by 2002:a17:906:14d5:b0:711:c55a:998 with SMTP id y21-20020a17090614d500b00711c55a0998mr11917498ejc.708.1654598035746; Tue, 07 Jun 2022 03:33:55 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id x4-20020a1709065ac400b00704fa2748ffsm7505359ejs.99.2022.06.07.03.33.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 03:33:55 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 06/10] arm64: dts: qcom: apq8016-sbc: add function and color to LED nodes Date: Tue, 7 Jun 2022 12:29:27 +0200 Message-Id: <20220607102931.102805-6-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220607102931.102805-1-krzysztof.kozlowski@linaro.org> References: <20220607102931.102805-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add common LED properties - the function and color - to LED nodes. Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/apq8016-sbc.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts index 7c1eab605c15..3385cdf14a28 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts @@ -8,6 +8,7 @@ #include "msm8916-pm8916.dtsi" #include #include +#include #include #include #include @@ -116,6 +117,8 @@ leds { led@1 { label = "apq8016-sbc:green:user1"; + function = LED_FUNCTION_HEARTBEAT; + color = ; gpios = <&msmgpio 21 GPIO_ACTIVE_HIGH>; linux,default-trigger = "heartbeat"; default-state = "off"; @@ -123,6 +126,8 @@ led@1 { led@2 { label = "apq8016-sbc:green:user2"; + function = LED_FUNCTION_DISK_ACTIVITY; + color = ; gpios = <&msmgpio 120 GPIO_ACTIVE_HIGH>; linux,default-trigger = "mmc0"; default-state = "off"; @@ -130,6 +135,8 @@ led@2 { led@3 { label = "apq8016-sbc:green:user3"; + function = LED_FUNCTION_DISK_ACTIVITY; + color = ; gpios = <&pm8916_gpios 1 GPIO_ACTIVE_HIGH>; linux,default-trigger = "mmc1"; default-state = "off"; @@ -137,6 +144,7 @@ led@3 { led@4 { label = "apq8016-sbc:green:user4"; + color = ; gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>; linux,default-trigger = "none"; panic-indicator; @@ -145,6 +153,8 @@ led@4 { led@5 { label = "apq8016-sbc:yellow:wlan"; + function = LED_FUNCTION_WLAN; + color = ; gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy0tx"; default-state = "off"; @@ -152,6 +162,8 @@ led@5 { led@6 { label = "apq8016-sbc:blue:bt"; + function = LED_FUNCTION_BLUETOOTH; + color = ; gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>; linux,default-trigger = "bluetooth-power"; default-state = "off"; From patchwork Tue Jun 7 10:29:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 579511 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 480C8CCA484 for ; Tue, 7 Jun 2022 10:34:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241077AbiFGKeI (ORCPT ); Tue, 7 Jun 2022 06:34:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239423AbiFGKeD (ORCPT ); Tue, 7 Jun 2022 06:34:03 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72FB366ACA for ; Tue, 7 Jun 2022 03:33:59 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id c2so22372089edf.5 for ; Tue, 07 Jun 2022 03:33:59 -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=u0O6Mf/UrJOEwrZeCEjj2knBSzB2PFx6iqji2ENZg2g=; b=IwaL9rxfFfdPgnr716/ClY4yXQUUDH+uGY2IGB7VYY4T6TmoZ9e3dj41Pf3yv+UH30 6GxlHtJohRz8MIjhHcA96j8p6DHYgRQamw2QqKo9R3otjgIF+F4TbIyQUWtobrbhk82I TWFHf8z20fnuPgDEyb7UnQU8J3horlfb8lt/l4ajrLq/6Ra42wfSNfrDqe1bE4BAKKNQ emqvW4/GRdXQQZDW9hCKQEGifgsONTnUxg2rE1jQQWYOgj+mZtsabKoYJPdYlxLDNC+7 OqiOjNsCQX7ioLA89ptRvowvloU3F1siqN+wQdOlIMvucfQddlmx7CHKhmJLbFdB2VU5 MyrQ== 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=u0O6Mf/UrJOEwrZeCEjj2knBSzB2PFx6iqji2ENZg2g=; b=cFY3PHhW7hTQBOxQYGFuiimooIMK/FbmDJRaBbMGHDJi/S6VpMM62naKc2SHEL28uG vhbrQhi8Rp88kKuOyqd/ahkSCNljhtqYduwhBllIDnBKT3C3G06I0pIX0xpVriFEYu/b rj++TJpcc5tcvVlnguu7FNxtUsA5QnNvVmJDKD1CuA69wx3VS4p9Bj0yf4Dhdh54Py9/ p/jN6Ch/n5/xC7q0+Ac5Wgx/zj9ICmFywi0v5M7+mjbGH7rYalQDYFfMM1KkFxsOjZ/f zsR0BO5/jOTtNzvDa2HG5sjuxZOsnnj5tc/n3fyMLbRquztZxd5fgckUHN+jj0hQWdls vPLw== X-Gm-Message-State: AOAM532smFlrrhJHgEo4I0bZAZdCrr4iSKaIqtd1xZhbDL9WXEclzTAz cWFqdb6oQLtwLF6xMfEI3R4UEQ== X-Google-Smtp-Source: ABdhPJwKvkIDwyyhRdK6kIRYwjZd0OU/0w4Gl5DsX+c1Rallj5Buyt2b3KcIY8pvxUpT9+V6ZnSKKw== X-Received: by 2002:a05:6402:34d6:b0:42e:2a6a:5dc4 with SMTP id w22-20020a05640234d600b0042e2a6a5dc4mr25257043edc.361.1654598038899; Tue, 07 Jun 2022 03:33:58 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id x4-20020a1709065ac400b00704fa2748ffsm7505359ejs.99.2022.06.07.03.33.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 03:33:58 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 09/10] arm64: dts: qcom: sc7280-herobrine: add function to LED node Date: Tue, 7 Jun 2022 12:29:30 +0200 Message-Id: <20220607102931.102805-9-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220607102931.102805-1-krzysztof.kozlowski@linaro.org> References: <20220607102931.102805-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add common LED property - the function - to LED node. Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi b/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi index 9cb1bc8ed6b5..b5e31d908938 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi @@ -15,6 +15,7 @@ #include #include +#include #include "sc7280-qcard.dtsi" #include "sc7280-chrome-common.dtsi" @@ -301,6 +302,7 @@ pwmleds { keyboard_backlight: keyboard-backlight { status = "disabled"; label = "cros_ec::kbd_backlight"; + function = LED_FUNCTION_KBD_BACKLIGHT; pwms = <&cros_ec_pwm 0>; max-brightness = <1023>; }; From patchwork Tue Jun 7 10:29:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 579512 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 EDE1AC43334 for ; Tue, 7 Jun 2022 10:34:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241074AbiFGKeG (ORCPT ); Tue, 7 Jun 2022 06:34:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241088AbiFGKeD (ORCPT ); Tue, 7 Jun 2022 06:34:03 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C47469CEE for ; Tue, 7 Jun 2022 03:34:01 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id x5so17302729edi.2 for ; Tue, 07 Jun 2022 03:34:01 -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=UVrEyDI1PPHvzCAbZaShKqmCzODPm4yYUnVIkzwCwX8=; b=OMMPzvhRG6d4OSSbryIv7SZSHeRq3Dpk+HEiJusk04NUzZYZQoyQXiuoHFhjHnHc7Z 5+kTRjFN1ZPI2NI7b1J6f4h/c2SdoCT156Yf1eb4fyAXpXULiAcCRqkTpkAw1i7deDiQ 07GvWkahXm0gkfIeI9jUjbJahg/GlYRNFhN1Lhrv60jsdsfe4tzJMNzpXOs5WZshsSgC 5/NBvTEoMmCQahWKto2xEwrKWnGhealIC868+nJ19qBwQKXW3OyWeTVZhaO7DsptYPoo mgBORvAiLwRKQcAcQQVMcf4mZndp0MApNEifaoPZUXL8c08GiPtfGuKNefEdA8n4N5lf PbdA== 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=UVrEyDI1PPHvzCAbZaShKqmCzODPm4yYUnVIkzwCwX8=; b=h4jX8cEoxDD/U+T/HCgD0xkMQWqvc8ASi0vH1V4A0ipTEYdwcRjNXXhh36Dv2xWWBI fFmiArCae8Uzo7xc+SUhAD8I9vtezZPU40+6F2TarrhV8A6U12yZYNHIbZ2ZTWQbdwdk DG4wG4sfZdqho/B1AIWdxOfeB3ned9rG8BGBWeiQyqwHlMSRkn6eNUS1PP9xQtZLtFcg YmtqQZiXD/JFPTZFmvLn+4p/KwZ7lbHfDLLHWFLUYChQ1kSrmxTpqXuCYorKSNLyfjK2 tegvVNTWw1Pr1IgFXs04WHlQZJhcE2a0nspIk3bPzAiKhFv47lsVYlaKkx7/o1BRXTwT pASQ== X-Gm-Message-State: AOAM530ADL47QkcE64k5wAXaOHrdCY2AKxJS54yrTE91mA046C5O59Yl lJ+3oua92GnKJwLnxxx3WWqs3w== X-Google-Smtp-Source: ABdhPJyOTR5n6tilKn83GYM5Nsi6ppDbx5M6PKI7VSulNDoRCtph1T1Dw+nPWE2vli9It0aQ0A11Iw== X-Received: by 2002:a05:6402:50d2:b0:431:53c8:2356 with SMTP id h18-20020a05640250d200b0043153c82356mr13053043edb.300.1654598039850; Tue, 07 Jun 2022 03:33:59 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id x4-20020a1709065ac400b00704fa2748ffsm7505359ejs.99.2022.06.07.03.33.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 03:33:59 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 10/10] arm64: dts: qcom: sdm845-db845c: add function and color to LED nodes Date: Tue, 7 Jun 2022 12:29:31 +0200 Message-Id: <20220607102931.102805-10-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220607102931.102805-1-krzysztof.kozlowski@linaro.org> References: <20220607102931.102805-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add common LED properties - the function and color - to LED nodes. Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts index 194ebeb3259c..398055fc1fdc 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 @@ -62,6 +63,8 @@ leds { user4 { label = "green:user4"; + function = LED_FUNCTION_INDICATOR; + color = ; gpios = <&pm8998_gpio 13 GPIO_ACTIVE_HIGH>; linux,default-trigger = "panic-indicator"; default-state = "off"; @@ -69,6 +72,8 @@ user4 { wlan { label = "yellow:wlan"; + function = LED_FUNCTION_WLAN; + color = ; gpios = <&pm8998_gpio 9 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy0tx"; default-state = "off"; @@ -76,6 +81,8 @@ wlan { bt { label = "blue:bt"; + function = LED_FUNCTION_BLUETOOTH; + color = ; gpios = <&pm8998_gpio 5 GPIO_ACTIVE_HIGH>; linux,default-trigger = "bluetooth-power"; default-state = "off";