From patchwork Tue Nov 15 16:23:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 695120 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3tJCPq3WfLz9t1H for ; Wed, 16 Nov 2016 03:23:59 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Lkcw9fhn"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752643AbcKOQX6 (ORCPT ); Tue, 15 Nov 2016 11:23:58 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:34080 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751985AbcKOQX5 (ORCPT ); Tue, 15 Nov 2016 11:23:57 -0500 Received: by mail-pg0-f66.google.com with SMTP id e9so11847749pgc.1; Tue, 15 Nov 2016 08:23:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=YAVQuFOj4Gu/GkW6jvkoAg65LdL3/Po6Y8GOhJumk68=; b=Lkcw9fhnqCQIxEwUUHce8WM3iAXdPa7m1UXyym2I1NEJEmP9IoP810+M/8yCfQ6NUp wTxBqmZd73t/n2t7vF5WMHyT51gAR+c4xZGy0bSbhJkkX9rMmTgmkgugaf8/fXB2bh/g 7VK6PAZuXfm7ZJA+oIQRCmizK3mlRGrV1N9qicHEoSGtesSrQlY7wHlG2KvgJSm4MAiE vj5yNl/YYBluvGTFB9iXQeC8SVk9ng/vtcwOBkCb9Lzn4M3lyom3Ni9YnR38kGnL5Gqc BB6isqa6r9fVKX+1HkFSi6KbCbtpV7PXZUwF3ybdu3u0ciZCpV4GhZsjjrXDqhZu+8va zbfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=YAVQuFOj4Gu/GkW6jvkoAg65LdL3/Po6Y8GOhJumk68=; b=H9pAEcOKAU817O6rxqMpbJaTUw0z7ZHLx2IA4op1Kj4tqWFP/dGkJWyMI45OcF3rMc 6n/mRWOOtqxzYh/95nAK65uiXBU7rc7/k/D+FnXT6B2eQXZ2XFC1xxO4oUI/JifgeA8q BnWmPElkkTPAlO4OJ5Bxuq7GRnuDb6z5iCBqPBEPcML9kOt5E7wFi2nyuqVQkBSbUFoM ra7s/oc4maY5N0pSlLHoKkSPc3rRkFvZz6TTPTZzNQpX25Se1x3za6iu2uCIu9I0IOQm D8BXv142JlARVQxGRt5D0Dx6XkTIBPiuD5AsK4Z1hgoMzIjQHrP8oMaaWj1OCNy7UegQ 5sIw== X-Gm-Message-State: ABUngvdBsj+eCt+q/pMJ9C3VP/8f1FH6f1X5Qmm6LTQQCaprPZypP71xW6LkNv25XvW6nw== X-Received: by 10.99.130.198 with SMTP id w189mr38975029pgd.172.1479227036677; Tue, 15 Nov 2016 08:23:56 -0800 (PST) Received: from localhost (port-11995.pppoe.wtnet.de. [84.46.47.10]) by smtp.gmail.com with ESMTPSA id i76sm44393532pfk.89.2016.11.15.08.23.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Nov 2016 08:23:56 -0800 (PST) From: Thierry Reding To: Wolfram Sang Cc: Stephen Warren , Alexandre Courbot , Jon Hunter , linux-i2c@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: Add Tegra186 BPMP I2C binding Date: Tue, 15 Nov 2016 17:23:49 +0100 Message-Id: <20161115162350.32405-2-thierry.reding@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161115162350.32405-1-thierry.reding@gmail.com> References: <20161115162350.32405-1-thierry.reding@gmail.com> Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org From: Stephen Warren In Tegra186, the BPMP (Boot and Power Management Processor) owns certain HW devices, such as the I2C controller for the power management I2C bus. Software running on other CPUs must perform IPC to the BPMP in order to execute transactions on that I2C bus. This binding describes an I2C bus that is accessed in such a fashion. Signed-off-by: Stephen Warren Reviewed-by: Simon Glass Signed-off-by: Tom Warren Acked-by: Jon Hunter Signed-off-by: Thierry Reding --- .../bindings/i2c/nvidia,tegra186-bpmp-i2c.txt | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/nvidia,tegra186-bpmp-i2c.txt diff --git a/Documentation/devicetree/bindings/i2c/nvidia,tegra186-bpmp-i2c.txt b/Documentation/devicetree/bindings/i2c/nvidia,tegra186-bpmp-i2c.txt new file mode 100644 index 000000000000..ab240e10debc --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/nvidia,tegra186-bpmp-i2c.txt @@ -0,0 +1,42 @@ +NVIDIA Tegra186 BPMP I2C controller + +In Tegra186, the BPMP (Boot and Power Management Processor) owns certain HW +devices, such as the I2C controller for the power management I2C bus. Software +running on other CPUs must perform IPC to the BPMP in order to execute +transactions on that I2C bus. This binding describes an I2C bus that is +accessed in such a fashion. + +The BPMP I2C node must be located directly inside the main BPMP node. See +../firmware/nvidia,tegra186-bpmp.txt for details of the BPMP binding. + +This node represents an I2C controller. See ../i2c/i2c.txt for details of the +core I2C binding. + +Required properties: +- compatible: + Array of strings. + One of: + - "nvidia,tegra186-bpmp-i2c". +- #address-cells: Address cells for I2C device address. + Single-cell integer. + Must be <1>. +- #size-cells: + Single-cell integer. + Must be <0>. +- nvidia,bpmp-bus-id: + Single-cell integer. + Indicates the I2C bus number this DT node represent, as defined by the + BPMP firmware. + +Example: + +bpmp { + ... + + i2c { + compatible = "nvidia,tegra186-bpmp-i2c"; + #address-cells = <1>; + #size-cells = <0>; + nvidia,bpmp-bus-id = <5>; + }; +};