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 7c66ec88fSEmmanuel Vadottitle: System Controller Registers R/W Device Tree Bindings 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: 20c66ec88fSEmmanuel Vadot - Lee Jones <lee.jones@linaro.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 416be33864SEmmanuel Vadot - hisilicon,dsa-subctrl 426be33864SEmmanuel Vadot - hisilicon,hi6220-sramctrl 436be33864SEmmanuel Vadot - hisilicon,pcie-sas-subctrl 446be33864SEmmanuel Vadot - hisilicon,peri-subctrl 45c66ec88fSEmmanuel Vadot - microchip,sparx5-cpu-syscon 46c66ec88fSEmmanuel Vadot - mstar,msc313-pmsleep 475def4c47SEmmanuel Vadot - rockchip,px30-qos 48*354d7675SEmmanuel Vadot - rockchip,rk3036-qos 495def4c47SEmmanuel Vadot - rockchip,rk3066-qos 50*354d7675SEmmanuel Vadot - rockchip,rk3228-qos 515def4c47SEmmanuel Vadot - rockchip,rk3288-qos 525def4c47SEmmanuel Vadot - rockchip,rk3399-qos 53*354d7675SEmmanuel Vadot - rockchip,rk3568-qos 546be33864SEmmanuel Vadot - samsung,exynos3-sysreg 556be33864SEmmanuel Vadot - samsung,exynos4-sysreg 566be33864SEmmanuel Vadot - samsung,exynos5-sysreg 576be33864SEmmanuel Vadot - samsung,exynos5433-sysreg 58c66ec88fSEmmanuel Vadot 59c66ec88fSEmmanuel Vadot - const: syscon 60c66ec88fSEmmanuel Vadot 61c66ec88fSEmmanuel Vadot - contains: 62c66ec88fSEmmanuel Vadot const: syscon 63c66ec88fSEmmanuel Vadot minItems: 2 64c66ec88fSEmmanuel Vadot maxItems: 4 # Should be enough 65c66ec88fSEmmanuel Vadot 66c66ec88fSEmmanuel Vadot reg: 67c66ec88fSEmmanuel Vadot maxItems: 1 68c66ec88fSEmmanuel Vadot 69c66ec88fSEmmanuel Vadot reg-io-width: 70c66ec88fSEmmanuel Vadot description: | 71c66ec88fSEmmanuel Vadot The size (in bytes) of the IO accesses that should be performed 72c66ec88fSEmmanuel Vadot on the device. 73c66ec88fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 74c66ec88fSEmmanuel Vadot enum: [1, 2, 4, 8] 75c66ec88fSEmmanuel Vadot 76c66ec88fSEmmanuel Vadot hwlocks: 77c66ec88fSEmmanuel Vadot maxItems: 1 78c66ec88fSEmmanuel Vadot description: 79c66ec88fSEmmanuel Vadot Reference to a phandle of a hardware spinlock provider node. 80c66ec88fSEmmanuel Vadot 81c66ec88fSEmmanuel Vadotrequired: 82c66ec88fSEmmanuel Vadot - compatible 83c66ec88fSEmmanuel Vadot - reg 84c66ec88fSEmmanuel Vadot 856be33864SEmmanuel VadotadditionalProperties: true 86c66ec88fSEmmanuel Vadot 87c66ec88fSEmmanuel Vadotexamples: 88c66ec88fSEmmanuel Vadot - | 89c66ec88fSEmmanuel Vadot syscon: syscon@1c00000 { 90c66ec88fSEmmanuel Vadot compatible = "allwinner,sun8i-h3-system-controller", "syscon"; 91c66ec88fSEmmanuel Vadot reg = <0x01c00000 0x1000>; 92c66ec88fSEmmanuel Vadot }; 93c66ec88fSEmmanuel Vadot 94c66ec88fSEmmanuel Vadot - | 95c66ec88fSEmmanuel Vadot gpr: iomuxc-gpr@20e0000 { 96c66ec88fSEmmanuel Vadot compatible = "fsl,imx6q-iomuxc-gpr", "syscon"; 97c66ec88fSEmmanuel Vadot reg = <0x020e0000 0x38>; 98c66ec88fSEmmanuel Vadot hwlocks = <&hwlock1 1>; 99c66ec88fSEmmanuel Vadot }; 100c66ec88fSEmmanuel Vadot 101c66ec88fSEmmanuel Vadot... 102