Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1770325pxy; Thu, 29 Apr 2021 14:17:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwY+JPZQCYSIZ0sXQmDtB1ZfGtCgO7EFHshmPYVBvYmsWZDElfuD16hKMyhyk2VosRBjg7H X-Received: by 2002:aa7:9f8f:0:b029:274:21e:fe0c with SMTP id z15-20020aa79f8f0000b0290274021efe0cmr1788378pfr.8.1619731073230; Thu, 29 Apr 2021 14:17:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619731073; cv=none; d=google.com; s=arc-20160816; b=HoJXaGTTUuCTXEmVgkV54+/w6a4S4qWNonVtkN7XJ/cNY8TzgZg7s32sVBQ68E26ft HlYQQ5XF23P+XhQDynsjXOa5yGV8V7jGX6FlBhDpzbIRTooyzk3Zq1fkuaa5t6O8aCO5 PzoHQ8vE3Nfxvs3MV/uU5X+p3xe6YxTymYlorldUrW46sVwaCL2iUFTM6ZP9JQzjDE7a CTw/f7PG2SKZFjAUPL4LfjaMys6Sa/5b5wcqu+o5Exarny8OnpMz99KEgoVwJlfy+3WM vuneASic4EV2lLReZynn9dje0SZv8FOoPLYNnwD0fkA8QQ5otQuQ3aOBEld1Cbq4rG11 +hVw== 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=gMV4fLmuxlj/1LSQjxlewLiRWpPxpCd+ijdOsI4cSQI=; b=DF3EwrLzbAN7ZYhXMijLoVZtDcbpVQovK6rYbbD7pfL2aCRYHL0EixTtchgKwIqIql Q/HmuJLgvCQbO56EqJFooSoHW4y7MfHCif53rSH2em6QD2PZpYb+i4iCFvg71pVZYuT0 IluYh+tpZgWhs9PWuL0ib0DYuIqX7PjiTXztTPNX+j0N013lihWYb7kc7/TTR2Jq+xsI MftF6322cxs3NX/eTI3iH37IqYM2ki4udeNdn2b3ki9kYzz0ds+n/jSZrXq0R7+4tYa0 FeN754/L42y9R8ejpuzEoD5AyAdSGPgUjN5OrbHf6bxiH3c52HFfVqVl0wtu/UOIcNJo HSXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GtPpSRcQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 mn24si4641760pjb.73.2021.04.29.14.17.39; Thu, 29 Apr 2021 14:17:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=GtPpSRcQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S237212AbhD2VQS (ORCPT + 99 others); Thu, 29 Apr 2021 17:16:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237204AbhD2VQI (ORCPT ); Thu, 29 Apr 2021 17:16:08 -0400 Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C4D1C061348 for ; Thu, 29 Apr 2021 14:15:20 -0700 (PDT) Received: by mail-ot1-x331.google.com with SMTP id n32-20020a9d1ea30000b02902a53d6ad4bdso7657481otn.3 for ; Thu, 29 Apr 2021 14:15:20 -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=gMV4fLmuxlj/1LSQjxlewLiRWpPxpCd+ijdOsI4cSQI=; b=GtPpSRcQLU0XUKEv+r7amizfZTOhDiYGYUz2vP0jyI0F9p7U9VbhiWELAB9J+8gpC0 pevkQuJJjMvo5dSr8FuKIc3o7ek9exmPwEB80ty0s4OlKA76eAnz/CweFEqrLfcX/FY3 0h5EsQeu130S1bWPIcOa0jMM8TEKR6TDlYXhJXUP/l7Px3WxebHnT0zQCzutgWBegKb3 tG6jCr8HdyUgZY6p319BAMsiu0jc0hHCkcAL4NfP2I3qfFqNw35y/amQ9pN0C8xnA2DQ DxYtUx7p1WlsE1mcMnBxEI8BJxkqkzbu1efwK8dBbtIIzqKsaxedGNrqXxkGoP+OlZ/x aDCw== 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=gMV4fLmuxlj/1LSQjxlewLiRWpPxpCd+ijdOsI4cSQI=; b=Jx+n9EPQxh0k/T+qVWoheCLoWSf+D+iqzTH0m+EJnd9tqNadXwRbT6tgYucSvAoamW ktTKnuQkDqSSmNOHYZEccgV+MQRsu2tDB/EEPH/Ci1HN7A/wv3PFQjevasdezrRBTRqc B35DfVsT0ycNut6Fm5H2i42P6ozuj/o1e5R36Le+QZ8yBgLdX45z349l0QetGGw7c16M lqVVwaIf/4iCfcBdkMu6UUGhq+qCZmMxQI8zODvRLHYp62dtQgPCsac4A/mHwUTqNx32 noDVob/7bXK3B8f3EcdnFf4wNaW8Sk+PaRssXtawOYlid9kzLZ+QfdoZ4sZKkmW8z1Rj pT1g== X-Gm-Message-State: AOAM530z5NxkZreWx+oS9siYx+CdgWOjsTK6gYWOjybFcNxfCcMAk8vU l+IOuFZTInVSa/g+TYq50pkzWQ== X-Received: by 2002:a9d:69da:: with SMTP id v26mr1073991oto.366.1619730919516; Thu, 29 Apr 2021 14:15:19 -0700 (PDT) Received: from localhost.localdomain (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id y67sm242707otb.1.2021.04.29.14.15.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Apr 2021 14:15:18 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson Cc: Pavel Machek , Rob Herring , Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Lee Jones , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-pwm@vger.kernel.org, Marijn Suijten , Yassine Oudjana , Luca Weiss , Subbaraman Narayanamurthy Subject: [PATCH v7 4/6] arm64: dts: qcom: sdm845: Enable user LEDs on DB845c Date: Thu, 29 Apr 2021 14:15:15 -0700 Message-Id: <20210429211517.312792-5-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210429211517.312792-1-bjorn.andersson@linaro.org> References: <20210429211517.312792-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The DB845c has 4 "user LEDs", the last one is already supported as it's just wired to a gpio. Now that the LPG binding is in place we can wire up the other 3 LEDs as well. Signed-off-by: Bjorn Andersson --- Changes since v6: - New patch arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts index 2d5533dd4ec2..e00a8dca2c64 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts @@ -593,6 +593,30 @@ resin { }; }; +&pmi8998_lpg { + status = "okay"; + + qcom,power-source = <1>; + + led@3 { + reg = <3>; + label = "green:user3"; + + linux,default-trigger = "heartbeat"; + default-state = "on"; + }; + + led@4 { + reg = <4>; + label = "green:user2"; + }; + + led@5 { + reg = <5>; + label = "green:user1"; + }; +}; + /* QUAT I2S Uses 4 I2S SD Lines for audio on LT9611 HDMI Bridge */ &q6afedai { qi2s@22 { -- 2.29.2