Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 --- $id: http://devicetree.org/schemas/soc/socionext/socionext,uniphier-sysctrl.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: Socionext UniPhier system controller maintainers: - Kunihiko Hayashi <hayashi.kunihiko@socionext.com> description: |+ System controller implemented on Socionext UniPhier SoCs has multiple functions such as clock control, reset control, internal watchdog timer, thermal management, and so on. properties: compatible: items: - enum: - socionext,uniphier-ld4-sysctrl - socionext,uniphier-pro4-sysctrl - socionext,uniphier-pro5-sysctrl - socionext,uniphier-pxs2-sysctrl - socionext,uniphier-sld8-sysctrl - socionext,uniphier-ld11-sysctrl - socionext,uniphier-ld20-sysctrl - socionext,uniphier-pxs3-sysctrl - socionext,uniphier-nx1-sysctrl - const: simple-mfd - const: syscon reg: maxItems: 1 clock-controller: $ref: /schemas/clock/socionext,uniphier-clock.yaml# reset-controller: $ref: /schemas/reset/socionext,uniphier-reset.yaml# watchdog: $ref: /schemas/watchdog/socionext,uniphier-wdt.yaml# thermal-sensor: $ref: /schemas/thermal/socionext,uniphier-thermal.yaml# allOf: - if: properties: compatible: contains: const: socionext,uniphier-ld4-sysctrl then: properties: watchdog: false - if: properties: compatible: contains: enum: - socionext,uniphier-ld4-sysctrl - socionext,uniphier-pro4-sysctrl - socionext,uniphier-sld8-sysctrl - socionext,uniphier-ld11-sysctrl then: properties: thermal-sensor: false additionalProperties: false required: - compatible - reg examples: - | #include <dt-bindings/interrupt-controller/arm-gic.h> syscon@61840000 { compatible = "socionext,uniphier-ld20-sysctrl", "simple-mfd", "syscon"; reg = <0x61840000 0x4000>; clock-controller { compatible = "socionext,uniphier-ld20-clock"; #clock-cells = <1>; }; reset-controller { compatible = "socionext,uniphier-ld20-reset"; #reset-cells = <1>; }; watchdog { compatible = "socionext,uniphier-wdt"; }; thermal-sensor { compatible = "socionext,uniphier-ld20-thermal"; interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; #thermal-sensor-cells = <0>; }; }; |