From patchwork Thu Apr 29 21:15:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 429274 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp1953501jao; Thu, 29 Apr 2021 14:15:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwp13MnNvp9wTgkuo6SLNTTQve2ffWTYOjUf0B03Dgn/udh4Ca8em2HR59BvBFGump0nxfc X-Received: by 2002:a17:902:8544:b029:ec:8b6b:d98f with SMTP id d4-20020a1709028544b02900ec8b6bd98fmr1833114plo.68.1619730935881; Thu, 29 Apr 2021 14:15:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619730935; cv=none; d=google.com; s=arc-20160816; b=P7q4TUADjoH0ESChgTuo8j87rR8TT0eZKsnfNZDJCCP31Agv3Rk5XOIOfivmK9rpHE U6JerBC3v3Ho6wm6yaDGz65Cp6oCQSXhuQzNsZ98UzuvOnqZ4DRAYMNDbx3d3ytv7zb9 ZvsmfammEqAKTNS7XylXdVXhGQjYIRi+vyKe++YV/dbRn8NN1rPDE/Ie7fQSeZrISwIW Qz0wd8W/m+bZPBDTKUxiMqmzHayLNEYxFeKm98cMNJxJRa0U9ZpZPUbfxWsPgajJ216C ItovxmriA+3q2uD9MQqmrb81hDA+hLfJg6Utf++V5Lw8W2wHvSrz7mo9onUrb0pYn3L/ MSBA== 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=cjwtr560n2s2wiyYk7PM9AwNNuwv+YiADzO26kd6mwMWMikXyrc60Qj8pov/E2xCcZ 1pIRP/zVpKJmhq4kka+RzVCZ/tbtOQBVBsgs3aDEXuTziY1ON26FF7tBtkAj+wGmBoiT SB5SKqB46JI0TkqIaUgCGllC4VQAIKWVhYihOAW+yA0heDWHdcGxDyF2ktfT1tcn4c5c Ol4JZwByn3g6l2+JjHdaRvu+2MqoW6/tNq0xHv1cB40qChnatJnHnYNxF4B8/oSXEGDJ wYuHSu9wmRFhjG2CvUGmGHqEW9q8nXFdiU33AjxIId9H17b2+otFUTQwSiNX8Urn3dUY Ey7w== 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-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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.35; Thu, 29 Apr 2021 14:15:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-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-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S237347AbhD2VQV (ORCPT + 17 others); Thu, 29 Apr 2021 17:16:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237260AbhD2VQJ (ORCPT ); Thu, 29 Apr 2021 17:16:09 -0400 Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56CF5C061353 for ; Thu, 29 Apr 2021 14:15:22 -0700 (PDT) Received: by mail-oi1-x234.google.com with SMTP id n184so41903433oia.12 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=snx7krNLhfeYDkwzTlOAcIETbYrYnFRewlP3jD10LJrZICELHU8heZacuUCNVk8Y0q qAYScamrQMyUzA/3foZaHupZrP37q8n0hZi1QV9/YM+eVOzUt8CNxA/CLKNsysevfxrd gwl4pUc61wbeTcK5svawpsoTLOsiSO7sprkVYWeoDTRr7g5FYVsLrPt+5Li296+DJyUe jm3gufC6Tp2N8WStwfJyKaT6/PbYClnsnGotOnPAGATAAKYErNS2eVUYarVkDhDZiNrn hyYsPh+0CQoPbNlRscOZIy7hPCWz1h2Y6woqCwMJnrtt1bIl9ZBg9mfAzafFcWLSEBlo A/DA== X-Gm-Message-State: AOAM532mdZ0xawfElSSy4RKOOIkzW7wFekreLnBY7W9JIKzFS9wqANqU FCL5/Z1jE5VCQAuckblxAxxS1G12URDZ5g== 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_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 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 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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(+) -- 2.29.2 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>;