Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2881921rdb; Wed, 15 Nov 2023 13:30:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IGg9tK9+QpzwbPuGYPjnStQcPJdgw5scPISDsjCN2Z2ZPCK2//KloIYgrrJDzeO7qt1g7eO X-Received: by 2002:a05:6e02:1a87:b0:35a:d052:da48 with SMTP id k7-20020a056e021a8700b0035ad052da48mr6095808ilv.29.1700083806075; Wed, 15 Nov 2023 13:30:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700083806; cv=none; d=google.com; s=arc-20160816; b=0/vctQZxSSfBB/vsRGH9gp6K44/fDRjPH81O8ezo9tkXWCjTKrZuEYsFEu8tuRLnmG m0A9mOqXNO8zTkqcKPSaKl/sTFT9LGOmEJO5B0jRGOVDbGu7CqXCh6J1IzGV0pr1WIoX +cMvxj4pBMjdg2KSbyr4RS5wif2aZp4BKpGorAGYUe1I83Z02IOwEHUPP2rWqyb21lc4 qc59DISYCafPrgmFqHh8ZRWmOJL0djClNUd5SE9q84VsLkE/DP5V4WPdyAnujckyfjxW zw0GzmWOsUEh4LnHlkclEa0JWjLVmwe5LqE4ru74yjjPSjoy577iubko7NfeJtOboSgi N8Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=nvwColjd0CZMsWSs31lKcrK/j6omfRcU5Ub2F8LVHb8=; fh=KcOHsWVvhCyiw9aXomttl8bJjLqZqqDyWpsEZMDFBb4=; b=U8dwkx9EZze3BRVhS9kukGUVvYpoyhdcASU/+wus9oziV9wNXw+8YyiZy/P8gTJ0Iw nBE38cM2suDj7imwSwzzz24Um5M7eqj8Bf+SqsOa2i1CHjQ+DtvQQQ2Vk6uBG356p2ib KvVokCscAeXRD7Tdh1gcvJoc4K227ZTTZA3t8gRHjHDaBKk4P7GbLRWLmVi7s6kJ3jfx eN+/9oqQp5q9ZO2RJ2GWe0tRC00xjw1EWCLPEtJpkN6M3ji0u/4K8ChBwZ6Z0G17pth7 03d0TalD/lZrfTk0pB1v6WI5a33SB7u50G5v9QfeG4qd6rsY4+A4eHXM0ot9DzrbY2DC bQMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l8lPqWeQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id n124-20020a632782000000b005859e224617si11260928pgn.818.2023.11.15.13.30.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 13:30:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l8lPqWeQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 7EE9A8062913; Wed, 15 Nov 2023 13:30:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344907AbjKOVaD (ORCPT + 99 others); Wed, 15 Nov 2023 16:30:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230210AbjKOVaB (ORCPT ); Wed, 15 Nov 2023 16:30:01 -0500 Received: from mail-vs1-xe34.google.com (mail-vs1-xe34.google.com [IPv6:2607:f8b0:4864:20::e34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B21FC92 for ; Wed, 15 Nov 2023 13:29:57 -0800 (PST) Received: by mail-vs1-xe34.google.com with SMTP id ada2fe7eead31-45da75867d3so29674137.2 for ; Wed, 15 Nov 2023 13:29:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700083797; x=1700688597; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=nvwColjd0CZMsWSs31lKcrK/j6omfRcU5Ub2F8LVHb8=; b=l8lPqWeQTF91cVX5IG2FZxN7cHL8bmcU/ZVZm60dATwrAAMZePivoZo8T3NQuMjerq 7GhAoMt+VIrl7tle8tdsox9Vg4ghc4a9uuwHHUarH058+SrzupIEbX0zTw77lAkNpg+b orXbA94FsdriMAVR8NZWZ8Jfopz07VwYbJMGbZWGXpg+Rh0balkbVkiYRl2mIf7hz629 UTpJ0v339YGTFaMHrwnz0GSaCwhgwfIF1Nxq+ig9DAf9tU0TikxLEIGPi4YpCc5ey4Jo /6ARRi1htIwTTe2ObRs1flsFoaTjduIv/UVBwJ8Kspr9Jd5onRDfPdHs6HwHanoXrLqR yK+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700083797; x=1700688597; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nvwColjd0CZMsWSs31lKcrK/j6omfRcU5Ub2F8LVHb8=; b=ND12nwYo8v5W7w7eG3OPlO09+c+PMv81icxnbanL0quPSCzbgIO//nyXHgHs1AvU6W vafrNahrVwvfwSZs9re+fKbMcJ8so8hwhhi0bOzrBery9T5XwEId4R3HMqcwcuMHBeEw 0kTmzdyc8zrz8QjxpljgDKuh5KYDDoOXVMEy196/GvRRaCPfm+/fDAw6OjUNEi5FeuRJ nL5HDL02wgQX6JGkogaanEXwRNUWhDhz3ckkgpw4HQcxDKVmiAO79L7y9FvH9zXTLxgt Ou+ow3T1DXXolTG1+y7cd/sC4D/oZXXz8lekIxukMqX3WrU3iNzzi+m1yqCzngVswo6A 9wag== X-Gm-Message-State: AOJu0YzGfJcW1ck89xMYAVU0cG68nv2hOGkK/MgRrWKfNZQT+Vsuj1MY G8w3oiaGRK4XF7ZCrbxYRqpMvqm3WGLngbGQnKI= X-Received: by 2002:a05:6102:158f:b0:45d:b6af:99ae with SMTP id g15-20020a056102158f00b0045db6af99aemr14927812vsv.35.1700083796873; Wed, 15 Nov 2023 13:29:56 -0800 (PST) Received: from [172.25.83.73] ([12.186.190.2]) by smtp.gmail.com with ESMTPSA id g9-20020ac84dc9000000b0041cb787ff41sm3793918qtw.67.2023.11.15.13.29.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Nov 2023 13:29:56 -0800 (PST) Message-ID: Date: Wed, 15 Nov 2023 22:29:55 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 1/2] dt-bindings: i2c: add bus-reset-gpios property Content-Language: en-US To: Chris Packham , 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 References: <20231115035753.925534-1-chris.packham@alliedtelesis.co.nz> <20231115035753.925534-2-chris.packham@alliedtelesis.co.nz> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFN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NyxBZepj41oVq FPSVE+Ni2tNrW/e16b8mgXNngHSnbsr6pAIXZH3qFW+4TKPMGZ2rZ6zITrMip+12jgw4mGjy 5y06JZvA02rZT2k9aa7i9dUUFggaanI09jNGbRA/ABEBAAHCwXwEGAEKACYCGwwWIQSb0H4O DFH41ZZ3t1Qbk0N9O0FimwUCYDzvagUJFF+UtgAKCRAbk0N9O0Fim9JzD/0auoGtUu4mgnna oEEpQEOjgT7l9TVuO3Qa/SeH+E0m55y5Fjpp6ZToc481za3xAcxK/BtIX5Wn1mQ6+szfrJQ6 59y2io437BeuWIRjQniSxHz1kgtFECiV30yHRgOoQlzUea7FgsnuWdstgfWi6LxstswEzxLZ Sj1EqpXYZE4uLjh6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20231115035753.925534-2-chris.packham@alliedtelesis.co.nz> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 15 Nov 2023 13:30:04 -0800 (PST) On 15/11/2023 04:57, Chris Packham wrote: > Add bus-reset-gpios and bus-reset-duration-us properties to the binding > description for i2c busses. 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 > --- > ... > > Documentation/devicetree/bindings/i2c/i2c.txt | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/Documentation/devicetree/bindings/i2c/i2c.txt b/Documentation/devicetree/bindings/i2c/i2c.txt > index fc3dd7ec0445..3f95d71b9985 100644 > --- a/Documentation/devicetree/bindings/i2c/i2c.txt > +++ b/Documentation/devicetree/bindings/i2c/i2c.txt > @@ -99,6 +99,14 @@ wants to support one of the below features, it should adapt these bindings. > indicates that the system is accessible via this bus as an endpoint for > MCTP over I2C transport. > > +- bus-reset-gpios: > + GPIO pin providing a common reset for all downstream devices. This GPIO > + will be asserted then released before the downstream devices are probed. I initially reviewed it, but did not think enough about it. After more consideration, I believe this is not a property of the I2C bus controller. This is a property of each device, even if the GPIO is the same. Linux kernel already supports shared GPIO, so you only need enable-ref-counting on it. Putting it into the controller bindings looks like solving OS issue with incorrect hardware description. Best regards, Krzysztof