Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp649909lqh; Thu, 28 Mar 2024 11:58:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0araLktdYSsRAecxVZq4Vl1AE5IzbLH0b7KnsZIGdzlfb3iqEgS7zzTnb9+VxBk2KNI/qGydx/VcPV9mheFaGuEotsxsOzRRh8BLcJw== X-Google-Smtp-Source: AGHT+IGXrc430krlOWcyYxbZtFcKxcCjQVlI9XaHyQVS1Rde0+8YF+G6nYT4KlCMTKl0qHyGboGW X-Received: by 2002:a05:6a00:1790:b0:6e6:f9b8:38eb with SMTP id s16-20020a056a00179000b006e6f9b838ebmr162442pfg.21.1711652332197; Thu, 28 Mar 2024 11:58:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711652332; cv=pass; d=google.com; s=arc-20160816; b=F1j5lYebhhUjMEuwKZfoMfpRYjsd+brC0vtylqQhkEL9vQdYRkfkoQdzRJmW5LvD5I tNNkKB64+T5TPhc3se4xda1fQa7Vt1KKojUo81vkZ3oeobmJ7LLYiVXeczZNzNA73KWY ZtHOoQOMArDJIabgnbtr75h32yX0xuruvOg5BpGFvQtd1bY7HKao+/K/QP+hdGZvGuYZ 9vQvb3gbS4ETxqXsCsjTbwj2SIwLO2gb3K53CXIAlTIs+Zo4UGyxiyMc00HRBdbH5E9w tGsz3lgRA+Ar6kZS2kkULQOTU8PfduVfCJdkcvynmvCjnvOGJHXp4RoZZIvdram+qCne EWtw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JuUZdM5lXGmLS7EfP8R0IQuyM+v1YYg6+6zgD5NRGwQ=; fh=gJgXBeGjkeu2ynPmF6Qgkp3OFYNedwuM5eLNGNLQ3kg=; b=nJia/xP+0yFuEN7tCTiQo6ZK0EuBuf7cdaSuULBJ/mUPeQGP5hZWDKLJkNP9G5WbAk sUYwrYCSS07IUMyLPCZB+9afsYBbG921QZsjlarfN+GpogxbBeerw0ghx590OcxT7TbO xui8PzAEoqsTKezqBT4Osmp4Sy4Ztb2Xj6hPOeWTM9dIxq/SRD05VXh9wwJ2IfAxp72V 2dN7aJnyjJS/kGijedPPkF3W4bIXjhPIBcAQ0T1IGGtuQaaF5JGNvZDaZg7+/66z8Yo3 wFpPlwI9RJuOz9gzFRO6/0912oRcLtD2m6Wc9BHNnDsJ8tACR/pbOHeyr0g1ORk4AgpR 41ww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CjOym6iM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123437-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ld19-20020a056a004f9300b006ea87453d4asi2057825pfb.222.2024.03.28.11.58.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 11:58:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CjOym6iM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123437-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A2E5A29936F for ; Thu, 28 Mar 2024 18:50:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A48C137910; Thu, 28 Mar 2024 18:50:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CjOym6iM" 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 0AB4D137746; Thu, 28 Mar 2024 18:50:38 +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=1711651839; cv=none; b=iKe5E5ZdGBbhKQXLFclvb/qHGOxT49bvZ+I8Yrwam2oXrhPMI/jQCP+BdGPqa/K2/QsoobtVjbrBAN/WUNp6NVaHfbdtKUUksE8CgI8PsJ1YLAj5pg4vUDMScyFADVQtLzAABSIGtOu2Oh1PMF+nccvczpNNKcIAfBq1tiMw7TQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711651839; c=relaxed/simple; bh=4YV4eMCtC0egKx+zBizfkV4KX4IW04QZTHkdqw2rvEA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ToSAD0qTTC16s9/CCM29ubf3q/dAKCvkx4GNQ4gHcLyxnh5kxVKwgqds/FAzUruDlUpf444NS5YnRykaQrqGhfBk6Y0dO478xhsipFvJdjgOU6TDB7oLd5kIneatNHdF/5f7JXa1/KSeuk08N0km012t9UDCfxv+B+H++CK2PTQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CjOym6iM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D153C433C7; Thu, 28 Mar 2024 18:50:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711651838; bh=4YV4eMCtC0egKx+zBizfkV4KX4IW04QZTHkdqw2rvEA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CjOym6iMfoQH46YdksEMNunkr11EPy8fqRdISQU7xMYl5CHqwPMt0Fj42RuSCkIjj qBbtyQme8ddxS69WuBK3qXAIwm6+wenRnYoHnlsulDKNS/gmuQ7c4hPx2m8uStUx+n puoFO/7ImboQZS7WJHxDg2OUZdsC4mVhwfNXAr8Wm8eYoJUXLVf4JYiUlR9gExbrAB FkoODt70t4Nflb00E2ciUKrRyOgrvTzVgKdejnaJaH5Ux4voA1giS6VL5T30Lbr4VP l68oaHm+nfaZ9ai49DoW9j/q306ETMAT908xtHs8SCuvrUx4iSbJgw4nGNgMQ/LWlL DxgpHfijcpxaA== Date: Thu, 28 Mar 2024 13:50:36 -0500 From: Rob Herring To: =?iso-8859-1?Q?Andr=E9?= Apitzsch Cc: Pavel Machek , Lee Jones , Krzysztof Kozlowski , Conor Dooley , Kees Cook , "Gustavo A. R. Silva" , Bjorn Andersson , Konrad Dybcio , 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 Subject: Re: [PATCH 1/3] dt-bindings: leds: Add Silergy SY7802 flash LED Message-ID: <20240328185036.GA79266-robh@kernel.org> References: <20240327-sy7802-v1-0-db74ab32faaf@apitzsch.eu> <20240327-sy7802-v1-1-db74ab32faaf@apitzsch.eu> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240327-sy7802-v1-1-db74ab32faaf@apitzsch.eu> On Wed, Mar 27, 2024 at 11:51:33PM +0100, Andr? Apitzsch wrote: > Document Silergy SY7802 flash LED driver devicetree bindings. > > Signed-off-by: Andr? Apitzsch > --- > .../devicetree/bindings/leds/silergy,sy7802.yaml | 96 ++++++++++++++++++++++ > 1 file changed, 96 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..d32efac8baa6 > --- /dev/null > +++ b/Documentation/devicetree/bindings/leds/silergy,sy7802.yaml > @@ -0,0 +1,96 @@ > +# 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: > + allOf: Don't need allOf here. > + - 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 > + > + flash-led-controller@53 { This needs to go under an appropriate bus node to fix the errors. i2c presumably. > + 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.44.0 >