From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 7EB543D9C for ; Fri, 27 Oct 2023 03:31:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b="D0Wk1mvA" Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [IPv6:2001:df5:b000:5::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44F491AA for ; Thu, 26 Oct 2023 20:31:12 -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 24F412C011D; Fri, 27 Oct 2023 16:31:09 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1698377469; bh=fhjMiQeoXkVBPNXsIJuW1BQL7JD4RG68hd+jZlHsO3I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D0Wk1mvAYJdVtcq1ZERIFf/snAQK3ZiukPM8kD4lPZh/m9ZUyjPcD7UgDQu4ZUEBj qZ/exv/Wf8E0N4X0f/aQPFzN9Ce2Ke2ixjn/KuIcGS753dUAQIKiq9Bg5h/PsD2vW0 IIbg6WjFPkJ+pP08OjXKpV/Y2J0Ff2RlcvIxtg8ZRpBJQswx5vad+AUDQbmB4lWDVx kD11KuQpsbL/vSilQWZ6OikijiAUIcpY/lQKK1MBLTQz4P/tHKKAR2mFJx4t/9xqsP 3x+/d/3iAx1hVzwf8Q45zkZBkM+XHwN26irTZfisYMCnjkaJ/YmbLeEIqHlN3U31wx eH1Rk2Vcbavkw== 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 ; Fri, 27 Oct 2023 16:31:08 +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 5E70413EE44; Fri, 27 Oct 2023 16:31:08 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 5A4F8280347; Fri, 27 Oct 2023 16:31:08 +1300 (NZDT) From: Chris Packham 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 Subject: [PATCH v5 1/2] dt-bindings: i2c: mv64xxx: add bus-reset-gpios property Date: Fri, 27 Oct 2023 16:31:03 +1300 Message-ID: <20231027033104.1348921-2-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231027033104.1348921-1-chris.packham@alliedtelesis.co.nz> References: <20231027033104.1348921-1-chris.packham@alliedtelesis.co.nz> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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=KKAkSRfTAAAA:8 a=N1qcaoclDu5WUfG3NQYA:9 a=cvBusfyB2V15izCimMoJ:22 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat Add bus-reset-gpios and bus-reset-duration-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 asserted then released before the downstream devices on the bus are probed. Signed-off-by: Chris Packham Reviewed-by: Krzysztof Kozlowski --- Notes: Changes in v5: - Rename reset-gpios and reset-duration-us to bus-reset-gpios and bus-reset-duration-us as requested by Wolfram Changes in v4: - Add r-by from Krzysztof Changes in v3: - Rename reset-delay-us to reset-duration-us to better reflect its purpose - Add default: for reset-duration-us - Add description: for reset-gpios Changes in v2: - Update commit message - Add reset-delay-us property .../devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.ya= ml b/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml index 461d1c9ee3f7..b165d1c4f0b1 100644 --- a/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml +++ b/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml @@ -70,6 +70,16 @@ properties: resets: maxItems: 1 =20 + bus-reset-gpios: + description: + GPIO pin providing a common reset for all downstream devices. This= GPIO + will be asserted then released before the downstream devices are p= robed. + maxItems: 1 + + bus-reset-duration-us: + description: Reset duration in us. + default: 1 + dmas: items: - description: RX DMA Channel --=20 2.42.0