From nobody Mon Feb 9 19:05:34 2026 Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.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 A2B101FA8EB for ; Wed, 18 Dec 2024 18:20:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734546019; cv=none; b=rbF6qGDulKCWo2YCo1OU/HrZ0ujFVDS89JFVeERbg3DJmSdNFXL6ZBP04udmKkQtULE6lp5o169i3mq965iQXsiVUlAmRhDWVjnN0T+dE48PTN2+ZxStZRv+EBBVQ+jctn7hD5CAGB2hpJmGZyZCInW8Cv+8XCtSTiQMSukbZ9Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734546019; c=relaxed/simple; bh=+A6+s66LjKOEISFmiH3UzxHaJ3ydgiODVCNvmcUtVWg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=SMCBCCkLCAHBh80yIthVUbhda7/2g4bsgDp7facS1jXjQbB9aNwAp+5w2/TEaQWNDng1Rq7OPFIXL4LEtBS/OzAurjxxGrE4gb2lM84iKAiIIrhfT35G/fUVwtoXYuDNzm5Xj+mMzXAN/Jr08dOl44WPGY2ab3Noe2eWEyZ/XiA= 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=CVyvjKFZ; arc=none smtp.client-ip=209.85.218.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="CVyvjKFZ" Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-aa543c4db92so89585366b.0 for ; Wed, 18 Dec 2024 10:20:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=remote-tech-co-uk.20230601.gappssmtp.com; s=20230601; t=1734546015; x=1735150815; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=V6InofCGGPfJvamdN7P/ZHJUTNfj1oFLPk/qKVvBUNk=; b=CVyvjKFZRpyKp30voQqq9LlRuR0VbkHok9k/mAUyMnOryXZPzyUW92+wccOI7NZIOn 9Ld45JiDGUsuEryjsJYrx3JrpFFHl2qdC661j59eX6NI9OBXignjMCbMU4tLfLoQD72Y UvAf1+Vx4SBUw0EQExU6gBnilNZfo+xhb6ma8vvAZEjXy+tFpKHTQEZiRxqqgZ2yWb+O w1gFHde8BA9eIC/c9s4rCY7aG9uyyz2neWsy+iyUAItYhikrgp2AHXoP5zBqnUNI6HXo FtAowKlTMwZ2cotbYKnfchyU6gAHc23n17rvaOb79jLDn+i+va9VKV5UmufTNB2YtpeV Nq1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734546015; x=1735150815; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=V6InofCGGPfJvamdN7P/ZHJUTNfj1oFLPk/qKVvBUNk=; b=W9Q6qUQNOafvRKy5rwgG41OI/Dq8w2Pb3U/nReWhz1NrqeySsYo9BmB0lnKFLH38XC dd7MKenjgNP8qNsKvmo5fdoEoLXbsINE4EE3V+DnPjd1Yszw2MbfEWa9vXLeSl/+b/hq cwavKRA1BBQLCEXbHT+a4vGGrNC/uQBwACeUhLloj1FY6fle2C9swUGtkaTw6PPAoczr aanTuyBGFjbesgjozDN0vu/GbfFgd8q3vzuOK55q6q5v3ZBZugr/fSTlCcMwaWBBLNEU 6pk/++gIK8v5Ea7HZYQS5W9/J/0zPP9EgDyPv8/CD57sgB+JmDWz4APAyUsNv6hYTnNc yFaQ== X-Forwarded-Encrypted: i=1; AJvYcCVAKRsT/K1WjQIdFjrFpIkDN78QwRUhCbapwFzXlbOPJcc3zW9ih5IYIQr+DAFtXws9iRyno1fHyZoBcM0=@vger.kernel.org X-Gm-Message-State: AOJu0YwttCaALJHCy0IihUzdodKIao/lVS7mKckCiClKBQgDq2Ni8Nrc GAycNyNHdJbGJhfaWfXCQQaCI8eBIj3Fn0p9izlZxQX29sbVxdeLqRxksliCCRiI5f4Rq7L97T8 iIvhMr8uO+J7MkR+6Rg2hbLzPQjBqTP00H5Qqva6vTIQ7YZg4kYI3t9csV2UBQ83QxdC5Muoorc AKuphoT8D/7L4dtM6HnibkZCl//Ek= X-Gm-Gg: ASbGncueCKjtIbOX/qDuFvIlO1fVC7MMtgQgUW4Pk+YS58zJEZKzgzQe8aBDOkWjnXt 0c4YdWpwx9O4CbWC6Rz66t0PQufY723V37rZIpNCo6yTtBed6GqFxl1yFe7dMP3K2UzErDpiqMe bdI/mDyC7ML+CaKkUAfNwMYAXecMWWHxjqUpibI+iEIsDlhOI+A1aciMZff43iI2PlIvZT4a5xN 71j0G/I6RsW1u4tOuBOOEfRI9jmdaCKxY4SPWh/yufLxNxJK1CnHssGawne4tF5/xDhQs3e8rp/ /V5JSrm4dF5IULO3Z2qShcTu/svLEod2 X-Google-Smtp-Source: AGHT+IGC33UPzFkjqqTdfe9mJzS0AIOGuRfgJF2o1SS4QqUEVX6cCiTXFhdt23FgVBqzyUHbbbkklg== X-Received: by 2002:a17:907:60cf:b0:aab:c6a5:7c71 with SMTP id a640c23a62f3a-aac07900e07mr36642066b.14.1734546014914; Wed, 18 Dec 2024 10:20:14 -0800 (PST) Received: from localhost.localdomain ([178.27.36.125]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aab96359fdfsm584825066b.93.2024.12.18.10.20.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2024 10:20:13 -0800 (PST) From: Vicentiu Galanopulo To: Pavel Machek , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , Vicentiu Galanopulo , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v10 2/3] dt-bindings: leds: Add LED1202 LED Controller Date: Wed, 18 Dec 2024 18:19:54 +0000 Message-Id: <20241218182001.41476-3-vicentiu.galanopulo@remote-tech.co.uk> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241218182001.41476-1-vicentiu.galanopulo@remote-tech.co.uk> References: <20241218182001.41476-1-vicentiu.galanopulo@remote-tech.co.uk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 If the led node is present in the controller then the channel is set to active. Signed-off-by: Vicentiu Galanopulo Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/leds/st,led1202.yaml | 132 ++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/st,led1202.yaml diff --git a/Documentation/devicetree/bindings/leds/st,led1202.yaml b/Docum= entation/devicetree/bindings/leds/st,led1202.yaml new file mode 100644 index 000000000000..f1e5e4efaa3a --- /dev/null +++ b/Documentation/devicetree/bindings/leds/st,led1202.yaml @@ -0,0 +1,132 @@ +# 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: + const: 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 + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + led-controller@58 { + compatible =3D "st,led1202"; + reg =3D <0x58>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + led@0 { + reg =3D <0x0>; + function =3D LED_FUNCTION_STATUS; + color =3D ; + function-enumerator =3D <1>; + }; + + led@1 { + reg =3D <0x1>; + function =3D LED_FUNCTION_STATUS; + color =3D ; + function-enumerator =3D <2>; + }; + + led@2 { + reg =3D <0x2>; + function =3D LED_FUNCTION_STATUS; + color =3D ; + function-enumerator =3D <3>; + }; + + led@3 { + reg =3D <0x3>; + function =3D LED_FUNCTION_STATUS; + color =3D ; + function-enumerator =3D <4>; + }; + + led@4 { + reg =3D <0x4>; + function =3D LED_FUNCTION_STATUS; + color =3D ; + function-enumerator =3D <5>; + }; + + led@5 { + reg =3D <0x5>; + function =3D LED_FUNCTION_STATUS; + color =3D ; + function-enumerator =3D <6>; + }; + + led@6 { + reg =3D <0x6>; + function =3D LED_FUNCTION_STATUS; + color =3D ; + function-enumerator =3D <7>; + }; + + led@7 { + reg =3D <0x7>; + function =3D LED_FUNCTION_STATUS; + color =3D ; + function-enumerator =3D <8>; + }; + + led@8 { + reg =3D <0x8>; + function =3D LED_FUNCTION_STATUS; + color =3D ; + function-enumerator =3D <9>; + }; + }; + }; +... --=20 2.39.3 (Apple Git-145)