Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1812348rdg; Sat, 12 Aug 2023 18:54:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEw2SKW5wRMVLp0Dy0RXFpvNNvvyiUJk1UQTCVEO8VxHHMoeK5Rmtuk6oWXAxDiPwRAfAOM X-Received: by 2002:a17:907:2cd2:b0:98d:4000:1bf9 with SMTP id hg18-20020a1709072cd200b0098d40001bf9mr5165148ejc.65.1691891653132; Sat, 12 Aug 2023 18:54:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691891653; cv=none; d=google.com; s=arc-20160816; b=R3lrgH3AAH2oR6Wc+hcBtZItb2DMx3i4Wu2VSpy/PT4OqFXrvhvBIQ4sGfBGKEl2rR wZ6VPK/K9aDl3iMB/4Ks0FEk4pPEc4/cVhz8cDBuCqn8HbBQZaxyoU+d0PyBuXbqkwbM SrRLXC3uZfrJL5NhKV7Tuf6D3zt52EstLCHZEzMOjIPRfooCDRRZdSZ/6YAqmsb8Rgqp cq7xQc7uQBR4sTAlllv610VHFxsjJLN2eHwV2g/zXy3LBmIInjDwTyqsp8WpFpe69CzT X3tSONuG8k6dG7GGJGyhawam8BasFFIPLH/tvA3D3KI6GC4NTC+5XY4h3krdPkdZB62t 7f2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EIR1d/BHfI8KWZEb4+/rx9YG8REnhvL6dcuZOn6iHgY=; fh=449zJAdvkB1hCSu5iMiPtSZNNZvRIm/mbI7Q3vRAPko=; b=q1QeAF1rrokZwkYNur7i6N5sQdesmJ/rD/BZN4l/lsxcTQDi+1mKzjqulckvuLWtgV +hkVk6iHWbw4CqZxc7pEr/0I2IPCIpCjMG/OJgrx573fu9deNU9PLRkg92TRtRXP+bwi 5JCdNiZ3GK07cIan2jYwARQfv2PtweX1ZBZcNLCgeqWH7tUQZd42xH2iMkMODyseS3QS hZcH0cUGovJ/k1Tksvbvq00qsln010cY4+gsJ2IbxpxjhSL0Ojo1HJDShISYrs/CmSFV 7Gk5Pcx6bc40UVvGNJ57e82EMs5LvS8qlkKGCwsENFPZfCZRpiAT7l0rlGvGeTn+V7zd 87ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=ETx5VYAR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=rere.qmqm.pl Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t13-20020a1709060c4d00b0099b49483261si6571017ejf.311.2023.08.12.18.53.34; Sat, 12 Aug 2023 18:54:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=ETx5VYAR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=rere.qmqm.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230150AbjHLVqi (ORCPT + 99 others); Sat, 12 Aug 2023 17:46:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbjHLVqh (ORCPT ); Sat, 12 Aug 2023 17:46:37 -0400 Received: from rere.qmqm.pl (rere.qmqm.pl [91.227.64.183]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F82A10DB; Sat, 12 Aug 2023 14:46:40 -0700 (PDT) Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 4RNZ4G1FWpz4d; Sat, 12 Aug 2023 23:46:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1691876798; bh=NJ/Yc7uHKEcjOVuZ+gE0DU4BA0k1lRoFUFnn/HLv53k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ETx5VYARI3hsMwljkr2QYcvzsC83yk5mfDzd3M25zJhIv7ufo/9MWaKQM5KSnRjMm Q57Gscvs79JyL/ppus3vhCYovHpbD/LLNlpkVoUn/JP+9No+gfz2sBafz6bf400DM7 pIG+YwRaEBzrlYT9gZ1pJg2Mml9oKUNp7E6Qvg9BdfVTvuFcObiQg3pkfzttC0dytR jutJiENIsPJI9kzLO2IjeBswEZRZJuOFiV48987z4BwJe8xSKdFLfAIL3zQWvFGG58 MRRh5t81GUVZfaYORa/p8PodU3kUjkpFh+JVCbwg1mIbOylxa7Abs4XSonPXpDH7AA /ch/S7xUnpqIg== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at mail Date: Sat, 12 Aug 2023 23:46:36 +0200 From: =?iso-8859-2?Q?Micha=B3_Miros=B3aw?= To: Rob Herring Cc: Svyatoslav Ryhel , Andi Shyti , Krzysztof Kozlowski , Conor Dooley , Wolfram Sang , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/2] dt-bindings: i2c: add binding for i2c-hotplug-gpio Message-ID: References: <20230729160857.6332-1-clamor95@gmail.com> <20230729160857.6332-2-clamor95@gmail.com> <20230811173752.GA3639776-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230811173752.GA3639776-robh@kernel.org> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS, URIBL_BLOCKED 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 On Fri, Aug 11, 2023 at 11:37:52AM -0600, Rob Herring wrote: > On Sat, Jul 29, 2023 at 07:08:56PM +0300, Svyatoslav Ryhel wrote: [...] > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/i2c/i2c-hotplug-gpio.yaml [...] > > + - | > > + /* > > + * Asus Transformers use I2C hotplug for attachable dock keyboard > > + */ > > + #include > > + #include > > + > > + i2c-dock { > > + compatible = "i2c-hotplug-gpio"; > > + > > + #address-cells = <1>; > > + #size-cells = <0>; [...] > > + i2c-parent = <&gen2_i2c>; > > Couldn't you just add 'detect-gpios' to the existing bus node? It's > really part of that bus and there's not a separate bus. That would be a > lot simpler. I suppose you want to instantiate a driver, but that's not > DT's problem. Not a driver but a group of devices (possibly discovered dynamically) behind a passive gate (like e.g. PCA9517A with EN tied to a connector pin). It's not much different to a I2C gate or mux with a single child bus (i2c-mux-gpio that has only a single child). For ASUS Transformers with only the dock plugged-in it could work with a 'detect-gpios' extension (I'll take a look at how this way would work). I think there were also different attachments made you could connect instead of the dock. Best Regards Micha? Miros?aw