From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 B864343E9C6 for ; Wed, 8 Jul 2026 12:33:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783514005; cv=none; b=JxBLQTcDjd8FlBAh//PPqdNel4XrbHYMyqR6yzG5M2i8TSNkO8zOWaA843S2qy5To5ZIza+K5mqPyNjpB4GWyjdmleAMMZe4dQFfQLumynppTaIKwPkCoDTyBLj16lroH9lWsJQDRRG1Bs116hbS8Daipd67SWjb59kl6elYtNw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783514005; c=relaxed/simple; bh=vWeBFXRW7mS91AbGqlCDA0lKZx+qg8kD3L+F5kWPOAs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=N4ph/RyPxRc8Y9c16KMQmX9dopR4FxUTjz0PqMLJbMEKwSi4sDxQO5weizsm9EYXvka6MUohEpMY0j3v7M6LVH9sMjgrqUSpYT/R2rHDGokcO6oQeMUcgQdqooHemH+r5eZbA4qbrSLZr7sKAHKqaH2LFkZSevBzLCk1WNTkfvY= 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=eM5b1opX; arc=none smtp.client-ip=209.85.221.49 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="eM5b1opX" Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-47df440fcd5so95609f8f.3 for ; Wed, 08 Jul 2026 05:33:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783514002; x=1784118802; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=0nZ45JHYuzQLGUmd70CLEeCtwiQyXvCK/RVBBWky/xc=; b=eM5b1opXGaA4mTXL5yrHHoUBdo2S7SnJ0VvL22HqpkVNy8WuGXm4NYEjuDsfftH57L yVt/Awo3uar9cAG1HPlgkV65lQYLetA+bR8qG8ICai8FJX0xakDTJnkIycGgKJ2S4zDI KsUngtQDG9yFjOdXVV2Wubw3yUMACUTkzmBJlQcUP+hQ8aaQYBK6O50FPHyPp9Z9Yi7V KS2WeTRPJFVX67AOwoAnxjxgbuTjueGHuGmqWOZlCTNEeinOiZd5KtAUwfQputWFWnUl 2YbRJujDGZJA9ffI7QwAYRg+csnbCwT/HmAndh077Hxw6RqJdcs4WQGyfEsRnXU+o+Rl 04WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783514002; x=1784118802; h=content-transfer-encoding:mime-version: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=0nZ45JHYuzQLGUmd70CLEeCtwiQyXvCK/RVBBWky/xc=; b=gtT7k7yA/gWGQoeT+0GmYiUxa7aFQyYjv3bPi/zEnZoB8M5qiHnKx2h7zI0T/PB6jL UAHvZsrniOrfKGdCM5VQ96u81VlW25HN/6XEUS8FN07sKZgwraoJQy7RqJnwZ6a5ixyI q9uGidSoIi/+oGRMGd6eCilUnBfXh2WOqliz5keG3ZXzGfeKwqsAPc9A8rRf+jQ7zATV RMVGJso4lzc9YjrsfrDXpxUjMynfL39lpYTKqbqNYLv4p0g7z03ALynS2GwMXh7kEaOA SzNDnrrq30LLb1e6FDL1nfnw8Mjvi794t/nm2VOyl4UVXga8SOwRWJkWKG2aB2KJ03qP tZsA== X-Forwarded-Encrypted: i=1; AHgh+Rrr0o+rxIMV8HVRyRM1iaMp9XTo0u4YhJVljA4ZG9dGp6zpeymU1eZiBAlcNC3sPjlIYF3YZAnfSV2q@vger.kernel.org X-Gm-Message-State: AOJu0YyXmPp/yFTSiQ8m/4upWRu9w7lg0NnjyhBO7jB8q1GpR/nE+bco x/SoyxR3MidOeW/1bvsBRxIlhSKVKWMcwAm8wzp2KxQAvSonf1wFWT44 X-Gm-Gg: AfdE7cnuKnghaF8A1BGsBjouhQhbgi66R5D0du9n9ZOqfkmrciV3FB1GMwPFVggRSff kjPbF6svcDesx6apjGUbESAEiv1zmaGz4rnXPJcFIGbIWXkgb5LqZZeEKpi7BRpTzMH4/8v3tmi 050a6ipOkEoHQgeaTOHGdhpSIf7LE++gR8iX6tC6869f2QCDqsBKU8EZn9MdmQvYJVlZccECnqf e66NfL5tXJ9FgzXGvcgtRbZkdIq4BNWxi7WxRF0O3bbnbPtySBUSAIvHDi0LAPlsLf7CWZLZL/p Z7HJHqN0l/uDwtbEJ5KDuoNK48J+nyGzkz2b+WQTKWttkujXsfdgUiTSX/NVOEEMm1Zovh1y9kF 6HgOEQvF2TU2Yc9rdL8EulGORUsodXrJjvjMh7Ueo3iCcL+dP0YfN1LFbfxvHHItTz5ZpxGO6DQ Sy5ONlSDU84FLdLC9XFeQ1Q8q6FRF+GzGXjDaYlgbOQjvW0+7vImlVISg= X-Received: by 2002:a05:6000:41d0:b0:475:5454:49f2 with SMTP id ffacd0b85a97d-47df07c1f26mr2231695f8f.24.1783514002112; Wed, 08 Jul 2026 05:33:22 -0700 (PDT) Received: from localhost.localdomain ([188.26.50.173]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-47ad69519c2sm45760242f8f.37.2026.07.08.05.33.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2026 05:33:21 -0700 (PDT) From: Eduard Bostina To: Conor Dooley , Daniel Thompson , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, Eduard Bostina , Jingoo Han , Krzysztof Kozlowski , Lee Jones , linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, Pavel Machek , Rob Herring Cc: daniel.baluta@nxp.com, simona.toaca@nxp.com, goledhruva@gmail.com, m-chawdhry@ti.com Subject: [PATCH] dt-bindings: leds: backlight: Convert TPS65217 to DT schema Date: Wed, 8 Jul 2026 12:33:17 +0000 Message-ID: <20260708123317.1768641-1-egbostina@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Convert the Texas Instruments TPS65217 PMIC bindings to DT schema. During the conversion, the following updates were made: - Make the 'backlight' node optional to resolve dtbs_check warnings. Some boards declare a bare TPS65217 node without implementing the backlight configuration. - Document the 'isink-en' property in the backlight subnode to resolve dtbs_check warnings. This property is used (am335x-guardian.dts) to manage the backlight current sinks. It was missing from the old txt binding. - 'additionalProperties: true' is at the top level because the TPS65217 node is documented across multiple independent schemas matching the same compatible string. Signed-off-by: Eduard Bostina --- .../bindings/leds/backlight/ti,tps65217.yaml | 82 +++++++++++++++++++ .../leds/backlight/tps65217-backlight.txt | 27 ------ 2 files changed, 82 insertions(+), 27 deletions(-) create mode 100644 Documentation/devicetree/bindings/leds/backlight/ti,tps65217.yaml delete mode 100644 Documentation/devicetree/bindings/leds/backlight/tps65217-backlight.txt diff --git a/Documentation/devicetree/bindings/leds/backlight/ti,tps65217.yaml b/Documentation/devicetree/bindings/leds/backlight/ti,tps65217.yaml new file mode 100644 index 000000000000..07b15cab4b63 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/backlight/ti,tps65217.yaml @@ -0,0 +1,82 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/backlight/ti,tps65217.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TPS65217 family of regulators + +maintainers: + - Eduard Bostina + +description: | + The TPS65217 chip contains a boost converter and current sinks which can be + used to drive LEDs for use as backlights. + +properties: + compatible: + const: ti,tps65217 + + reg: + maxItems: 1 + description: I2C slave address + + backlight: + type: object + additionalProperties: false + description: + Node for specifying WLED1 and WLED2 lines in TPS65217. + + properties: + isel: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [1, 2] + description: | + Selection bit. Valid values: + 1 - ISEL1 (low-level) + 2 - ISEL2 (high-level) + + fdim: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [100, 200, 500, 1000] + description: + PWM dimming frequency in Hz. + + default-brightness: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 100 + + isink-en: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Enable backlight current sinks. + + required: + - isel + - fdim + - default-brightness + +required: + - compatible + - reg + +additionalProperties: true + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + tps@24 { + reg = <0x24>; + compatible = "ti,tps65217"; + + backlight { + isel = <1>; /* 1 - ISET1, 2 ISET2 */ + fdim = <100>; /* TPS65217_BL_FDIM_100HZ */ + default-brightness = <50>; + }; + }; + }; diff --git a/Documentation/devicetree/bindings/leds/backlight/tps65217-backlight.txt b/Documentation/devicetree/bindings/leds/backlight/tps65217-backlight.txt deleted file mode 100644 index 5fb9279ac287..000000000000 --- a/Documentation/devicetree/bindings/leds/backlight/tps65217-backlight.txt +++ /dev/null @@ -1,27 +0,0 @@ -TPS65217 family of regulators - -The TPS65217 chip contains a boost converter and current sinks which can be -used to drive LEDs for use as backlights. - -Required properties: -- compatible: "ti,tps65217" -- reg: I2C slave address -- backlight: node for specifying WLED1 and WLED2 lines in TPS65217 -- isel: selection bit, valid values: 1 for ISEL1 (low-level) and 2 for ISEL2 (high-level) -- fdim: PWM dimming frequency, valid values: 100, 200, 500, 1000 -- default-brightness: valid values: 0-100 - -Each regulator is defined using the standard binding for regulators. - -Example: - - tps: tps@24 { - reg = <0x24>; - compatible = "ti,tps65217"; - backlight { - isel = <1>; /* 1 - ISET1, 2 ISET2 */ - fdim = <100>; /* TPS65217_BL_FDIM_100HZ */ - default-brightness = <50>; - }; - }; - -- 2.43.0