Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1771017pxy; Thu, 29 Apr 2021 14:18:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7ebpQNmQPQsPZaAyHe1YnhsoDFlPTLhMCF1ORs/rKHGm++MAidgOBJEnHUJ04XBpCT4Vg X-Received: by 2002:a17:907:100e:: with SMTP id ox14mr544449ejb.484.1619731136185; Thu, 29 Apr 2021 14:18:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619731136; cv=none; d=google.com; s=arc-20160816; b=LAGvma7v4OvZaF3z/zB4jqnECis0IBPDp802x5yKxIp9bL0RNoebbit92lb+znYXLs 6JU6rKqGthBeg3CQUbZsG+zvMfm+dpEw2WdcPhy+I0RJAfMv1D5y/HUpOvXKNjgPFQOx RYM7jAeBWyi16mDUslcyt7sJQSCS8zQOhaXdx9cebDD/q4Xjo8mWik80CfhgW/zDDgt9 MlfZaGSRO0dBZ+HWp2/QGIWA8gpqwGIG6ZL/xAx0+Baj42OonW51x/Fv5yLsIG11AGRl YnJs0NMHTgBTNEoGcMH3WjgQK39NvCfUaY/bka5Mh1K7eV+PwNyaA+gAwbHVSe+DWPwZ loXw== 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=uMJoe+vUrfgBQEq7kVx0XYeKeargRfuihI9VgkHYtiA=; b=V2YcrAP4HEgcJXT/70s0Zf1WVe8ZRVjEAf5bC/9ByS7eJXYvTlltFiDFaK3+rhqYjj qt6thdq7Y58oqeibJURQd2O8rSFWi6L3+yny9/7zE0+LlgeDcE/36o9GA5am7quxL/vC T4y728F1kDaxSWLsMn2L24tWKfjb9i7x/uXen6TomFWLxOozNwzuJna0KWkLRWjkhJRE 6XmoQ5F5kZOcuFVZRX9iztlJiKSYV4sm0214WfA4ZwV4lCBoorq3YfBuJUKFM3jjQlfK kHCnZKoksLPrDaxm9vzrNn3mietvkaIYbB27j5WLAkyVnEwZB2r/ZA1TH9r5Gv6J+o5B QD8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wxr1SsFi; 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 ca1si1126759ejb.464.2021.04.29.14.18.32; Thu, 29 Apr 2021 14:18:56 -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=wxr1SsFi; 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 S237385AbhD2VQ0 (ORCPT + 99 others); Thu, 29 Apr 2021 17:16:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237268AbhD2VQK (ORCPT ); Thu, 29 Apr 2021 17:16:10 -0400 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 555D9C061352 for ; Thu, 29 Apr 2021 14:15:22 -0700 (PDT) Received: by mail-oi1-x22d.google.com with SMTP id i11so5947594oig.8 for ; Thu, 29 Apr 2021 14:15:22 -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=uMJoe+vUrfgBQEq7kVx0XYeKeargRfuihI9VgkHYtiA=; b=wxr1SsFiEfFb/fpq6xoNyH409ZwaJoA5FgMsaki/bg3OYpXxoigMTJYRPK9ASxP+em jysubih129PB5RTSLbXM5Mm9JP8X1T14Omx2t88zNBKVMFXOpzg+Fhbaag9DK5vFIAGO ZBM0ZacTftyZuIdYS5tBJHlBMfznNxPeRVY9flovABrWqutDlGc8GiOa1CV3cG1Lu+4g ZZ5BWZ0UY91D8sGmek6Q730s/vTplSLsHPWvXIRE/Xh+utDU+UbaD54583BwlkhSavxj /0H1wG05VPeET7IRirKN8OG8bH0iPluj0QD6eRa/sn53JaQBCIhYMky1tiGTROMZPcOi rbew== 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=uMJoe+vUrfgBQEq7kVx0XYeKeargRfuihI9VgkHYtiA=; b=ng6qnI0DwWpG6POAu9VkCiE8hhaGtrnQsDwozC0u681W10I3PdWF0bNiBgEsWUpT0K 7zNvdPNKlA+Fq5haexAwDPSZASxu0jpHmT/yMfRYdVjYNh6DsAvVGpW0I55Uy4Lr9acf mTIJFOLkWc8lgiyW3oNpwg4nuy0Gk2wkXBVc95yDXjSgwfgs/uhXL0lB5hyqNpKZ3GMv uriuh29Kme6pz2YZr3wZ0xxjLWZPFDYl+CbLKVh0DLCIdzYhyv0HptfnUgpoPHZ0ZZs6 C/H59FUP7Xz0mxbX31zj1DqmJ0h7gPgHQCE2W1Gn1FvGv/v0kqdicvjyUe0jeeEJutT4 +pCg== X-Gm-Message-State: AOAM5323Rr80zOT5zf82LI58925Eg2F4c6uov+oWLsJqLrIuCXNdESXo zKrFfz2hoWxv9Up/37GLZ3sIdg== X-Received: by 2002:aca:a947:: with SMTP id s68mr1515804oie.8.1619730921749; Thu, 29 Apr 2021 14:15:21 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Apr 2021 14:15:21 -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 6/6] arm64: dts: qcom: db820c: Add user LEDs Date: Thu, 29 Apr 2021 14:15:17 -0700 Message-Id: <20210429211517.312792-7-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 db820c has 4 "user LEDs", all connected to the PMI8994. The first three are connected to the three current sinks provided by the TRILED and the fourth is connected to MPP2. By utilizing the DTEST bus the MPP is fed the control signal from the fourth LPG block, providing a consistent interface to the user. Signed-off-by: Bjorn Andersson --- Changes since v6: - Changed sort order arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 49 ++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi index defcbd15edf9..2b90ceb84f84 100644 --- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi @@ -8,6 +8,7 @@ #include "pmi8994.dtsi" #include #include +#include #include #include #include @@ -682,6 +683,54 @@ pinconf { }; }; +&pmi8994_lpg { + qcom,power-source = <1>; + + pinctrl-names = "default"; + pinctrl-0 = <&pmi8994_mpp2_userled4>; + + qcom,dtest = <0 0 + 0 0 + 0 0 + 4 1>; + + status = "okay"; + + led@1 { + reg = <1>; + label = "green:user1"; + + linux,default-trigger = "heartbeat"; + default-state = "on"; + }; + + led@2 { + reg = <2>; + label = "green:user0"; + default-state = "on"; + }; + + led@3 { + reg = <3>; + label = "green:user2"; + }; + + led@4 { + reg = <4>; + label = "green:user3"; + }; +}; + +&pmi8994_mpps { + pmi8994_mpp2_userled4: mpp2-userled4-state { + pins = "mpp2"; + function = "sink"; + + output-low; + qcom,dtest = <4>; + }; +}; + &pmi8994_spmi_regulators { vdd_gfx: s2@1700 { reg = <0x1700 0x100>; -- 2.29.2