Message ID | 20231016023504.3976746-2-chris.packham@alliedtelesis.co.nz |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp3198855vqb; Sun, 15 Oct 2023 19:35:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEZ4vFdnZbtHRwDBzDd6GGNJDXQ530B6V7rMnypElk/uWHIdn6qsNa6MSSchgXp36TJkCYj X-Received: by 2002:a17:903:2306:b0:1bb:ac37:384b with SMTP id d6-20020a170903230600b001bbac37384bmr37289647plh.6.1697423744540; Sun, 15 Oct 2023 19:35:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697423744; cv=none; d=google.com; s=arc-20160816; b=0O76kbkLOYpJ5a3hl40rmOXrw7GaW0cc3+K+KVXBXqwMi3xwomszRpvYJCXUsEODYF 3xRopj4KSABIiMZCkPGLUi3+FvEFBcNkvc/hTFrGRmGU88QEZk6F1dDt9UVh6fuunCUe B59H4AAvEUShcfy3CyLX9JytkJH+HzPVI6KNmt+M9LykK/jJPFJHndTBV+N0SBa6Xaf1 zf01u7X1JdDMJecJ532OxTzCxvscKNlqmBY6j9GrvwqZT/lWni6fOpm39Td99VZM1KuW k47M8ULhUA4qGxgRr8wCyL5wT0klMwTJvCw7zE5zmmlHfRN8MQ+Ht+kymdNpzrAxd2Ef e44A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OB1HFD0haj60ittWb4C4v4aE6Zvqg/jIQB4+5b3lZ8I=; fh=3tQj0XukzIaVVOd6lLPEALhtzKzMAG+0/N98Vq3ytYw=; b=s6GvL2O9ryzOml0FXf6iOwx2DSOZ4NFjKBczBIv9yUbR4hwyOWOhwc+CRRdrwlvt0t EDJL6gFNqeS78UlA4dXVoDRiqaFDSB+5xfG223wvhocm8Zs4Wmri4CME7h6OledRDyyG o0lnBaFdfw46nvdGoFLUyNEADg1t/88ua2cusGjL9k4oyd7w4M1iOpI6wSkX0HGxoQds VQ44oPeF/wuFkYjglZc1srn1TF2gCo0JYYOR7u6at/5NZey74OdztKw6KC4NESagKJdM Hp3Hev9ML+ALh9oTVaDQuveLtRAGUZYBjepImreEtZsSe/k3yzPCffjs14LU2zc1BUyW WyPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=kUbKuvA4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id h5-20020a170902704500b001b3bd85f54bsi9078873plt.35.2023.10.15.19.35.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 19:35:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=kUbKuvA4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 9B6FE806236C; Sun, 15 Oct 2023 19:35:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231409AbjJPCfS (ORCPT <rfc822;hjfbswb@gmail.com> + 18 others); Sun, 15 Oct 2023 22:35:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231168AbjJPCfN (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 15 Oct 2023 22:35:13 -0400 Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [IPv6:2001:df5:b000:5::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D41EDD for <linux-kernel@vger.kernel.org>; Sun, 15 Oct 2023 19:35:10 -0700 (PDT) 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 E99432C0405; Mon, 16 Oct 2023 15:35:07 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1697423707; bh=OB1HFD0haj60ittWb4C4v4aE6Zvqg/jIQB4+5b3lZ8I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kUbKuvA4hJxMPzKxurRcQFeYQKJLAbYdmc5d8iJffeGIvFq4R87Nm+FI93Kp6MDI5 HpGUwrZhx0paEVdzcX9HEVTK4a/B+1BaaTCfBh4s+Z7gmgdy+55X0ed7DUqI/5bor/ 5plNxxpS38BU7M/5iHcWDhGX+ZDAOSVJauLx5gQqqDvHzszG3qvGW/lhBTfv+ppe9O CGQjY2wAH8JfScQt3wd3Sslhwd9cka0ea/LZctHSC0jmQS55taAnc+q0wOihrs0ngL Y0o2l1ELwt3fXrZWvbzRyDmkzqN7M967lmWQb/d0mx5H/YU+OYEKL3/G0SwZ0wel4L RWM+pIrXbE10A== 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 <B652ca15b0001>; Mon, 16 Oct 2023 15:35:07 +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 ADADF13EE4B; Mon, 16 Oct 2023 15:35:07 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id AB2A0280056; Mon, 16 Oct 2023 15:35:07 +1300 (NZDT) From: Chris Packham <chris.packham@alliedtelesis.co.nz> To: gregory.clement@bootlin.com, andi.shyti@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Packham <chris.packham@alliedtelesis.co.nz> Subject: [PATCH v2 1/2] dt-bindings: i2c: mv64xxx: add reset-gpios property Date: Mon, 16 Oct 2023 15:35:03 +1300 Message-ID: <20231016023504.3976746-2-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231016023504.3976746-1-chris.packham@alliedtelesis.co.nz> References: <20231016023504.3976746-1-chris.packham@alliedtelesis.co.nz> 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=bhdUkHdE2iEA:10 a=KjBMs4lFH6h5yTpZ_i4A:9 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Sun, 15 Oct 2023 19:35:42 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779877800553212431 X-GMAIL-MSGID: 1779877800553212431 |
Series |
i2c: mv64xxx: reset-gpios
|
|
Commit Message
Chris Packham
Oct. 16, 2023, 2:35 a.m. UTC
Add reset-gpios and reset-delay-us properties to the marvell,mv64xxx-i2c
binding. These can be used to describe hardware where a common reset
GPIO is connected to all downstream devices on and I2C bus. This reset
will be released before the downstream devices on the bus are probed.
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
---
Notes:
Changes in v2:
- Update commit message
- Add reset-delay-us property
.../devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml | 6 ++++++
1 file changed, 6 insertions(+)
Comments
On 16/10/2023 04:35, Chris Packham wrote: > Add reset-gpios and reset-delay-us properties to the marvell,mv64xxx-i2c > binding. These can be used to describe hardware where a common reset > GPIO is connected to all downstream devices on and I2C bus. This reset > will be released before the downstream devices on the bus are probed. > > Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz> > --- > > Notes: > Changes in v2: > - Update commit message > - Add reset-delay-us property > > .../devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml b/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml > index 461d1c9ee3f7..7223797b0572 100644 > --- a/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml > +++ b/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml > @@ -70,6 +70,12 @@ properties: > resets: > maxItems: 1 > > + reset-gpios: > + maxItems: 1 > + > + reset-delay-us: > + description: Delay in us to wait after reset gpio de-assertion. Add: default: XXXX Best regards, Krzysztof
On Mon, Oct 16, 2023 at 03:35:03PM +1300, Chris Packham wrote: > Add reset-gpios and reset-delay-us properties to the marvell,mv64xxx-i2c > binding. These can be used to describe hardware where a common reset > GPIO is connected to all downstream devices on and I2C bus. This reset > will be released before the downstream devices on the bus are probed. > > Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz> > --- > > Notes: > Changes in v2: > - Update commit message > - Add reset-delay-us property > > .../devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml b/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml > index 461d1c9ee3f7..7223797b0572 100644 > --- a/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml > +++ b/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml > @@ -70,6 +70,12 @@ properties: > resets: > maxItems: 1 > > + reset-gpios: > + maxItems: 1 It would be worth saying this is common for all downstream devices on the I2C bus here. > + > + reset-delay-us: > + description: Delay in us to wait after reset gpio de-assertion. > + > dmas: > items: > - description: RX DMA Channel > -- > 2.42.0 >
diff --git a/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml b/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml index 461d1c9ee3f7..7223797b0572 100644 --- a/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml +++ b/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml @@ -70,6 +70,12 @@ properties: resets: maxItems: 1 + reset-gpios: + maxItems: 1 + + reset-delay-us: + description: Delay in us to wait after reset gpio de-assertion. + dmas: items: - description: RX DMA Channel