From patchwork Thu Jul 18 02:23:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 813272 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02olkn2087.outbound.protection.outlook.com [40.92.44.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2BBA52868D; Thu, 18 Jul 2024 02:24:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.44.87 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721269454; cv=fail; b=TRjThDL3ID74GxaIGq142DPme/iwoFwfvGkZ5ZfOlUWuIr5sSbdej7DKMoT6z4JXUeY5xbsWTWkGTGHN5+w5fdiSz4oZiK3bvAHLGrrhQCD5nHSen4M5KfYjOlNvunMxAZVxSHCdNvU/E87RmD1FEJzSczfhm1nMKCyw3HYrf3g= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721269454; c=relaxed/simple; bh=BxZObFUUay+5x1I5irEGhNhg0rwAds9wPjh2aHAU1iA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=XT6wy0osCEq2e6+dxootzdge6fZulZORgoMf1cOrBRuI3VQfqbtSFs9+q5yQmRBg5TbPx1uVZYZwvLmL9hNOvdU46tET0dRYjLXMCRzQQM1g4McCup7bZk7x6u+HP+qGOJNoWb4CuAOi/1MhMcsNZ6dSN1vTYQIgRR8QPMUv6so= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com; spf=pass smtp.mailfrom=outlook.com; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b=q/Soi9id; arc=fail smtp.client-ip=40.92.44.87 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=outlook.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b="q/Soi9id" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=w219stPTG33RQejIXP0GKp7ZqAZmhHQsKamqEWBU/J89kJIHOZJCc/qn/tGC122NJEua69/VH+RhiVy7na1SVrkmMdWm29gxVEHBVjzssYKR5Td9vOX2JN7/0fQfxMcu9RNjl1xuG44OrsPktjPXZXGsx8M3/+OSPzsGaF3fWwKhevWFCwc+xxEyZbuN3UK+qkkW98hrdGQbOA+0lYJepSAIzjh/IJFLAsOgrn7yg559KqIwSvJoNmRnYFtad1c/08fSrkVVonOwkEYsnN48KaELx8WPQ6Vp5Rogh4C/ygGNZ5GAsha1oNT+q0GHB12hukKN3FH/JyZpXpukOL9Cwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8XJaWcd263ELRaDcn1rrMT/4PFcbeLkap9rRNWsULnw=; b=XeMneuLLKN20BkVlt2SYAv80S0uqp+QxIuWN3yfN6x8Ya/wPh0EIHqwTacGQF/Ko8rhDx1lUnrYYuY9fJinbqXE8bQXpo2d6s4S4Ss0Hdlf1KdolHxiFLyErrVlmHY6e1/MpkvSATTVfbxlXLL/NjHlymCTYJVdw3AwOPnvHTXll+sN+h2OmSxy1k7CMcbe4T+Kst6bGAZptp5aRk373RCaLPLx2FXH2ewSuCT2HaseR7O7crV00f54c3IKrDEZxrCj6sNBYAcpMr9czNjgtkDazKapRe4BfLKK/NI6OwqZLrqC/QEpg03ZGZ+CaJVs2mYEikxR/q/D5nRcmU3wCpA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8XJaWcd263ELRaDcn1rrMT/4PFcbeLkap9rRNWsULnw=; b=q/Soi9idIdbqET3zw0ET71BSy+GOZdVF9Oe1UO+zXFnojyNnc9ysov7u9yvUT1CrGWJfeeq4xEyOlfQIPYrkD8ABnIKVSEiEnpk4qExX7hXs1hRtl2396KgJCVkkB66bAKkYpgHhEi+Vx7mVjqfzZ3BQEGixBtiqB8sNoPqrwbP9cEUe5tGtzk7A9dDCs35U0P/4TL3xHK1VrDIJviX9mMZaExQiWK+8SRNvnvcBs+xDSLRIwz8L5a3Ak5cFGN3uiTV0EoDOFSYZ/jlqXj/z7a122dbZUJKSDtQlWkU1Sg0XQLzwY3BiLjO3lNP+G4FJd15Ug7zFZf3bdOIfXgH57g== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by DS7PR20MB6786.namprd20.prod.outlook.com (2603:10b6:8:e8::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.28; Thu, 18 Jul 2024 02:24:10 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::ab0b:c0d3:1f91:d149]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::ab0b:c0d3:1f91:d149%5]) with mapi id 15.20.7784.016; Thu, 18 Jul 2024 02:24:10 +0000 From: Inochi Amaoto To: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Inochi Amaoto , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: pincfg-node: Add "input-schmitt-microvolt" property Date: Thu, 18 Jul 2024 10:23:53 +0800 Message-ID: X-Mailer: git-send-email 2.45.2 In-Reply-To: References: X-TMN: [ph9q2H+Wfx1IhXCCt0ceNkLqDW4uQYRWZWpKZo/bj6M=] X-ClientProxiedBy: SI2P153CA0014.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::6) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240718022355.743921-1-inochiama@outlook.com> Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|DS7PR20MB6786:EE_ X-MS-Office365-Filtering-Correlation-Id: b357e583-8c86-4ad6-d87d-08dca6d0b4e1 X-Microsoft-Antispam: BCL:0; ARA:14566002|19110799003|8060799006|461199028|440099028|3412199025|1710799026; X-Microsoft-Antispam-Message-Info: 9DtQkUNiSM1txQWcFo4aiW31pjkxT4lFpWnIag+P5VwHO5RawHjjktaQihHvXWBJ6gH/KT1OXsnZm4Xbcx3KbDUb1GwrUj4AwLaO0xL9GmE32jgp5NeDpMTr/eQWRJ8xB1VILwJWYy1mqbjYyWl/9+bHHmPDfLZgtCpsJfxfA3cWq1f62k95j/cnpO5ubCGqOsK0EzRr7Wfk8plIidJBljVSs1nV5Hp0ZM2JYt+6uK54y9m+IthcmomgKRCHNud/sEF0Z0AgE+StdCrGHnD5lORpOdTy8HYzgiUDwvPwDSMIFQXm4N8lGSt6rtf5FZJIDofTu+Dz5pSOMTOainZTLbMKgjnA9GMCetGWYXhEoswQ00g+ATmG8go9Xu3ba1kfgXCUXvaN8X4UWjPfKqMjAjRqsQv7MYwhsJaHYqtZ3PBWmUsXYiVDdDadH0dLjggjGGA74kU6dWMiTVswbSDxi4+gr4c0AWUYeaiUN+aCz2xzKO+7HWUzexBxsFugMlSu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zJkDb8nmPUOv8CB3kyiDawP1Wh5TNZFNLMd6GlIs0Br0A9AjYapqgcGTazuSpHijC/iqlYbEa2GbesKNJdgZ8QDuDpZicfzMgKLpiAvzogD1kZfRsujWjxdJaFPwL+txkvr9UJ8zzSpunXPLfztasqxdJ4xMRel/LAI5fHJ7kJK0qmysy3oBISukOE9khwEWC4FkUoo1KwHnxV+AELb5aOKJcPM0+BJNicf7puWM3ryABpWCic0/b5aYXK2gl/Lw6ne1PGa/O1va2pRSpLuacOBvZC5Sy5LNq73xE81hgVgRglMltx5Y6X5Eo72jU70QktBmdSvIplu53A9A61dluQVAnXPOsNL4FFgeQ8tjWRz9iInL81ppHztgU8YjUgYMQMPfjjVRVuT7IC0RfZbBVV5jXaftIcyEBOXh4QvmxopIFM5UGWs2KwZLVnWBdK2 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b357e583-8c86-4ad6-d87d-08dca6d0b4e1 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2024 02:24:10.1632 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR20MB6786 On Sophgo CV18XX platform, threshold strength of schmitt trigger can be configured. As this standard property is already supported by the common pinconf code. Add "input-schmitt-microvolt" property in pincfg-node.yaml so that other platforms requiring such feature can make use of this property. Signed-off-by: Inochi Amaoto Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml | 3 +++ 1 file changed, 3 insertions(+) -- 2.45.2 diff --git a/Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml b/Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml index d0af21a564b4..cbfcf215e571 100644 --- a/Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml +++ b/Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml @@ -96,6 +96,9 @@ properties: type: boolean description: disable schmitt-trigger mode + input-schmitt-microvolt: + description: threshold strength for schmitt-trigger + input-debounce: $ref: /schemas/types.yaml#/definitions/uint32-array description: Takes the debounce time in usec as argument or 0 to disable From patchwork Thu Jul 18 02:23:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 813481 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02olkn2060.outbound.protection.outlook.com [40.92.43.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C551D27462; Thu, 18 Jul 2024 02:24:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.43.60 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721269459; cv=fail; b=Ij9DK2koVJnH0btmGnXP/Wn01UbxzaBXMyFm0aXVhzvYbodcIWwVHouXjZyfrVncru5U+xmuI+cb6noL4cq9+HPHRXjbm3+av57XRE3p0wjIcG5LPQ5OiDNeUbYRO7TrjAJWYpHwvosT4doWgMMQbF3Un8dHytATrVApxzlx0cc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721269459; c=relaxed/simple; bh=V7f0DqK0t0X6oOG91tQoYHWApmWI6VaQhFf6pd2fkdo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=rrKV3emu32u3xYpuEC1dsX4cJSpxSEaOXonl4KV9D7RR5mWUxukOVVTiHYKM1cKy1mc8+zMNvHdx85FPdrgeg9lI7Hw497E4/mzwIICcTKblBWSfeyGV+UnyxzVWQRU1Udfi7Ej8VHUNa297qw2o3GGLG4uXPvw2fw2QbJWswLg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com; spf=pass smtp.mailfrom=outlook.com; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b=YlJxWJ5f; arc=fail smtp.client-ip=40.92.43.60 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=outlook.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b="YlJxWJ5f" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MhLXNngPSBdq94aLup9NY0ohyC9jDwoS90wfW+pTt63939mzaCiW30asc89JlqX/lY4s1X8wyqLV49JKK//V+JH4zFG+pxBBXsNAcFRAt8NVpNl4wpwR7FmoWLyogKpAppYXztTU4l+GJk3VEi8FWkEW3ydXudxal97Q6EYQNunhEWl+/LWkcjTADabgEMjMh4yuzmugE62W0fNHu/kKmqWIxswPRFtf4ntxrvqdKrKeEYn4FpU+iUBlIL09xUxnep6KKu0h/kl74eyP4qkJZl/vPlhttjZs+A6qUHAdJg6I5irb7Nt/t3KRhmR7Stk71l4Or3MO01rxhfYlgGgKHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ABMdMoeO9zFNCTcYRTnypBTZR/8icuipiBZS3j8uw80=; b=rkWHWRRSXlIuTFs71v+XqQ4tdq7BnnNJUEe7wnhKdtfb0DMULgo6CJhR128lr43Ja7jiiO7JMA17lUD2xNZf6CJ/bfTLUWoaISWhHzdDBlAJrz+AHLhw7nMII0HM0STwfFWIUVQ2z5hD9zuNLg/zaSsumbEX3mWiu3lTMX7QYKbsUF7n+rgFSB+BXKGuMJQlmjEAe/cM1jQr10snEFMgGyC9vEHzVFeGIfEF3q22TjdnwqQ5R5eSldyILtkH9mVPZFtxTpY4OyTU0S4TCrVJQH9ojAqNapnb/hvx3s3ypRdokAcvRXIPKROaTne6IBypzwuZsQ73ioE+Qo/ck7sjMQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ABMdMoeO9zFNCTcYRTnypBTZR/8icuipiBZS3j8uw80=; b=YlJxWJ5fzx36NxFkvN4OCPlwHscgLenfnXUKPN8Rx9L0lkmBh8RemZQListSdaswSioxgTsmjJg9MzV4husoqYj8gWUcwNNQTKxzW4F52rMIxkwQQuxtqIU4QrNjUYENHCII+gsArBElpoIiixIL2+bQ76uaitCZ2tdtiokslxkLDtflr7Us3Yuu7jcFxnnJ5AxM8ivPjwJETK1O2t6arfAfEJABwuuxFNe423m8bi+5fTiJ5gUT0Gjdw/9ssg3ArI9pxCZ2qV4E5CDe+p1S6HowlU5BegFh31hOFtR14MGStIpiND5nhqE/GjG9IP8nSGuh76Hv+P3A1kHlUEidxw== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by DS7PR20MB6786.namprd20.prod.outlook.com (2603:10b6:8:e8::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.28; Thu, 18 Jul 2024 02:24:15 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::ab0b:c0d3:1f91:d149]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::ab0b:c0d3:1f91:d149%5]) with mapi id 15.20.7784.016; Thu, 18 Jul 2024 02:24:15 +0000 From: Inochi Amaoto To: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Inochi Amaoto , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] pinctrl: pinconf-generic: Add support for "input-schmitt-microvolt" property Date: Thu, 18 Jul 2024 10:23:54 +0800 Message-ID: X-Mailer: git-send-email 2.45.2 In-Reply-To: References: X-TMN: [VmFy0i9iUZguHI5Nk2cqxyf8zuideQYwyrXPQ48yHsI=] X-ClientProxiedBy: SI2PR02CA0042.apcprd02.prod.outlook.com (2603:1096:4:196::19) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240718022355.743921-2-inochiama@outlook.com> Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|DS7PR20MB6786:EE_ X-MS-Office365-Filtering-Correlation-Id: a0c301ee-4dc5-45d9-e3eb-08dca6d0b83f X-Microsoft-Antispam: BCL:0; ARA:14566002|19110799003|8060799006|461199028|440099028|3412199025|1710799026; X-Microsoft-Antispam-Message-Info: YFyKNxD0WF1DsXjt3eg8tCW3kBqXGkXwBt3SvqvubbLfZS9aFsFUdoLIYc0ScVgudjAA5ENaZEPlogZ7uwHu+wvXOmSH6ueg+UQTIS5FjKal0wzmX1q/uuhK7YhoDqGkz9wdq+EH+BbmHqjy2xp4DA1Pfcdb++794W94h+9Cx64hDu6UIQmwr8909raBlnKyfgciXwL+sz8VhsoPuHHzwTuMkY3hZTWuB5tQ5enrRS9VlMkFQlsnqszdhBODo4jXTl/MGa/TQaKdcH8OMzpAZfiyL+gf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XcvkU6DokBwD8SmMW9A5ERr/bGTpYNlmWBGdJKcS/khquzOISRW//DsQAAwIrDkZN94mpebdccBiD0bOn1Cc/Q7nLN9cq3nkP6/fjaqn/hAXl2snWk8dS0GC6JBzGQfdyVstVVgLM6vUvlAWFnCR/c5ePHApI5aFzCpfmzZPxX+fNEFxF6GDt7Hsxb1clISl6CxERQ4+2ErP9gVpS3dOsG9ZizWCZXKZOcm2DKjoRXZTDM/n3HRU2ojvuCwN2xPSUYUQhD9mKjzb4PNcxGF8p1tkXMrBhZ45m312a6/pflMmlPfD6Ic89KGqv0HhA70GPgGUkkq8hlNjTeuQv/PL6i8FP1nQjdxrx/UzdY0krRkxZ0sgggnhiTZ6Y8cf2VS3IlUdBO684ul+e8cAQUqm61XbpmKLiIEMloJohz5eMNqHYdZm02kp3MAvhrNpoibmhHHUYVD07tqoqPpUWRwQJwf7dfRdPOHOKsky22UvBNhWt5QUbGwnq6LQyvfGNc579/LOrFIowR7Tj1/xmFxmmHytboy4fs5qR8PDnIB9J00x5AcpDO+iDGoki9Fd1HcEyWEY4lPUUPT1j1C3Fx2+pNuObbfwuF915I8S6jNVZYyQhWmwSVsSWgki8zI+SZm9fnXgwghBtmVXy X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a0c301ee-4dc5-45d9-e3eb-08dca6d0b83f X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2024 02:24:15.8014 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR20MB6786 Add "input-schmitt-microvolt" property to generic options used for DT parsing files. This enables drivers, which use generic pin configurations, to get the value passed to this property. Signed-off-by: Inochi Amaoto --- drivers/pinctrl/pinconf-generic.c | 2 ++ include/linux/pinctrl/pinconf-generic.h | 3 +++ 2 files changed, 5 insertions(+) -- 2.45.2 diff --git a/drivers/pinctrl/pinconf-generic.c b/drivers/pinctrl/pinconf-generic.c index 80de389199bd..b9860fd31cbf 100644 --- a/drivers/pinctrl/pinconf-generic.c +++ b/drivers/pinctrl/pinconf-generic.c @@ -44,6 +44,7 @@ static const struct pin_config_item conf_items[] = { PCONFDUMP(PIN_CONFIG_INPUT_DEBOUNCE, "input debounce", "usec", true), PCONFDUMP(PIN_CONFIG_INPUT_ENABLE, "input enabled", NULL, false), PCONFDUMP(PIN_CONFIG_INPUT_SCHMITT, "input schmitt trigger", NULL, false), + PCONFDUMP(PIN_CONFIG_INPUT_SCHMITT_UV, "input schmitt threshold", "uV", true), PCONFDUMP(PIN_CONFIG_INPUT_SCHMITT_ENABLE, "input schmitt enabled", NULL, false), PCONFDUMP(PIN_CONFIG_MODE_LOW_POWER, "pin low power", "mode", true), PCONFDUMP(PIN_CONFIG_OUTPUT_ENABLE, "output enabled", NULL, false), @@ -177,6 +178,7 @@ static const struct pinconf_generic_params dt_params[] = { { "input-schmitt", PIN_CONFIG_INPUT_SCHMITT, 0 }, { "input-schmitt-disable", PIN_CONFIG_INPUT_SCHMITT_ENABLE, 0 }, { "input-schmitt-enable", PIN_CONFIG_INPUT_SCHMITT_ENABLE, 1 }, + { "input-schmitt-microvolts", PIN_CONFIG_INPUT_SCHMITT_UV, 0 }, { "low-power-disable", PIN_CONFIG_MODE_LOW_POWER, 0 }, { "low-power-enable", PIN_CONFIG_MODE_LOW_POWER, 1 }, { "output-disable", PIN_CONFIG_OUTPUT_ENABLE, 0 }, diff --git a/include/linux/pinctrl/pinconf-generic.h b/include/linux/pinctrl/pinconf-generic.h index a65d3d078e58..53cfde98433d 100644 --- a/include/linux/pinctrl/pinconf-generic.h +++ b/include/linux/pinctrl/pinconf-generic.h @@ -81,6 +81,8 @@ struct pinctrl_map; * @PIN_CONFIG_INPUT_SCHMITT_ENABLE: control schmitt-trigger mode on the pin. * If the argument != 0, schmitt-trigger mode is enabled. If it's 0, * schmitt-trigger mode is disabled. + * @PIN_CONFIG_INPUT_SCHMITT_UV: this will configure an input pin to run in + * schmitt-trigger mode. The argument is in uV. * @PIN_CONFIG_MODE_LOW_POWER: this will configure the pin for low power * operation, if several modes of operation are supported these can be * passed in the argument on a custom form, else just use argument 1 @@ -132,6 +134,7 @@ enum pin_config_param { PIN_CONFIG_INPUT_ENABLE, PIN_CONFIG_INPUT_SCHMITT, PIN_CONFIG_INPUT_SCHMITT_ENABLE, + PIN_CONFIG_INPUT_SCHMITT_UV, PIN_CONFIG_MODE_LOW_POWER, PIN_CONFIG_MODE_PWM, PIN_CONFIG_OUTPUT,