brintos

brintos / linux-shallow public Read only

0
0
Text · 2.2 KiB · f3d8394 Raw
117 lines · yaml
1# SPDX-License-Identifier: GPL-2.02%YAML 1.23---4$id: http://devicetree.org/schemas/mfd/x-powers,ac100.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: X-Powers AC1008 9maintainers:10  - Chen-Yu Tsai <wens@csie.org>11 12properties:13  compatible:14    const: x-powers,ac10015 16  reg:17    maxItems: 118 19  codec:20    type: object21 22    properties:23      "#clock-cells":24        const: 025 26      compatible:27        const: x-powers,ac100-codec28 29      interrupts:30        maxItems: 131 32      clock-output-names:33        maxItems: 134        description: >35          Name of the 4M_adda clock exposed by the codec36 37    required:38      - "#clock-cells"39      - compatible40      - interrupts41      - clock-output-names42 43    additionalProperties: false44 45  rtc:46    type: object47 48    properties:49      "#clock-cells":50        const: 151 52      compatible:53        const: x-powers,ac100-rtc54 55      interrupts:56        maxItems: 157 58      clocks:59        maxItems: 160        description: >61           A phandle to the codec's "4M_adda" clock62 63      clock-output-names:64        maxItems: 365        description: >66          Name of the cko1, cko2 and cko3 clocks exposed by the codec67 68    required:69      - "#clock-cells"70      - compatible71      - interrupts72      - clocks73      - clock-output-names74 75    additionalProperties: false76 77required:78  - compatible79  - reg80  - codec81  - rtc82 83additionalProperties: false84 85examples:86  - |87    #include <dt-bindings/interrupt-controller/irq.h>88 89    rsb {90        #address-cells = <1>;91        #size-cells = <0>;92 93        codec@e89 {94            compatible = "x-powers,ac100";95            reg = <0xe89>;96 97            ac100_codec: codec {98                compatible = "x-powers,ac100-codec";99                interrupt-parent = <&r_pio>;100                interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */101                #clock-cells = <0>;102                clock-output-names = "4M_adda";103            };104 105            ac100_rtc: rtc {106                compatible = "x-powers,ac100-rtc";107                interrupt-parent = <&nmi_intc>;108                interrupts = <0 IRQ_TYPE_LEVEL_LOW>;109                clocks = <&ac100_codec>;110                #clock-cells = <1>;111                clock-output-names = "cko1_rtc", "cko2_rtc", "cko3_rtc";112            };113        };114    };115 116...117