Received: by 10.223.185.111 with SMTP id b44csp854368wrg; Fri, 9 Mar 2018 15:15:47 -0800 (PST) X-Google-Smtp-Source: AG47ELsOs2XKnFak48810PUlhj8oxrqsNXxybJYui4DZihIX60GSmytHNHfmm055sFyiqJADIh/o X-Received: by 10.98.76.26 with SMTP id z26mr167243pfa.220.1520637347613; Fri, 09 Mar 2018 15:15:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520637347; cv=none; d=google.com; s=arc-20160816; b=HrFMOJNTeVEyYa+kN0ltyWavNL0Ikf7MTbxQjsEdbv7XKd07s1hYkYbG/U4Ur5CihS SkR3cW5MSUzdYCyrOOQUiGBHwTCaQf/6YLywRiwwYYwRYzj9lFXXASGO63XmsjahvgMJ tjv/C1j/FWDcIUqZwaKGqEPkADgo7sUz45IujBR/F68gK7aRIhYryT10W2FGQiieooHe qCc2e/X9vgcieMMylUU4cGEXVKwOpZ3EMKQ1uznUR7omEB6R2pwKt+Ic62H672KZSpgT xDR4VcWqgWf8n/XRT40Hmf7kBmNo7PRMXDX3w5PhvpPP+Spnc3iWWNJOpVMcLEyoDoQY FBSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=YET9e+oIC/mJeDj1rl+xDb4dStOoXO17E8jBCfk15rw=; b=aDW3Wwn4OO1/n/2+V4STbE4BI3qTdvKImY7X8Pu+wQixQqurC2qYPNDwyAB5hmD8Sp TY8Zw4PwdlnOEa0awbiHpMOAloQJgwNJqeQu9VR3G7jRJGWYsWrxH78paT2QKyB5MPQ1 ofpIAN7uxUeoxq3zqN2QoK9llu8p5W620Fyk9oLzldTNnsttlZNCqgkCLsxo9Q18OMiV bXWUbNmvfVWnv4LOAjjUsVAd0AgPeQ05vMIZSVSeN8AYQ2B3+dnO1gmK6EIkn89xlUOv 8aaPRriKnHIUo1j3ZoXpiCeTfCNvB/NSWaqy5XyA5fLDyYllWXX7xd/86OBchNSPrjW6 ioFg== 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 x80si1642605pfe.393.2018.03.09.15.15.32; Fri, 09 Mar 2018 15:15:47 -0800 (PST) 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 S932580AbeCIXOi (ORCPT + 99 others); Fri, 9 Mar 2018 18:14:38 -0500 Received: from mail-ot0-f194.google.com ([74.125.82.194]:40496 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932276AbeCIXOg (ORCPT ); Fri, 9 Mar 2018 18:14:36 -0500 Received: by mail-ot0-f194.google.com with SMTP id l12so10188829otj.7; Fri, 09 Mar 2018 15:14:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=YET9e+oIC/mJeDj1rl+xDb4dStOoXO17E8jBCfk15rw=; b=gmKKMzZA76tANHLf3pZw1pnzNeD5jW+8b/DjS+T8rAGWMt/oe22+NTJX3K7otRs7Ky LF+v1cPaXtjzVaK8srP5mf6M6kWDBhlHxZ21L9xPxfDbcPaY5zVFl9yslU2wuewjf5hk /XfY7HlNQ/9wQRIrk7dKAn5fPfZvuNoyXXBRzL678veRdpRf0z/slfEKe9j7YPHBJCuF vx7pb7FF+GLw2Z+EN8l03jj43q2Dj3FEqjYQdEDRZi7bEwDn/U0MGtpfz6mTdn1LKk4Z VTPZVUB2KQ/NTGyMkmmQCjIXh8sAErBs55cglCbeRjZoRv9AQ/CjKRn6HU3mavcjUiOB 5SxA== X-Gm-Message-State: AElRT7HR7we/W0T49gRt9BMZvknkXZ9lVVkygRCF5v5OxCt8G8eSYLrI q8PBbTyK3VG3kyGa7PNyy69B4wA= X-Received: by 10.157.20.97 with SMTP id h88mr136716oth.170.1520637275337; Fri, 09 Mar 2018 15:14:35 -0800 (PST) Received: from localhost (mobile-166-172-122-20.mycingular.net. [166.172.122.20]) by smtp.gmail.com with ESMTPSA id 13sm910949oix.45.2018.03.09.15.14.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Mar 2018 15:14:34 -0800 (PST) Date: Fri, 9 Mar 2018 17:14:33 -0600 From: Rob Herring To: Tim Harvey Cc: Lee Jones , Mark Rutland , Mark Brown , Dmitry Torokhov , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-hwmon@vger.kernel.org, linux-input@vger.kernel.org Subject: Re: [PATCH v2 1/4] dt-bindings: mfd: Add Gateworks System Controller bindings Message-ID: <20180309231433.tmlfy6vwbkvopmwd@rob-hp-laptop> References: <1520287361-12569-1-git-send-email-tharvey@gateworks.com> <1520287361-12569-2-git-send-email-tharvey@gateworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1520287361-12569-2-git-send-email-tharvey@gateworks.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 05, 2018 at 02:02:38PM -0800, Tim Harvey wrote: > This patch adds documentation of device-tree bindings for the > Gateworks System Controller (GSC). > > Signed-off-by: Tim Harvey > --- > Documentation/devicetree/bindings/mfd/gsc.txt | 159 ++++++++++++++++++++++++++ > 1 file changed, 159 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mfd/gsc.txt > > diff --git a/Documentation/devicetree/bindings/mfd/gsc.txt b/Documentation/devicetree/bindings/mfd/gsc.txt > new file mode 100644 > index 0000000..fe5d114 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mfd/gsc.txt > @@ -0,0 +1,159 @@ > +Gateworks System Controller multi-function device > + > +The GSC is a Multifunction I2C slave device with the following submodules: > +- WDT > +- GPIO > +- Pushbutton controller > +- HWMON > + > +Required properties: > +- compatible : Must be "gw,gsc_v1", "gw,gsc_v2", "gw,gsc_v3" s/_/-/ > +- reg: I2C address of the device > +- interrupts: interrupt triggered by GSC_IRQ# signal > +- interrupt-parent: Interrupt controller GSC is connected to > +- #interrupt-cells: should be <1>, index of the interrupt within the > + controller, in accordance with the "one cell" variant of > + > + > +Optional nodes: > +* watchdog: > +The GSC provides a Watchdog monitor which can power cycle the board's > +primary power supply on most board models when tripped. > + > +Required properties: > +- compatible: must be "gw,gsc-watchdog" > + > +* input: > +The GSC provides an input device capable of dispatching Linux Input events Linux details that are not relevant to the binding. > +for user pushbutton events, tamper switch events, etc. > + > +Required properties: > +- compatible: must be "gw,gsc-input" > + > +* hwmon: > +The GSC provides a set of Analog to Digitcal Converter (ADC) pins used for > +temperature and/or voltage monitoring. > + > +Required properties: > +- compatible: must be "gw,gsc-hwmon" > + > +Example: > + > + gsc: gsc@20 { > + compatible = "gw,gsc_v2"; > + reg = <0x20>; > + interrupt-parent = <&gpio1>; > + interrupts = <4 GPIO_ACTIVE_LOW>; > + interrupt-controller; > + #interrupt-cells = <1>; > + > + gsc_input { input { > + compatible = "gw,gsc-input"; > + }; > + > + gsc_watchdog { watchdog { > + compatible = "gw,gsc-watchdog"; > + }; > + > + gsc_hwmon { hwmon { > + compatible = "gw,gsc-hwmon"; > + #address-cells = <1>; > + #size-cells = <0>; > + > + hwmon@0 { /* A0: Board Temperature */ > + type = <0>; Not documented. > + reg = <0x00>; > + label = "temp"; > + }; > + > + hwmon@1 { /* A1: Input Voltage */ > + type = <1>; > + reg = <0x02>; > + label = "Vin"; > + }; > + > + hwmon@2 { /* A2: 5P0 */ > + type = <1>; > + reg = <0x0b>; > + label = "5P0"; > + }; > + > + hwmon@4 { /* A4: 0-5V input */ > + type = <1>; > + reg = <0x14>; > + label = "ANL0"; > + }; > + > + hwmon@5 { /* A5: 2P5 PCIe/GigE */ > + type = <1>; > + reg = <0x23>; > + label = "2P5"; > + }; > + > + hwmon@6 { /* A6: 1P8 Aud/Vid */ > + type = <1>; > + reg = <0x1d>; > + label = "1P8"; > + }; > + > + hwmon@7 { /* A7: GPS */ > + type = <1>; > + reg = <0x26>; > + label = "GPS"; > + }; > + > + hwmon@12 { /* A12: VDD_CORE */ > + type = <1>; > + reg = <0x3>; > + label = "VDD_CORE"; > + }; > + > + hwmon@13 { /* A13: VDD_SOC */ > + type = <1>; > + reg = <0x11>; > + label = "VDD_SOC"; > + }; > + > + hwmon@14 { /* A14: 1P0 PCIe SW */ > + type = <1>; > + reg = <0x20>; > + label = "1P0"; > + }; > + > + hwmon@15 { /* fan0 */ > + type = <2>; > + reg = <0x2c>; > + label = "fan_50p"; > + }; > + > + hwmon@16 { /* fan1 */ > + type = <2>; > + reg = <0x2e>; > + label = "fan_60p"; > + }; > + > + hwmon@17 { /* fan2 */ > + type = <2>; > + reg = <0x30>; > + label = "fan_70p"; > + }; > + > + hwmon@18 { /* fan3 */ > + type = <2>; > + reg = <0x32>; > + label = "fan_80p"; > + }; > + > + hwmon@19 { /* fan4 */ > + type = <2>; > + reg = <0x34>; > + label = "fan_90p"; > + }; > + > + hwmon@20 { /* fan5 */ > + type = <2>; > + reg = <0x36>; > + label = "fan_100p"; > + }; > + }; > + }; > -- > 2.7.4 >