Message ID | 20231115035753.925534-1-chris.packham@alliedtelesis.co.nz |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:a59:b0:164:83eb:24d7 with SMTP id 25csp2373101rwb; Tue, 14 Nov 2023 19:58:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFmHr7bxEeIO+uhPxqXeFFB2hpxuQ2Z5uQjypaeMymGyEaEiByQr10JjeYmKbnaLq5tmFVY X-Received: by 2002:a05:6358:63a9:b0:16b:c400:bd50 with SMTP id k41-20020a05635863a900b0016bc400bd50mr4283280rwh.4.1700020712642; Tue, 14 Nov 2023 19:58:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700020712; cv=none; d=google.com; s=arc-20160816; b=vXR5PDWLG5sl/cihvhD3muh12T65jcLSQj1WmhUbqmXq1g0kRNAkwfXE5STJCyv8GA Zz7SogSSQDEclU9qS4BbX9r1JJii/nh2vVzFHWQGXBAD2WxsjkV2r1CErgziBbTfqPvR a1KIxktNOALSeqwFPFKmESOpYHBKOcLUH7Koohw7qiG++Lcf5u+Jtj+XVqtSd6GafY09 LWGyb/ExLUq/UJuWuXRDdgLR9g7L9A3qd1YVw2krNvJ2E/wPrQhWZw5RM1jOP/1fa2u3 SmVDHbaqYlKexc4NXjbGAVrj2cNBU21KNXwQIlwhSL9RccwB9iw+aDmpUzkiUAokIYZD GFqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=uA0rlb6Ck8yhsN/S3XkQO0YUcaI5j9KtFBfH6I+NaZo=; fh=8dKo/AYUwqZbM6OvPOtd0I4uFRFV6xZWXb1D4LkmzlI=; b=Zxp34xSb3odSov9Oz9ja/N/VKN4oFHoSUQAJZoi0qM5Jg34K4qhSPmiV8ynbQ3mX8q 1wUo/qCo5j3KYo7GisgS5XjWIgV9ZCZj+ArcAyBAQ93fNMy1OYgVu+yN07P1tHf4IbPI U/vq7TnEbQiOhWaNKoFavMposnCaEonWgJa9nSu9+QAdfuXgmqrMVgtxWl57BSNg+kj/ SczIjQuovi/tnV6+/4bF9dG6eBJxcKLsGR7CNGXJ0/kukxCSW2O03dp2HQAVf7Az0ytl Vl/t0xoMMFGlhFciJsVqdN1rTDMUJuFxPV/lET3GXV/VS/vseo8TnOBtppp/SvYoLBDF ls/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=n7qxPWtY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id i7-20020a6561a7000000b005b86b35778fsi9001794pgv.180.2023.11.14.19.58.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 19:58:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=n7qxPWtY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id DCC82808BDBC; Tue, 14 Nov 2023 19:58:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234414AbjKOD6H (ORCPT <rfc822;heyuhang3455@gmail.com> + 28 others); Tue, 14 Nov 2023 22:58:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbjKOD6G (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 14 Nov 2023 22:58:06 -0500 Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [IPv6:2001:df5:b000:5::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6ED8FD7 for <linux-kernel@vger.kernel.org>; Tue, 14 Nov 2023 19:58:02 -0800 (PST) Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 255F92C018D; Wed, 15 Nov 2023 16:57:59 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1700020679; bh=uA0rlb6Ck8yhsN/S3XkQO0YUcaI5j9KtFBfH6I+NaZo=; h=From:To:Cc:Subject:Date:From; b=n7qxPWtYjW1Wj2ip0rg6lHeDSRcFSnbVa1U6mjbn964MFmC/zQW9qqT1uRF2P0C0V 4TiAaYWKj9TBc+KzR21B28aPdOWvP9gzBjum6ckMuPm5K34vL6d1DuPT9xaDmN7AOT LXS+wIUpXN3+EndQcqJJ28rPqGHrsa8v6+evvorWGjAf974t3O3LmQaXvpHLPT12/k rM/ezjTtiihfFdYBHrqcXdL9rX6zqG3RBdXX/DsJCqf3elv7qK6FNQ7IzU4nBcwQHN I/DNjJaMkwGueIFkuxfjARRGJvB9fTTtUSCL5jiXGvsfkCkhCdeOYkU2d2Y59wCQf1 uk/GCopvXAOoQ== Received: from pat.atlnz.lc (Not Verified[10.32.16.33]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id <B655441c60000>; Wed, 15 Nov 2023 16:57:58 +1300 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by pat.atlnz.lc (Postfix) with ESMTP id 8827613EE3F; Wed, 15 Nov 2023 16:57:58 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 7FFFE280590; Wed, 15 Nov 2023 16:57:58 +1300 (NZDT) From: Chris Packham <chris.packham@alliedtelesis.co.nz> To: wsa@kernel.org, andi.shyti@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, gregory.clement@bootlin.com Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Packham <chris.packham@alliedtelesis.co.nz> Subject: [PATCH v6 0/2] i2c: bus-reset-gpios Date: Wed, 15 Nov 2023 16:57:51 +1300 Message-ID: <20231115035753.925534-1-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SEG-SpamProfiler-Analysis: v=2.3 cv=L6ZjvNb8 c=1 sm=1 tr=0 a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=BNY50KLci1gA:10 a=VwQbUJbxAAAA:8 a=DIZWHGWb_bPM9LNtZTAA:9 a=AjGcO6oz07-iQ99wixmX:22 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 14 Nov 2023 19:58:25 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782600918969954042 X-GMAIL-MSGID: 1782600918969954042 |
Series |
i2c: bus-reset-gpios
|
|
Message
Chris Packham
Nov. 15, 2023, 3:57 a.m. UTC
This series adds the ability to associate a gpio with an I2C bus so that downstream devices can be brought out of reset when the host controller is probed. v5: https://lore.kernel.org/lkml/20231027033104.1348921-1-chris.packham@alliedtelesis.co.nz/ The conversation sparked from v5 was heading in the direction of this needing to be more generic. So I've moved the changes up to the i2c core, which is about as generic as I'm comfortable with. Chris Packham (2): dt-bindings: i2c: add bus-reset-gpios property i2c: add an optional bus-reset-gpios property Documentation/devicetree/bindings/i2c/i2c.txt | 8 ++++ drivers/i2c/i2c-core-base.c | 39 +++++++++++++++++++ include/linux/i2c.h | 3 ++ 3 files changed, 50 insertions(+)