From patchwork Mon Mar 5 22:02:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Harvey X-Patchwork-Id: 10260011 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D62206037E for ; Mon, 5 Mar 2018 22:04:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C2A5728926 for ; Mon, 5 Mar 2018 22:04:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B763928CB5; Mon, 5 Mar 2018 22:04:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 33FCC28926 for ; Mon, 5 Mar 2018 22:04:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753286AbeCEWEQ (ORCPT ); Mon, 5 Mar 2018 17:04:16 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:33159 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753270AbeCEWDP (ORCPT ); Mon, 5 Mar 2018 17:03:15 -0500 Received: by mail-pl0-f65.google.com with SMTP id c11-v6so10570673plo.0 for ; Mon, 05 Mar 2018 14:03:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gateworks-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1v3zjfYxtFNMviPJnCXtrVNkrvQjK9uARqd9emlJkdQ=; b=bij0dDAkN6LY6+ONDBil8gpVefEY3p8lJ3gru/qQs4UvKloG4U0yy6b5IieaXtFMPK uQDHPspZ0NXXv0nr2fBzWWhtxIYkdrcRFiG05pKHiariYAQafJHQm7S+7ST4AyHEqqDr T3HDr9Bj2ZNofEo5X+7uXAhDMAFHqSjTWJ7lNvAVUBeEB+7ifaIHctvpVB3Sxtf3A1CC s6ZqKS4yFNyMQnV8+Ksy5DXpnuhiLb4yQcvNUs7iXQJBwIcuyLoUpWmMz6cw4RVQ0Ib/ C+MLYA22dUNIH0fXW5uD8DXIXTo4lKLN/5uscy6i0SFXxS1pVwZsSQjnSQTjmZkjiI6p ObtA== 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=1v3zjfYxtFNMviPJnCXtrVNkrvQjK9uARqd9emlJkdQ=; b=MPpcQ5aDA8LKy5WNumWbHm7daOdJVLObVwleKdhIAHrbqty+wwLKZx5mxI7Zd6nneC CWDZcZVsJNegmoZB7+5c0DR+Tdh5XWRLroZSZdt9HLY0wTTRa9AuthjRJi46XoPzBM7S e3goG3cVKwQa7K/4b5dCPznIfHDgnebKEed2c1KF4mX29AcmFiV9hT6kuFET8vwlw+oQ JEJ0J6uj8kDX2VjYKrmWRAvyBcyMHRslz78zpnL8Ue/JJziyJ5UhZpTh8+Zq3B5oIzb2 zky7jgZKBCeiRYduOR5Ajd1kD+oCFcrdb+nSxv09iyT+5hwXMu3NsySTq2B7hKavAh0j IZIw== X-Gm-Message-State: AElRT7FH45MwJr2t+C0nVCes/FFs2uyXqiEpIqIe9tV4Gw1rGX4PJvdA SWL64waNKO48iWZPvpLYtD5ZYw== X-Google-Smtp-Source: AG47ELsu901afmQX+QM4boCoTLakzHrg4vS7SdBn8mD6DV43Ogv/HU4Z2voNMUCEDAwyF0piAuJE0Q== X-Received: by 2002:a17:902:7082:: with SMTP id z2-v6mr11152774plk.130.1520287394550; Mon, 05 Mar 2018 14:03:14 -0800 (PST) Received: from tharvey.pdc.gateworks.com (68-189-91-139.static.snlo.ca.charter.com. [68.189.91.139]) by smtp.gmail.com with ESMTPSA id q66sm26999313pfi.95.2018.03.05.14.03.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 05 Mar 2018 14:03:13 -0800 (PST) From: Tim Harvey To: Lee Jones , Rob Herring , Mark Rutland , Mark Brown , Dmitry Torokhov Cc: 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: [PATCH v2 1/4] dt-bindings: mfd: Add Gateworks System Controller bindings Date: Mon, 5 Mar 2018 14:02:38 -0800 Message-Id: <1520287361-12569-2-git-send-email-tharvey@gateworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1520287361-12569-1-git-send-email-tharvey@gateworks.com> References: <1520287361-12569-1-git-send-email-tharvey@gateworks.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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" +- 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 +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 { + compatible = "gw,gsc-input"; + }; + + gsc_watchdog { + compatible = "gw,gsc-watchdog"; + }; + + gsc_hwmon { + compatible = "gw,gsc-hwmon"; + #address-cells = <1>; + #size-cells = <0>; + + hwmon@0 { /* A0: Board Temperature */ + type = <0>; + 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"; + }; + }; + };