From patchwork Mon Jun 17 21:16:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vicentiu Galanopulo X-Patchwork-Id: 805497 Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 143B41991BA for ; Mon, 17 Jun 2024 21:16:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718658980; cv=none; b=QsjVzQzabWtXrY02Dnn+cMg5AMU+FNdE/jZ/8J9xVDnpkssEh09OZPOOtWf3jwHYLHlAh25SHSVJz46ua3xVJRZ2jY9dmFx7T89Ba1+D5ykOuKkScNms2cLoAFwr1Z1P+QLyWNdKHWQdd+ATJ3RGpM5Zqyk6UhK+vwADrig6Cn0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718658980; c=relaxed/simple; bh=8y7yKnGdzaj64mxMjcCs+i6CuYsLhoqUU/Z0xSuKaQw=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=PAadRJIgKIY0/WPfSDESJ7AKKEbs8slirpnnmWzFk7ktbXqs29NhwpPn8yZLvUlEdUSPtjA4EfmF4LQvWM+D7Y2/NdpxvPH7dIy67GY2zeztNi8Urw2bhiACbI/7S1NnsMEqIqRTPXb9+8rtlX814tjN/3Ctr+6PGGp9gcvz+Yc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=remote-tech.co.uk; spf=pass smtp.mailfrom=remote-tech.co.uk; dkim=pass (2048-bit key) header.d=remote-tech-co-uk.20230601.gappssmtp.com header.i=@remote-tech-co-uk.20230601.gappssmtp.com header.b=psiWRjxc; arc=none smtp.client-ip=209.85.167.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=remote-tech.co.uk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=remote-tech.co.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=remote-tech-co-uk.20230601.gappssmtp.com header.i=@remote-tech-co-uk.20230601.gappssmtp.com header.b="psiWRjxc" Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-52c525257feso6212189e87.1 for ; Mon, 17 Jun 2024 14:16:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=remote-tech-co-uk.20230601.gappssmtp.com; s=20230601; t=1718658976; x=1719263776; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=CJ6zgi9D7w1fzZAaeJqZdwcMBOeRHYLdh/nAacVj7rI=; b=psiWRjxcfrd0NstGP/HfDrUU6JhIEtHzA6YqOU1Wn3AgDby6qYNwyeL9+5SDF51J0C CwRbeu9gNIrYpKjV6qkveHwmOpd6dFCm89m1RSm3kF4I4hQprlzj5+tqahzEFiRI1J6O jEQqJNLc7KyytnHFvY//ZuyGtppgNfuOfpfIjnwpMCLcvJ8SSCMHcdaDwC2JlAtpQXTZ McEcv3P2I2/f6CLtr1b61c/3R9QOYbcNscYpx+upFhMsLclmy1DIHbGKyGuQza/cvZCQ BH2nVUg93nXjvHEbmMM9QeHfPCtks0slF0pDQZ+nvOctkiN5ODmKhlHYp+E0rkRCl8qT /umg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718658976; x=1719263776; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CJ6zgi9D7w1fzZAaeJqZdwcMBOeRHYLdh/nAacVj7rI=; b=lD+2rH2lxCWcExWToyM9hr/ejhUbbro384lQKGjRRHrzqUFLGnomN5uJmAwa/JCjZr bSbMbjVpuRZDbBZYhArpRYb7mfkFs9FrHJ5eRXdatF3uuGxJKRY13/myJ7HzN5Erk2mv iESznp2qQeBiYw/jhcIDlJtjCArFju/gjBqloeaV2PC4GynexzrwE0latah66f43NQlN ngtq+Z+X49qoCLIq7G1ghgPSxUQtGonvMC53XdjoD4bNC3AGkd72f0eJlGyHUu3/UGgv WRC9d7YOsh6QyukKbo73L6AzUnqmDyPGRisjUAJVko2EHQ2raygt28ScYy6B6duuDNo1 rVww== X-Forwarded-Encrypted: i=1; AJvYcCVnG5khiMJsUzeI1F6aYKIolxpZ2A5tJZs49OBwYLLL5ccw+PSW6U6LLc2n3sqnJ1VHZBy1Ypb61FNz4TsnbOndnW4HIKvZeJOHrw== X-Gm-Message-State: AOJu0YzO2LHPc3uszSgvRBnMECGFGmchWM9G4eHnYIQSsFDSCld/Ppci bLL14C1To3o0TYmY5KV76Kb3xIVBddhSwGfkvIb1Ql5nSF91O4dRUUhoyoS/bRX6uZ6+EOT33nq x0zzA3c7dInaivDo+P6N3dHefYsqht6Y4B56YWuh5BZm7ketQR+MX45JiTXJzt3hz4nft0skrfL Gr8PtC9oYrR0pVLesxqghcnBNa X-Google-Smtp-Source: AGHT+IGKRAgzgS/CLDASEV2GOOipsg5ZbBQBiDZ/kzr+AMSRCWLvsbtz9f+lYLauKAgdJkmBjB1f/A== X-Received: by 2002:a05:6512:3b28:b0:52c:87d7:4b3f with SMTP id 2adb3069b0e04-52ca6e900a1mr7435321e87.54.1718658976089; Mon, 17 Jun 2024 14:16:16 -0700 (PDT) Received: from admins-Air ([2a02:810d:aec0:2a54:d850:f114:6022:6ebb]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56db5c3dsm551319566b.55.2024.06.17.14.16.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jun 2024 14:16:15 -0700 (PDT) Date: Mon, 17 Jun 2024 23:16:13 +0200 From: Vicentiu Galanopulo To: pavel@ucw.cz, lee@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/2] dt-bindings: leds: Add LED1202 LED Controller Message-ID: Precedence: bulk X-Mailing-List: linux-leds@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline The LED1202 is a 12-channel low quiescent current LED driver with: * Supply range from 2.6 V to 5 V * 20 mA current capability per channel * 1.8 V compatible I2C control interface * 8-bit analog dimming individual control * 12-bit local PWM resolution * 8 programmable patterns Signed-off-by: Vicentiu Galanopulo --- .../devicetree/bindings/leds/st,led1202.yml | 135 ++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/st,led1202.yml diff --git a/Documentation/devicetree/bindings/leds/st,led1202.yml b/Documentation/devicetree/bindings/leds/st,led1202.yml new file mode 100644 index 000000000000..c0d5b5d37495 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/st,led1202.yml @@ -0,0 +1,135 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/st,led1202.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ST LED1202 LED controllers + +maintainers: + - Vicentiu Galanopulo + +description: + The LED1202 is a 12-channel low quiescent current LED controller + programmable via I2C; The output current can be adjusted separately + for each channel by 8-bit analog and 12-bit digital dimming control. + + Datasheet available at + https://www.st.com/en/power-management/led1202.html + +properties: + compatible: + enum: + - st,led1202 + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^led@[0-9a-f]+$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + + properties: + reg: + minimum: 0 + maximum: 11 + + required: + - reg + +additionalProperties: true + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + led-controller@58 { + compatible = "st,led1202"; + reg = <0x58>; + address-cells = <1>; + size-cells = <0>; + + led@0 { + reg = <0>; + label = "led1_r"; + active = <1>; + }; + + led@1 { + reg = <1>; + label = "led1_g"; + active = <1>; + }; + + led@2 { + reg = <2>; + label = "led1_b"; + active = <1>; + }; + + led@3 { + reg = <3>; + label = "led2_r"; + active = <1>; + }; + + led@4 { + reg = <4>; + label = "led2_g"; + active = <1>; + }; + + led@5 { + reg = <5>; + label = "led2_b"; + active = <1>; + }; + + led@6 { + reg = <6>; + label = "led3_r"; + active = <1>; + }; + + led@7 { + reg = <7>; + label = "led3_g"; + active = <1>; + }; + + led@8 { + reg = <8>; + label = "led3_b"; + active = <1>; + }; + + led@9 { + reg = <9>; + active = <0>; + }; + + led@a { + reg = <10>; + active = <0>; + }; + + led@b { + reg = <11>; + active = <0>; + }; + }; + }; + +...