From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 D154B372B50 for ; Sun, 10 May 2026 11:08:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778411314; cv=none; b=M6wM/VYL9FDDWY/p5RxUb5SlzuwdfoHVbvniPB97NQsdVBwzBzMEd26+IvoXx6CK3p4KoZ1v9+hJSGjXkpzkJ0fYlvsnvdilVJst1d3iYEtk43EIU8FcgZzcLIDw++uMXkpIntOlHYAk7C9dz4VQS3U/sP5F3gy99ZRLRJOzkWQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778411314; c=relaxed/simple; bh=DrNGeBlRxTjZoXBtwt3WHPiWKByZ7OZ+6oYAQENqEx8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WO7C9KmzPu7EZREoyTmTmDYn/tagO7HgglE3Zm3/33uPci2L6fnTcLKLcju7OJD0aPzy+qJAnXPXJkZeouVyLa2bnQFD2u4H3ihZMqkpybTPiNldcci/QG7E5HE2V3Y+tvuID13f7T+lzvHpvEtu7DPtBf7ElQYPDMQtgD9OGtM= 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=i+7VMlDh; arc=none smtp.client-ip=209.85.208.41 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="i+7VMlDh" Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-676a89de629so5489959a12.1 for ; Sun, 10 May 2026 04:08:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778411311; x=1779016111; 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=KFT7mMG9k0k/BXen8CQg8hnB8vdYe60xOPZB+uYBrVs=; b=i+7VMlDhEnQTy6TQpSATWj+W9wpDGc/zGemHEZV/wLPBZVyGo+M/4FGrj+0Jx3GxPh bJ8sN8IDtPs3d/OtGYQfhVUsF1bXJ7WCsBFXI4kviAYyA0GOZqGb39zjqCxQL5YI6bEo hJlBrjsa42xAJWaglmWB3eNMkBkoxeDEf0wG9HsmU43ieNrSiQ7FbblqZjNgfDEoB1Rw zE9Y9U5ez4fGb6V3Ln2yy52HYCJRCGmUARpepDJ9Ql1QBSVwSameLeh2jSnHST4a0ntl zTaiNpPbT1hB5S3v7Wt+rSFwu5bB7t8PgD9bkO4nrVErDT/MXRjvDo4RgBDNDO0Ekm62 bo3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778411311; x=1779016111; 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; bh=KFT7mMG9k0k/BXen8CQg8hnB8vdYe60xOPZB+uYBrVs=; b=EUA+kYO1UXerrX0iq6EEYH/+mE2M5UtLJAcIpCcjXIOhf01kmDW8LRSiV7qVlpkcKJ kFmI6uFTWjxUe/KzHkmMpUajl0IXiA81xZHxN5lEKXlhvkS4lNrYe8C8FJ6e/qA8mr51 yd/rEpIZgZtIGRJuRyOal1IwxlgGTNdcB7DmUCov3iFYAZ0SOmOFu6q0tXeOSppbbkKp zNJ93azNM3V30M7jH6mokulhHrHSQLnHHhittgXVIfZPOPy1hgLViPMX5onnHY/Hg8TG AbmFF+0lmWhGUmreIuXKZuDCmGmPvAsEOLoT78/aMcfJLnp2ZHidGT9OB8ATMytpwVua koqg== X-Forwarded-Encrypted: i=1; AFNElJ9hmUvqoKwem4goZ+I+whJEWxfj2EC0PdH7vKBiaaBVAfgxB+Kml92tfEvB08cS8rCjioNuie5nyWPlg30=@vger.kernel.org X-Gm-Message-State: AOJu0YyBEMgi4XSs66/5i0xn7LNqFFXmArimZ0hua8eIsf2s2n/wzCQc c2YKD7Zv2L7dDrDxfJVwXmX11rVrVo/ucQVYdkZSt+SF3qBn5/IwpWd6 X-Gm-Gg: Acq92OHmzrEt3U5pM8JNHy8tY9IOIlZNMFrJis8uJctI94BTIcMEQLCoXTojd5CZ69b LfPPxXgJtKmk64TIwAfp1H225n6FmZibZO8e9U9uutLInZrsUhlGoGGoSGaAtR5xKHgWXK7Nx5t bEK4giPRZSYSXi3Y9D7uDGnQ3ltkalxv+I/e704xVYoSoJIYLbR1qH/0IFR/GJ22SoCbPaZOKTu iCUfKc47JGIGOJg/yZ87WTtyuje9eACnWRsxcb+WO9T3ITqOcFSp9NIIm6rz9SHPiRGEyHCbczn MZxM+IabsgrclwKKBWvy1O8zBKcw1raSpVxBE1XVEkAmj9xU1scqH+K7tDIHQ3MK1aWRpLFB6Ma JGyGEEzSPWoFkNpFh8Ej5zyJi4TzloqcVygs2a+XpUsWp0HG3IRacv7JHO9+d6HS8NRyfNVQCza srSF/TyYv0+tZjrFjUQUYBCJI= X-Received: by 2002:a17:906:fd84:b0:bb8:fdf7:e132 with SMTP id a640c23a62f3a-bc56b9305e6mr1075475666b.18.1778411311105; Sun, 10 May 2026 04:08:31 -0700 (PDT) Received: from xeon ([188.163.112.56]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-bce7a3fcb57sm68146866b.60.2026.05.10.04.08.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 May 2026 04:08:30 -0700 (PDT) From: Svyatoslav Ryhel To: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Pavel Machek , Svyatoslav Ryhel , David Lechner , Tony Lindgren Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Subject: [PATCH v5 1/6] dt-bindings: leds: leds-cpcap: convert to DT schema Date: Sun, 10 May 2026 14:07:59 +0300 Message-ID: <20260510110804.33045-2-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260510110804.33045-1-clamor95@gmail.com> References: <20260510110804.33045-1-clamor95@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Convert LEDs devicetree bindings for the Motorola CPCAP MFD from TXT to YAML format. This patch does not change any functionality; the bindings remain the same. Signed-off-by: Svyatoslav Ryhel Reviewed-by: Rob Herring (Arm) --- .../devicetree/bindings/leds/leds-cpcap.txt | 29 ------------- .../bindings/leds/motorola,cpcap-leds.yaml | 42 +++++++++++++++++++ 2 files changed, 42 insertions(+), 29 deletions(-) delete mode 100644 Documentation/devicetree/bindings/leds/leds-cpcap.txt create mode 100644 Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yaml diff --git a/Documentation/devicetree/bindings/leds/leds-cpcap.txt b/Documentation/devicetree/bindings/leds/leds-cpcap.txt deleted file mode 100644 index ebf7cdc7f70c..000000000000 --- a/Documentation/devicetree/bindings/leds/leds-cpcap.txt +++ /dev/null @@ -1,29 +0,0 @@ -Motorola CPCAP PMIC LEDs ------------------------- - -This module is part of the CPCAP. For more details about the whole -chip see Documentation/devicetree/bindings/mfd/motorola-cpcap.txt. - -Requires node properties: -- compatible: should be one of - * "motorola,cpcap-led-mdl" (Main Display Lighting) - * "motorola,cpcap-led-kl" (Keyboard Lighting) - * "motorola,cpcap-led-adl" (Aux Display Lighting) - * "motorola,cpcap-led-red" (Red Triode) - * "motorola,cpcap-led-green" (Green Triode) - * "motorola,cpcap-led-blue" (Blue Triode) - * "motorola,cpcap-led-cf" (Camera Flash) - * "motorola,cpcap-led-bt" (Bluetooth) - * "motorola,cpcap-led-cp" (Camera Privacy LED) -- label: see Documentation/devicetree/bindings/leds/common.txt -- vdd-supply: A phandle to the regulator powering the LED - -Example: - -&cpcap { - cpcap_led_red: red-led { - compatible = "motorola,cpcap-led-red"; - label = "cpcap:red"; - vdd-supply = <&sw5>; - }; -}; diff --git a/Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yaml b/Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yaml new file mode 100644 index 000000000000..c8e7b88a05cc --- /dev/null +++ b/Documentation/devicetree/bindings/leds/motorola,cpcap-leds.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/motorola,cpcap-leds.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Motorola CPCAP PMIC LEDs + +maintainers: + - Svyatoslav Ryhel + +description: + This module is part of the Motorola CPCAP MFD device. For more details + see Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml. LEDs are + represented as sub-nodes of the PMIC node on the device tree. + +allOf: + - $ref: /schemas/leds/common.yaml# + +properties: + compatible: + enum: + - motorola,cpcap-led-adl # Display Lighting + - motorola,cpcap-led-blue # Blue Triode + - motorola,cpcap-led-bt # Bluetooth + - motorola,cpcap-led-cf # Camera Flash + - motorola,cpcap-led-cp # Camera Privacy LED + - motorola,cpcap-led-green # Green Triode + - motorola,cpcap-led-kl # Keyboard Lighting + - motorola,cpcap-led-mdl # Main Display Lighting + - motorola,cpcap-led-red # Red Triode + + vdd-supply: true + +required: + - compatible + - label + - vdd-supply + +unevaluatedProperties: false + +... -- 2.51.0