From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8D734C3271E for ; Mon, 8 Jul 2024 23:04:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=gZr3TSrByY3WuEyTkcorsEi+lITnSvkfp48AoiZE0U0=; b=Oow3Ah00DJ/bIYREezy82XhG/d Pf7DxcyIUBBmgM/zMIfBZVeBEqHQIS1i1YljtppW9dDenNEzAH/wv1M79KANew+Ev//QSqL4+/544 aSrOtlph25gZEq4BiNNjKmQlRI3h/JkgMv/h8/Pld4fG3QvkM/0LTfQ1deItJT9VcqFa07jDc7B/y Peo3yFtf6h/feabMoJM063yeudKsJDcZJpF0iY5x81T0WNBOP+Tvhz/9kFQ6HV0unZWRN9JdjkRjb dgU5R1Ts80NI0wqvQaoTeX2Po3fzqkkqTlo5CZ4PMOZcTuK7il3FGWARmDpjRU2+wII45+a8d/bPr VUOfbj9A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sQxOg-00000005Hbx-3EcM; Mon, 08 Jul 2024 23:03:50 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sQxOQ-00000005HYU-1EJr; Mon, 08 Jul 2024 23:03:36 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 5EA14611C0; Mon, 8 Jul 2024 23:03:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4290C116B1; Mon, 8 Jul 2024 23:03:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1720479813; bh=Z5GwSzhcq9MvxkYULUBz/U1Czb52lUPwmgBTFwviZ7Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EX90j3iXDpqHcRJkAMnoseWhjVZN9xLZvNI6uxE8EhDSEJnOJHDugXzlqfbUEanlK P1TbWtywQQi6+1ceeH7ecAYbCaqo8driXHGOI3YBP7qW64wK760cvhdqS53G9qCUYP Wml3IqS81Ag08OSF2L0mqBEq8l1mNM2lCTipJ4ZsLs6BV6AbLHLG6PeWhUaiDFI1Ri KEj5Nm3n2oyg7+JgQtVNMkAzDurWtPm2R88i4ifSaJDHN/2zwvYdjIJXy9OCHCcL2Q PxwKX3sssNI2eQnU6bH4OkNSFAI7sYWHTHdU9IWAitlY1xRuzJ1ATQj2RgvSJ9ukm2 SmD6BPutebrdA== Date: Mon, 8 Jul 2024 17:03:31 -0600 From: Rob Herring To: Farouk Bouabid Cc: Andi Shyti , Krzysztof Kozlowski , Conor Dooley , Quentin Schulz , Peter Rosin , Jean Delvare , Guenter Roeck , Heiko Stuebner , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: Re: [PATCH v5 3/8] dt-bindings: i2c: add support for tsd,mule Message-ID: <20240708230331.GC4092671-robh@kernel.org> References: <20240708-dev-mule-i2c-mux-v5-0-71446d3f0b8d@cherry.de> <20240708-dev-mule-i2c-mux-v5-3-71446d3f0b8d@cherry.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240708-dev-mule-i2c-mux-v5-3-71446d3f0b8d@cherry.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240708_160334_607373_51CB97B0 X-CRM114-Status: GOOD ( 21.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Jul 08, 2024 at 06:12:14PM +0200, Farouk Bouabid wrote: > Theobroma Systems Mule is an MCU that emulates a set of I2C devices, > among which is an amc6821 and other devices that are reachable through > an I2C-mux. The devices on the mux can be selected by writing the > appropriate device number to an I2C config register (amc6821: reg 0xff) > > Signed-off-by: Farouk Bouabid > --- > .../devicetree/bindings/i2c/tsd,mule.yaml | 63 ++++++++++++++++++++++ > 1 file changed, 63 insertions(+) > > diff --git a/Documentation/devicetree/bindings/i2c/tsd,mule.yaml b/Documentation/devicetree/bindings/i2c/tsd,mule.yaml > new file mode 100644 > index 000000000000..dbbabba8dd6f > --- /dev/null > +++ b/Documentation/devicetree/bindings/i2c/tsd,mule.yaml > @@ -0,0 +1,63 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/i2c/tsd,mule.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Theobroma Systems Mule I2C device > + > +maintainers: > + - Farouk Bouabid > + - Quentin Schulz > + > +description: | > + Theobroma Systems Mule is an MCU that emulates a set of I2C devices, among > + which is an amc6821 and other devices that are reachable through an I2C-mux. > + The devices on the mux can be selected by writing the appropriate device > + number to an I2C config register (amc6821: reg 0xff) > + > +additionalProperties: true Must be false. > + > +properties: > + compatible: > + contains: No, must define the entries and the order. > + enum: > + - tsd,mule > + - ti,amc6821 Need to drop this from trivial-devices.yaml. We don't define the same compatible in 2 places. As the original device was ti,amc6821 and this is a superset, the binding should first document ti,amc6821 meaning that should be the filename, title, etc. And then describe the Mule additions. (I mean how the binding should read, not patch structure. 1 patch for this is fine.) > + > + reg: > + maxItems: 1 To fix the additionalProperties failure you will see, you need to add: i2c-mux: type: object > + > +required: > + - compatible > + - reg > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + fan@18 { > + compatible = "tsd,mule", "ti,amc6821"; > + reg = <0x18>; > + > + i2c-mux { > + compatible = "tsd,mule-i2c-mux"; > + #address-cells = <1>; > + #size-cells = <0>; > + > + i2c@0 { > + reg = <0x0>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + rtc@6f { > + compatible = "isil,isl1208"; > + reg = <0x6f>; > + }; > + }; > + }; > + }; > + }; > +... > > -- > 2.34.1 >