1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/reset/allwinner,sun6i-a31-clock-reset.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7*7ef62cebSEmmanuel Vadottitle: Allwinner A31 Peripheral Reset Controller 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Chen-Yu Tsai <wens@csie.org> 11c66ec88fSEmmanuel Vadot - Maxime Ripard <mripard@kernel.org> 12c66ec88fSEmmanuel Vadot 13c66ec88fSEmmanuel Vadotdeprecated: true 14c66ec88fSEmmanuel Vadot 15c66ec88fSEmmanuel Vadotselect: 16c66ec88fSEmmanuel Vadot properties: 17c66ec88fSEmmanuel Vadot compatible: 18c66ec88fSEmmanuel Vadot contains: 19c66ec88fSEmmanuel Vadot enum: 20c66ec88fSEmmanuel Vadot - allwinner,sun6i-a31-ahb1-reset 21c66ec88fSEmmanuel Vadot - allwinner,sun6i-a31-clock-reset 22c66ec88fSEmmanuel Vadot 23c66ec88fSEmmanuel Vadot # The PRCM on the A31 and A23 will have the reg property missing, 24c66ec88fSEmmanuel Vadot # since it's set at the upper level node, and will be validated by 25c66ec88fSEmmanuel Vadot # PRCM's schema. Make sure we only validate standalone nodes. 26c66ec88fSEmmanuel Vadot required: 27c66ec88fSEmmanuel Vadot - compatible 28c66ec88fSEmmanuel Vadot - reg 29c66ec88fSEmmanuel Vadot 30c66ec88fSEmmanuel Vadotproperties: 31c66ec88fSEmmanuel Vadot "#reset-cells": 32c66ec88fSEmmanuel Vadot const: 1 33c66ec88fSEmmanuel Vadot description: > 34c66ec88fSEmmanuel Vadot This additional argument passed to that reset controller is the 35c66ec88fSEmmanuel Vadot offset of the bit controlling this particular reset line in the 36c66ec88fSEmmanuel Vadot register. 37c66ec88fSEmmanuel Vadot 38c66ec88fSEmmanuel Vadot compatible: 39c66ec88fSEmmanuel Vadot enum: 40c66ec88fSEmmanuel Vadot - allwinner,sun6i-a31-ahb1-reset 41c66ec88fSEmmanuel Vadot - allwinner,sun6i-a31-clock-reset 42c66ec88fSEmmanuel Vadot 43c66ec88fSEmmanuel Vadot reg: 44c66ec88fSEmmanuel Vadot maxItems: 1 45c66ec88fSEmmanuel Vadot 46c66ec88fSEmmanuel Vadotrequired: 47c66ec88fSEmmanuel Vadot - "#reset-cells" 48c66ec88fSEmmanuel Vadot - compatible 49c66ec88fSEmmanuel Vadot - reg 50c66ec88fSEmmanuel Vadot 51c66ec88fSEmmanuel VadotadditionalProperties: false 52c66ec88fSEmmanuel Vadot 53c66ec88fSEmmanuel Vadotexamples: 54c66ec88fSEmmanuel Vadot - | 55c66ec88fSEmmanuel Vadot ahb1_rst: reset@1c202c0 { 56c66ec88fSEmmanuel Vadot #reset-cells = <1>; 57c66ec88fSEmmanuel Vadot compatible = "allwinner,sun6i-a31-ahb1-reset"; 58c66ec88fSEmmanuel Vadot reg = <0x01c202c0 0xc>; 59c66ec88fSEmmanuel Vadot }; 60c66ec88fSEmmanuel Vadot 61c66ec88fSEmmanuel Vadot - | 62c66ec88fSEmmanuel Vadot apbs_rst: reset@80014b0 { 63c66ec88fSEmmanuel Vadot #reset-cells = <1>; 64c66ec88fSEmmanuel Vadot compatible = "allwinner,sun6i-a31-clock-reset"; 65c66ec88fSEmmanuel Vadot reg = <0x080014b0 0x4>; 66c66ec88fSEmmanuel Vadot }; 67c66ec88fSEmmanuel Vadot 68c66ec88fSEmmanuel Vadot... 69