From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (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 E6E3533C51D for ; Fri, 17 Apr 2026 07:11:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776409896; cv=none; b=n3KUJhSNhfStUG3vV8nC5a/JiWG4PSkMuegbZ+ep3V0mf7BDLiWpn+C7u+vrERLYGRgxmwBjql0fHnLKbeRR1dWDJMFE0gRbNZ1Moll+0xeCnJY3UGFgbHCUnl2QSsY+q7vfmTDj/CWtYM2s7wtypFH2d1K9VsP5Pwn1cHljz0o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776409896; c=relaxed/simple; bh=sJYSHWc09xFtiXGLxIY3eCmrqPgEujr443cRCV1hpP4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iNBQlM6ew92yFRIY9Q+RzEBgj7dlJ7kv3Xi6xnK8fL8XWMepjE4Vz1upI36vIyu288+Q/G+GpMJ8DDmkaQAxuFkRQOCxTR+mPiTyYxiugG+ujELEdM4aU8tk19JnnGcr+y1kuUouW/W6UMcgZbxM61kQkhIQHrl6TFpKCwOy1X4= 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=cQD6PgRx; arc=none smtp.client-ip=209.85.208.172 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="cQD6PgRx" Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-38dd575bca3so13610031fa.1 for ; Fri, 17 Apr 2026 00:11:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776409893; x=1777014693; 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=eV+WP61ShKOblE3anHz+BLN4XFN+aFPa0yNq3Cy5s6A=; b=cQD6PgRxb+3veKbVFBchJmNr/o/P57m7zd4gALCcOQJd9NmdOSUf/SA1PCokVdPib2 h3gZ3m2/MOiKiDiGD3kEer7/eE+c9KK6ktDMHDf8YBLP2H+AVy9OgL/d8cNC/qogClCd hIIVRf1B7waeys7CymJ5xXi8PKV6ovZie2xVeCD2Yj49Pn2J8+Eh1JJcY2D9qSiMlpC/ 0T6kIvoBzxR7aVE+2/UQRJKWCWRHrGE2SS2vaGkGazCro9AeMzqW/E18aFuEfbH7XQYT ePfsXm9/wDKhyjXFZRwIyItJ51jJZdexoiRFx7e5XnLFyMWU8bRMi3RgJMAKnMuthhv1 +0Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776409893; x=1777014693; 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=eV+WP61ShKOblE3anHz+BLN4XFN+aFPa0yNq3Cy5s6A=; b=CRIYmpimkfPKUApp1j8W6/AbHsw4E7TyZjBLD7wPcPNJ3ipxnRaKBs8QOJMXAVOF9D sjg7dHUDUfcD5sqOHib70nbRmj2p9pc5QMWvacxG+4nQ+siO5Ql00mDY7vWrIPXnDjOu 4V/BmwC7cSLP7QSQLhM2s1sFdDRKyFC9SnieDVmHYkYm20mAR69+Kaf/xgkq5hPh7WES Tzt47c0hXpJnzI3TQUp0J5hSGTV8TfiU9MbMjSXN0qW0ObibSQ9zed4ZkiD/dNfGhLfT fJ2X2Recu36EAkDEfpzhfEfHSWulEarx/zokdrfreBWnYfYwq8p5tEECPvmsPjzNOBmq qrOg== X-Gm-Message-State: AOJu0Ywe7G0UUArx9XbOiGADTM1OWNk36+Hm/fikG7uH5lbGrDZeQHw/ ZlqCfwi6e1Vovr+4+6yux1cBnBLSp3dtaVlxaOPwtJ6wHj338cULOL7W X-Gm-Gg: AeBDieshCsdSW7Jq2y2bkNNvm+XsT1Bw4sl9s5Sk4Qtw2k+wgGL78cVA3JZredguYKK UDrhaKbC9nhCRgGUVscMe9yDIqX7whT65b+R48yqCMNvA5JtHCQ5CGFqeKpFWQ9MJc9U7BSZvIl PKWJc3YqynixPVD7rH8hwQPo/KcWk4/hx/+KR6gQa2RHjeG6H/JlGSugcMaCg4gZ5xOn+rpQq0w 19AGeX28P3g63nr3UX4kNs6iEN0CjpLll+fxP+6tGsVQl8f17QYAK2Set9flcOa2hdasBudG4xn bE+ZK8Fd1mRRnSZ1gKEoaZhp0wERfmNX39BFYVxYD4tDLd5tN84eQsV1A70K8hZQkh0Oenyz+1W 1E290lCrb0gN3HQRQB5do00As+m2mLQSQjiwOOw2Amq7JDB7Q3XSWIGBwrTKB9NlkzDLMntriJl mrVOla5T14LZfgZyI9k2VvLTk= X-Received: by 2002:a05:6512:31d3:b0:5a4:156:aea3 with SMTP id 2adb3069b0e04-5a417174a77mr492829e87.7.1776409892978; Fri, 17 Apr 2026 00:11:32 -0700 (PDT) Received: from xeon ([188.163.112.56]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5a4185bc240sm162772e87.23.2026.04.17.00.11.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Apr 2026 00:11:32 -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 v4 2/6] dt-bindings: input: cpcap-pwrbutton: convert to DT schema Date: Fri, 17 Apr 2026 10:11:02 +0300 Message-ID: <20260417071106.21984-3-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260417071106.21984-1-clamor95@gmail.com> References: <20260417071106.21984-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 power button devicetree bindings for the Motorola CPCAP MFD from TXT to YAML format. This patch does not change any functionality; the bindings remain the same. Acked-by: Dmitry Torokhov Signed-off-by: Svyatoslav Ryhel Reviewed-by: Rob Herring (Arm) --- .../bindings/input/cpcap-pwrbutton.txt | 20 ------------ .../input/motorola,cpcap-pwrbutton.yaml | 32 +++++++++++++++++++ 2 files changed, 32 insertions(+), 20 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/cpcap-pwrbutton.txt create mode 100644 Documentation/devicetree/bindings/input/motorola,cpcap-pwrbutton.yaml diff --git a/Documentation/devicetree/bindings/input/cpcap-pwrbutton.txt b/Documentation/devicetree/bindings/input/cpcap-pwrbutton.txt deleted file mode 100644 index 0dd0076daf71..000000000000 --- a/Documentation/devicetree/bindings/input/cpcap-pwrbutton.txt +++ /dev/null @@ -1,20 +0,0 @@ -Motorola CPCAP on key - -This module is part of the CPCAP. For more details about the whole -chip see Documentation/devicetree/bindings/mfd/motorola-cpcap.txt. - -This module provides a simple power button event via an Interrupt. - -Required properties: -- compatible: should be one of the following - - "motorola,cpcap-pwrbutton" -- interrupts: irq specifier for CPCAP's ON IRQ - -Example: - -&cpcap { - cpcap_pwrbutton: pwrbutton { - compatible = "motorola,cpcap-pwrbutton"; - interrupts = <23 IRQ_TYPE_NONE>; - }; -}; diff --git a/Documentation/devicetree/bindings/input/motorola,cpcap-pwrbutton.yaml b/Documentation/devicetree/bindings/input/motorola,cpcap-pwrbutton.yaml new file mode 100644 index 000000000000..77a3e5a47d1a --- /dev/null +++ b/Documentation/devicetree/bindings/input/motorola,cpcap-pwrbutton.yaml @@ -0,0 +1,32 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/motorola,cpcap-pwrbutton.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Motorola CPCAP PMIC power key + +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. The + power key is represented as a sub-node of the PMIC node on the device + tree. + +properties: + compatible: + const: motorola,cpcap-pwrbutton + + interrupts: + items: + - description: CPCAP's ON interrupt + +required: + - compatible + - interrupts + +additionalProperties: false + +... -- 2.51.0