Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp711960lqp; Wed, 12 Jun 2024 14:03:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVM15t7cUhPtuOOd66zlOF+QUVkQkW7B2Jdkw6wi3sensQDo7+ucLpg1Ae35GhzucKfkVzRu+LrwmZ2gSsFWwY6vJSGNLUOlUZW0kCVGw== X-Google-Smtp-Source: AGHT+IHCkBR7hYyK2d/87nvPm0gp8qNX9Peo/uikxB+UdpXaEzMKZUyxU6sq6nMyGtmcZ0WM/2t5 X-Received: by 2002:a17:906:382:b0:a6e:8aa4:1fc1 with SMTP id a640c23a62f3a-a6f47d3650cmr159432766b.28.1718226205094; Wed, 12 Jun 2024 14:03:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718226205; cv=pass; d=google.com; s=arc-20160816; b=JtwHTKyhRTbCrorOumXNUIdaRHqMm9eAsWN5UVftDSN3gNsSFffKJ9B0aqYdWgY9H3 A1IJbgDRCAORD5NsyY996RWSvYVUxowb4FFLTAm4nF3StPQaImBivRnpqIBZht47bRQY u0TLtzH1pf7syxHTqxzP0M10ObHxcCqfbLK3cebOrjNSbg6zWogZc2FwFKNhAgrlkGEn 2ZGpGCq/Kbiyn3h5Hs4E+qF1tgPkn+BfbTJd4N8hJ1ZKILJMVfuIOJ9hy0l+dpoZmmSD sd0TGvTb8z4uVil8UMcuAme1VJabFv6KkXCp9/XEeVh1Y924OfzIcxpayxMBck/SvaN/ KsCw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=mZGjlWwjF53IdomK0XK812WsJktnmJH4lqInTGIT+t0=; fh=CJDvYqP+vKtrb8CaOAPp4H1txde9El2fqp5X4lSrzec=; b=aBdjRoIc98338JHnjgkvery34G07UVBGwGEzk39phosvHhxgRk1rKYYymIl3MjtOMg emwsbr5S4otjU27FnCNHdai/9ivomul8kPOH3GIyZeyiqU9vkB0am4JIuun+9Q96AXMU tUYt70pVijI4Na35i/4E6LdLrHbAbhMfQjzv02eSLQ7rGpgVeHYCpiPzAuq2abQEPIY1 Pc4lLqZJHjgtdbTWOrnN0XInSTZVQjvzG7d+JF1+I+ojs8ovUVdmbPhD4VlLBkZu1W/B HK+tqpMfQJsJhuxxOJUV+ZOZ1fhAkz1pHhNzNQrDFk3IZFz07PEQDdtXZcLcalOp/PtY /aUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OgO91uSI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212254-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212254-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6efd69ac2dsi486462566b.48.2024.06.12.14.03.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 14:03:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212254-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OgO91uSI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212254-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212254-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CDC361F215CD for ; Wed, 12 Jun 2024 21:03:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 19E7D12BEBB; Wed, 12 Jun 2024 21:02:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OgO91uSI" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 16C23537E7; Wed, 12 Jun 2024 21:02:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718226169; cv=none; b=dIcMCTnEvFA0er7T4DRW/4o+dt/UAg1Tloq7PtJMHDZv2+PlFCQuhAPvKpinwwhPtFhJ9pcWXfpBow41r9kHguY1U34npN1jiPwInGKfepRzL+Ai2O+/S+RiWwa0wUHYCBm2m5dfhM26zGHo30NIyYsuhkzyiwJZfU6cxMCDuMI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718226169; c=relaxed/simple; bh=q9GXhOh3W08vpuSX8OidiiDwOJ5B27G64mh/6LPDIq4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=au9RlMF7SHVXA1NNhHa8zks3t1Zf4IxeBev07JD+xKG8Zq/yczLGcrraGZdQsJKXGPdyU2NHxm73QjZlA+rkSc+xuY1qeLBLj4O7ZSvCV2A/ZKHIwjubbUc+2akrwlz5fHmgdxuvoOijgJYa/YjUNrRjodyQ7G6U3vmf6o8akUo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OgO91uSI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 87A90C32789; Wed, 12 Jun 2024 21:02:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718226168; bh=q9GXhOh3W08vpuSX8OidiiDwOJ5B27G64mh/6LPDIq4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=OgO91uSILfNSwS9Xz8ImmdUpdUdym0bMSwd9P3jrueHjAtOv5at5VkJH5IxsKllRU xJgxGZvdZUKLmwMX7mY/L+kTRksAcePidTJWSYxUvZfOxPGgNrEMWRshoQtkoWoN7r +NrBPHPZzq5hw9hDyiA7cbyvXCFJv6HnJz5vfAqZ1OlDuUWE5r1j4k7ttweZsTbWXf j2jorXfkrIhN4d6Vr8gu9PXvmWxM0coCf1NT9O9CN2e+b0FPI3XZoZR/dGfB2vooS/ WMxcPdU8+oM6BP1YXh0vmKeHNFrR1a59aIRIT3E2nGVeDEmakcfe4FmJ+njk2AV9HQ cyAXjPkdi3CMA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D23AC27C77; Wed, 12 Jun 2024 21:02:48 +0000 (UTC) From: =?utf-8?q?Andr=C3=A9_Apitzsch_via_B4_Relay?= Date: Wed, 12 Jun 2024 23:01:32 +0200 Subject: [PATCH v3 1/3] dt-bindings: leds: Add Silergy SY7802 flash LED Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240612-sy7802-v3-1-1e9cc1c79b79@apitzsch.eu> References: <20240612-sy7802-v3-0-1e9cc1c79b79@apitzsch.eu> In-Reply-To: <20240612-sy7802-v3-0-1e9cc1c79b79@apitzsch.eu> To: Pavel Machek , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Gustavo A. R. Silva" , Bjorn Andersson , Konrad Dybcio , Christophe JAILLET , Trilok Soni , Kees Cook Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, =?utf-8?q?Andr=C3=A9_Apitzsch?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1718226168; l=2858; i=git@apitzsch.eu; s=20240325; h=from:subject:message-id; bh=422MAQ8Zc9rOtjrkcDNrU+gTouN3Oof9bf0EyTO505k=; b=2DghYlRDo+LHle1IMbn73984mZZp6rpmq2/xoeeii85+4kQFkJV5FRZemSltMTxZCSqsKNHC+ V6vRJshHvZKDC8EMptWf24V9UfltiefkFoX00bAXco41DcyvdG6+N1G X-Developer-Key: i=git@apitzsch.eu; a=ed25519; pk=wxovcZRfvNYBMcTw4QFFtNEP4qv39gnBfnfyImXZxiU= X-Endpoint-Received: by B4 Relay for git@apitzsch.eu/20240325 with auth_id=142 X-Original-From: =?utf-8?q?Andr=C3=A9_Apitzsch?= Reply-To: git@apitzsch.eu From: André Apitzsch Document Silergy SY7802 flash LED driver devicetree bindings. Reviewed-by: Rob Herring Signed-off-by: André Apitzsch --- .../devicetree/bindings/leds/silergy,sy7802.yaml | 100 +++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/silergy,sy7802.yaml b/Documentation/devicetree/bindings/leds/silergy,sy7802.yaml new file mode 100644 index 000000000000..46b8e5452b62 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/silergy,sy7802.yaml @@ -0,0 +1,100 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/silergy,sy7802.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Silergy SY7802 1800mA Boost Charge Pump LED Driver + +maintainers: + - André Apitzsch + +description: | + The SY7802 is a current-regulated charge pump which can regulate two current + levels for Flash and Torch modes. + + The SY7802 is a high-current synchronous boost converter with 2-channel + high side current sources. Each channel is able to deliver 900mA current. + +properties: + compatible: + enum: + - silergy,sy7802 + + reg: + maxItems: 1 + + enable-gpios: + maxItems: 1 + description: A connection to the 'EN' pin. + + flash-gpios: + maxItems: 1 + description: A connection to the 'FLEN' pin. + + vin-supply: + description: Regulator providing power to the 'VIN' pin. + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^led@[0-1]$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + + properties: + reg: + description: Index of the LED. + minimum: 0 + maximum: 1 + + led-sources: + minItems: 1 + maxItems: 2 + items: + minimum: 0 + maximum: 1 + + required: + - reg + - led-sources + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + - enable-gpios + +additionalProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + flash-led-controller@53 { + compatible = "silergy,sy7802"; + reg = <0x53>; + #address-cells = <1>; + #size-cells = <0>; + + enable-gpios = <&tlmm 16 GPIO_ACTIVE_HIGH>; + + led@0 { + reg = <0>; + function = LED_FUNCTION_FLASH; + color = ; + led-sources = <0>, <1>; + }; + }; + }; -- 2.45.2