brintos

brintos / linux-shallow public Read only

0
0
Text · 7.3 KiB · e94b0fd Raw
303 lines · yaml
1# SPDX-License-Identifier: GPL-2.02%YAML 1.23---4$id: http://devicetree.org/schemas/mfd/ti,twl.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Texas Instruments TWL family8 9maintainers:10  - Andreas Kemnade <andreas@kemnade.info>11 12description: |13  The TWLs are Integrated Power Management Chips.14  Some version might contain much more analog function like15  USB transceiver or Audio amplifier.16  These chips are connected to an i2c bus.17 18allOf:19  - if:20      properties:21        compatible:22          contains:23            const: ti,twl403024    then:25      patternProperties:26        "^regulator-":27          properties:28            compatible:29              enum:30                - ti,twl4030-vaux131                - ti,twl4030-vaux232                - ti,twl4030-vaux333                - ti,twl4030-vaux434                - ti,twl4030-vmmc135                - ti,twl4030-vmmc236                - ti,twl4030-vpll137                - ti,twl4030-vpll238                - ti,twl4030-vsim39                - ti,twl4030-vdac40                - ti,twl4030-vintana241                - ti,twl4030-vio42                - ti,twl4030-vdd143                - ti,twl4030-vdd244                - ti,twl4030-vintana145                - ti,twl4030-vintdig46                - ti,twl4030-vusb1v547                - ti,twl4030-vusb1v848                - ti,twl4030-vusb3v149            ti,retain-on-reset: false50 51      properties:52        madc:53          type: object54          $ref: /schemas/iio/adc/ti,twl4030-madc.yaml55          unevaluatedProperties: false56 57        bci:58          type: object59          $ref: /schemas/power/supply/twl4030-charger.yaml60          unevaluatedProperties: false61 62        pwrbutton:63          type: object64          additionalProperties: false65          properties:66            compatible:67              const: ti,twl4030-pwrbutton68            interrupts:69              items:70                - items:71                    const: 872 73        watchdog:74          type: object75          additionalProperties: false76          properties:77            compatible:78              const: ti,twl4030-wdt79  - if:80      properties:81        compatible:82          contains:83            const: ti,twl603084    then:85      patternProperties:86        "^regulator-":87          properties:88            compatible:89              enum:90                - ti,twl6030-vaux191                - ti,twl6030-vaux292                - ti,twl6030-vaux393                - ti,twl6030-vmmc94                - ti,twl6030-vpp95                - ti,twl6030-vusim96                - ti,twl6030-vana97                - ti,twl6030-vcxio98                - ti,twl6030-vdac99                - ti,twl6030-vusb100                - ti,twl6030-v1v8101                - ti,twl6030-v2v1102                - ti,twl6030-vdd1103                - ti,twl6030-vdd2104                - ti,twl6030-vdd3105            regulator-initial-mode: false106 107      properties:108        gpadc:109          type: object110          properties:111            compatible:112              const: ti,twl6030-gpadc113  - if:114      properties:115        compatible:116          contains:117            const: ti,twl6032118    then:119      patternProperties:120        "^regulator-":121          properties:122            compatible:123              enum:124                - ti,twl6032-ldo1125                - ti,twl6032-ldo2126                - ti,twl6032-ldo3127                - ti,twl6032-ldo4128                - ti,twl6032-ldo5129                - ti,twl6032-ldo6130                - ti,twl6032-ldo7131                - ti,twl6032-ldoln132                - ti,twl6032-ldousb133                - ti,twl6032-smps3134                - ti,twl6032-smps4135                - ti,twl6032-vio136            regulator-initial-mode: false137 138      properties:139        gpadc:140          type: object141          properties:142            compatible:143              const: ti,twl6032-gpadc144 145properties:146  compatible:147    description:148      TWL4030 for integrated power-management/audio CODEC device used in OMAP3149      based boards150      TWL6030/32 for integrated power-management used in OMAP4 based boards151    enum:152      - ti,twl4030153      - ti,twl6030154      - ti,twl6032155 156  reg:157    maxItems: 1158 159  interrupts:160    maxItems: 1161 162  interrupt-controller: true163 164  system-power-controller: true165 166  "#interrupt-cells":167    const: 1168 169  "#clock-cells":170    const: 1171 172  rtc:173    type: object174    additionalProperties: false175    properties:176      compatible:177        const: ti,twl4030-rtc178      interrupts:179        maxItems: 1180 181patternProperties:182  "^regulator-":183    type: object184    unevaluatedProperties: false185    $ref: /schemas/regulator/regulator.yaml186    properties:187      compatible: true188      regulator-initial-mode:189        enum:190          - 0x08 # Sleep mode, the nominal output voltage is maintained191                 # with low power consumption with low load current capability192          - 0x0e # Active mode, the regulator can deliver its nominal output193                 # voltage with full-load current capability194      ti,retain-on-reset:195        description:196          Does not turn off the supplies during warm197          reset. Could be needed for VMMC, as TWL6030198          reset sequence for this signal does not comply199          with the SD specification.200        type: boolean201 202unevaluatedProperties: false203 204required:205  - compatible206  - reg207  - interrupts208  - interrupt-controller209  - "#interrupt-cells"210 211examples:212  - |213    i2c {214      #address-cells = <1>;215      #size-cells = <0>;216 217      pmic@48 {218        compatible = "ti,twl6030";219        reg = <0x48>;220        interrupts = <39>; /* IRQ_SYS_1N cascaded to gic */221        interrupt-parent = <&gic>;222        interrupt-controller;223        #interrupt-cells = <1>;224 225        gpadc {226          compatible = "ti,twl6030-gpadc";227          interrupts = <6>;228          #io-channel-cells = <1>;229        };230 231        rtc {232          compatible = "ti,twl4030-rtc";233          interrupts = <8>;234        };235 236        regulator-vaux1 {237          compatible = "ti,twl6030-vaux1";238          regulator-min-microvolt = <1000000>;239          regulator-max-microvolt = <3000000>;240        };241 242        regulator-vmmc1 {243          compatible = "ti,twl6030-vmmc";244          ti,retain-on-reset;245        };246      };247    };248 249  - |250    i2c {251      #address-cells = <1>;252      #size-cells = <0>;253 254      pmic@48 {255        compatible = "ti,twl4030";256        reg = <0x48>;257        interrupts = <7>; /* SYS_NIRQ cascaded to intc */258        interrupt-parent = <&intc>;259        interrupt-controller;260        #interrupt-cells = <1>;261 262        bci {263          compatible = "ti,twl4030-bci";264          interrupts = <9>, <2>;265          bci3v1-supply = <&vusb3v1>;266          io-channels = <&twl_madc 11>;267          io-channel-names = "vac";268        };269 270        twl_madc: madc {271          compatible = "ti,twl4030-madc";272          interrupts = <3>;273          #io-channel-cells = <1>;274        };275 276        pwrbutton {277          compatible = "ti,twl4030-pwrbutton";278          interrupts = <8>;279        };280 281        rtc {282          compatible = "ti,twl4030-rtc";283          interrupts = <11>;284        };285 286        regulator-vaux1 {287          compatible = "ti,twl4030-vaux1";288          regulator-min-microvolt = <1000000>;289          regulator-max-microvolt = <3000000>;290          regulator-initial-mode = <0xe>;291        };292 293        vusb3v1: regulator-vusb3v1 {294          compatible = "ti,twl4030-vusb3v1";295        };296 297        watchdog {298          compatible = "ti,twl4030-wdt";299        };300      };301    };302...303