Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: arm/npcm: Add binding for global control registers (GCR)

A nuvoton,*-gcr node is present in nuvoton-common-npcm7xx.dtsi and will
be added to nuvoton-wpcm450.dtsi. It is necessary for the NPCM7xx and
WPCM450 pinctrl drivers, and may later be used to retrieve SoC model and
version information.

This patch adds a binding to describe this node.

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220129115228.2257310-2-j.neuschaefer@gmx.net
Signed-off-by: Joel Stanley <joel@jms.id.au>

authored by

Jonathan Neuschäfer and committed by
Joel Stanley
a268b155 e783362e

+48
+48
Documentation/devicetree/bindings/arm/npcm/nuvoton,gcr.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/arm/npcm/nuvoton,gcr.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Global Control Registers block in Nuvoton SoCs 8 + 9 + maintainers: 10 + - Jonathan Neuschäfer <j.neuschaefer@gmx.net> 11 + 12 + description: 13 + The Global Control Registers (GCR) are a block of registers in Nuvoton SoCs 14 + that expose misc functionality such as chip model and version information or 15 + pinmux settings. 16 + 17 + properties: 18 + compatible: 19 + items: 20 + - enum: 21 + - nuvoton,wpcm450-gcr 22 + - nuvoton,npcm750-gcr 23 + - const: syscon 24 + - const: simple-mfd 25 + 26 + reg: 27 + maxItems: 1 28 + 29 + required: 30 + - compatible 31 + - reg 32 + 33 + additionalProperties: 34 + type: object 35 + 36 + examples: 37 + - | 38 + gcr: syscon@800000 { 39 + compatible = "nuvoton,npcm750-gcr", "syscon", "simple-mfd"; 40 + reg = <0x800000 0x1000>; 41 + 42 + mux-controller { 43 + compatible = "mmio-mux"; 44 + #mux-control-cells = <1>; 45 + mux-reg-masks = <0x38 0x07>; 46 + idle-states = <2>; 47 + }; 48 + };