From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796157491; b=1ZFyNOyYxmPMCbBNhqcKRDVlls0MIM24MwRae0p7grcb0UnqTXmiV41ikdHqgRVENtos lWyIygwharKmVekYO3T6HiJkWg69I5IqS4lRV0qniEMEQjwaEsl4pq6KI/eTryGg6Deeq 2Bs3SseTO+LOD2YDKEM4gNmmhM5LRrMbjHsKVByQjYqe/sYZuDhHYcbsNuGRvg2dug6rc CTekr3W/lYGN6/UZs+K/UMx4yIuxG6bosoKo2SKu7Suf0QkTMaM+cXWxuIicNgDR654TA TIhPgvuc1cOwRDNQGiKiSQFUaZF2pags5gEmRot3ZT8X61hQywzfYg0zdVHJbopnWBQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796157491; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=fH7dUbflZfVKgrrIW69l4mT21rxOt/w6MJSLGewSFWQ=; b=Me9+uFq1n+IB4smmOQNFbljOEsl3lZhy0xmQ+GUmHCP+9P+//lJMkDUjikT9LaP1j1Hy vDWlUUPUgKGlqCzxHbWYD91QKVLioXaZthQqXHlRFIcbe8cG4Zvgb9AlpfP9dxNBD7bv3 4au3YU3r+3zS4SQiBRNi9ajDYoISdwf2Ja3zcgeMJ9eHtUnPdS17suhPVOZhtpKuCWTUa 88vqqNS0RB45skV+yDJBBTYeETQRR9GQgPNhp9+yn8JkfrTISygAxP2jqDZ5T8pzytkVA ZAbheLLZbBo36HmNYcF+y5C6b2Tcp6Oj2Td6FiIUq9DtVR4AX1WEQVnG9thri8HwwRw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=IyFzOUIp; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1680606A320; Tue, 1 Dec 2026 20:38:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=IyFzOUIp Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56DA41F0089C; Tue, 1 Dec 2026 20:38:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796157490; bh=fH7dUbflZfVKgrrIW69l4mT21rxOt/w6MJSLGewSFWQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=IyFzOUIpAmJds0ZrfNjeYkLL7tJ4LRu1ikgDFatJtV9zdYtVw5TOqZH3XV385X84C TIibVIWmGL5yJBRIJmeQODXso521KOT9LsbB+XQxmArTbqPQlTRTxylW8neSiU8eCl NNpRHlrnTCrp/vRSQSjye5RuHQ9qDvaB+yJE+V3eIkQPM1jATX0TdZa6nTYejhQfNl ZlWeEQdV7YF/DYMDpLEqpS5O2gbRGUVVW45s3hYziCKUArs1ceVQFJvdAfOXwKd5xX W0HvAdpu1ZPcWlwkYmLs/9/PHuJe37CLcBOkUVuuIyikqtmMIzaY9I6OoYFpx3on4D WiDPxUAQnA+4Q== Date: Tue, 1 Dec 2026 14:38:08 -0600 From: Rob Herring To: Arun Iyengar Cc: Andi Shyti , Krzysztof Kozlowski , Conor Dooley , Wolfram Sang , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , =?iso-8859-1?Q?Bj=F6rn_Ard=F6?= , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] dt-bindings: i2c: Add the slave EEPROM backend Message-ID: <20261201203808.GA3762312-robh@kernel.org> References: <20261120-i2c-slave-eeprom-of-match-v2-0-0444790a0b76@gmail.com> <20261120-i2c-slave-eeprom-of-match-v2-1-0444790a0b76@gmail.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261120-i2c-slave-eeprom-of-match-v2-1-0444790a0b76@gmail.com> On Fri, Nov 20, 2026 at 04:32:17AM +0000, Arun Iyengar wrote: > A node with one of the i2c-slave-eeprom names as compatible and > I2C_OWN_SLAVE_ADDRESS in reg already binds to the backend, because the > I2C core names the client after the compatible and matches the I2C id. > The driver also reads firmware-name. None of this is documented. > > Document the names without a vendor prefix, as the driver and > Documentation/i2c spell them (ipmb-dev and mctp-i2c-controller are > unprefixed too). > > Signed-off-by: Arun Iyengar > --- > .../devicetree/bindings/i2c/slave-eeprom.yaml | 59 ++++++++++++++++++++++ > 1 file changed, 59 insertions(+) > > diff --git a/Documentation/devicetree/bindings/i2c/slave-eeprom.yaml b/Documentation/devicetree/bindings/i2c/slave-eeprom.yaml > new file mode 100644 > index 000000000000..b7a6e6653a64 > --- /dev/null > +++ b/Documentation/devicetree/bindings/i2c/slave-eeprom.yaml > @@ -0,0 +1,59 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/i2c/slave-eeprom.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: I2C target EEPROM backend > + > +maintainers: > + - Arun Iyengar > + > +description: > + The I2C controller answers on its own address as a target and behaves > + like a 24Cxx EEPROM towards the other controllers on the bus. The > + compatible selects the EEPROM type that is simulated. The "ro" variants > + ignore writes from the bus. > + > +properties: > + compatible: > + enum: > + - slave-24c02 > + - slave-24c02ro > + - slave-24c32 > + - slave-24c32ro > + - slave-24c64 > + - slave-24c64ro > + - slave-24c512 > + - slave-24c512ro Please avoid further uses of 'slave'. For the actual devices, we have 'read-only' property IIRC. Perhaps a separate property is better here. > + > + reg: > + maxItems: 1 > + description: > + Own address of the controller on the bus. The I2C_OWN_SLAVE_ADDRESS > + flag must be set. The flag can be expressed with constraints on entry. > + > + firmware-name: > + maxItems: 1 > + description: > + File with the initial content. Without it all bytes start as 0xff. > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + eeprom@64 { > + compatible = "slave-24c02"; > + reg = <(0x64 | I2C_OWN_SLAVE_ADDRESS)>; > + }; > + }; > > -- > 2.55.0 >