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 24-bit voltage value
83 2 - scaled voltage based on an optional resistor divider
85 3 - pre-scaled 16-bit voltage value
86 $ref: /schemas/types.yaml#/definitions/uint32
89 gw,voltage-divider-ohms:
90 description: Values of resistors for divider on raw ADC input
96 gw,voltage-offset-microvolt:
98 A positive voltage offset to apply to a raw ADC
99 (i.e. to compensate for a diode drop).
114 "^fan-controller@[0-9a-f]+$":
116 description: Optional fan controller
129 description: The fan controller base address
142 - interrupt-controller
147 additionalProperties: false
151 #include <dt-bindings/gpio/gpio.h>
152 #include <dt-bindings/interrupt-controller/irq.h>
154 #address-cells = <1>;
158 compatible = "gw,gsc";
160 interrupt-parent = <&gpio1>;
161 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
162 interrupt-controller;
163 #interrupt-cells = <1>;
164 #address-cells = <1>;
168 compatible = "gw,gsc-adc";
169 #address-cells = <1>;
172 channel@0 { /* A0: Board Temperature */
178 channel@2 { /* A1: Input Voltage (raw ADC) */
182 gw,voltage-divider-ohms = <22100 1000>;
183 gw,voltage-offset-microvolt = <800000>;
186 channel@b { /* A2: Battery voltage */
194 #address-cells = <1>;
196 compatible = "gw,gsc-fan";