From patchwork Wed Dec 29 17:03:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 528837 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83E7AC4167D for ; Wed, 29 Dec 2021 17:04:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241028AbhL2REe (ORCPT ); Wed, 29 Dec 2021 12:04:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240850AbhL2REd (ORCPT ); Wed, 29 Dec 2021 12:04:33 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D34AC061574 for ; Wed, 29 Dec 2021 09:04:32 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id q14so80834440edi.3 for ; Wed, 29 Dec 2021 09:04:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=96HJkI6wY3qB+mvO2ST+cjDYlFymmYG8L//fUQrj/Jo=; b=N176GTGT9uTNBM/lNHY3viroE2j7RNyzIAGjMDuxaY+V0D1fgSqOgdkj7epPgiTGPt JWs++rwSKtKOm00NQTTSStWwOJAStrOxAXAt31ULVJ2KERgnhgR6pvu0ofJFWHOL6N/N gvr3SgzulkVNvRJqBhZzf/7YojmoO3mNH9a7R3l+a8wI9KrZ1dEIgJqJAwb30a8rUpdF EpGRJhVSJBas722q8AlK2fVsJHVnE77VwOG1RrcE/pXZm1zV2Fa8/fxGVRDDpVrVz0sn oDd+5LJnq3SQELHBtEqC8W6AivL8O+5qMg8275X6Lb02g/2IBnn5DoF/JKj1k7nj1cmk kGCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=96HJkI6wY3qB+mvO2ST+cjDYlFymmYG8L//fUQrj/Jo=; b=i/4+OLCxTDVKmAukUeveRHTbwTsgNKTycc4zOL+PV96VzcX4g1WwGX8bSAc0Ld3T0b gGS6P4FN7HUCgai0M85ZEP/4myg1RDB+Vc84EAeYuYzBf3bOdbuKle1OwixHiTLjOsN9 91Cap4xmuXJrPYYLIs//VRSX/BwvG8LCAiDAs9QD06O7jKe4v05gH5thxO0vMgrOiywW rrzGRY/w/QLO60Pj4IY2SCWEDujB1YWgzw9GZCFzoTanpbZvigANHmTfi72IUqu0ZR3w s+YNPbh5kXpSE/04zfCr7Hhw7NjrpqC+1clDOiDgiH+0Au7fE8JSxwLOo2bHdxhlHDf3 T4FA== X-Gm-Message-State: AOAM531o+pdguxTYr0FHIXHIEwginFtmBrP5EEZ/qG+KNgw3qAHQdeYG vt9MocjZ5lI2SusEw51VzL3uDD7geTYVb2dW X-Google-Smtp-Source: ABdhPJx7fmCGVyYTONde3Afz2YEg3Ytza6u1AKO88xPsobuwvKKB+blwvg5emdFPJYP//+ZNe1xong== X-Received: by 2002:a17:906:5603:: with SMTP id f3mr21611529ejq.272.1640797470828; Wed, 29 Dec 2021 09:04:30 -0800 (PST) Received: from localhost.localdomain ([2a02:a210:20c5:8c80:7d0a:cd68:c339:f426]) by smtp.gmail.com with ESMTPSA id w11sm8546153edv.65.2021.12.29.09.04.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Dec 2021 09:04:30 -0800 (PST) From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Luca Weiss , Lee Jones , Daniel Thompson , Jingoo Han , Pavel Machek , Rob Herring , Bjorn Andersson , Kiran Gunda , dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] dt-bindings: backlight: qcom-wled: Add PM6150L compatible Date: Wed, 29 Dec 2021 18:03:55 +0100 Message-Id: <20211229170358.2457006-2-luca.weiss@fairphone.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20211229170358.2457006-1-luca.weiss@fairphone.com> References: <20211229170358.2457006-1-luca.weiss@fairphone.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Document the compatible for the wled block found in PM6150L. Signed-off-by: Luca Weiss Acked-by: Rob Herring --- Documentation/devicetree/bindings/leds/backlight/qcom-wled.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/leds/backlight/qcom-wled.yaml b/Documentation/devicetree/bindings/leds/backlight/qcom-wled.yaml index d839e75d9788..1c24b333c6e2 100644 --- a/Documentation/devicetree/bindings/leds/backlight/qcom-wled.yaml +++ b/Documentation/devicetree/bindings/leds/backlight/qcom-wled.yaml @@ -22,6 +22,7 @@ properties: - qcom,pmi8994-wled - qcom,pmi8998-wled - qcom,pm660l-wled + - qcom,pm6150l-wled - qcom,pm8150l-wled reg: From patchwork Wed Dec 29 17:03:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 529304 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21168C43217 for ; Wed, 29 Dec 2021 17:04:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241045AbhL2REf (ORCPT ); Wed, 29 Dec 2021 12:04:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241024AbhL2REe (ORCPT ); Wed, 29 Dec 2021 12:04:34 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50735C061746 for ; Wed, 29 Dec 2021 09:04:33 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id f5so88540233edq.6 for ; Wed, 29 Dec 2021 09:04:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Zzzoaw9nwT/sLWjoXAxYNO4/5wEGpc2LGKlTzw2/Nmo=; b=rRDXfOV2riF8m3eENMG6TCo7kUtjkSO7KgaD6hrRGKOU1U0LATdWx2kSuO/omigerc HS3uReuDDRQlwThLronJmYerKaQqTjTMT2Dlx49JF02IhDDfWTuoXqBp0rsEfZdkXUQw zgI2tlBxkxMrogtxhUBTycLyyqLd/yiscHkf5sTBp6T/NNlmHrIYIUKT9q6qJk53hGqD TVN2RUQ11SELxcFA/QLI+6TJnZaekMVJgle0EsB4gEj7GInfpW5EvYfWZFuC7DGHiepA POf76H95BxcZhO/RA0QBORriwITuyRFcezZEVLti7aDrcFzbwN0vhI1XIzKULE8SMCeB qQ6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Zzzoaw9nwT/sLWjoXAxYNO4/5wEGpc2LGKlTzw2/Nmo=; b=VX4zX0S8nG3XBVVIdLbvWTsx4zrkaoxlCF5E1KaNkuKcqHSmHAzcGDS8tD2GJisqcy sWXrg34f5HP7TG+376X++YUaa6D8bgFx+Ia8gQ26N3yye4lXKDD+uUkXTMtw9+Ttk6lC 9bIetM+v7snhwtD5owt6IkCatIsPHUyuS3qxa5N06PMsE87+3M2mVkyP5sB+B8c/xrY6 nNw9xaWJAI22XQVBuCK82jDB+T0bJl3twWEWScmTXTvnhQ1q+0CGybFX9iC2QPBlLcHS +TmwRgIueGKNSLJ7nXm/Bg4FyX1rQKyBld2VEJUhlrGGXZXlmaSNe5JjVJD7rMI3Al2b bdSA== X-Gm-Message-State: AOAM531gvU2RdSktVk3QYN3+txZUKxrmo9n1aWbyCPkmqvNpqRc97nbW fLgi0G5kabNoqWDAapr3DK7BR2zp6S83Smg3 X-Google-Smtp-Source: ABdhPJyw3/QGNXRpt1eE5AdOGe9of2v2ZlyzW2iOuugasp3Ck/Ai66iFDEh5sqOB1BU76Lr5YkJe0Q== X-Received: by 2002:aa7:c481:: with SMTP id m1mr26088776edq.204.1640797471615; Wed, 29 Dec 2021 09:04:31 -0800 (PST) Received: from localhost.localdomain ([2a02:a210:20c5:8c80:7d0a:cd68:c339:f426]) by smtp.gmail.com with ESMTPSA id w11sm8546153edv.65.2021.12.29.09.04.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Dec 2021 09:04:31 -0800 (PST) From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Luca Weiss , Andy Gross , Bjorn Andersson , Lee Jones , Daniel Thompson , Jingoo Han , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] backlight: qcom-wled: Add PM6150L compatible Date: Wed, 29 Dec 2021 18:03:56 +0100 Message-Id: <20211229170358.2457006-3-luca.weiss@fairphone.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20211229170358.2457006-1-luca.weiss@fairphone.com> References: <20211229170358.2457006-1-luca.weiss@fairphone.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org PM6150L contains WLED of version 5. Add support ofr it to the driver. Signed-off-by: Luca Weiss Reviewed-by: Daniel Thompson --- drivers/video/backlight/qcom-wled.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/backlight/qcom-wled.c b/drivers/video/backlight/qcom-wled.c index 306bcc6ccb92..527210e85795 100644 --- a/drivers/video/backlight/qcom-wled.c +++ b/drivers/video/backlight/qcom-wled.c @@ -1734,6 +1734,7 @@ static const struct of_device_id wled_match_table[] = { { .compatible = "qcom,pmi8994-wled", .data = (void *)4 }, { .compatible = "qcom,pmi8998-wled", .data = (void *)4 }, { .compatible = "qcom,pm660l-wled", .data = (void *)4 }, + { .compatible = "qcom,pm6150l-wled", .data = (void *)5 }, { .compatible = "qcom,pm8150l-wled", .data = (void *)5 }, {} }; From patchwork Wed Dec 29 17:03:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 528836 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77246C4167E for ; Wed, 29 Dec 2021 17:04:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241059AbhL2REg (ORCPT ); Wed, 29 Dec 2021 12:04:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237577AbhL2REf (ORCPT ); Wed, 29 Dec 2021 12:04:35 -0500 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 314F9C061751 for ; Wed, 29 Dec 2021 09:04:34 -0800 (PST) Received: by mail-ed1-x52a.google.com with SMTP id z29so88517657edl.7 for ; Wed, 29 Dec 2021 09:04:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tRa41Q7YmcA2jiHokzQD85AZtD/jes1qyk4BowEUlZs=; b=4Kb5/y5pLN+ryu5bSVC8Ndy3/d2PIad+2guuviQIYuJUuvp+znx9xO1R1OZaoIKVWi ZFWRd+/lfmDC9lERmavU3s5XkILb+b/XK67O8VQwn1AwKc3w05VVpsHJuOWUg6mKkrrD /JD0Wap1jUlZy87MWPjv7/bpVJ/v+V4c5dpluhLXM7nfTAP17g/l3+eNH38sH+FtaB9s zoNi+x4AWVsJZ8QvaoAD9FF0chiRXERBCh/Jp+S23wIeaMRH62oPFnLFYQ3U4wKJetsm XRfEDYdWr67UJx3YMmjToZzqMkFV+0B0u1Iclc9uoO08+Js0+NffwGj8B0EP71zzZat1 /PNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tRa41Q7YmcA2jiHokzQD85AZtD/jes1qyk4BowEUlZs=; b=nR9VSFIrEFsQbmWXip4P7I/9oTt4MZOy/3daBz2j8qQUE6WNHodDqdTuB61wJCCKzU DNKWgMYeOXWwWkjgtZG42ZGRrVecQGxRjgz/xlCnn7twn/5nfNTl30APW2EF6AJ/QNup zUcsP7Yq+Qc5geFqMM9ORwAs6GxB3Z8H4NBdWGZjxPCxPw1vQdc3J83W5xI0iBFAcegJ Qah2nsT/M3PFIwfPQbn7ebXjpKeTrDWSUkYvFFbOYlbxJcWII5L+dIOqZuy8qFevNcoO kxtOfHLaRxQDAnqRuGZq5ge714jJzKYeLl1XjRMfMEkabFZrBtZDE+UTEMRPVr/tXdXL gjEw== X-Gm-Message-State: AOAM531CYQFov7nJ3eqMEnbChUrHMyFeqS4Kv6FaIR4lG8zRPDpSojuw ZAK+PZXEPyBGQwBd3MzLo7TyfCB4fIxhZ8fk X-Google-Smtp-Source: ABdhPJx2nYgUSU+x3h23MRcMcRC1dXlEaTzi9l4EqBY+DCAX7wN++gN2yZhEl6nn2gce9PmI5GFSyQ== X-Received: by 2002:a05:6402:35c2:: with SMTP id z2mr27185785edc.43.1640797472546; Wed, 29 Dec 2021 09:04:32 -0800 (PST) Received: from localhost.localdomain ([2a02:a210:20c5:8c80:7d0a:cd68:c339:f426]) by smtp.gmail.com with ESMTPSA id w11sm8546153edv.65.2021.12.29.09.04.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Dec 2021 09:04:32 -0800 (PST) From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Luca Weiss , Andy Gross , Bjorn Andersson , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] arm64: dts: qcom: pm6150l: Add wled node Date: Wed, 29 Dec 2021 18:03:57 +0100 Message-Id: <20211229170358.2457006-4-luca.weiss@fairphone.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20211229170358.2457006-1-luca.weiss@fairphone.com> References: <20211229170358.2457006-1-luca.weiss@fairphone.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org WLED is used for controlling the backlight on some boards, add the node for it. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/pm6150l.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm6150l.dtsi b/arch/arm64/boot/dts/qcom/pm6150l.dtsi index 3ca2860bb0cf..7aa2ef90cb6a 100644 --- a/arch/arm64/boot/dts/qcom/pm6150l.dtsi +++ b/arch/arm64/boot/dts/qcom/pm6150l.dtsi @@ -52,5 +52,15 @@ pm6150l_lsid5: pmic@5 { reg = <0x5 SPMI_USID>; #address-cells = <1>; #size-cells = <0>; + + pm6150l_wled: leds@d800 { + compatible = "qcom,pm6150l-wled"; + reg = <0xd800>, <0xd900>; + interrupts = <0x5 0xd8 0x1 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "ovp"; + label = "backlight"; + + status = "disabled"; + }; }; }; From patchwork Wed Dec 29 17:03:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 529303 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 182FBC433F5 for ; Wed, 29 Dec 2021 17:04:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241020AbhL2REo (ORCPT ); Wed, 29 Dec 2021 12:04:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241042AbhL2REf (ORCPT ); Wed, 29 Dec 2021 12:04:35 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF7BBC061574 for ; Wed, 29 Dec 2021 09:04:34 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id f5so88540498edq.6 for ; Wed, 29 Dec 2021 09:04:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fU4lJgFFLNi34Q6jN2fh2OUVWTGIe8WuwEeiOESTqPY=; b=uHAR15vdw6dD0eMtCy1x2zscdmySWkKp3xgs3JsboysksYSf45pApIbXdwohX0p1eY GIaFB3cdTNZAKZjlpeR8j58Xw7oqNASnlySNrEXezQRRFS87oEFaJD+J/vwVaOykYMT7 MEzEdJqFcdZPjnYm16aIxhdjpVtId6o1cJh7qBsTeNCRXYxdALpm96l00BHjWJnJMSpK UFhb+GPaNcFyWZfbs5IqLuIPgY4PUZO2dlPmItDjUHKJwgMSmbVSN9HYUX9u05uxk157 i70gXwQMPQ/w7dEw7kDzHdkgj+KzpDedp/rUGFihBkuN4FQNnLxR6FcmXp+C5h0/OXw4 ZVSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fU4lJgFFLNi34Q6jN2fh2OUVWTGIe8WuwEeiOESTqPY=; b=fu89CzxtZz+H/YLMqyO71zfPiJtbRPTzaOstNYw/3gIvE2z9lGV05sIMMpPvwkU5aN qou7/Pw8AxHmEaH87PGtbepeze4N0YZokwcKWNF3h7puevljBWE3l2DaQWFDgeVTRY5k +UdJxttHUffsOhzxL3rOwnflWE7Rk9VTtc03GVlAh05oDD4+81A/Jn+lyBzSbN50tFmp 7Xx4NcgbNrHysg/Ax5yG85bZTTZWqY0K4uDXukdA4PnNgcQ/gMSJnkIHgykM/hkUTEGH SE5K0PYavfTKX9zRork8igfgaT1YKQ9klNx5pjmJybUXJ7wipMKeO29gSq/yx48eo9GK ei8g== X-Gm-Message-State: AOAM5302Q9TJfSkLPcHRGJi7DqC+J6RvqukbVl9kkPMKy/csgDLgPwn0 lLnU4tLc0K8A9xK/KsSaG4ZoDQ0Luf0qWvP7 X-Google-Smtp-Source: ABdhPJwX2p64MO5RE2Ic1XIVJN2f7CeiKvsCmNESLMqR+7qjUUUvp+fMK8sOnD+t9ugHJXdP7W40nQ== X-Received: by 2002:a17:906:84e8:: with SMTP id zp8mr22404806ejb.289.1640797473304; Wed, 29 Dec 2021 09:04:33 -0800 (PST) Received: from localhost.localdomain ([2a02:a210:20c5:8c80:7d0a:cd68:c339:f426]) by smtp.gmail.com with ESMTPSA id w11sm8546153edv.65.2021.12.29.09.04.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Dec 2021 09:04:33 -0800 (PST) From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Luca Weiss , Andy Gross , Bjorn Andersson , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] arm64: dts: qcom: sm7225-fairphone-fp4: Configure WLED Date: Wed, 29 Dec 2021 18:03:58 +0100 Message-Id: <20211229170358.2457006-5-luca.weiss@fairphone.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20211229170358.2457006-1-luca.weiss@fairphone.com> References: <20211229170358.2457006-1-luca.weiss@fairphone.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org WLED is used for controlling the display backlight on this phone, so configure the node and enable it. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts index 8d6fd22873e0..678bf55c710e 100644 --- a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts +++ b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts @@ -10,6 +10,7 @@ #include #include #include "sm7225.dtsi" +#include "pm6150l.dtsi" #include "pm6350.dtsi" / { @@ -268,6 +269,14 @@ vreg_bob: bob { }; }; +&pm6150l_wled { + status = "okay"; + + qcom,switching-freq = <800>; + qcom,current-limit-microamp = <20000>; + qcom,num-strings = <2>; +}; + &pm6350_gpios { gpio_keys_pin: gpio-keys-pin { pins = "gpio2";