From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.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 656873DC4C1 for ; Fri, 12 Jun 2026 07:23:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781249027; cv=none; b=Lz70H413x1GkKZPMN5XPyHHDpAr0hEEPBjkAkdsjfNq7GbAzGTlpCEJlIaJl4b3midLagrIuMVkohbj/jUDDMqLoVEJMlvrfbNFZC3TQ9DKsWD7EoSoHokVnEZT2yQq2iavGvjU+chdHwqaLNoOxbLIMMlre2CR2tiEx2QdmFi8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781249027; c=relaxed/simple; bh=nZi0t8cL78YZmxGZD62T2lYOUTFA1HtfINqkrnLD3oM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VwPvHAbTwMe04nRCO+v8uIOCjTLBjUw1LhTaqSex4ESiBx9MGQwiPGU54tRWuVr1CFnTEjiid65T9HHCa27OB73lmPH4StXE7b04tAT9Y8Bu1v2x9fpYJRmW0+FRJ7GM0R94LNQTONvcU9hY8mUDXe3ucJsnrXJL4Lg+B8ILweU= 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=lbiOviUp; arc=none smtp.client-ip=209.85.128.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="lbiOviUp" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-490be03d47bso5732405e9.0 for ; Fri, 12 Jun 2026 00:23:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781249024; x=1781853824; 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=JLDZVGka1eJnSriA7FyE8scCoa7JYxvPjm4AqcyjUc8=; b=lbiOviUpZTNeDE2WZqskrFhiNEU7m0gY5AAg111BFi7G1z8zo2J0d6OzGqVCFHJLKq I46HtrLjv8KmMObc3wvxNIbkibuYU4LxhWKgRPEHyC93GwSpUyEDQVuatrHCBBrrMKY+ 9yfa+ZeZHIZTqYLeZZBkNUXX54ePyGa29wBhTJyzIBvHto1ZX1t9d6YXtLPUHWRIdh3o dTTEqskGn9k26YzciqSqW/l5HbKiXSTwvoMPe1xcUqc1UAms8KZeL4mCCbEUHkfGcu70 LufndXfU5FCOG13NAerrS2cyRsF5OBj9jlbLa5X3k9VvPjLTrtA0/xBkDbSlvYTqyxXI DYcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781249024; x=1781853824; 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=JLDZVGka1eJnSriA7FyE8scCoa7JYxvPjm4AqcyjUc8=; b=ogLd8dXyysyGTmn2FtWq+zUd1ZZiCqXUu4orb+VdfB+/mLiItmrOU+zan9kZFnvcbV j5hkzv4fXPGubAjZd4d0/4ow1LWDrpxUqM+CKV57OkMrQi/i33NfWb3XzSpMPz/80UJ6 WOrd6IKaA726siCWbXm33E2Q/P7SvTWqLUXiGvxcPi+hBZP/wKPT3/h1y6iA0bbe31ID FCUQ3jWhKmVqua3KG0cLMGLDbp65BxXKdxF91nWlrfxVWtglz2o/Ibu3nDAzSOAe/WwO K7jfA+6qIGkGtSl7IfVMtV0A9fnppfpA8WlJ1Ca4pCIq8EDZExerGliFI48ZZdb/WKf9 CtGg== X-Forwarded-Encrypted: i=1; AFNElJ8+houfUcBPb1kzrXgAyZV0fbyu9FFbngpY1fkN5Ts1+C/WL4zr1uL6gSOK3gTJrW2TDacOoiNP6Rr91Qo=@vger.kernel.org X-Gm-Message-State: AOJu0Yz9qCG5znSdkoWDAHPwWU5p0fFTb0C6wAcnwMIebX/3FR7J1q0V q83jYkIu5VVtdx2mqI5jHI5/5ZdW+ftNzC9JlsYl37wOwjZad9Rflp51 X-Gm-Gg: Acq92OF4dacVyMaT8XNPeGVzcbef9lCrD4qhALa9//FBWLB3DLYOAG3QNRSFgXIFJmd V7qEiZURJ5zByArkolhL+oEKTcyjx3dn+TjoSseIU7CrGkz9wQBfnhII6x/48Zn0ta3G0jtYXYx xykh0Nmh9zlgIHsJRW7UOqs7550uzyiJTxvf2Gf2XWq1USOD1g/fMtWUyCmTCE+z0JkLjYX+yzq 1cceVpEBG6LOUt4TY4CPqOFOuuy6xVALhkwWS5HxaeN7rTmuRm9bauAlp05xw3uZuhtxABFmSgf 1Y5zqB+Xf9Gh0TXl9IgtolVa+ZJ96QGDPy6L3IV7iCLs2XynlfPDXHeCnruAbcSQEZNnTyHsHQP HJjBKLosISaL18Py+8AvIfrhmhVIr/8tplRxi2YZWYcflFDWW3gM6C7nlRPyRzmNG8HP/NbB+t8 r/Cno3L9n7lmWlMvt0SRXFkSrGy0Z4873NREwjcSnBzXmoIn/03A== X-Received: by 2002:a05:600c:4595:b0:490:bada:6b15 with SMTP id 5b1f17b1804b1-490ec4fb597mr17556425e9.17.1781249023729; Fri, 12 Jun 2026 00:23:43 -0700 (PDT) Received: from arch.localdomain ([2409:8a28:a54:e741:3a5a:3245:d3dc:4b5d]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-490ea963cf8sm28715245e9.2.2026.06.12.00.23.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jun 2026 00:23:43 -0700 (PDT) From: Jun Yan To: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Jun Yan , Conor Dooley , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 5/9] dt-bindings: input: microchip,cap11xx: Add reset-gpios property Date: Fri, 12 Jun 2026 15:22:11 +0800 Message-ID: <20260612072237.1177304-6-jerrysteve1101@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260612072237.1177304-1-jerrysteve1101@gmail.com> References: <20260612072237.1177304-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 Add support for the optional reset-gpios property to describe the active-high reset pin for CAP1126/CAP1188 devices. Driving the GPIO high asserts reset and deep sleep, while driving it low releases reset for normal operation. Restrict this property to be available only on CAP1126 and CAP1188 chips, as other CAP11xx variants do not have a hardware reset pin. Signed-off-by: Jun Yan Acked-by: Conor Dooley --- .../bindings/input/microchip,cap11xx.yaml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Documentation/devicetree/bindings/input/microchip,cap11xx.yaml b/Documentation/devicetree/bindings/input/microchip,cap11xx.yaml index 22a292d4a880..778ec6d659a8 100644 --- a/Documentation/devicetree/bindings/input/microchip,cap11xx.yaml +++ b/Documentation/devicetree/bindings/input/microchip,cap11xx.yaml @@ -49,6 +49,13 @@ properties: device's ALERT#/CM_IRQ# pin is connected to. The device only has one interrupt source. + reset-gpios: + description: | + GPIO connected to the active-high RESET pin of the chip; + driving it high asserts reset and deep sleep, while driving + it low releases reset for normal operation. + maxItems: 1 + autorepeat: description: | Enables the Linux input system's autorepeat feature on the input device. @@ -157,6 +164,20 @@ patternProperties: allOf: - $ref: input.yaml + - if: + properties: + compatible: + contains: + enum: + - microchip,cap1106 + - microchip,cap1203 + - microchip,cap1206 + - microchip,cap1293 + - microchip,cap1298 + then: + properties: + reset-gpios: false + - if: properties: compatible: @@ -207,6 +228,8 @@ additionalProperties: false examples: - | + #include + i2c { #address-cells = <1>; #size-cells = <0>; @@ -228,6 +251,8 @@ examples: <109>, /* KEY_PAGEDOWN */ <104>; /* KEY_PAGEUP */ + reset-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; + #address-cells = <1>; #size-cells = <0>; -- 2.54.0