From patchwork Fri Sep 13 10:37:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wojciech Siudy (Nokia)" X-Patchwork-Id: 1985156 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=nokia.com header.i=@nokia.com header.a=rsa-sha256 header.s=selector2 header.b=el3sPBs1; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45e3:2400::1; helo=sv.mirrors.kernel.org; envelope-from=linux-i2c+bounces-6701-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [IPv6:2604:1380:45e3:2400::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X4rNm260wz1y2H for ; Fri, 13 Sep 2024 20:37:44 +1000 (AEST) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id F3F4C289F09 for ; Fri, 13 Sep 2024 10:37:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E75B41C2DAA; Fri, 13 Sep 2024 10:37:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nokia.com header.i=@nokia.com header.b="el3sPBs1" X-Original-To: linux-i2c@vger.kernel.org Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2043.outbound.protection.outlook.com [40.107.104.43]) (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 AD8E780B; Fri, 13 Sep 2024 10:37:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.104.43 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726223857; cv=fail; b=Fxx8uFRui2X9WSF2cioh/PORQmlx9VSyEc3D5jFEWvct9/LauGR+fmqvHA0Z2T+T/cnFyZuLXV+BHWSfN0GuyVPMey1zNMXkNzJMbkqAfEORb0b0oZL61wl1a3PeTdnKKDYnQ4ZQVTJ6Evqx05AB+uC77T7RpQRVDm81+AEq3jQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726223857; c=relaxed/simple; bh=B6rVBiHEre5aw3k00IOynDZyCjkwj8pNUcpe4HHhXW0=; h=From:To:CC:Subject:Date:Message-ID:Content-Type:MIME-Version; b=u8XAif4EPaN7VWEyIY+a137kheLC78bDRZWFPz/1E2PhlM0GEafz7J8M1sZEemzn1y/EwLcAawPtw8/bhwKKMbsBA/ou4X5ZKOvboNCre62xcDYMw20qfQUrey/vg5dy1gapnv/MbiPZsY78H9nPNbZuGOmXKxJqG43k2xn/wdY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nokia.com; spf=fail smtp.mailfrom=nokia.com; dkim=pass (2048-bit key) header.d=nokia.com header.i=@nokia.com header.b=el3sPBs1; arc=fail smtp.client-ip=40.107.104.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nokia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nokia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Lpkb/xfZ2U01XIRkNiH14tGjgvNFvmjWna67SJVKSVJ6qtipAfCp8CUDp2Eg8D5ozA/DXQTQzF8jXyFSp7lPR+K7mNV/c5EFdm4tJITdFRsJma4HAppD1Z4OYx76pmsRovIK5KiuxcaWKJC384+JAwPSTn5RloSOWwAYl2l3hmxkn5+1SfzbF+lOEg6ZQYWnmFVGVVs7uWLtBK61xBLh4cq8Y46z5D7DKvfF9B2H3T8Nil3df+upDeQN6ajYxhXdr8A6NSJkF7qUYfTNYvWXQRBvz7apj1SfKAn8OZYRL8Se452lUcGYgAsCZODMYxVuQ2HMmoqJNPRUQrxb9sQJtQ== 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=DBWD1K4+3RfYOz6ml5XAu+I43C6yVC4FsoCZR6m1a4I=; b=HsEwP5147sMH1JLwuwUa6S7SjuD8gcWePyfj+fkqwsVqwzMqu4viTyd3r5Zt1kP5ydnaIzz6FAuUg+g3go1MnWMBZCuRZ+e+5ayuU0bLXPfXOBwhLLsaP7XTpjoB6LTZfHd4EjCNiVUykbi54LdYd5U5FqFkVA5i3kFWnwItj4fbUqyX06nJE1JYzq7Rx6jSwVjSZV0JONuMb5LYGAQbw/wMMNLlxuyj/kCu5ZowTbjpDqkw6d+GNOEw+9IrTDL68Gt+qzBtzSXeVOQTVsU6CLdDiupRJH1fNx4+Da0wKo3EKTn4dfiv/dUozLcWRNz8NokHK1je//iAM6C6HZsbQQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DBWD1K4+3RfYOz6ml5XAu+I43C6yVC4FsoCZR6m1a4I=; b=el3sPBs1VeCIdJC3CrClpj9sMNHspsF3hhvCb8H4comCe3Q8XeqzH94ih/qT3gjgXraX/W/amyTkTMBhuK5xIL191y0vb2CS7ZwkrOLSREf/cEwkfsl6TZAxpvZ93M4ugBPVub+wkHQnmkbmsi1+Iwy2oB9nzmPm/gZQf8/F7wJ52FFth5zDoSA4pfQoORvUpqLYCcKaAbdMtiTm7nm8mFUB6apneJUHiQVbONXE+L5zLJfwroPOwcvjXSX/nT22h0aSnQtn1eoFFmNt7LdHQl2LYnZoOG5ppun9OKSRwcmBSJ3ugz/hUsmbvJxQH2kwouklrm1jYEC8Cu5VSnggvQ== Received: from DB6PR07MB3509.eurprd07.prod.outlook.com (2603:10a6:6:21::16) by VI1PR07MB9408.eurprd07.prod.outlook.com (2603:10a6:800:1c3::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.17; Fri, 13 Sep 2024 10:37:30 +0000 Received: from DB6PR07MB3509.eurprd07.prod.outlook.com ([fe80::5484:a966:1322:f78b]) by DB6PR07MB3509.eurprd07.prod.outlook.com ([fe80::5484:a966:1322:f78b%6]) with mapi id 15.20.7962.017; Fri, 13 Sep 2024 10:37:30 +0000 From: "Wojciech Siudy (Nokia)" To: "linux-i2c@vger.kernel.org" , "devicetree@vger.kernel.org" CC: Peter Rosin , Andi Shyti , "laurent.pinchart@ideasonboard.com" Subject: [PATCH v4 1/2] dt-bindings: i2c: pca954x: Add timeout reset property Thread-Topic: [PATCH v4 1/2] dt-bindings: i2c: pca954x: Add timeout reset property Thread-Index: AQHbBcjQ3MHOkSAFhkWJk/Sp2JYEzA== Date: Fri, 13 Sep 2024 10:37:30 +0000 Message-ID: Accept-Language: pl-PL, en-US Content-Language: pl-PL X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nokia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DB6PR07MB3509:EE_|VI1PR07MB9408:EE_ x-ms-office365-filtering-correlation-id: 8a6149e2-9181-4a9d-2ed8-08dcd3e011b1 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|376014|1800799024|366016|38070700018; x-microsoft-antispam-message-info: =?iso-8859-2?q?BbFkpTWiK59j7ZresLUjN+UsQx?= =?iso-8859-2?q?zylUYtWLgP9Aa9Sl+SQnV3ZODu3/iz5M6rdKEhtlGjFErQ1rJOAfjH3h3iIq?= =?iso-8859-2?q?Zyuy/nOqr9D8VcQ8+/lLLX8cXM9ZQmKvH5BvWfo/akoEynFjvWHGlJv27E33?= =?iso-8859-2?q?U7vEHIuGJ6wL3M/SAfUCuGYjY8BoIi644nYwVIjoA/lyGq+OLCShcnndWRsb?= =?iso-8859-2?q?YAMd9Vc7JzVav7Hv67JlQazaIkwumySnD24eSB1sKGW6rAZZvRwtx1ewn5Cc?= =?iso-8859-2?q?8pZq4F69A1tTNS8b8zcZA2SMJitHYQRbq4pHM1DpJsNXl9XOf9m6NnuJpjtA?= =?iso-8859-2?q?jD/iutljmnVnfeG5YM595/oXJxxGy6SpJZCmkmZn5r4BFmZgNuXSSWmj3i2O?= =?iso-8859-2?q?c1TokvSoujGNu8lGULOFPITG+18VmjYZZPHnfzxspOc5PJdH1An+9L/7DMkh?= =?iso-8859-2?q?PicloKLANq0hOmX760PAVfyVb81DaHIqG+OnZIoTEx2Z/5i4ltRzPzqwtPuU?= =?iso-8859-2?q?ze41GeIgLEXPmpCdlPb0pWzHzRrfBg84k5HTLz0y1AsK581CszPWiC527udX?= =?iso-8859-2?q?Dhud7zJ8YdJjI8wsUZ93gN+SuN6IfpKen7VaYsvVpl2hhzjV2nlVj9xQgR2o?= =?iso-8859-2?q?QnuJWX53mewY07oeVXPOklx3NY64hO3ttYlRSMXj8tj9RqQqPevG7HqWERva?= =?iso-8859-2?q?kuVmdMchF7LhB+3O20UHZ0cMbkS1DBPw+uVpElUQis9e1QZzENzZcBt7gND6?= =?iso-8859-2?q?JbtRkvH2ClCp4Nne72E8OH3UYzlYkCSLenTHcAfufEEvuBPsUUUNO1k4wLoN?= =?iso-8859-2?q?RZX6yff2j2del/vPpFqCvTpmg7HZ60/wsxekZSFUe0IXXQHqdIteJCqdRtgJ?= =?iso-8859-2?q?dqkb0FSqq+GIkicOM5tk6zXpYGrJtMwsk52y9s22Rpb7EDjyZW798wreU4UI?= =?iso-8859-2?q?iZqf7AHZ8PmJYxS0kTSe9fV32LdcOcPMEbE1OWUQDvDthUttvs/Yylue2kmO?= =?iso-8859-2?q?8yqP3o+z73Aq2ylZaKBY4nc0I5uCZOf1AxZJsJh8f78GWaNSmEAdnWSAVh/c?= =?iso-8859-2?q?+gJ5RxUS75L9ql13kTkIVgVg5iVMT0Ejjo0jawLVXYv+GUIxgH4YnC8Wy7Xo?= =?iso-8859-2?q?alVs6/ApyOPhkA824rbjZ/h9IMuLwzIMhMCGbtKHhz8R5cGn/PiH38HZQH2d?= =?iso-8859-2?q?WDFXGseDUtLfZrX2ZH+Li3S6UmL+ho8bYdbLv8SySpYpiL6mEvKuSfhrHojO?= =?iso-8859-2?q?53dGQx52E4RvuYAdgld0moE/+BLn+BEzAbe/qqhJOdpUol9ZCF1i+I6z+0ow?= =?iso-8859-2?q?fuoJCNMOcJSximPSqfxXChEi/1YGyudM1HnnVXvfCTAjmQTZV8hUOxsnukEH?= =?iso-8859-2?q?Ue6fTBOczhZnPuQFuvUQ=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB6PR07MB3509.eurprd07.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(366016)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-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+aJ1zNrvqFRdBwSE?= =?iso-8859-2?q?FD+JlPogbsV/L3QKmeF/lpLysjOq244qokJGATLzYCpP9lQ9X4MLyz9XM/jB?= =?iso-8859-2?q?hmVzj2z7mqT3Jh2iZBlgAw/GpfXFOzdDX0Kl5e/9pZXJAfxRZjD5fQY2GhX9?= =?iso-8859-2?q?jNgTmFJ1uSDsXHswUnjyEdJjhiye8Nh95jwLsv/iulnu/uPDy/jX9giBnVcB?= =?iso-8859-2?q?XpUFEChCkhFuYyIKIU9Yv+/ZRaviMkdaY0D+RRL9kPFB/LpGmVbw16dl/Wex?= =?iso-8859-2?q?7z3iY1o3sm+n6hNcn5NxODDv8SVfEpVHCM1m1Qie8RlTB9Yg7USvsmgIX22v?= =?iso-8859-2?q?flRvP5ntTBX7Ajqcb3b52Zc5V12L/lcHJTuG42WrThGVmbURiE5s0IOsLhd6?= =?iso-8859-2?q?o/iCuUz64bEoUMTZyqT4f74vjrJEgE0w5u/dIcbtCH7VDy67L8nnzHqENezn?= =?iso-8859-2?q?2G8n996zUjS18u3rv9ljcu89SyAhGhLOS1dD83jKotcaCq7XK5653dHls+9L?= =?iso-8859-2?q?3ooNv/dQY82j/BHXEMEkCZcpx2TQ1ARq55v/5sERBaUDSuh9agr6mvXLzi0l?= =?iso-8859-2?q?jhj2I997m3hlkCcXDgl+2fqvp8Jh/fs9cUY4sCIdN2tnceJDMMGLA9g8hq39?= =?iso-8859-2?q?tbV0H3CNlkqfrrYsRicue4tMnWVi1AEu1v1LvvHelYpvPnDIbeNEd0eCszOi?= =?iso-8859-2?q?u+5BH9MM2GaYACEI2BnnwK3ahtTkmSoF3GRzQ4p2keDSNWPkzzzcLtQzRSRy?= =?iso-8859-2?q?9YqHmqISuDCnKLD3r?= Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DB6PR07MB3509.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8a6149e2-9181-4a9d-2ed8-08dcd3e011b1 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Sep 2024 10:37:30.2284 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: EOARj+p+gDS+FnpKYR16PlzTzWtsoZ9syneSldSTKXuklz0uenoUFRaQdpTo+gBm7GsN1JN8hBNp1n2lLxn4ky8zu+bkQSH85hMFMOJ5bvI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB9408 From: Wojciech Siudy For cases when the mux shares reset line with other chips we cannot use it when channel selection or deselection times out, because it could break them without proper init/probe. Signed-off-by: Wojciech Siudy --- .../devicetree/bindings/i2c/i2c-mux-pca954x.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml b/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml index 9aa0585200c9..872be72da965 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml +++ b/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml @@ -63,6 +63,12 @@ properties: necessary for example, if there are several multiplexers on the bus and the devices behind them use same I2C addresses. + i2c-mux-timeout-reset: + type: boolean + description: Sends reset pulse if channel selection or deselection times + out. Works only if reset GPIO provided. Do not use if other chips share + the same reset line. + idle-state: description: if present, overrides i2c-mux-idle-disconnect $ref: /schemas/mux/mux-controller.yaml#/properties/idle-state @@ -146,6 +152,8 @@ examples: interrupt-parent = <&ipic>; interrupts = <17 IRQ_TYPE_LEVEL_LOW>; interrupt-controller; + i2c-mux-idle-disconnect; + i2c-mux-timeout-reset; #interrupt-cells = <2>; i2c@2 {