From patchwork Fri Oct 30 01:07:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 319968 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp973746ilc; Thu, 29 Oct 2020 18:09:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxz/FPId+QIQ08E61AP3pEPG+mcZaDrk6XmCt/PHdBwxTDDwEiMmfcbmxzlr6sZCpCcBqaO X-Received: by 2002:aa7:c984:: with SMTP id c4mr6822596edt.42.1604020052910; Thu, 29 Oct 2020 18:07:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604020052; cv=none; d=google.com; s=arc-20160816; b=d8MZWAedG8+RcMEIE1cSnwroBHE2/nSmGEJVkN0pP7jPX6DKORMpya72izYGEuJuEK KG2ed12JZ0t3UH+S5stkOUWs2hkKbGMwm1BRqIftPbjIr71IcCijssV9SmtgM6F6UpMQ YKOH1p7LeIQYVQ9zFkfTrcreHJUE1n32ul8hvlIu1PdOOOX7YibdOgoP0tEbHR1bK+Oq +PniR7l0dJmZHHpFLsEKwxlfgGbKXsr+EBWF+SVdV5IIkgxy0JT3DT2LXDPlllfRVX0L mG+h22f5qBczqw/XwP4xs5vGE4tIsISgFU2IAerVfVXgQkeZXE6hKE9i40+BqwaAFh8N Cz9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QViQgAeoKYf7Iu82LVxWPMaTDwhUZNQ6uzFRhsBC9QQ=; b=esO7ibE4gyl66LkF6JqBqBA76nk+u4ON3cZneeU01en0mESX3ahIOorjLe20VE55np +gBCZSElmHwE2ZveHzx0weM4JIpi3lIITt5TrLwItCITLbt7hhTGSvZ2DTUZwds1laze O2uLUAdOsax35tXWUZKROcVjFpcwAfuM8++ioaDOG6DwiKwdd/lypoCCCF1h4JkTlikF 2eI2bI3SflMhR17XJGsU0FHVMI0KoxSFh2Q+DRlkC+wMG74urlQNNBQuY98LCmshXhXo +uR5V5Qa6fTKHXsJvpL9eArDaS93r+u6ARtHR2aIt5WjWAPwRbpEb5DkoM2afGcGYxZs B/2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=orT0AVb6; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k25si3596923ejk.65.2020.10.29.18.07.32 for ; Thu, 29 Oct 2020 18:07:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=orT0AVb6; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726117AbgJ3BH2 (ORCPT ); Thu, 29 Oct 2020 21:07:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbgJ3BH1 (ORCPT ); Thu, 29 Oct 2020 21:07:27 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4130DC0613D3 for ; Thu, 29 Oct 2020 18:07:27 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 141so5754848lfn.5 for ; Thu, 29 Oct 2020 18:07:27 -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=QViQgAeoKYf7Iu82LVxWPMaTDwhUZNQ6uzFRhsBC9QQ=; b=orT0AVb6wpcbaB4cOcZktemGwXtEtIn/5F1pze6EHOAx0GlUohuWeJuHku2NIHldlC 7eOvKhbw/DSo7MFXJRJIT0H6fQ4SZINbpNEL6EMLjcMHxsWxnxZ/bLiTkFpgLgvCDNUM DgyLdFNuvtPpy0kuG8U/wOEBgkzF4rULDSecF3vhFqtARelgCh7Wmhd7y/y+S5DWcvZS dWbHR9XoK2Gjv50dr10G0zsSfMWz69EgkzOAT74h14EL0t98Jx+dLN30rL6SOyMUiNUJ k2bFyzmG2A2LCm/SdzuTckV0MpKDJ/yvxUobX9UiShs8FgtHQTCuN1ic87bbVcoYxTfM 8iaA== 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=QViQgAeoKYf7Iu82LVxWPMaTDwhUZNQ6uzFRhsBC9QQ=; b=k0AYqCnP7FFvtR/DPfq1rTT9rX73NLozc0sk8JURdLZ2vRmCdbSOb5XJwicXckRFa7 ZNuPM5DxIL3+i2QrbOyM3u4OaAlvYjWPedMg6AoRb1mbUkefUiMbM0Km6VTf6Y14CZTL C09Zh3axPQ+G0UVnUsKiyoymo2ZY8h/O5mzkSLznIBflrIcMGPDAqf4ksKLz/70urwBp 85lDhqeZKG+cQyo0jeq7F3coiW/m8M+ne5XJj6rpwcwqXLZz/OCg7w5cEPvrBQINvrbG eSoBCSCo2uz20NHD+EfciXqeHb3bo5fOJWur+KMIsIlTJVCNLHvZX4Vu/dX2V2DPMney ZKPA== X-Gm-Message-State: AOAM530sk8wESgGCtjTRHs3BMiZnrALGlPjWRQO29/RA6X/ovb8Mevpc PEt+IauRAWlxj0Lu2nWDBkPAefyGDdQkG1VJ X-Received: by 2002:a05:6512:3490:: with SMTP id v16mr2432620lfr.61.1604020045762; Thu, 29 Oct 2020 18:07:25 -0700 (PDT) Received: from eriador.lan ([188.162.64.219]) by smtp.gmail.com with ESMTPSA id c6sm447130lfm.226.2020.10.29.18.07.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 18:07:25 -0700 (PDT) From: Dmitry Baryshkov To: Bjorn Andersson , Pavel Machek , Dan Murphy Cc: linux-leds@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v2 5/5] arm64: dts: qrb5165-rb5: declare tri-led user leds Date: Fri, 30 Oct 2020 04:07:13 +0300 Message-Id: <20201030010713.247009-6-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201030010713.247009-1-dmitry.baryshkov@linaro.org> References: <20201030010713.247009-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-leds@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(+) -- 2.28.0 diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index df2d01f915c9..bf3d3f44016e 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -1017,6 +1017,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"; };