From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) (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 020FC3FBB72 for ; Mon, 15 Jun 2026 14:22:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781533327; cv=none; b=IzwsUEFybt2dcUemYX4Bbozon96nAegbHl4/1U8WrcKcaT7MrjVoOXKGS4B/PZoO9CR6QjBqT3IquU0bqTxQBgw84O4UvbftWBnUG9XkGsS/VXWRlwI5yaSLtyTsiBmEXZgO2wtYBzWj05Jh5gj9RMFo7JRwzoKyx9jMzo9Z7sM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781533327; c=relaxed/simple; bh=iHKOwldk5LupYan9G/BOnh3ilsYh8zrKFzR7oq1zynY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=d6SNO+vcdugpEGVOXPp7HQHj9xa8l31IRBU4y0Tj3gbjNiFuAnAzpexVqjj7sR8BmQLy4GNy1TPKSQKTXo6A64PDK8/mPHK//PVvOsRiTkrV3BB68d9N3kseLxJVIC2C86XrKHw9uhiWbzhamMDKYADUwCPa6t2aAoLwk3+wDOA= 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.54 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-f54.google.com with SMTP id 98e67ed59e1d1-36b9b15af73so2917793a91.0 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=aGD1kuiDW+VopgAvluxWt9SAVtinTvfSD4hiVC/dsHg/drxiE/rmGUM4+mZh101JPf r5uLqMQFzw4ZrAGk4oXs/PT7Se6VL5J7nz3J82TdKyIjCvDHp6/kn4/ZOAZcZOEjeN73 VyLt3oS+aFZDZO3v2JrJUaua4znWLJqd+Ur4my/g4QnkXLglOnTUBaBRFNbu7Nw3/JPa jzQZN8QQ66iBBcrcVc6/EH6gV2mADf4DNLOCHOiTeG0SoTnRQCMh1eto/r21b8n7L3S/ E/dAgnzD+nNh+3jJszCWMIODZGpmuMmZbRF1EaVkNvFKQLnHgX//3o6zR9Rp0ugagj4f ZMVA== X-Forwarded-Encrypted: i=1; AFNElJ8/oPcZj39NbJjqnomWG3UwmovfZphcQ+eG47Xs5irlb3G75rzKDGujOv+JKUh12igkDk7pcoOfRldclZA=@vger.kernel.org X-Gm-Message-State: AOJu0YwA3fZA4Jk2x60/ivhpceiPhQRMrAD0t3yRbQ62O2bCsYvByl1s LfO0DaAEzFm94yBY+g8NoUoZrOBE9G+5z1JncASOax3GJOIVTDrEJEgl X-Gm-Gg: Acq92OHO4THUNNFrW3u7NbPjOKICbwS1N4+LcAuC8aUSduYMAdowA64puxLi6TkEDxI JPgDwZN2f8UyS5GCS2SErLdBevfVFCjE41ubQkZrzelCo1SVmHpGdiQH780eGAQUHqyPzRxYJKt p70pv7yRvW+rZ+6c0Hn03eOZDkU1EcN9d0PzEYPxLxzwGE5om4MwSPf08blH4XsUjkAr/guWLcv 77xKlc6NDH/+uxoyvffA5R9cg0p+p42ldBmhIE7fnSJ6MVdyuIJIOTug6GMnGHfmLKYQenki/Yk WqFFAON9qaVSV5mcluluCqVuDBWKtS01DtmXz8WR54EeC5z7J8zzqg4+kufwKLS9NbnVAEvRFIP 8hzYrKruqxyZcz88Dun7nVeEr0SGilVox8GyC56xSUKtCLRCKuJervfblk/vGEY478aT0W1rvtb PEtHiHcAbQCziCutsd5RAA 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: linux-kernel@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