From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 CA1AE2FF17D for ; Tue, 3 Feb 2026 15:03:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=209.85.221.53 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770130997; cv=pass; b=KvBvX6cdkcER892eJraa1DhjZc1x6rofNkTEoyOONzJtlOeQ3qzkQzl0ppG0rKN9BAGGh5qTq1aYUm2LhGo9D6EeC/fyU3lBi1HAPzA844v7zcaE9PSX9VzCN/6xGx/0uQujolMX/9FyZkyqz4IVELgDIwA4pa431LLdAmG6Nfs= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770130997; c=relaxed/simple; bh=s6TMw/t8TwmZ9hTFL0cXJhHoIVq+ti2CBVZ7v8bG9vo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=G2gr3aLhj0hZe3mlvWl81Bnp7b6TK77nYppeQ66b8VxJTkzq75gcHm21x2j2UHbdicXjRyps2cUjHwB0/X7d4nnHlPe+4aRt42YvYV0sY+kSCjIGFDZ9+bnXSpZMgbNIWXbCO2cSfyaxP4jm7FGjb88gt+XVmwGk/gBabEQMA3Q= ARC-Authentication-Results:i=2; 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=L26QmPr3; arc=pass smtp.client-ip=209.85.221.53 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="L26QmPr3" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-42fb0fc5aa9so3986747f8f.1 for ; Tue, 03 Feb 2026 07:03:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1770130994; cv=none; d=google.com; s=arc-20240605; b=fI7VVOb9OR5v0Jq0eEnkJlRw5GGjn883OEaK4Etxppju7dyWnOGPwBnQbRzl0PKyKc 0yYoDZo5t8rdXH6KbPKeZBaAMcR/8Qp68mrI8ZjfkuGoM4llZtHA2cwgfSBl++o/HQIo XuXk8aiyvfSnhj4mJ5FNorjE/s/Eo8plBP4TVJxzdq/qRjd5+JFqRiJ8IJAUVdWS5Nwd RFCtoNY+EqtZgeF2mDrZTN2+o4t+yo+oH/6+goskI3KfsZYl2dihFE6nSUPO8pmmAVq9 icPRWVwjLHucoGJfky5gi57DN7sc7oSDZ7gk9FaS0DHshKUVoOvb6uStftTLuveuzT/E jcew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=VGIYTuEUulJeU0/OSREhm3zUfZwfDji51fjUfoXxiEM=; fh=S0y7muvcHqUCToBRmG2kUbQU2ZKfml51jS7sX+PSE/g=; b=Vb/YxOxn8ktwgwue2inmtNod1wcwbCRWDCKsSiysyz0nDQDVC6qmtwjaszUF0yRL6P Xl3BywIArxjLIbfsPK4DQaoFTODqp3P0bI2cG+I8MRMLBDZAoVb7n9kMnY12J5389+KX i9PM9vxY6e0TpZDS+g/VqIQR4MKvcp6DCt7Q566umtLMBUxYUS4BZRCksN83KIbJqwK4 MUxT1rAY/FyvG0mqpVFkz4qiLjzbup83XkDpk5rb3eJezX+ewoXNKqovMuNCKZiBxHEI 0CGYddc0HqGYqbZFa1dX+bt34KRxVe3kiUWTRJ3K8550kl4tkiJ+vT11vHnhYlBvSjbF 3xXw==; darn=vger.kernel.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770130994; x=1770735794; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=VGIYTuEUulJeU0/OSREhm3zUfZwfDji51fjUfoXxiEM=; b=L26QmPr3F2q4pZ10zq18C2Zy/c+5gclgQWPEw3YiAjWIFfHdVu3mMc5tlVwMrA+DCr V3duTPPiPCJv5jbIddMXKjwyc+0ThfFfnNetQMq3i0vvskDtUB61AEt2ejE6wlxhyrHT I+WCwkHgRlH8hgxJdfA58sc36mH5NS816iQv8CwxHJK4xuxv580QrVoj53btHyu9kIlJ u5aC2S/18T3MVNWgwobOJvegNRouijG1I9cJ6d++XXjSw2Ubqt/Vmr3s1a8KyYRcZqpV /hyYFwwAqSwFFSLq5slW8ZmJ5U0vKqACnguiOTZe2w//Hws/1DXUaJGStvWdDuFx4KTw ieJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770130994; x=1770735794; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=VGIYTuEUulJeU0/OSREhm3zUfZwfDji51fjUfoXxiEM=; b=qMXAs5Pr1vkJIlHCYr9xooPNGvW6MpoafnoPaEXaXPsIIoOXp+54ln2MprbiyWy9B9 gZQewVlCKXvxfelUX8458b45suAMkbQ2tuRPAc6NgZhogGb6C3s0bjFkravTaJ0enMs7 mYpdmft2ChoAq+mN8sLlAJ2obIibd/x8GvZyZKxZfGmsdlUPQX5phVNgQXz4ztuvTCHr PvRSNXPe7CLBFIANTnU4xeULJn5T+6xFKgoQKWfqv3EDeeHo9fyo8BP77FKf87OEqWCj MY9tOjJ+FPq9DAt870L4Hui2oBIMFap0vz1/1XN7E5ZpdCrIbpAXHBj7i2TsESbI9OPs JDWw== X-Forwarded-Encrypted: i=1; AJvYcCXzXZRVMyFBDZwftJwUS5n3jy6T6o1PJ4boCkUavWUqtI1ZOEJBG5jy2prlVyoecvTPqb0gQhn7tGXu7eo=@vger.kernel.org X-Gm-Message-State: AOJu0YygOVMs+MaSRqBR1UVBuAQ+8V0YI25rjbIgzeMiaef+rwUb/47Y IKZ6JQ8Om/hlPkZzNYaNHeI4NOoCIXNNy/q2PekkXIp3NbDOnmgEtaZXCGE0+OLnWKA/EbhUXTg 2jqc+XC/sUFXFXUpL/E92KIW2RBh/vzk= X-Gm-Gg: AZuq6aLglLwDn+spZ1f7qzGAkuPihIxJfcoF8in0ub9+/HSUgZw3hh7RmEIFwPgMrIR 9H5hx0OiE6Cj8f/VFXDuzVCsKWIxz460haa8nmHqZnuj5IZ06c7Q7nZPyv+VLRehQKWicPdTB9G b9mL+viEv6hjwJGcrAmUmZ2mjZB2hIQ+g6LMdjCIFlgZqf+fdi/D3MSDnT3fnNu5u6QG5Pxy6rV 1bwF7aTAh6M08G8YB+fm/gavHYg6rsTALPjXuQE5LczOO7vrG5DhMzgDdVFcuGv4RW6D44F2nGH WJDuqbQ= X-Received: by 2002:a05:6000:2892:b0:432:8504:b8a9 with SMTP id ffacd0b85a97d-435f3ab4f69mr24923375f8f.62.1770130993838; Tue, 03 Feb 2026 07:03:13 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20260125134302.45958-1-clamor95@gmail.com> <20260125134302.45958-8-clamor95@gmail.com> <8bd89524-dfc3-43b0-b0f2-cdb1cd51e1ac@baylibre.com> <20260203150136.GA2294714-robh@kernel.org> In-Reply-To: <20260203150136.GA2294714-robh@kernel.org> From: Svyatoslav Ryhel Date: Tue, 3 Feb 2026 17:03:02 +0200 X-Gm-Features: AZwV_QhOrUmL6-YXtCaWdQ-PpGGpcikpM7Wb1yHtElG5VPVf7VhpylKKUQiQ_9M Message-ID: Subject: Re: [PATCH v1 07/10] dt-bindings: input: cpcap-pwrbutton: convert to schema To: Rob Herring Cc: David Lechner , Jonathan Cameron , =?UTF-8?B?TnVubyBTw6E=?= , Andy Shevchenko , Krzysztof Kozlowski , Conor Dooley , Dmitry Torokhov , Lee Jones , Pavel Machek , Liam Girdwood , Mark Brown , Alexandre Belloni , Dixit Parmar , Tony Lindgren , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-rtc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =D0=B2=D1=82, 3 =D0=BB=D1=8E=D1=82. 2026=E2=80=AF=D1=80. =D0=BE 17:01 Rob H= erring =D0=BF=D0=B8=D1=88=D0=B5: > > On Sun, Feb 01, 2026 at 09:07:07AM +0200, Svyatoslav Ryhel wrote: > > =D1=81=D0=B1, 31 =D1=81=D1=96=D1=87. 2026=E2=80=AF=D1=80. =D0=BE 22:02 = David Lechner =D0=BF=D0=B8=D1=88=D0=B5: > > > > > > On 1/25/26 7:42 AM, Svyatoslav Ryhel wrote: > > > > Convert power button devicetree bindings for the Motorola CPCAP MFD= from > > > > TXT to YAML format. This patch does not change any functionality; t= he > > > > bindings remain the same. > > > > > > > > Signed-off-by: Svyatoslav Ryhel > > > > --- > > > > .../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-p= wrbutton.txt > > > > create mode 100644 Documentation/devicetree/bindings/input/motorol= a,cpcap-pwrbutton.yaml > > > > > > > > diff --git a/Documentation/devicetree/bindings/input/cpcap-pwrbutto= n.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 =3D "motorola,cpcap-pwrbutton"; > > > > - interrupts =3D <23 IRQ_TYPE_NONE>; > > > > - }; > > > > -}; > > > > diff --git a/Documentation/devicetree/bindings/input/motorola,cpcap= -pwrbutton.yaml b/Documentation/devicetree/bindings/input/motorola,cpcap-pw= rbutton.yaml > > > > new file mode 100644 > > > > index 000000000000..643f6b2b1f13 > > > > --- /dev/null > > > > +++ b/Documentation/devicetree/bindings/input/motorola,cpcap-pwrbut= ton.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 d= etails > > > > + see Documentation/devicetree/bindings/mfd/motorola,cpcap.yaml. T= he > > > > + power key is represented as a sub-node of the PMIC node on the d= evice > > > > + tree. > > > > + > > > > +properties: > > > > + compatible: > > > > + const: motorola,cpcap-pwrbutton > > > > + > > > > + interrupts: > > > > + minItems: 1 > > > > > > Should this be maxItems: 1? > > > > > > > + description: CPCAP's ON interrupt > > > > > > Or I suppose: > > > > > > items: > > > - description: ... > > > > > > > Both options are perfectly fine for me, and I lean towards using > > "items: desc" but I would like to hear what schema maintainers would > > say, which layout is preferred in this case. > > Either is fine. 'description' is fine if you have something specific > about the interrupt to say. Saying what the interrupt is for is > specific. So 'description' is good in this case. > Noted, thank you. > Rob