From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.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 F388F3FBB44 for ; Mon, 15 Jun 2026 14:22:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781533326; cv=none; b=nCYuoy9yFTTy9VfBuQKnQ8uLbCx8i8IsNywvkrRyq+Hc2G5rsm41OebUXtOCqtOEqvdSP4qxbew6uswRwo0OGHxpKrdhIcCCcTh6J/VAeNxHaF6Qk5vgqS/yQc9y48Ir3cC23xGPw1iU14lBncCPtiL1DUc3y+cxU4lp4Vd4j1E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781533326; c=relaxed/simple; bh=iHKOwldk5LupYan9G/BOnh3ilsYh8zrKFzR7oq1zynY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=a0+/6QlM7Lu+gPAjoannJOMll9nUWhh2r+ipOktCrt+flGnTlXS9HQFB0QqSJrg4n0lwaNPsWYTpmdmoGezFCtFpzqCJVkOKbT2hG7y66VrDNymQ8DEoSmT6rafvhTaxwfMZ1SdANpbA/pjBb8CvQN9N18aXiJieRBG/Tlwc060= 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=RTh9bO3m; arc=none smtp.client-ip=209.85.216.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="RTh9bO3m" Received: by mail-pj1-f53.google.com with SMTP id 98e67ed59e1d1-36d5fd50d20so2470165a91.1 for ; Mon, 15 Jun 2026 07:22:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781533322; x=1782138122; 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=q7LpvffETFGATC9Llgg+0YkdwcNx1yrLnN3roKnz6jU=; b=RTh9bO3mK1/EGAuw+5R5PXJWuVPc5mmFJVc6yz1phqj5Y1zQo4HNtsKdrinhsF36At sbgt8nDAlusgt3IuO92mi5c7eh8BpnlWh3+1UKYbn2GvONr4oWE/YysZ4Z4zR/SapYhY szxDIrwh8wYcC9kIwymV4CMPEzWjVduYKW40HMkMUnO5TkihD3i9ip0O+x0pTCBVg5SE 0/30TByo7MKJzFsd8/3c0TA9Mw0G8mY54QdOQWILguHrsC35Trh7XrFTWYsj9o7olkwB +vo6dvFF8++v7VB8ikWTfZqxNG4LMYLLq/qwVmMW+VEpKq4NbveMMkCPBTFERwU3tmEE gJyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781533322; x=1782138122; 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=q7LpvffETFGATC9Llgg+0YkdwcNx1yrLnN3roKnz6jU=; b=lgzYjCV8b7CmAQUN/pD/qolMhz4wllzFSGhuMdXELM/l7t3GJMJM88mB4RgloiMDct OKd2Ys+IezKuIDxpUI77KVUMZliIneCgTCs2QCbqLVr3pVQMx2ZYtAavehq2YyXrlqKi 6HWm6T7kdqhlsk12cSPVUrJ454w13KT54pow+ogTRJ7KmETC3Ed00C0ZszD44MGmYGHe 3BCCV0FJVtMB1nY7u1ggI4ySyPMAe+2R/+yQAGSUqov8l4dBgPR0l1aepgT1uwFfgKHi /eAxoxQC8Bct2pozmbjgTMEHUp9nTN+t4jcQzTLDM4cNk1OiBOwGKJwiryFJJ8Kg07mp 1MSA== X-Forwarded-Encrypted: i=1; AFNElJ9/V9vtJK9t+DemKdaNYfXx2lusNrcfOcBiknlj/ComNk5HHufx+7YaDj4Wn2BD9qeIMe/2/YRoCcNP@vger.kernel.org X-Gm-Message-State: AOJu0YyjwrNtnUz6WRSNz+nyU1hqwwheFdKkJSiGABGQ+ikmryeM15z8 ofTd9J0MKU0NCqx616ysopmiKUyzjBSvBhk3/WCkBzep4BJfysMQo9Ha X-Gm-Gg: Acq92OGAPYQFc/3pDnCjP19FSOl7DjauzIZy3gzxQhKF+MMi2A2macVN+Oxd7zFinv6 eijzqgahG0C0q15WTrTWsh9QG8HkKjx8FHVIJY9sI+dNQXMAOCfIIQHBLoqAhL8cS4OxEZPk/F0 SB9RPgvYxHEF017cUx1XFLRTc59pTI1tXSs1ynIvJUhCwCfdLzMai3YaHNQ/ZarSquZKV+RvMZs QcusXw+Y/Vt1KjaJD3nQD4tHL+C1WNIxH8g4s2bvi0GIIJSPVJKcjUdfQpEDuDLH1x3SdTF6/hw 9W0w4DsN3gHkxqh9MZ9qIUHLCKbTbfIeF6Bcee09mkYTmbI7fX3v8BAkmqXeyz8IU5tjCtBefK0 9aBUxFJ7ststHi6AUwXKw10Z3ywxrIdh3tEnm5ONUWEpEoPCti5/SGqsSqAlqRon/fP0WNoxqMD fsjAEqAgXOGZfnuzpvBfDz X-Received: by 2002:a17:90a:ec85:b0:369:7421:75c3 with SMTP id 98e67ed59e1d1-37a034e4dd5mr14770094a91.16.1781533322146; Mon, 15 Jun 2026 07:22:02 -0700 (PDT) Received: from arch.localdomain ([2409:8a28:a52:c491::1002]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-379e8cc467csm7178233a91.2.2026.06.15.07.21.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jun 2026 07:22:01 -0700 (PDT) From: Jun Yan To: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Jun Yan , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 09/10] dt-bindings: input: microchip,cap11xx: Add CAP1114 support Date: Mon, 15 Jun 2026 22:20:35 +0800 Message-ID: <20260615142103.352163-10-jerrysteve1101@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260615142103.352163-1-jerrysteve1101@gmail.com> References: <20260615142103.352163-1-jerrysteve1101@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit CAP1114 is a 14-channel capacitive touch sensor with 11 LED outputs and hardware reset support. Add the compatible string for CAP1114, add its datasheet URL, update the maximum of LED channel reg, and add constraint for linux,keycodes. 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. Update description for microchip,input-threshold: CAP1114 only provides eight threshold entries, which does not match its total channel count. CAP1114 does not support microchip,signal-guard and microchip,calib-sensitivity. Add CAP1114 to the unsupported enum list. Signed-off-by: Jun Yan --- .../bindings/input/microchip,cap11xx.yaml | 37 ++++++++++++++++++- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/input/microchip,cap11xx.yaml b/Documentation/devicetree/bindings/input/microchip,cap11xx.yaml index 778ec6d659a8..153099d59d1a 100644 --- a/Documentation/devicetree/bindings/input/microchip,cap11xx.yaml +++ b/Documentation/devicetree/bindings/input/microchip,cap11xx.yaml @@ -12,6 +12,7 @@ description: | 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 @@ -62,7 +64,7 @@ properties: linux,keycodes: minItems: 3 - maxItems: 8 + maxItems: 14 description: | Specifies an array of numeric keycode values to be used for the channels. If this property is @@ -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. 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 label: true @@ -178,6 +182,21 @@ allOf: properties: reset-gpios: false + - if: + properties: + compatible: + contains: + enum: + - microchip,cap1114 + then: + properties: + linux,keycodes: + minItems: 14 + else: + properties: + linux,keycodes: + maxItems: 8 + - if: properties: compatible: @@ -205,12 +224,26 @@ allOf: reg: maximum: 1 + - if: + properties: + compatible: + contains: + enum: + - microchip,cap1188 + then: + patternProperties: + "^led@": + properties: + reg: + maximum: 7 + - if: properties: compatible: contains: enum: - microchip,cap1106 + - microchip,cap1114 - microchip,cap1126 - microchip,cap1188 - microchip,cap1203 -- 2.54.0