From patchwork Wed Oct 21 22:51:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 11849937 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1129214B2 for ; Wed, 21 Oct 2020 22:51:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DF96A221FB for ; Wed, 21 Oct 2020 22:51:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JvEnR4tR" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2506940AbgJUWvR (ORCPT ); Wed, 21 Oct 2020 18:51:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2506938AbgJUWvQ (ORCPT ); Wed, 21 Oct 2020 18:51:16 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AE56C0613CF for ; Wed, 21 Oct 2020 15:51:15 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id b1so5115043lfp.11 for ; Wed, 21 Oct 2020 15:51:15 -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=ICAICiNyo+EcMXjUhGuIhiIEersvXHJzVxJKSGdteTM=; b=JvEnR4tRFXIYdCbHscJ9GWGxDi1dIvLHNzdffaWokQS90FA379cJx6I0wR6OTYc9MU LozDzCnTj1m1z1Lg4A7aeelciFHB2pX4jMoZOSL8TlKc0UQqZVqAn7U1HC8XAW2CKmww mwIOr6qRvdlu+UafFTCmErP8b7lily5r007/nvhIscJMpU1IIygLdFXFQDWKOcnNnEs0 wNezxZ02hf+8buYD8gsaeGnpsXDBfUdJmvoHwmdEsWERiPFXOxpOF8C9zau7gnckrDA8 kBhnv8N1HzgMPS0wUQQ3oy/Y6togiveG0YjjcHsYxRbvtpK1J7SllcM/OE6V0YO2jTmo RUjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ICAICiNyo+EcMXjUhGuIhiIEersvXHJzVxJKSGdteTM=; b=ddVOSRsEzT5oJaFpk+kkraKRfmrb784lNdVZbBf/A2whCNCcDNM6gBoXA0cbEOcXGN TTiSEepcNEn9hzpetKNe0EiCEfd5I9cppDkCc8lE0aY/mTi4FjmPEtrlnRWuV7XUh+EQ PodkqYeDA3fPK4Gnf6NZUJS+aEf8J+NyRz2/Sxm23EqviZb8ReaUU8jF9ohqYCRnSdpc I3luQJ8LNkAqAFJy0GV5HTMiNDC1H/nnS+wF4L0ZbTUu5Hw8Ewvji8sHkfBSC+aZfy5w sVg9caUpS44rEJfs8sZ4A5NIoueRDYdDG//0Jr0B4S661WWxlhuDOPN73alE02HbJ2cg HpfQ== X-Gm-Message-State: AOAM532PsWP729gCS9BMmwnnTEAhYqIe8/7rZOSDK3v58cCUg0KCcqWM 9vkSfDN5L5xmM7PgeRPpeWZvPw== X-Google-Smtp-Source: ABdhPJzz/fJNgntQdkyZa7dPBtnccqsA/OUhtXZDmFk4rqyua01TQTFC5361SXrKHbvGEhnuT8xdCg== X-Received: by 2002:a19:f518:: with SMTP id j24mr1903146lfb.307.1603320673622; Wed, 21 Oct 2020 15:51:13 -0700 (PDT) Received: from eriador.lan ([188.162.64.195]) by smtp.gmail.com with ESMTPSA id h11sm652062ljc.21.2020.10.21.15.51.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2020 15:51:12 -0700 (PDT) From: Dmitry Baryshkov To: Bjorn Andersson , Pavel Machek , Dan Murphy Cc: Rob Herring , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 5/5] arm64: dts: qrb5165-rb5: declare tri-led user leds Date: Thu, 22 Oct 2020 01:51:00 +0300 Message-Id: <20201021225100.162795-6-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201021225100.162795-1-dmitry.baryshkov@linaro.org> References: <20201021225100.162795-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Qualcomm RB5 platform uses Light Pulse Generator tri-led block to drive three green leds. Add device nodes defining those leds. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index 01708d84fdf6..04eff24f9d71 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -1014,6 +1014,29 @@ &pm8150_rtc { status = "okay"; }; +&pm8150l_lpg { + status = "okay"; + + led@1 { + reg = <1>; + label = "green:user0"; + + linux,default-trigger = "heartbeat"; + default-state = "on"; + }; + + led@2 { + reg = <2>; + label = "green:user1"; + default-state = "on"; + }; + + led@3 { + reg = <3>; + label = "green:user2"; + }; +}; + &qupv3_id_0 { status = "okay"; };