Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6308734rwd; Mon, 19 Jun 2023 05:38:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6R/5gqlfkW1MmN3xWX00X3e/3mW1qKmAS2KiTSd5pj+JCuFG1wGzW6PD7gaXdaa2efoRg8 X-Received: by 2002:a05:6a20:9381:b0:122:38f5:6242 with SMTP id x1-20020a056a20938100b0012238f56242mr735856pzh.22.1687178321538; Mon, 19 Jun 2023 05:38:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687178321; cv=none; d=google.com; s=arc-20160816; b=XTEwH6NsOufaT2wYZE+ijlhQ606Ar/chY+rtjUwXDtge8qwzVm7Dx5QReXr7+5gtdO mM6pz6NgM5fT2FHdrCc5W0cbij+BoaBwKt7rAbgF84WBJbIYLsMP8/mAgF2naElaK8IQ 2KTDHBODlAHndg6ac0KnGE+nDMMmPGi4ykpjpxVoUP7ANN2Mela6QV6mnbilQW3mwC9J qYG7VtkwhFd3DJN6moPxF/dyDYZRQD3EU8TEYWqcEtEDvI0gkb3gvus5odlDwjI0w5Cc i+KDAp63mHV/9DREzPJBv4csF2C8eYZ4x0wq6SGBtHeOeUBcJULgSuMxNh5xZRDFmHj2 03yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TmgrZA2ZEeezP/J2owNZe2F9+9FCdUO1j4A9xr+HV8E=; b=d+wuARPQvt1CKfrxkooOIDO+nKUrerIfUugV0IsTMesrax1j+ULIHXELzdy8k7ht+E qevteqnIkdpHxj9ZelIMUEii7irh2vt2Iw67j9405hplb+m/yeFMYL5hdapD63Cn0CJR HlExll1Y+7yfe1Wb2leMVtyF5VFdoDKC5H008Urn+Ku0IhvkzX9NTT9eKbZXfhqCRlRW XQmSJzCATMjaT9+ELQAOudfGbCQ91kKkK9DSjEBuWb/HBEPcaAaug3hNTrNJ9RDyZA3w PxjV4/isP447uz/YF8V+XrRNP25jVDB+azNUmrnSqXo/b7APwIfKd5ZCfChM7Gtrn3El 9QHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Br7oyz4i; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r17-20020aa79631000000b006687406605asi2739029pfg.211.2023.06.19.05.38.29; Mon, 19 Jun 2023 05:38:41 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=Br7oyz4i; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230440AbjFSMW3 (ORCPT + 99 others); Mon, 19 Jun 2023 08:22:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbjFSMW0 (ORCPT ); Mon, 19 Jun 2023 08:22:26 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60513E6; Mon, 19 Jun 2023 05:22:25 -0700 (PDT) Received: from desky.lan (91-154-35-171.elisa-laajakaista.fi [91.154.35.171]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 48316800; Mon, 19 Jun 2023 14:21:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1687177309; bh=BFIupWS4CVXEqMxoTUIQ4cTSs9SkNGSf7BOw6gildpE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Br7oyz4iTD2ACRaCAE/BTkaawcaf0FuadD2kxQ/tYVR+0KRglJzln+nEZQ/mF+KEj 7JTabDw1dbxKnBcuyzcCHT+dC3n5Ut+h/QAZuZEbltf993fqsA7dvWdkCBHr5KNiu+ bDQDai8E1/XW4OkiE7tn0szB+cldEKWXDnMXrczM= From: Tomi Valkeinen To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, Luca Ceresoli , Andy Shevchenko , Matti Vaittinen , Laurent Pinchart , Sakari Ailus Cc: Wolfram Sang , Rob Herring , Krzysztof Kozlowski , Mauro Carvalho Chehab , Peter Rosin , Liam Girdwood , Mark Brown , Michael Tretter , Hans Verkuil , Mike Pagano , =?UTF-8?q?Krzysztof=20Ha=C5=82asa?= , Marek Vasut , Satish Nagireddy , Tomi Valkeinen , Rob Herring Subject: [PATCH v15 1/8] dt-bindings: i2c: Add I2C Address Translator (ATR) Date: Mon, 19 Jun 2023 15:22:05 +0300 Message-Id: <20230619122212.304962-2-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230619122212.304962-1-tomi.valkeinen@ideasonboard.com> References: <20230619122212.304962-1-tomi.valkeinen@ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 Add bindings for I2C Address Translator. Only one property is added, 'i2c-alias-pool', which can be used in the bindings for the device that supports ATR. Signed-off-by: Tomi Valkeinen Acked-by: Wolfram Sang Reviewed-by: Rob Herring --- .../devicetree/bindings/i2c/i2c-atr.yaml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-atr.yaml diff --git a/Documentation/devicetree/bindings/i2c/i2c-atr.yaml b/Documentation/devicetree/bindings/i2c/i2c-atr.yaml new file mode 100644 index 000000000000..1939ab339bfc --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/i2c-atr.yaml @@ -0,0 +1,34 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/i2c-atr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Common i2c address translator properties + +maintainers: + - Tomi Valkeinen + +description: + An I2C Address Translator (ATR) is a device with an I2C slave parent + ("upstream") port and N I2C master child ("downstream") ports, and + forwards transactions from upstream to the appropriate downstream port + with a modified slave address. The address used on the parent bus is + called the "alias" and is (potentially) different from the physical + slave address of the child bus. Address translation is done by the + hardware. + +properties: + i2c-alias-pool: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: + I2C alias pool is a pool of I2C addresses on the main I2C bus that can be + used to access the remote peripherals on the serializer's I2C bus. The + addresses must be available, not used by any other peripheral. Each + remote peripheral is assigned an alias from the pool, and transactions to + that address will be forwarded to the remote peripheral, with the address + translated to the remote peripheral's real address. This property is not + needed if there are no I2C addressable remote peripherals. + +additionalProperties: true +... -- 2.34.1