Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/peci/peci-aspeed.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Aspeed PECI Bus Device Tree Bindings
0008 
0009 maintainers:
0010   - Iwona Winiarska <iwona.winiarska@intel.com>
0011   - Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
0012 
0013 allOf:
0014   - $ref: peci-controller.yaml#
0015 
0016 properties:
0017   compatible:
0018     enum:
0019       - aspeed,ast2400-peci
0020       - aspeed,ast2500-peci
0021       - aspeed,ast2600-peci
0022 
0023   reg:
0024     maxItems: 1
0025 
0026   interrupts:
0027     maxItems: 1
0028 
0029   clocks:
0030     description:
0031       Clock source for PECI controller. Should reference the external
0032       oscillator clock.
0033     maxItems: 1
0034 
0035   resets:
0036     maxItems: 1
0037 
0038   cmd-timeout-ms:
0039     minimum: 1
0040     maximum: 1000
0041     default: 1000
0042 
0043   clock-frequency:
0044     description:
0045       The desired operation frequency of PECI controller in Hz.
0046     minimum: 2000
0047     maximum: 2000000
0048     default: 1000000
0049 
0050 required:
0051   - compatible
0052   - reg
0053   - interrupts
0054   - clocks
0055   - resets
0056 
0057 additionalProperties: false
0058 
0059 examples:
0060   - |
0061     #include <dt-bindings/interrupt-controller/arm-gic.h>
0062     #include <dt-bindings/clock/ast2600-clock.h>
0063     peci-controller@1e78b000 {
0064       compatible = "aspeed,ast2600-peci";
0065       reg = <0x1e78b000 0x100>;
0066       interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
0067       clocks = <&syscon ASPEED_CLK_GATE_REF0CLK>;
0068       resets = <&syscon ASPEED_RESET_PECI>;
0069       cmd-timeout-ms = <1000>;
0070       clock-frequency = <1000000>;
0071     };
0072 ...