From patchwork Thu Apr 29 21:15:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 429268 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp1953271jao; Thu, 29 Apr 2021 14:15:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwj7ZwxsblJ+zlQWiNPdZP2ZUqEgowHb2zA3Gln4T4uzlhU0r7u8Zka+uTKvmxWzgJKnOAL X-Received: by 2002:a63:5c4:: with SMTP id 187mr1623755pgf.304.1619730918390; Thu, 29 Apr 2021 14:15:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619730918; cv=none; d=google.com; s=arc-20160816; b=i3LERA4VZunyKOTDCfTtpH6ItlriQj7erATAiKbRTl19NxxvJ5jefqeTl+sX5sQkqW rnq6pbZSRooguCO7RRBdv71PjeR5c6z+TTkPBzt6vQ4ehgwxVGP7HOjtTD2S5TCifcwP oUukg2LRQiu3BB3GmwOgnnKTuYpW34PDFwxWLuSX0L7PlSNBF+Fz5wZcci2/anO+qklp KXnX9LS9npULjXC6VWod4wN92yQtpsf9hMX9oop7N/nkXfzhWnGcweUoh1RdOt7WiIqY L+8zBHznKIebYH0sIfNMUw69N76eNQghEzwxtamFDVzEd/pCtj8FfHKBJZUI2N4vOAsG MJvg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=kTyxnJ1yi531R5AZDzagRwpZVx/RNSIurfNN65budp8=; b=TlVRp5Nfd7s+hi3OuMpfsPMhs1lEVT7FcRMW+XRpCU8Ag0BuG9xxfvIBllgkqBJ5Bb vw5mPQqBU7Vlz55blTvkvZ0OTMMLQHJB6V7BgMa4tUOC/mX1fAYc0L5fUfzLqks6zglr HxJqynvcQnTRFpw518vXnD0DAmVG/78UpkSsbLj9iZtnJDAWaIo11Z9wY1ZzL1ApaxWS ftYPmD+VogOJgxU4neZpRiFXO2dLxF9GAX43aSm9UAebVRdWxxgnDKO11jfBJOKb6bZD IXaKMPP36ddVzlGrGY0wdJwt8KAaD0ga1PnfiXDG04pgsOQKOMsrR8O1r+CzFzZBjexC 8pig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S6rFyfWZ; 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 v11si5004185pfu.198.2021.04.29.14.15.18; Thu, 29 Apr 2021 14:15:18 -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=S6rFyfWZ; 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 S235872AbhD2VQE (ORCPT + 17 others); Thu, 29 Apr 2021 17:16:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236695AbhD2VQC (ORCPT ); Thu, 29 Apr 2021 17:16:02 -0400 Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5FA1C06138F for ; Thu, 29 Apr 2021 14:15:14 -0700 (PDT) Received: by mail-ot1-x32c.google.com with SMTP id y14-20020a056830208eb02902a1c9fa4c64so26159487otq.9 for ; Thu, 29 Apr 2021 14:15:14 -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:mime-version :content-transfer-encoding; bh=kTyxnJ1yi531R5AZDzagRwpZVx/RNSIurfNN65budp8=; b=S6rFyfWZAPendWMKR6bwGEcvDFTkl7QZLv//CsPWs+gx5rzHkpv+sGP88ks6qDSNaH yHN6ZqScV5txpDI8SwAvPcaUDwIEgzHVsJBkGLgTb/4qwU28wKmqTdyUhxmMAnKd+ytL /18rCLhTWe8cX6f9HkzQLxy18ftGaLtCNZ7iq7juIYFOhmpM0o13hevqD7lhXRSMf+PU Bs03VQ+W355RD1yv/iSyz6EyealoMwz++a7c7AT5JTXnzZGfO75KsFhPvyqUxugGhreQ O00JjuuTaEmpw0pk+dRuuOVGwpnPVvQIUAE51vIpaL34lv+ia+ehFbCmiOdZ1s9qkZFS uySA== 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:mime-version :content-transfer-encoding; bh=kTyxnJ1yi531R5AZDzagRwpZVx/RNSIurfNN65budp8=; b=Ss005HNXOnjuY5OykWrX606pWkuerA1E87Rb2wSiykXtf9XUJh3v47ZqK8M2gZqq8v YzG4VKOvoMHa6MB4yr20d6aC2hTWFz1JvG/OYVe1J7D4Q7Q6Tsn4yk4kO9mtldYaUyc5 2avuQqeZRNMAWx+cll2s5YsBvdCi/PM4zJC+ihm35UGy3iV1F8Eq5OLLjC0rWv3E1MFM pH2AUSX/uTaJXtVmK6153emYhODBgJ98C7L/xR51oUt6qacLIHxWUECNLbuW77T4PcVa X1KEVzp4Vq0VdGK1wmTcim13o7GIP54zK+9wfi58rjGmKSoV91WMGNkmiYtn5MFNOwvM oNAQ== X-Gm-Message-State: AOAM532Gp8b47MVBuNt9NIsBMC9dTA2tbNkUy1H8WC0/QU/JYYQaq7Mr 1K8KshrZzlUOlVlV1VLWFdKiXA== X-Received: by 2002:a9d:74c6:: with SMTP id a6mr1053267otl.290.1619730914250; Thu, 29 Apr 2021 14:15:14 -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.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Apr 2021 14:15:13 -0700 (PDT) From: Bjorn Andersson To: Pavel Machek , Rob Herring , Andy Gross , Bjorn Andersson , Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Lee Jones Cc: 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 0/6] Qualcomm Light Pulse Generator Date: Thu, 29 Apr 2021 14:15:11 -0700 Message-Id: <20210429211517.312792-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This introduces support for the Qualcomm Light Pulse Generator block found in a wide range of Qualcomm PMICs. Bjorn Andersson (6): dt-bindings: leds: Add Qualcomm Light Pulse Generator binding leds: Add driver for Qualcomm LPG arm64: dts: qcom: Add LPG to pm8916, pm8994, pmi8994 and pmi8998 arm64: dts: qcom: sdm845: Enable user LEDs on DB845c arm64: dts: qcom: pmi8994: Define MPP block arm64: dts: qcom: db820c: Add user LEDs .../bindings/leds/leds-qcom-lpg.yaml | 158 ++ arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 49 + arch/arm64/boot/dts/qcom/pm8916.dtsi | 8 + arch/arm64/boot/dts/qcom/pm8994.dtsi | 10 + arch/arm64/boot/dts/qcom/pmi8994.dtsi | 22 + arch/arm64/boot/dts/qcom/pmi8998.dtsi | 10 + arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 24 + drivers/leds/Kconfig | 3 + drivers/leds/Makefile | 3 + drivers/leds/rgb/leds-qcom-lpg.c | 1286 +++++++++++++++++ 10 files changed, 1573 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml create mode 100644 drivers/leds/rgb/leds-qcom-lpg.c -- 2.29.2