From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 4809E45BD78 for ; Tue, 21 Jul 2026 09:57:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784627833; cv=none; b=k621qmmH6KOcjXfLoOwLu9uzbYy97PdZNGjx4M7jRF3ZazuFr91oiLFyw2EKa/3PC2l9FpuzFe6WGLjtI6FDXpb+eEkmxhmg6VeFFbNYqYnfk1qoFQauUs8oTuUlfDnHcHAGfIaxqHD0IdxvsPkkDl3jvdnhHl94cBQ5f7+5juY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784627833; c=relaxed/simple; bh=EC9J2p+NWdZDh6qYGElGwH6uNYtFbFpKeCl/eqIzYmI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FxK8+SSbG+U5EAj9/EtXI+zYnZqTdfih07FsP+z6DpnVD32pFed/lfF4mGuk1YcCt1GH6aCar22MZN1WQzNG4DV731TC5JuBb0NQDSmJdrPddL9JT+rve6/pJJWEBTofIurO//HYulTKAPhi9FVPixZvIIlDqUBy99nVlslWtow= 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=Xo/KaNlI; arc=none smtp.client-ip=209.85.128.47 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="Xo/KaNlI" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-49545ba3d4eso24285605e9.3 for ; Tue, 21 Jul 2026 02:57:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784627829; x=1785232629; 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=uYy6S/jtdoMDjLal5OCIm5ySlpSkJxRegyQDC28P/fw=; b=Xo/KaNlI8nNPRqU3PJjLcJYq5veMq44xxwsQjdCRR39E52ZxElB7q1k+9mQEvatlCW LEgxtKFr4YFxX9C4JvbN2R4OC8/QwnnfMoy70U9MeWC2aSj4q+YzjklEPxDyfyF9DIsN gZEszJ4eZqyd2UjRlUehU8n5xlxWtEJfvUT3p+DbF/5Afb426NIz0hyswgnzVmNsfcfA 95MS2pIiYX0ZS+O8jn3SjFMVtbKdw8etxoJqnkVcJ96XFxYeU5Gr3yXoXot5Lm1oByL1 oOLMxZOsYJLuJgtbTmkq8ji5Jn7cNAw/1u+3mEXE2aEIe4pzkcqkD/9zrV6mlPj/uicz V0iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784627829; x=1785232629; 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=uYy6S/jtdoMDjLal5OCIm5ySlpSkJxRegyQDC28P/fw=; b=SrNQXZh2wfBh1nfzn3lvBgR5BnmC7wDjJnqcULF3Wj+sfuVMPzUmQFDvH/ZOC4NO4U /EBVfOZrZTMKBiXKK0KsoIib4hHk8JFM7wnzZEEePIAubq7asWQTp9uB+vmyLJn6IqKg 8SUl9pOtUsU+QqyiUpMFrcs77BIFGg5LjsvFS6+bhhI72/oO2AaAcPHJNmlTjEa06V3R OpgzIKFu/QV+KyR1UHcWxu2OmpqTunqgvDUikRTJe1VCo06fbS8k5YkhRbXcpKneF2km Qmygk4TkyHzS3VkN+OzDeobYugU4zp5ob5C3yu9uDwbsOrKPb7khIJaR3LbJyDIIrH76 P8Uw== X-Gm-Message-State: AOJu0Yzw+QM0WbCGEK0c/6Mkn7O8PlStcBvsEXTMSeV9pJ0FHueMAoZA YCgcKr5ZKZdHu0eHN1O+cdkfmTXur+Pa9YclTFkDeAzYZ4MQkqG3g1ZE X-Gm-Gg: AfdE7cmg5Lq3wmM/Pi6F/iqWDTFoRBRK8UehEbsUL8Yviw2ED65Wl2NnY2Mb0O8aA2+ Utomh1S+zeHaEzzbUoYnaMoMud1PjID8957bYHG9R7UmyoFYbtSbB8xUQYmNdS3if9UAHPKsrRX M4KCQfNDfYjpHWkMCHXtkV4uplmo+C7nPbx8GnUlDWctRBdK4l0YNSOyq1yUvmDzrUJu1GKOhkl m7ooStb8s+/67yEk2irEGjCtaxXsw/qPmzv4gNThvUOXaPZ5npBN75yb8knPShG4gfldzb3w818 GDVERbVkQI7kOF1gOWBTXGErTbcQO7NmDl2gsOhYvOwrkAWIg25ppa4EhZ1pIoV63yl799EgMR7 Iw1WjqG/y3wwPNYCaOGgWwqTrtqr0MqYsimoM18bvg57lxx9NOtPYpm24nf8wqJguH98/054G8r CNnbkwKTXFxQ3hJh33D397d/MjQ+UYDJ1Mzg== X-Received: by 2002:a05:600c:4e8d:b0:495:54e9:c080 with SMTP id 5b1f17b1804b1-49554e9c2bbmr59276625e9.31.1784627828522; Tue, 21 Jul 2026 02:57:08 -0700 (PDT) Received: from xeon ([188.163.112.51]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4954995b78dsm227476185e9.0.2026.07.21.02.57.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2026 02:57:07 -0700 (PDT) From: Svyatoslav Ryhel To: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Pavel Machek , Svyatoslav Ryhel Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Subject: [PATCH v7 1/6] dt-bindings: leds: leds-cpcap: convert to DT schema Date: Tue, 21 Jul 2026 12:56:48 +0300 Message-ID: <20260721095654.429346-2-clamor95@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260721095654.429346-1-clamor95@gmail.com> References: <20260721095654.429346-1-clamor95@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 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 ebf7cdc7f70c2..0000000000000 --- 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 0000000000000..c8e7b88a05ccf --- /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.53.0