From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 818663845A2 for ; Sat, 13 Jun 2026 09:53:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781344433; cv=none; b=A5cKxzR7Bg6AWsKrunqM0Po+rPGF4D40Aaa7aOXqv9sIGkB1VffGYHfQS50FriqgwTV2EYRP0th/Nvt5azq5lS21gfvlSSEDEjcB+ZifusGlGi+xJR/kxTzjA2fBEQBdK0y9eQwe3KoHKpiQmrO/5C/+QmC+wwsICPusYm4IIHo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781344433; c=relaxed/simple; bh=qqmQu9QhFJihloVV9kpv6ZGS1lV3EON/Kf/ZG2EwbAY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=n2g/xMHdqEmAW+dJFOON716i4O3JG3+YTMqld+UiJM9If7G1ZKdS0XS7+kBmqxXMXcIdjCZSY5DTNcceQ5ki8QoQ7/vYjYZEJYgVp9M9WhSlLrKQVo+qebrtV9jONI2KM++xPye5DVYKdsNwyfMWnRQm7auHCJ0MpsXGGxNZ6ac= 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=IE7wsLLK; arc=none smtp.client-ip=209.85.128.51 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="IE7wsLLK" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-490be03d47bso17687385e9.0 for ; Sat, 13 Jun 2026 02:53:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781344431; x=1781949231; 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=fkuHdTMnoVgs/0eBa7wSJv5oJQ1ELoL7/5JUPgvuaJA=; b=IE7wsLLKvI5taKf2UOC8wk4A1Z9+tkF8HfdZQ0W39gXrF5+CnFcIzUtvrvYKZ55f0A BXimRYqg9Wsnb/bJnMYMYyfiWBUyWWDj/cfmczcg/yyyAj6mcYJzrtumXVbs1Tqfj3l7 mjKFJtDnXn9ncH1hbkTNg6OiZ5eZFOrcDlwQ42nTYDVnTup5TxEiDhqge3NY1qFole1T 9cJXtXwC5/to5XjI4JmkBrPCGb+v3PImsidRJEPEwkF+N9nE9KB0XkYihXR82PzUbaYc ojH68u895x56iR8DXBk5X0F2n+vqtGhdZQCoVPqX/REzgFCCKF8ON5mZw2q8ztvfQK6+ aasw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781344431; x=1781949231; 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=fkuHdTMnoVgs/0eBa7wSJv5oJQ1ELoL7/5JUPgvuaJA=; b=CfJczwegO+QBPKjSrklEA6rqaPGO+e2ds4xMOwFSDKj+yXnwMMNVO5xP4MB17WIioa l0Rcsb/gyqn55EJAm00VpmzfmDMq3NGAi3JHORMatC6++RZkPaW9xOUrHEB/2MFCvoqg nXEyAviUY4MM7RMIMFq+lvp2dguJj2Gi2iMgveJzIBcHvuSlmckBqwnzzmRtiftU+yaY VmcuKtL1B+ChrOAzf6NwdVQL+JuhphvCyZp+dQ5/ZVVSf3Pr7YmQJlIqa/B1+sQqXS1D ddvA9N1IIcHUotRsjvSoIu6FUyBeJCqiL8mqFPn+F8BW3tCzjCCKo0WkOr/MUd68Nz2a pnwQ== X-Forwarded-Encrypted: i=1; AFNElJ+a0igGh+Dg/UJWiKdD7Oce9UcwhXsB+kFXf07xstoJX+hrXtRMZXsOv1bThybnZkZYMCiCBm7NS6zZ/Q==@vger.kernel.org X-Gm-Message-State: AOJu0Ywl0HNIsGshQOozA8FvoYNhOSQmImfWb8GIiOfOPqIYAfncMwEh LnCK2Xc2rlLLjt2Wd3mFq7bfBNK9i4ivLVrpF9p8OFwyd5m/g94osdeH X-Gm-Gg: Acq92OHRLrGxam1idP8ERMxDijdqNufB2HbW9dPUSyNvK6nTPBGex/BgyDfn93y6+8m aXqwAaiOHtjzku/s8QKrQVZ3pkLT+oSz5wHu803Kro7tYFbToy6a1/KWITxmU7p0vVkoGHzBj9U MAnUL6ENiZN9Ev+2xePS4e+vODvpXlcCYmy3n1u3pXYJufDueLMnVXzVdyQUsFMrCm3Nwd1DKAf Mim6wiNoi8+SHcLNk7JxjGPeN/XWuC2R+EoonaZWV3Uk8OoVxwhXHPxXGpxhtvGDBDRFyC2WktR CNdgS61TX0/0EKWkS/xYMzOxljlypQWxRcKEB9O6norlsvjO04f/O+f3V0gUymHyarUw0uj3ych HtwMq0aNIxHqvN2rRZ11IzRqTxHn5LwoJ0gOLucWXjsPS5bduUtaDQvvpnDHOYxLa3AFBeuuszg jIkxBjPqEaikOuUzfCXaN4 X-Received: by 2002:a05:600c:e556:20b0:490:bde3:d112 with SMTP id 5b1f17b1804b1-490ec5088b6mr57347065e9.30.1781344430713; Sat, 13 Jun 2026 02:53:50 -0700 (PDT) Received: from arch.localdomain ([2409:8a28:a54:e741::1003]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49220304180sm61050235e9.4.2026.06.13.02.53.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jun 2026 02:53:50 -0700 (PDT) From: Jun Yan To: conor@kernel.org Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, dmitry.torokhov@gmail.com, jerrysteve1101@gmail.com, krzk+dt@kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, robh@kernel.org Subject: Re: [PATCH v2 8/9] dt-bindings: input: microchip,cap11xx: Add CAP1114 support Date: Sat, 13 Jun 2026 17:53:43 +0800 Message-ID: <20260613095343.6489-1-jerrysteve1101@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260612-plethora-debatable-d00cb679277b@spud> References: <20260612-plethora-debatable-d00cb679277b@spud> Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit > On Fri, Jun 12, 2026 at 03:22:14PM +0800, Jun Yan wrote: > > CAP1114 is a 14-channel capacitive touch sensor with 11 LED outputs > > and hardware reset support. > >=20 > > Add the compatible string for CAP1114, add its datasheet URL, > > update the maximum of LED channel reg, and add constraint for > > linux,keycodes. > >=20 > > Previously, the LED reg property had a default maximum of 7 for CAP1188. > > With the addition of CAP1114, the default maximum is now 11. > > An if-then constraint is added to limit the LED count for CAP1188. > >=20 > > Update description for microchip,input-threshold: CAP1114 only provides > > eight threshold entries, which does not match its total channel count. > >=20 > > CAP1114 does not support microchip,signal-guard and > > microchip,calib-sensitivity. > >=20 > > Add CAP1114 to the unsupported enum list. > >=20 > > Signed-off-by: Jun Yan > > --- > > .../bindings/input/microchip,cap11xx.yaml | 32 ++++++++++++++++++- > > 1 file changed, 31 insertions(+), 1 deletion(-) > >=20 > > diff --git a/Documentation/devicetree/bindings/input/microchip,cap11xx.ya= > ml b/Documentation/devicetree/bindings/input/microchip,cap11xx.yaml > > index 778ec6d659a8..0e9a1a8a3f3e 100644 > > --- a/Documentation/devicetree/bindings/input/microchip,cap11xx.yaml > > +++ b/Documentation/devicetree/bindings/input/microchip,cap11xx.yaml > > @@ -12,6 +12,7 @@ description: | > > =20 > > For more product information please see the links below: > > CAP1106: https://ww1.microchip.com/downloads/en/DeviceDoc/00001624B.= > pdf > > + CAP1114: https://ww1.microchip.com/downloads/en/DeviceDoc/00002444A.= > pdf > > CAP1126: https://ww1.microchip.com/downloads/en/DeviceDoc/00001623B.= > pdf > > CAP1188: https://ww1.microchip.com/downloads/en/DeviceDoc/00001620C.= > pdf > > CAP1203: https://ww1.microchip.com/downloads/en/DeviceDoc/00001572B.= > pdf > > @@ -26,6 +27,7 @@ properties: > > compatible: > > enum: > > - microchip,cap1106 > > + - microchip,cap1114 > > - microchip,cap1126 > > - microchip,cap1188 > > - microchip,cap1203 > > @@ -122,6 +124,8 @@ properties: > > is required for a touch to be registered, making the touch sensor = > less > > sensitive. > > The number of entries must correspond to the number of channels. > > + CAP1114 is an exception where channels 8~14 reuse the eighth entry= > 's > > + threshold, so counts differ. > > =20 > > microchip,calib-sensitivity: > > $ref: /schemas/types.yaml#/definitions/uint32-array > > @@ -149,7 +153,7 @@ patternProperties: > > reg: > > description: LED channel number > > minimum: 0 > > - maximum: 7 > > + maximum: 10 > > =20 > > label: true > > =20 > > @@ -178,6 +182,18 @@ allOf: > > properties: > > reset-gpios: false > > =20 > > + - if: > > + properties: > > + compatible: > > + contains: > > + enum: > > + - microchip,cap1114 > > + then: > > + properties: > > + linux,keycodes: > > + minItems: 14 > > + maxItems: 14 > > Sashiko complaint here is valid. > You need to increase the outer constraint to max 14, and only set the > min here. > Then you need to add an else that sets maxitems to 8. Thanks for the review. I'll fix this in v3. > pw-bot: changes-requested > > Cheers, > Conor.