1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
4 $id: http://devicetree.org/schemas/mfd/gateworks-gsc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Gateworks System Controller
10 The Gateworks System Controller (GSC) is a device present across various
11 Gateworks product families that provides a set of system related features
12 such as the following (refer to the board hardware user manuals to see what
16 - Pushbutton controller
17 - Hardware monitor with ADC's for temperature and voltage rails and
21 - Tim Harvey <tharvey@gateworks.com>
22 - Robert Jones <rjones@gateworks.com>
26 pattern: "gsc@[0-9a-f]{1,2}"
31 description: I2C device address
37 interrupt-controller: true
50 description: Optional hardware monitoring module
66 Properties for a single ADC which can report cooked values
67 (i.e. temperature sensor based on thermister), raw values
68 (i.e. voltage rail with a pre-scaling resistor divider).
72 description: Register of the ADC
76 description: Name of the ADC input
81 0 - temperature, in C*10
82 1 - pre-scaled voltage value
83 2 - scaled voltage based on an optional resistor divider
85 $ref: /schemas/types.yaml#/definitions/uint32
88 gw,voltage-divider-ohms:
89 description: Values of resistors for divider on raw ADC input
95 gw,voltage-offset-microvolt:
97 A positive voltage offset to apply to a raw ADC
98 (i.e. to compensate for a diode drop).
113 "^fan-controller@[0-9a-f]+$":
115 description: Optional fan controller
128 description: The fan controller base address
141 - interrupt-controller
148 #include <dt-bindings/gpio/gpio.h>
150 #address-cells = <1>;
154 compatible = "gw,gsc";
156 interrupt-parent = <&gpio1>;
157 interrupts = <4 GPIO_ACTIVE_LOW>;
158 interrupt-controller;
159 #interrupt-cells = <1>;
160 #address-cells = <1>;
164 compatible = "gw,gsc-adc";
165 #address-cells = <1>;
168 channel@0 { /* A0: Board Temperature */
174 channel@2 { /* A1: Input Voltage (raw ADC) */
178 gw,voltage-divider-ohms = <22100 1000>;
179 gw,voltage-offset-microvolt = <800000>;
182 channel@b { /* A2: Battery voltage */
190 #address-cells = <1>;
192 compatible = "gw,gsc-fan";