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
149 #include <dt-bindings/gpio/gpio.h>
150 #include <dt-bindings/interrupt-controller/irq.h>
152 #address-cells = <1>;
156 compatible = "gw,gsc";
158 interrupt-parent = <&gpio1>;
159 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
160 interrupt-controller;
161 #interrupt-cells = <1>;
162 #address-cells = <1>;
166 compatible = "gw,gsc-adc";
167 #address-cells = <1>;
170 channel@0 { /* A0: Board Temperature */
176 channel@2 { /* A1: Input Voltage (raw ADC) */
180 gw,voltage-divider-ohms = <22100 1000>;
181 gw,voltage-offset-microvolt = <800000>;
184 channel@b { /* A2: Battery voltage */
192 #address-cells = <1>;
194 compatible = "gw,gsc-fan";