From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f12.google.com (mail-wm2-f12.google.com [74.125.225.140]) (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 145EE457E43 for ; Wed, 30 Sep 2026 07:15:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.140 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790752535; cv=none; b=rwF9CnOXhtokQZUFS0ZNgtnbYXaalpyCtNjwG2Vgc3S8fNzQt2PxU949UR/Fhm1uEXWZaaQY6Trk1SaAOI1p4bM2c7KL7oiqOgA38jaiM3UyZFA5P4JMc3KphGdoPy4UlsRlFp1oT7CWJo4b8HQmJABtgbNe2TdsFvvi/+B5g6k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790752535; c=relaxed/simple; bh=ownnF2eA8yjuB5F7r+YjnScn5LX/aUHmRE+jgVipf6Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ek4R8+Qva/bSG3L+QG121W865/8rymB0bjwzUrJdvLpRfWlHGAQpSnx0S267Zcyanu29EB1CFGLHoVZb7EbY4szaNWHWfxAbiuMPu7G18JxfiTeiV6CBW7zLSGhhv3O2tYrqVnK5+3eCdmpZiwl8qd6q0KuRencCpBQqiNbdaXw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Dlevv48F; arc=none smtp.client-ip=74.125.225.140 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Dlevv48F" Received: by mail-wm2-f12.google.com with SMTP id 5b1f17b1804b1-49ffa15f67fso23058335e9.2 for ; Wed, 30 Sep 2026 00:15:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790752525; x=1791357325; 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:content-type; bh=bshOoGO6/a2WohdGzsO4t4N/wsEAXwivylUfNFmKjAo=; b=Dlevv48FImISrQ/FDxQj/yhEvNlPu5Kkq8w7pAP3rb8XJVdT0YPoKO25x/KOmK5O++ sIuMdm4H1W/9T4LmIhF3ZWt3DVkNR8t5LMdnUfxoNxm9/tkZfsPylyYv4QRhcX+vKIKA uTQ1uKToeswq9j3BLQ8sMvewDEhZ2iJfqXES1gisdOSiAgYSwGJWuUaILtV4NtBMLqJ/ 399MZiKT3IwTLzbYGxYXW5Sem/9ZjH2ll6EZIe7WyIP4sr2x5qX8Myt0fNdQJOGudqZ9 ZrwWcZlBNNSOLibJ5JpbP9gTE3KL9SoJQsN55ThfWbbGh1K5Ll6B3rd/pE3DZDCQXxHw JsDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790752525; x=1791357325; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=bshOoGO6/a2WohdGzsO4t4N/wsEAXwivylUfNFmKjAo=; b=ET7n9mmIqv/iPHPuXJfRgEyLvUKaN1Rw8riKhPnFqIkKxnVuyHNvGZFVUIaMR5wnaV mW3BdhbMXMZYryhQaMT8o9BMFIIemxCGDCRE/QB9tCyTZfCopxBlrzP2B1GhDE6ObL+n Tn7ogZ9ndgv95QIi+/6tlPXhStyysgp6eDv/TvtRq6DgadIG4bEsFI3quZlUTmyakIVC svTZx5dS0Bv7IH5jcwVfT+L+LAYE7MT7K81p0IwUUpsEc0qVA0kBG4qnLNHhiBQaAQW6 0uzFSGdwIA09auUcbXS+8ILcRKh6tWc4PEeiC5f03e3HCZVDVAx9lMD9BF9hIh6cFn9i gM8w== X-Forwarded-Encrypted: i=1; AKwUvByARb6KGsulXKx+LZYjlWrMtpgJ3lmR4Wl++ZQWWGjzCns+7ZzI+lkGRYRzCFTBUg8vohqySzuJSdM1@vger.kernel.org X-Gm-Message-State: AFuF++mJq5nJEN8ICa9EFBqC2CxJpxr0FQcruxbr4w8LbaDfbvEB4JdO Gj4RyYWp9KHUTqsTUkaGkd+8+p3E5t36gwAp70h15qellI0JTBdBC5V5 X-Gm-Gg: AYBFou2h0uv4pkhsv2GUUA6huD0C8ZY8Qq3RbcFsFZ/k9O4Mk2IlhSBtczlU74K9Gqg eVw483eSoV+trCDGj8XLSX0ygRMw1HJIqr9WrI8MN6Jg9q9nwO4Hvk8dRfwPuLCYc0dnqA66OiF 4YWGs7My2GhaCl2Gvj00H4HkWWp8Cgp+UyZlwPQbP63CEgpHt2UCsZSZN2jwsGVQGhXSSYqETkC jzJJp6pWm7X2rV6pRgYdfNZ215JiWj1xMQ6hSHxCRTzDVVm8zXKIwyZD2qGXq/nIkjbrqip63ak ZLk+1zvszD5IQtQNfrNpchE3wZPHXuk9EFhlYIJ8hwb23FvS+B2nMhKlLNyqiMuZkUEhXMcZkLE iDu8cvQyY7qserlVlKPq3Va5pXmYinvyITGoBBrI4D4uc8xQZeDKoBqgfCC/SITQwoLEiOiINx4 bXXdfU47frNL3Zu/pSt4zu8MZKPxWdX62gb5qx724+V9H+ZSc7W1gXoahwl/GGpQh2EB7DhLbY6 Q4P5hOp9Fnon8yMnz91VvopvdswyV8= X-Received: by 2002:a05:600c:1c29:b0:49e:6c11:c4fc with SMTP id 5b1f17b1804b1-4a01aff0d75mr5571755e9.7.1790752525426; Wed, 30 Sep 2026 00:15:25 -0700 (PDT) Received: from xeon ([188.163.112.76]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48b029be7e4sm1256979f8f.12.2026.09.30.00.15.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2026 00:15:24 -0700 (PDT) From: Svyatoslav Ryhel To: Lee Jones , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Daniel Thompson , Jingoo Han , Svyatoslav Ryhel Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mfd@lists.linux.dev, dri-devel@lists.freedesktop.org Subject: [PATCH v1 1/3] dt-bindings: mfd: Document Skyworks AAT2870 Date: Wed, 30 Sep 2026 10:15:11 +0300 Message-ID: <20260930071513.54697-2-clamor95@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260930071513.54697-1-clamor95@gmail.com> References: <20260930071513.54697-1-clamor95@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Document Skyworks AAT2870 LED Backlight Driver and Multiple LDO Lighting Management Unit. Signed-off-by: Svyatoslav Ryhel --- .../bindings/leds/skyworks,aat2870.yaml | 127 ++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/skyworks,aat2870.yaml diff --git a/Documentation/devicetree/bindings/leds/skyworks,aat2870.yaml b/Documentation/devicetree/bindings/leds/skyworks,aat2870.yaml new file mode 100644 index 0000000000000..6dfcd1fa399ca --- /dev/null +++ b/Documentation/devicetree/bindings/leds/skyworks,aat2870.yaml @@ -0,0 +1,127 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/skyworks,aat2870.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: AAT2870 LED Backlight Driver and Multiple LDO Lighting Management Unit + +maintainers: + - Svyatoslav Ryhel + +properties: + compatible: + const: skyworks,aat2870 + + reg: + maxItems: 1 + + enable-gpios: + description: GPIO connected to EN pin. + maxItems: 1 + + vin-supply: + description: Regulator providing power to the "IN" pin. + + backlight: + $ref: /schemas/leds/backlight/common.yaml# + unevaluatedProperties: false + + properties: + compatible: + const: skyworks,aat2870-backlight + + led-max-microamp: + minimum: 450000 + maximum: 27900000 + default: 450000 + + max-brightness: + default: 255 + + skyworks,channels: + description: layout of active channels, where each bit represents + one of 8 channels. + $ref: /schemas/types.yaml#/definitions/uint8 + default: 0xff + + required: + - compatible + + regulators: + type: object + additionalProperties: false + + properties: + compatible: + const: skyworks,aat2870-regulator + + in-ldo-supply: + description: Phandle to parent supply of regulators populated under + regulators node. They all share same parent. + + patternProperties: + "^(ldo-(a|b|c|d))$": + $ref: /schemas/regulator/regulator.yaml# + unevaluatedProperties: false + + required: + - compatible + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + led-controller@60 { + compatible = "skyworks,aat2870"; + reg = <0x60>; + + enable-gpios = <&gpio 139 GPIO_ACTIVE_HIGH>; + vin-supply = <&vdd_3v3_vbat>; + + backlight { + compatible = "skyworks,aat2870-backlight"; + + skyworks,channels = /bits/ 8 <0xff>; + led-max-microamp = <27900000>; + }; + + regulators { + compatible = "skyworks,aat2870-regulator"; + + in-ldo-supply = <&vdd_3v3_vbat>; + + ldo-a { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + ldo-b { + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + ldo-c { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + }; + + ldo-d { + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <2800000>; + }; + }; + }; + }; -- 2.53.0