From patchwork Thu Apr 29 21:15:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 429272 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp1953418jao; Thu, 29 Apr 2021 14:15:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/m6XjRsMisMtPkDGJzSTYYwLFOWxSI4wMMem3vc0uG8tr4j6Bzw37T8W1Yfnptx29x1VH X-Received: by 2002:a63:be08:: with SMTP id l8mr1560569pgf.438.1619730930661; Thu, 29 Apr 2021 14:15:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619730930; cv=none; d=google.com; s=arc-20160816; b=BG29k4P/39Y80mjCjSwnoZqzL7lrOBWuoczWmpmcnbGt6TIo3HJ+4ASiHuMcJpSRcU wHAR+5T0oRCEYAvuH801bALfJA9dFylW9YZWeLx7HY9JjFAIxAm+Mz9Cxh/CaaXYNG2e yHILVHnL57YmDFqDwL18oy5fhNqIZorbvkDbowP7Io7VvtniFI9GDxMfgRWiz69S2fsT IaPusjlxoZxRGmLs2QkfcYUX8wmTP6jYLU4mHZ5ZRSzjeR3uCtx/sMbdgYOkcN/7XA2S 1UOadjAG/UWrZWwJT2Lhl6m9x+OXcgEoDHbrrV9kMEa28ykvAmEjT0Kucu/U34dGq6Cg 7x7g== 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=hSkUZmkrjf5ZwfezoNHEMoQ6VbXxkBm3IGODtTUVTDkqA1T/NwA+ejLPvk4a5P3NLb w98y1pGIVYN/mCp3Kd82ks6Aq1niGo9LnZ7Tan6JGXaNLI1c0UT7AbqIsWmfToXe/0v/ 0KAb6p1B23v0yw9Iy2BZ6hU2rgq4UfxB2WHOPADDOdeUSFMBISM4ZwzVsKsLPM3qKVAQ OlNxfp1yBZUKiU4OJ3ntLexe5ATU+Phrn8DaFJQoO3DLX8ktM4I8CcrVDVFQDiOfIw8Y QEX+f3Y5yGhgd5C0P3N2DasIjPebbBttHRDvDCIP9xIYGPTnZ2Dau02rMT9JPG2/Q3PR zEbA== 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-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 b15si4596144pfl.74.2021.04.29.14.15.30 for ; Thu, 29 Apr 2021 14:15:30 -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=GtPpSRcQ; 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 S237308AbhD2VQP (ORCPT ); Thu, 29 Apr 2021 17:16:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237175AbhD2VQH (ORCPT ); Thu, 29 Apr 2021 17:16:07 -0400 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CA21C06134A for ; Thu, 29 Apr 2021 14:15:20 -0700 (PDT) Received: by mail-ot1-x32d.google.com with SMTP id z20-20020a0568301294b02902a52ecbaf18so10302334otp.8 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=jGj/NI01oRyqeNmKn2t94TSogtaCWibPoqyIISFV0n5AnHIt5UpR5pMznnwoZr4t7O VBxLfBQKPT+gLQNdKbxarzzCbNFET4Z1gdGsfZr8uT9k7wyoeTEgHCNP4+/5b60w9pKu fOXRDnndECxBrc2sSYFYrmaERCDN4fNiS+nYuB3e+9qMAPsLicO/nvj7SCojls66Zu9j aGYGy2sPnvZX5sKmIoj9gNF4fxAWkpBvxbFZJ5lhNodWVqLqGGYwY4CuaRT4+vpJNqRo lKQNNq+bf0S6IGt6CiUxaERUnV0AU8fS6SuMu7O6FC6lXgriRcfkUt9DOUlj9b9pR1Rm zY+Q== X-Gm-Message-State: AOAM532020QhS26/fVndiaDOuDYAKP/lJxmA9z5mjE7XkTN9J2TKekFK dZLecSvoo8dGYHI52lrGg3sSlw== 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_Kleine-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 Precedence: bulk List-ID: X-Mailing-List: linux-leds@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(+) -- 2.29.2 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 {