From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 37B243F88B8 for ; Wed, 20 May 2026 18:23:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779301400; cv=none; b=DN+eM5hQxRc8yh26OmMCiVL/wCq8hqUcuXEi70NdrmPMw2DyS4O0UNIE1SL19OpFs6wAB0pyC9NlF9ReQzuG9X6PL7AeN68yEy9YqOvRHBXpEAHHKJgpDNWtTe1eXNlUSCZKAN+3Z/vfw38b1qeLfwDEtdnNiiVa3UhSjoUANJo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779301400; c=relaxed/simple; bh=DrNGeBlRxTjZoXBtwt3WHPiWKByZ7OZ+6oYAQENqEx8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bmUysX0k1w9gK9seXps/XunyV5UmWD+s5/1zrnjb+n4gJ4CFfEsXJ5h19noIjQ5OverKykkyRa9BX7tv4ms/UmDil+pzIY3gOjCihRUISS14QXFs7GzXhRQA4yVJitpcQMOAODAzmXj5G5ljPDz0W1wkEsWb53wjGhsW5h7shm8= 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=akt16iCY; arc=none smtp.client-ip=209.85.221.52 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="akt16iCY" Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-44e5624c053so3223552f8f.2 for ; Wed, 20 May 2026 11:23:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779301397; x=1779906197; 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=akt16iCYWyGuFuq/BySn+yBAP22U+VauCP1VfFjlxMpEu0M2DrcMBMHrTJ9padWPYD BiBtSU0CWO+TPWZ9cpQNi6LhC6EljQflx2K8LEl+lsb/iwLG7y49IGopsXLElVo83Wsc H9iMB1H2w68rIl444/CBLzCxoEVIXN4v9qfoTHrKG8622u16TJ07FF1LOEAWyJw4RPN6 r1XI/8HeaxlPKUV5K/03OEmk8qdrg51CKoX8UPZY9OpN0Ym7O5kaytnAzbxhTVhZGZmH ZwvUb4z6B1A46gCpoZ8D4ljd/zsPNJqWVp9bcvEoMJICk55tzBXaYwW4K16g4468CzDp E/kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779301397; x=1779906197; 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=R7eu+Z8do/F73puWi6BShT2xAObmexnHlBZlom/nIHHZ2rNFWpTp+W0y7nvHRW7OPe io8Y8vgGPG7VQXA68qHQB7WRZ+FkGPOYvuqulQ8Bo3b3rzM/fHR0zq0WbaPF0YuxE79e 4GBXp1QooHMhQWy6SniB96kFLRhXWVm7FLqMfz8+j7DEkkyZeyJuPV3WsOQnvEyjcIl4 1+v0hZ25hHHxSGls/a5xeYT50Y+m6n+0zt0oU4JAILxRzkYmewlxji713pkVZBvSvxQz as39TjSBgQnnmqkxKnjfklt7zdGvbk400fxxRLrBls7NkiuaZlBWReknpN4s6iqwwS3J 62/w== X-Forwarded-Encrypted: i=1; AFNElJ+klliPaVFXYYvkkTaG6eA3uqCOLmdSnXL7jxtdkgx4XzNrhFqYt7kyiatMFJe22DFUdeUHa/oYeEPH/hU=@vger.kernel.org X-Gm-Message-State: AOJu0Yyl6XPMjchHmi6EZ3Ygk9mYHH+tTZPG3ohLkEd5l/yXpUbn5FlP WlLsdAPEqlNSUegpODo5lntjaFDmwTFCeq3Ck7N9URj3dgWwR66u6nKW X-Gm-Gg: Acq92OEYoQWw45nnG0Q7Zrxrwf0vber4SpDTOqFkmiV1YY76xP/r8JiUDQ0k2oIMQ2Q ze4ap1e5JIqYN88vnHAbALZ0AL9Qa+N+jgtJ7K/syUDeCDLj74VnI8temLtZXrhwKaPWlNL2phK Nm23qR7OQ2BT9QkyV2SD/wbAduVyjX5Bfw7eFrUKQPaHFa1GOoJwXin2Ev1Kf3KOvH41r4wIXmA PniVNRgxQA4hqKBC16cuAGevQzNxHmgwv8zyCl06TdkEYRH6HpD0EjJBmt/xOpL/Q+OfhLGmj4h ez6quAVXwCAj/6qaLMqhsauSfiutv3zm2rVPuOUMlviJJ6vF5ewKsj9gCLpuxuHVFQHQaDzKiyr nUg8zw6eSgtWgF3mMloIUANA6+FOP0sDQyD3RDP2yFa0VrxRRuP6OAXlzbTpaOXGPQEpOwgNbla JtZh2UyINsIbZa X-Received: by 2002:a05:6000:24c9:b0:43c:ffee:ee94 with SMTP id ffacd0b85a97d-45e5c5a0198mr43839740f8f.11.1779301396553; Wed, 20 May 2026 11:23:16 -0700 (PDT) Received: from xeon ([188.163.112.61]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-45d9ec3b18fsm51297739f8f.11.2026.05.20.11.23.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 May 2026 11:23:16 -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 v6 1/6] dt-bindings: leds: leds-cpcap: convert to DT schema Date: Wed, 20 May 2026 21:21:19 +0300 Message-ID: <20260520182124.117863-2-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260520182124.117863-1-clamor95@gmail.com> References: <20260520182124.117863-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