xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/syscon.yaml (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/mfd/syscon.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
77ef62cebSEmmanuel Vadottitle: System Controller Registers R/W
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotdescription: |
10c66ec88fSEmmanuel Vadot  System controller node represents a register region containing a set
11c66ec88fSEmmanuel Vadot  of miscellaneous registers. The registers are not cohesive enough to
12c66ec88fSEmmanuel Vadot  represent as any specific type of device. The typical use-case is
13c66ec88fSEmmanuel Vadot  for some other node's driver, or platform-specific code, to acquire
14c66ec88fSEmmanuel Vadot  a reference to the syscon node (e.g. by phandle, node path, or
15c66ec88fSEmmanuel Vadot  search using a specific compatible value), interrogate the node (or
16c66ec88fSEmmanuel Vadot  associated OS driver) to determine the location of the registers,
17c66ec88fSEmmanuel Vadot  and access the registers directly.
18c66ec88fSEmmanuel Vadot
19c66ec88fSEmmanuel Vadotmaintainers:
20b97ee269SEmmanuel Vadot  - Lee Jones <lee@kernel.org>
21c66ec88fSEmmanuel Vadot
22c66ec88fSEmmanuel Vadotselect:
23c66ec88fSEmmanuel Vadot  properties:
24c66ec88fSEmmanuel Vadot    compatible:
25c66ec88fSEmmanuel Vadot      contains:
26c66ec88fSEmmanuel Vadot        enum:
27c66ec88fSEmmanuel Vadot          - syscon
28c66ec88fSEmmanuel Vadot
29c66ec88fSEmmanuel Vadot  required:
30c66ec88fSEmmanuel Vadot    - compatible
31c66ec88fSEmmanuel Vadot
32c66ec88fSEmmanuel Vadotproperties:
33c66ec88fSEmmanuel Vadot  compatible:
34c66ec88fSEmmanuel Vadot    anyOf:
35c66ec88fSEmmanuel Vadot      - items:
36c66ec88fSEmmanuel Vadot          - enum:
37c66ec88fSEmmanuel Vadot              - allwinner,sun8i-a83t-system-controller
38c66ec88fSEmmanuel Vadot              - allwinner,sun8i-h3-system-controller
39c66ec88fSEmmanuel Vadot              - allwinner,sun8i-v3s-system-controller
40c66ec88fSEmmanuel Vadot              - allwinner,sun50i-a64-system-controller
41*7d0873ebSEmmanuel Vadot              - altr,sdr-ctl
42cb7aa33aSEmmanuel Vadot              - amd,pensando-elba-syscon
43*7d0873ebSEmmanuel Vadot              - apm,xgene-csw
44*7d0873ebSEmmanuel Vadot              - apm,xgene-efuse
45*7d0873ebSEmmanuel Vadot              - apm,xgene-mcb
46*7d0873ebSEmmanuel Vadot              - apm,xgene-rb
47*7d0873ebSEmmanuel Vadot              - apm,xgene-scu
488cc087a1SEmmanuel Vadot              - brcm,cru-clkset
49*7d0873ebSEmmanuel Vadot              - brcm,sr-cdru
50*7d0873ebSEmmanuel Vadot              - brcm,sr-mhb
51e67e8565SEmmanuel Vadot              - freecom,fsg-cs2-system-controller
527ef62cebSEmmanuel Vadot              - fsl,imx93-aonmix-ns-syscfg
537ef62cebSEmmanuel Vadot              - fsl,imx93-wakeupmix-syscfg
54*7d0873ebSEmmanuel Vadot              - fsl,ls1088a-reset
556be33864SEmmanuel Vadot              - hisilicon,dsa-subctrl
566be33864SEmmanuel Vadot              - hisilicon,hi6220-sramctrl
576be33864SEmmanuel Vadot              - hisilicon,pcie-sas-subctrl
586be33864SEmmanuel Vadot              - hisilicon,peri-subctrl
59cb7aa33aSEmmanuel Vadot              - hpe,gxp-sysreg
60c9ccf3a3SEmmanuel Vadot              - intel,lgm-syscon
6184943d6fSEmmanuel Vadot              - loongson,ls1b-syscon
6284943d6fSEmmanuel Vadot              - loongson,ls1c-syscon
63*7d0873ebSEmmanuel Vadot              - marvell,armada-3700-cpu-misc
64*7d0873ebSEmmanuel Vadot              - marvell,armada-3700-nb-pm
65*7d0873ebSEmmanuel Vadot              - marvell,armada-3700-avs
66c9ccf3a3SEmmanuel Vadot              - marvell,armada-3700-usb2-host-misc
67*7d0873ebSEmmanuel Vadot              - mediatek,mt2712-pctl-a-syscfg
68*7d0873ebSEmmanuel Vadot              - mediatek,mt6397-pctl-pmic-syscfg
69c9ccf3a3SEmmanuel Vadot              - mediatek,mt8135-pctl-a-syscfg
70c9ccf3a3SEmmanuel Vadot              - mediatek,mt8135-pctl-b-syscfg
71*7d0873ebSEmmanuel Vadot              - mediatek,mt8173-pctl-a-syscfg
72cb7aa33aSEmmanuel Vadot              - mediatek,mt8365-syscfg
73c9ccf3a3SEmmanuel Vadot              - microchip,lan966x-cpu-syscon
74c66ec88fSEmmanuel Vadot              - microchip,sparx5-cpu-syscon
75c66ec88fSEmmanuel Vadot              - mstar,msc313-pmsleep
76fac71e4eSEmmanuel Vadot              - nuvoton,ma35d1-sys
778bab661aSEmmanuel Vadot              - nuvoton,wpcm450-shm
785def4c47SEmmanuel Vadot              - rockchip,px30-qos
79354d7675SEmmanuel Vadot              - rockchip,rk3036-qos
805def4c47SEmmanuel Vadot              - rockchip,rk3066-qos
8184943d6fSEmmanuel Vadot              - rockchip,rk3128-qos
82354d7675SEmmanuel Vadot              - rockchip,rk3228-qos
835def4c47SEmmanuel Vadot              - rockchip,rk3288-qos
848cc087a1SEmmanuel Vadot              - rockchip,rk3368-qos
855def4c47SEmmanuel Vadot              - rockchip,rk3399-qos
86354d7675SEmmanuel Vadot              - rockchip,rk3568-qos
877ef62cebSEmmanuel Vadot              - rockchip,rk3588-qos
887ef62cebSEmmanuel Vadot              - rockchip,rv1126-qos
89fac71e4eSEmmanuel Vadot              - starfive,jh7100-sysmain
9001950c46SEmmanuel Vadot              - ti,am62-usb-phy-ctrl
91*7d0873ebSEmmanuel Vadot              - ti,am62p-cpsw-mac-efuse
9284943d6fSEmmanuel Vadot              - ti,am654-dss-oldi-io-ctrl
9301950c46SEmmanuel Vadot              - ti,am654-serdes-ctrl
9401950c46SEmmanuel Vadot              - ti,j784s4-pcie-ctrl
95c66ec88fSEmmanuel Vadot
96c66ec88fSEmmanuel Vadot          - const: syscon
97c66ec88fSEmmanuel Vadot
98c66ec88fSEmmanuel Vadot      - contains:
99c66ec88fSEmmanuel Vadot          const: syscon
100c66ec88fSEmmanuel Vadot        minItems: 2
1017ef62cebSEmmanuel Vadot        maxItems: 5  # Should be enough
102c66ec88fSEmmanuel Vadot
103c66ec88fSEmmanuel Vadot  reg:
104c66ec88fSEmmanuel Vadot    maxItems: 1
105c66ec88fSEmmanuel Vadot
106c66ec88fSEmmanuel Vadot  reg-io-width:
107c66ec88fSEmmanuel Vadot    description: |
108c66ec88fSEmmanuel Vadot      The size (in bytes) of the IO accesses that should be performed
109c66ec88fSEmmanuel Vadot      on the device.
110c66ec88fSEmmanuel Vadot    enum: [1, 2, 4, 8]
111c66ec88fSEmmanuel Vadot
112cb7aa33aSEmmanuel Vadot  resets:
113cb7aa33aSEmmanuel Vadot    maxItems: 1
114cb7aa33aSEmmanuel Vadot
115c66ec88fSEmmanuel Vadot  hwlocks:
116c66ec88fSEmmanuel Vadot    maxItems: 1
117c66ec88fSEmmanuel Vadot    description:
118c66ec88fSEmmanuel Vadot      Reference to a phandle of a hardware spinlock provider node.
119c66ec88fSEmmanuel Vadot
120c66ec88fSEmmanuel Vadotrequired:
121c66ec88fSEmmanuel Vadot  - compatible
122c66ec88fSEmmanuel Vadot  - reg
123c66ec88fSEmmanuel Vadot
1247ef62cebSEmmanuel VadotallOf:
1257ef62cebSEmmanuel Vadot  - if:
1267ef62cebSEmmanuel Vadot      properties:
1277ef62cebSEmmanuel Vadot        compatible:
1287ef62cebSEmmanuel Vadot          contains:
1297ef62cebSEmmanuel Vadot            const: simple-mfd
1307ef62cebSEmmanuel Vadot    then:
1317ef62cebSEmmanuel Vadot      properties:
1327ef62cebSEmmanuel Vadot        compatible:
1337ef62cebSEmmanuel Vadot          minItems: 3
1347ef62cebSEmmanuel Vadot          maxItems: 5
1357ef62cebSEmmanuel Vadot
1366be33864SEmmanuel VadotadditionalProperties: true
137c66ec88fSEmmanuel Vadot
138c66ec88fSEmmanuel Vadotexamples:
139c66ec88fSEmmanuel Vadot  - |
140c66ec88fSEmmanuel Vadot    syscon: syscon@1c00000 {
141c66ec88fSEmmanuel Vadot        compatible = "allwinner,sun8i-h3-system-controller", "syscon";
142c66ec88fSEmmanuel Vadot        reg = <0x01c00000 0x1000>;
143c66ec88fSEmmanuel Vadot    };
144c66ec88fSEmmanuel Vadot...
145