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";