From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 86A73379C56 for ; Sat, 18 Jul 2026 21:57:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784411825; cv=none; b=snQweJvHQtbnOzlL8ce2dcDcrACcgHVUUVngzEihUodD3MSVq5ehDrH9EkqrL3yuGcaNOoRK6qsVc5Xq/D2fQJYQIDIb58B5kApsa0POQlEEAdsQR+FS3VViBceZ76+j3GybUGrKoJ3WfbCVFUMIVSiXqzXtsSqmR+5F5J4fULE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784411825; c=relaxed/simple; bh=e8EdoxkcXCLGue3RMjSGCqAcggnaqiNqZOMtkWZQElo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DjI7rnNqOJtj70g001pV/iGecf7udV9nOTcZD3fFYy+1NQjuJMZREJfGk40MO4/h+wNrjT1QboYl75O/NqfoGFtulS3rXKfSgtYIeYFWim5f8+LqXFMxlURqjB1C5NZM2rkmzgP+x7Veors6jeZDKFQ9dDqk96RVQlAyKSTPO40= 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=oR0l6BlS; arc=none smtp.client-ip=209.85.128.54 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="oR0l6BlS" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-495590ba856so550015e9.2 for ; Sat, 18 Jul 2026 14:57:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784411820; x=1785016620; 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=lpxItdTSSRPz8qQrNM+YynkVLo80ONeSs8p2LlFqFRA=; b=oR0l6BlSpb8sfd8K2IAp3PJkSsj01jSmDOPHtuL1Op/LhltiA/F5g3LAtb9KGibvpp MKej7qZurmoaR93I6rgUnvIe59vvCD44CXgIpvgLrVYJo5UO5qtPABhZJCo5BZ8mMCLz 8bw+lx0u2r+aDI+ZW9nE14nC6IaeTA5uukUtt+SyFkLNtntui0wycVmW8YnLT97xTC5d 0kGnUth2teEFdHth/9gXLKxn1RHoxF+ciDayX56iNZjx0hyZobdg8jRqwJOuN2LpDczx O3obNIHRDCATLnk/oGP3POJUbrlGHIaNyn7AiMNd2zUCivmS4IWae6SfG6MDWkiPq9a7 IDog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784411820; x=1785016620; 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=lpxItdTSSRPz8qQrNM+YynkVLo80ONeSs8p2LlFqFRA=; b=bDSm8swZkyxISlV2ZmhWGbhW/nMbtsuaveSesycnSK74WVj7YnQ59NsGPKxn/FVbCk X77Z1pTWNxgK1LftuXB91+XVqjjJWIjBdEpZSQBCCG13GbzEsCEn7j3ve9/EbNlPsuyn nUw99Hq8qqC1eG3L0ge5fED0s8FdbNrW/kvPsyIoSH4SzjM7OrKm2r8dDnQyi6DDmldm ZF9w4Q0Ios/sCmcow6qr/HN5Ip4P2fcM7f+OmXSEo+hB7AVAZ1NBqjp1Y6MG/RDMBka6 R0ZP6V9OjsINfONBj/RO7gSW9h8JcJW88Bc2ppCDP4nMwXjBLQMGpB6OPLdLN2ySodlU Dhfw== X-Forwarded-Encrypted: i=1; AHgh+RpMPixqyn1wP0s7z8jEoZc+TMPhZb9tn1zObc8T7BDM5Rn5eTZT4eOZor37JjIrp0tZoytRzi6SmV2X3w==@vger.kernel.org X-Gm-Message-State: AOJu0YwXtN+UL/J9QTg7weik+POUwR42m8Js3aJSdO1drLmhQ29Q9TpT p5RTwsB0DoZUpqkM1H26AOeMSlx/ONEwrYt7eyBuiA5At5CCk/nqPrpx X-Gm-Gg: AfdE7cl6+dl+m8dL71n8JgndxNXRpYAoq5tcUrg26WyLgJFe3uGu8xNuixFPMenZ5r7 cz6l8ZAab2Uv22wCAbkmMq2WBMDpay6AixR5xNp6JfCApN5whgQTj2Nj5AQYGnpj+5FODQNt3fG gh9l960EXwR2J7YETmJy17kU6CBnoXmV42wHDtaClxWYX6gVp75c9Es1W+bXEoxPqFwhyJ+nAUg b2R/vdB/wCFPF+n4XIw7o1cmOb+xjfgVc7hx+S+KHKZwWfsGGlQRwPTJeEJUZPsK4fLpvQgVc+X 9fyIGgWNQHUk8ZVIEdNTOVBdIv+mpMnVey/VPX+nhiwAUDs4k1HnrrYevzePOdWVUB4vTmIZpzb qu2a/kGN2eQ7EROcp8vun5NA1KBPdwhgJWGxM/XF4cETMBQms8QGfHkonM4QTRNntiDrFXMYDiC FZGExwLG3vBoTEPwfjbJxkOhL3+zn+vOAC0IJ0N4j4/N5p X-Received: by 2002:a05:600c:1911:b0:495:4fd4:619b with SMTP id 5b1f17b1804b1-4954fd46219mr50068585e9.1.1784411819680; Sat, 18 Jul 2026 14:56:59 -0700 (PDT) Received: from localhost.localdomain ([188.26.50.240]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-4954c0a81f7sm101199835e9.1.2026.07.18.14.56.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Jul 2026 14:56:59 -0700 (PDT) From: Eduard Bostina To: Aaro Koskinen , Andreas Kemnade , Conor Dooley , Daniel Thompson , devicetree@vger.kernel.org, Dmitry Torokhov , dri-devel@lists.freedesktop.org, Eduard Bostina , Jingoo Han , Kevin Hilman , Krzysztof Kozlowski , Lee Jones , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, linux-omap@vger.kernel.org, Pavel Machek , Rob Herring , Roger Quadros , Tony Lindgren Cc: daniel.baluta@nxp.com, simona.toaca@nxp.com, goledhruva@gmail.com, m-chawdhry@ti.com Subject: [PATCH v2 3/3] dt-bindings: leds: backlight: Convert TPS65217 to DT schema Date: Sat, 18 Jul 2026 21:56:32 +0000 Message-ID: <20260718215632.3295049-4-egbostina@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260718215632.3295049-1-egbostina@gmail.com> References: <20260718215632.3295049-1-egbostina@gmail.com> Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Convert the Texas Instruments TPS65217 bindings to DT schema. During the conversion, the following updates were made: - Documented the 'regulators', 'charger' and 'pwrbutton' child nodes, which are used by the boards but were missing from the old txt binding. - Documented the 'interrupts', 'interrupt-controller', '#interrupt-cells' and 'ti,pmic-shutdown-controller' properties, which are used by the am335x boards and read by the driver. - Named the regulators 'regulator@[0-6]' to match what the boards use instead of the dcdc/ldo node names from the txt binding. Signed-off-by: Eduard Bostina --- .../bindings/leds/backlight/ti,tps65217.yaml | 123 ++++++++++++++++++ .../leds/backlight/tps65217-backlight.txt | 27 ---- 2 files changed, 123 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..9586e08f1b1f --- /dev/null +++ b/Documentation/devicetree/bindings/leds/backlight/ti,tps65217.yaml @@ -0,0 +1,123 @@ +# 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 + + interrupts: + maxItems: 1 + + interrupt-controller: true + + "#interrupt-cells": + const: 1 + + ti,pmic-shutdown-controller: + type: boolean + description: + Set the PMIC to shutdown on PWR_EN toggle. + + 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 + + required: + - isel + - fdim + - default-brightness + + regulators: + type: object + additionalProperties: false + description: + List of child nodes that specify the regulator initialization data. + Not all regulators for the given device need to be present. + + properties: + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + patternProperties: + "^regulator@[0-6]$": + type: object + $ref: /schemas/regulator/regulator.yaml# + unevaluatedProperties: false + + properties: + reg: + maxItems: 1 + + regulator-compatible: + $ref: /schemas/types.yaml#/definitions/string + + charger: + $ref: /schemas/power/supply/tps65217-charger.yaml# + + pwrbutton: + $ref: /schemas/input/ti,tps65217-pwrbutton.yaml# + +required: + - compatible + - reg + +additionalProperties: false + +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