Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/bus/allwinner,sun50i-a64-de2.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Allwinner A64 Display Engine Bus Device Tree Bindings
0008 
0009 maintainers:
0010   - Chen-Yu Tsai <wens@csie.org>
0011   - Maxime Ripard <mripard@kernel.org>
0012 
0013 properties:
0014   $nodename:
0015     pattern: "^bus(@[0-9a-f]+)?$"
0016 
0017   "#address-cells":
0018     const: 1
0019 
0020   "#size-cells":
0021     const: 1
0022 
0023   compatible:
0024     oneOf:
0025       - const: allwinner,sun50i-a64-de2
0026       - items:
0027           - const: allwinner,sun50i-h6-de3
0028           - const: allwinner,sun50i-a64-de2
0029 
0030   reg:
0031     maxItems: 1
0032 
0033   allwinner,sram:
0034     description:
0035       The SRAM that needs to be claimed to access the display engine
0036       bus.
0037     $ref: /schemas/types.yaml#/definitions/phandle-array
0038     items:
0039       - items:
0040           - description: phandle to SRAM
0041           - description: register value for device
0042 
0043   ranges: true
0044 
0045 patternProperties:
0046   # All other properties should be child nodes with unit-address and 'reg'
0047   "^[a-zA-Z][a-zA-Z0-9,+\\-._]{0,63}@[0-9a-fA-F]+$":
0048     type: object
0049     properties:
0050       reg:
0051         maxItems: 1
0052 
0053     required:
0054       - reg
0055 
0056 required:
0057   - compatible
0058   - reg
0059   - "#address-cells"
0060   - "#size-cells"
0061   - ranges
0062   - allwinner,sram
0063 
0064 additionalProperties: false
0065 
0066 examples:
0067   - |
0068     bus@1000000 {
0069         compatible = "allwinner,sun50i-a64-de2";
0070         reg = <0x1000000 0x400000>;
0071         allwinner,sram = <&de2_sram 1>;
0072         #address-cells = <1>;
0073         #size-cells = <1>;
0074         ranges = <0 0x1000000 0x400000>;
0075 
0076         display_clocks: clock@0 {
0077             compatible = "allwinner,sun50i-a64-de2-clk";
0078             reg = <0x0 0x100000>;
0079             clocks = <&ccu 52>, <&ccu 99>;
0080             clock-names = "bus", "mod";
0081             resets = <&ccu 30>;
0082             #clock-cells = <1>;
0083             #reset-cells = <1>;
0084         };
0085     };
0086 
0087 ...