From patchwork Fri Jan 27 08:39:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 720506 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 3v8shK5D2Hz9t25 for ; Fri, 27 Jan 2017 19:41:21 +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="mh93pfBc"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754360AbdA0IlO (ORCPT ); Fri, 27 Jan 2017 03:41:14 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33568 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754364AbdA0Ikb (ORCPT ); Fri, 27 Jan 2017 03:40:31 -0500 Received: by mail-wm0-f67.google.com with SMTP id r144so56604149wme.0; Fri, 27 Jan 2017 00:39:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gzc9YokCtoyXyyVpbQlvHNkBrKe8+9vntqvsxC+FSx4=; b=mh93pfBcI+jwsOlFdQJFzW3lhyTq8Ir77X7rHj7l0n9/pHcQ3U+t7NUHmHphqFbY5g ucFlE9dx6PwNqi1k098INyBvkSdZs03+0QhtfmUG7VimwBCwaalNyiFsqYnYNd0mbLVL Eh+Dg977DaNDIWblwskPUIti8PeP1vt7K6A7SRVL1St56RDAEja5Wr4OBzqode1rfTt/ CqQJrH9dmoVtwTwLnkSFC5ow5GXN4A1vu8QtOaC1HlYU6GRNCBVweOfKoXQRBy4/ZpZI nzPjbWb2zegcHVIrEKUsT7qXdtRP5Leo0NbwBa9F33qzF4/VOJMvjr/ABo+BN6ZFISXB II6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gzc9YokCtoyXyyVpbQlvHNkBrKe8+9vntqvsxC+FSx4=; b=DhQb+Cq9sKXc9dngQd18vue8f/ZvNEap6TXxcMHfaPMuQdWu8BxtwsJnDO+bnLgx6G dKk/6tElvRO6/JSUuwmQN7xb9QHaZcMzhc+180XD4TzxCbhHrXnYRNga3MtSYMbOFYFk 3LfnX1sM1uGEhw0cthOwOkTgX4yDrVXN1rhETJ+3+Lkj4AH4mB/6kcR/8h6YqNUFJIVV 6cYyIxXHkXtE+3YMO26ervwPynwwxR7qSqv2mAg06zU9PgxLtePF7lnQJfHhJZc1Epip rlTlag2NG0EgHV3Ne4Wk91LAk7u9W1EDi+jPGUwmMLfuG+muNPx1QGqT68SkKowDKcWG zk7g== X-Gm-Message-State: AIkVDXKRbpzzJpAvfnY/0eYhQpmqADMXg2ZgNtsV2+FWD7W9zDROU9zimzzFKBUYsTqvrQ== X-Received: by 10.28.41.135 with SMTP id p129mr2179547wmp.59.1485506382586; Fri, 27 Jan 2017 00:39:42 -0800 (PST) Received: from localhost (port-9165.pppoe.wtnet.de. [84.46.35.240]) by smtp.gmail.com with ESMTPSA id m188sm1350308wma.0.2017.01.27.00.39.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Jan 2017 00:39:41 -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: Fri, 27 Jan 2017 09:39:38 +0100 Message-Id: <20170127083939.20393-2-thierry.reding@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170127083939.20393-1-thierry.reding@gmail.com> References: <20170127083939.20393-1-thierry.reding@gmail.com> Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@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>; + }; +};