Received: by 10.223.185.116 with SMTP id b49csp5623284wrg; Tue, 27 Feb 2018 17:25:24 -0800 (PST) X-Google-Smtp-Source: AH8x227HnLFzY8uDxtGTTRzh2xgOf6dsLJZdSbUQtFvhYEXs1SttaGSvBzxGpjWCrxrscOw6xQGw X-Received: by 10.101.88.15 with SMTP id g15mr12648140pgr.383.1519781124723; Tue, 27 Feb 2018 17:25:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519781124; cv=none; d=google.com; s=arc-20160816; b=bMB4OnUwJfpLbZpT/vWgUCVnGokvG/Zw+6Tm8tcPEyT3zE1dIw/JAiS/o4/hpLp8OK lDm4y7x78+gs/iL0hhnxWHiix5WrHIzVx5RNB7YwI1xGU/FzDZEiDARr/WReSBVPUgr5 0upWxcJe1NwszbDixqqVH6GnulzlsHJ2pc9Sf40Wo9SRCk7/Lr8HDJfOSSaXFNWp4KbP BMLZyzKPNPwuhZYI/AE0xP4nBzZUtK9h5dQS1UmLI/jcXNyNSRoAgALatiR8DjWQ8Rss j5r5bKDwjBqoTSf5rPbAY0U4+wYpHrGVepDmE+1L5l7eaJWZITXWAnCFj8oh9kOf/BtR J//Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=pePNcb5o6VEdlwZssZQhWHEM49jxCqzegMdcXuQW1HQ=; b=uKDlojdMNdAKAH+V49C6bAiOMODM0JX/Zzliu64UkW51sX6mwlphmmtMXZ9SiDBTDG WVqYqouVNhRG93MgfZuG5AVHONvsfjh1IzOP/3WTdgulJGBj0DRTxDeVsqc5R9zN6B3x uDq6qTUUHhIPRDRbhJlg/KCL7njbxe7yr3OcJYY18Xk/SPhfpUtLUymzL2c0hnqMLrta 6JZKO6woD7MEXTbM9nuZtui3NA5iY2eeNzxP4GHJdhEynEhV6L222Ry2jOR1yJBcUFkQ S5zZLeIvgTROKwPX/3nh8+jh+GkNUwPWq+V5jqIbtke/W7qXyRx5UTgIVpfp+pv41MsQ xo7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gateworks-com.20150623.gappssmtp.com header.s=20150623 header.b=SitiQps3; 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 d7si251622pgf.766.2018.02.27.17.25.09; Tue, 27 Feb 2018 17:25:24 -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; dkim=pass header.i=@gateworks-com.20150623.gappssmtp.com header.s=20150623 header.b=SitiQps3; 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 S1751989AbeB1BWt (ORCPT + 99 others); Tue, 27 Feb 2018 20:22:49 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:41490 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751835AbeB1BVn (ORCPT ); Tue, 27 Feb 2018 20:21:43 -0500 Received: by mail-pf0-f195.google.com with SMTP id f80so341971pfa.8 for ; Tue, 27 Feb 2018 17:21:43 -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=pePNcb5o6VEdlwZssZQhWHEM49jxCqzegMdcXuQW1HQ=; b=SitiQps3wgRHt9J50iCtwsHtHPNiHZQwP+r9Ohe7MfV8SF5tfzN3h8VhiZgve3f21j /9WtnjdmP779DM2bpY77HhTJorOLtnDO7YcvMAXdu702m5EITZhROA4Smfpz+wofZEut 4QtCpz0rGGDyOBLW18ajQYLstMGlW6nfr1V+pftsNZvNb4i+9HjH8qCo+Zc0ZGeUEzzm 436NcWryPQIB7NxOTWQGwaXfvv46GSSr4JTh7Mdq8Obyyxq5DcVZXtmSe1pNDIs5yEJY QuCaH5eIz1R0s87eNCPLExRO1AgQ3lVCJxgFnAKc9Cg5O5GZ1LtxTHCKpnVf/Qcn8Ueb iIeA== 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=pePNcb5o6VEdlwZssZQhWHEM49jxCqzegMdcXuQW1HQ=; b=aduU/d9PoW9G1VFGDb2jV9f4NPe8n2vX3DOL5zUF5VbJ+7UfKronS3J3k+kgQuvmUT uyxuClK6wPp1Z8VAfsTjQMJq/AV+p4fUYZeCocU/QF5pxj9DLFIgP4RqbQcAekLw8ox0 M9PPBVuCmAPI26PqWqX6W4b4a547Bh/60irSrYlTBWUytxqrx2SA8kK1rsW+8vGBEzYe 85E8LOxQhpeBkIG8ne2w/fmPoX3R2+9dmonC6xXh9Fo9tojFKlF9kpDxgByoTeJVdJ2+ 0kbbk235Jwb9//sGSLpCGznv3/2ntfCmWr6HzwjBvcxGk6dDzYpLq9YY+y3a6sWbhx+E Siwg== X-Gm-Message-State: APf1xPCHKYI0/34AIwBagu/ekxLjpCA0gSZiJ59eOr1xUKHsGQDoDESa JTkelFUxHNDNu9IIDvDqYBulgQ== X-Received: by 10.101.77.201 with SMTP id q9mr12663010pgt.395.1519780902508; Tue, 27 Feb 2018 17:21:42 -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 o82sm559297pfj.163.2018.02.27.17.21.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Feb 2018 17:21:41 -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: [RFC 1/4] dt-bindings: mfd: Add Gateworks System Controller bindings Date: Tue, 27 Feb 2018 17:21:11 -0800 Message-Id: <1519780874-8558-2-git-send-email-tharvey@gateworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519780874-8558-1-git-send-email-tharvey@gateworks.com> References: <1519780874-8558-1-git-send-email-tharvey@gateworks.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 | 69 +++++++++++++++++++++++++++ 1 file changed, 69 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..7671347 --- /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"; + }; + }; + }; -- 2.7.4