Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4058260imm; Mon, 8 Oct 2018 14:14:10 -0700 (PDT) X-Google-Smtp-Source: ACcGV63rDzLi9ZLFbIc69sqlZY1fqRS/wTs0ZFMuqWqqSX9sAtoMblgiASF97cvAV/2IKmvYZl5n X-Received: by 2002:a63:3642:: with SMTP id d63-v6mr22521042pga.404.1539033250016; Mon, 08 Oct 2018 14:14:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539033249; cv=none; d=google.com; s=arc-20160816; b=zrvejOIZRGrodanXSfFsVW/ZV3/cYY0jAjWYnxxgYDw8ZZFowsv7vL63Ns9eEZPEPt 0GJi9Tkzb8vvqNboYP2A+Ym1XTc2wTcrWifKhzopJ8brP4TSScRYKgXWB5PI1GK5QJVP xf+1vqH+3S/DMxSINv4vJO0nRPWUrlxae+MQVxISsoPeT8sTvDriyCtYnV5hr6cKdsUW OTspuQEeZ0iG6GqH6jGAbxBSrHWLEa72rp4TNJsdxTRJLlZs1JD1H5BTYcFweOalqmY7 Iugq13LzUNQ/cBalay1LOhqtX54eL8F2MVAbcvUg5BkF3+A06Ppr7ek0qMNh28x2ArJS wZag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=qqMjjXxALXcIKlC8v8ItxIkiCrkhMkd/iC7oH1vyG4Q=; b=FfkienEh1skAB7h53H1j/I+4tQnV5byimvmuguCzcXBDIEmn8rWfoOV/QPL0tgAWGq JOBbasevkl6aj7Tvv8kHsYRk9j8zpz1vo9hMm86CRATUiMCbx2Pwzw2W0+OmKdaOQrb/ iIB34AqHdU19sN/IHP7OEMPQAxj6AlQJvIhLllRAwf4rrO0d9DuPZjAWMZsYX6W3R0cP owtoOgwOqb3B9QlA+tQvaWiHixjhS14VvTPBixl51eT7xQmSBdtpl5+9HRGtGCp1/ny6 +LLe5GMXfIEQAl3ZmMisMXhreLW3covkXELG+kSGld9izR4yG7ZJyDndgRw45Cpqnzay A7vQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h11-v6si16434903pgi.241.2018.10.08.14.13.54; Mon, 08 Oct 2018 14:14:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727001AbeJIEZy (ORCPT + 99 others); Tue, 9 Oct 2018 00:25:54 -0400 Received: from mleia.com ([178.79.152.223]:35456 "EHLO mail.mleia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726656AbeJIEZx (ORCPT ); Tue, 9 Oct 2018 00:25:53 -0400 Received: from mail.mleia.com (localhost [127.0.0.1]) by mail.mleia.com (Postfix) with ESMTP id 6B49341E2BE; Mon, 8 Oct 2018 22:12:10 +0100 (BST) From: Vladimir Zapolskiy To: Lee Jones , Linus Walleij , Rob Herring Cc: Marek Vasut , Laurent Pinchart , Wolfram Sang , devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Vladimir Zapolskiy Subject: [PATCH 2/7] dt-bindings: mfd: ds90ux9xx: add description of TI DS90Ux9xx I2C bridge Date: Tue, 9 Oct 2018 00:12:00 +0300 Message-Id: <20181008211205.2900-3-vz@mleia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181008211205.2900-1-vz@mleia.com> References: <20181008211205.2900-1-vz@mleia.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-49551924 X-CRM114-CacheID: sfid-20181008_221210_462796_E865BBDF X-CRM114-Status: GOOD ( 17.92 ) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vladimir Zapolskiy TI DS90Ux9xx de-/serializers are capable to route I2C messages to I2C slave devices connected to a remote de-/serializer in a pair, the change adds description of device tree bindings of the subcontroller to configure and enable this functionality. Signed-off-by: Vladimir Zapolskiy --- .../bindings/mfd/ti,ds90ux9xx-i2c-bridge.txt | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/ti,ds90ux9xx-i2c-bridge.txt diff --git a/Documentation/devicetree/bindings/mfd/ti,ds90ux9xx-i2c-bridge.txt b/Documentation/devicetree/bindings/mfd/ti,ds90ux9xx-i2c-bridge.txt new file mode 100644 index 000000000000..4169e382073a --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/ti,ds90ux9xx-i2c-bridge.txt @@ -0,0 +1,61 @@ +TI DS90Ux9xx de-/serializer I2C bridge subcontroller + +Required properties: +- compatible: Must contain a generic "ti,ds90ux9xx-i2c-bridge" value and + may contain one more specific value from the list: + "ti,ds90ux925-i2c-bridge", + "ti,ds90ux926-i2c-bridge", + "ti,ds90ux927-i2c-bridge", + "ti,ds90ux928-i2c-bridge", + "ti,ds90ux940-i2c-bridge". + +Required properties of a de-/serializer device connected to a local I2C bus: +- ti,i2c-bridges: List of phandles to remote de-/serializer devices with + two arguments: id of a local de-/serializer FPD link and an assigned + I2C address of a remote de-/serializer to be accessed on a local + I2C bus. + +Optional properties of a de-/serializer device connected to a local I2C bus: +- ti,i2c-bridge-maps: List of 3-cell values: + - the first argument is id of a local de-/serializer FPD link, + - the second argument is an I2C address of a device connected to + a remote de-/serializer IC, + - the third argument is an I2C address of the remote I2C device + for access on a local I2C bus. +- ti,i2c-bridge-auto-ack: Enables AUTO ACK mode. +- ti,i2c-bridge-pass-all: Enables PASS ALL mode, remote I2C slave devices + are accessible on a local (host) I2C bus without I2C address + remappings. + +Remote de-/serializer device may contain a list of device nodes, each +one represents an I2C device connected to that remote de-/serializer IC. + +Example (remote device is a deserializer with Atmel MXT touchscreen): + +serializer: serializer@c { + compatible = "ti,ds90ub927q", "ti,ds90ux9xx"; + reg = <0xc>; + + i2c-bridge { + compatible = "ti,ds90ux927-i2c-bridge", + "ti,ds90ux9xx-i2c-bridge"; + ti,i2c-bridges = <&deserializer 0 0x3b>; + ti,i2c-bridge-maps = <0 0x4b 0x64>; + }; +}; + +deserializer: deserializer { + compatible = "ti,ds90ub928q", "ti,ds90ux9xx"; + + i2c-bridge { + compatible = "ti,ds90ux928-i2c-bridge", + "ti,ds90ux9xx-i2c-bridge"; + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@4b { + compatible = "atmel,maxtouch"; + reg = <0x4b>; + }; + }; +}; -- 2.17.1