From patchwork Wed Jun 3 13:04:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 6537811 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 487D29F3D1 for ; Wed, 3 Jun 2015 13:06:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 61B6E20645 for ; Wed, 3 Jun 2015 13:06:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 787302062D for ; Wed, 3 Jun 2015 13:06:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758629AbbFCNGg (ORCPT ); Wed, 3 Jun 2015 09:06:36 -0400 Received: from bhuna.collabora.co.uk ([93.93.135.160]:42487 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760129AbbFCNFZ (ORCPT ); Wed, 3 Jun 2015 09:05:25 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: javier) with ESMTPSA id 520216010AF From: Javier Martinez Canillas To: Lee Jones Cc: Samuel Ortiz , Olof Johansson , Doug Anderson , Bill Richardson , Simon Glass , Gwendal Grignou , Stephen Barber , Filipe Brandenburger , Todd Broch , Alexandru M Stan , Heiko Stuebner , linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Gwendal Grignou , Javier Martinez Canillas Subject: [PATCH v5 6/9] mfd: cros_ec: Add DT property to define ChromeOS EC name Date: Wed, 3 Jun 2015 15:04:01 +0200 Message-Id: <1433336644-20532-7-git-send-email-javier.martinez@collabora.co.uk> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1433336644-20532-1-git-send-email-javier.martinez@collabora.co.uk> References: <1433336644-20532-1-git-send-email-javier.martinez@collabora.co.uk> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Gwendal Grignou Chromebooks can have more than one Embedded Controller with different functinality. For example there may be a EC that handles Power Delivery (PD) or another one that is a Sensor Hub (SH). So there should be a way to specify the function so that is reflected in the character device name and the sysfs entries. Add a "google,cros-ec-name" DT property to the ChromeOS EC binding document to change the EC name based on its function. Signed-off-by: Gwendal Grignou Reviewed-by: Doug Anderson Signed-off-by: Javier Martinez Canillas --- Changes since v4: None, new patch --- Documentation/devicetree/bindings/mfd/cros-ec.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/cros-ec.txt b/Documentation/devicetree/bindings/mfd/cros-ec.txt index 8009c3d87f33..dcf404d16067 100644 --- a/Documentation/devicetree/bindings/mfd/cros-ec.txt +++ b/Documentation/devicetree/bindings/mfd/cros-ec.txt @@ -30,6 +30,11 @@ Required properties (LPC): - compatible: "google,cros-ec-lpc" - reg: List of (IO address, size) pairs defining the interface uses +Optional properties (All): +- google,cros-ec-name: name of the EC. Can be based on its function: for + instance, for Sensor Hub, 'cros_sh', for Power Delivery MCU 'cros_pd'. + If is not present, a default name will be set (i.e: 'cros_ec'). + Example for I2C: