1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/clock/ingen 4 $id: http://devicetree.org/schemas/clock/ingenic,cgu.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Ingenic SoCs CGU !! 7 title: Ingenic SoCs CGU devicetree bindings 8 8 9 description: | 9 description: | 10 The CGU in an Ingenic SoC provides all the c 10 The CGU in an Ingenic SoC provides all the clocks generated on-chip. It 11 typically includes a variety of PLLs, multip 11 typically includes a variety of PLLs, multiplexers, dividers & gates in order 12 to provide many different clock signals deri 12 to provide many different clock signals derived from only 2 external source 13 clocks. 13 clocks. 14 14 15 maintainers: 15 maintainers: 16 - Paul Cercueil <paul@crapouillou.net> 16 - Paul Cercueil <paul@crapouillou.net> 17 17 18 select: 18 select: 19 properties: 19 properties: 20 compatible: 20 compatible: 21 contains: 21 contains: 22 enum: 22 enum: 23 - ingenic,jz4740-cgu 23 - ingenic,jz4740-cgu 24 - ingenic,jz4725b-cgu 24 - ingenic,jz4725b-cgu 25 - ingenic,jz4755-cgu << 26 - ingenic,jz4760-cgu 25 - ingenic,jz4760-cgu 27 - ingenic,jz4760b-cgu 26 - ingenic,jz4760b-cgu 28 - ingenic,jz4770-cgu 27 - ingenic,jz4770-cgu 29 - ingenic,jz4780-cgu 28 - ingenic,jz4780-cgu 30 - ingenic,x1000-cgu 29 - ingenic,x1000-cgu 31 - ingenic,x1830-cgu 30 - ingenic,x1830-cgu 32 required: 31 required: 33 - compatible 32 - compatible 34 33 35 properties: 34 properties: 36 $nodename: 35 $nodename: 37 pattern: "^clock-controller@[0-9a-f]+$" 36 pattern: "^clock-controller@[0-9a-f]+$" 38 37 39 "#address-cells": 38 "#address-cells": 40 const: 1 39 const: 1 41 40 42 "#size-cells": 41 "#size-cells": 43 const: 1 42 const: 1 44 43 45 "#clock-cells": 44 "#clock-cells": 46 const: 1 45 const: 1 47 46 48 ranges: true 47 ranges: true 49 48 50 compatible: 49 compatible: 51 items: 50 items: 52 - enum: 51 - enum: 53 - ingenic,jz4740-cgu 52 - ingenic,jz4740-cgu 54 - ingenic,jz4725b-cgu 53 - ingenic,jz4725b-cgu 55 - ingenic,jz4755-cgu << 56 - ingenic,jz4760-cgu 54 - ingenic,jz4760-cgu 57 - ingenic,jz4760b-cgu 55 - ingenic,jz4760b-cgu 58 - ingenic,jz4770-cgu 56 - ingenic,jz4770-cgu 59 - ingenic,jz4780-cgu 57 - ingenic,jz4780-cgu 60 - ingenic,x1000-cgu 58 - ingenic,x1000-cgu 61 - ingenic,x1830-cgu 59 - ingenic,x1830-cgu 62 - const: simple-mfd 60 - const: simple-mfd 63 minItems: 1 61 minItems: 1 64 62 65 reg: 63 reg: 66 maxItems: 1 64 maxItems: 1 67 65 68 clocks: 66 clocks: 69 items: 67 items: 70 - description: External oscillator clock 68 - description: External oscillator clock 71 - description: Internal 32 kHz RTC clock 69 - description: Internal 32 kHz RTC clock 72 70 73 clock-names: 71 clock-names: 74 items: 72 items: 75 - const: ext 73 - const: ext 76 - enum: 74 - enum: 77 - rtc 75 - rtc 78 - osc32k # Different name, same cloc 76 - osc32k # Different name, same clock 79 77 80 assigned-clocks: 78 assigned-clocks: 81 minItems: 1 79 minItems: 1 82 maxItems: 64 80 maxItems: 64 83 81 84 assigned-clock-parents: 82 assigned-clock-parents: 85 minItems: 1 83 minItems: 1 86 maxItems: 64 84 maxItems: 64 87 85 88 assigned-clock-rates: 86 assigned-clock-rates: 89 minItems: 1 87 minItems: 1 90 maxItems: 64 88 maxItems: 64 91 89 92 required: 90 required: 93 - "#clock-cells" 91 - "#clock-cells" 94 - compatible 92 - compatible 95 - reg 93 - reg 96 - clocks 94 - clocks 97 - clock-names 95 - clock-names 98 96 99 patternProperties: 97 patternProperties: 100 "^usb-phy@[a-f0-9]+$": 98 "^usb-phy@[a-f0-9]+$": 101 $ref: /schemas/phy/ingenic,phy-usb.yaml# !! 99 allOf: [ $ref: "../phy/ingenic,phy-usb.yaml#" ] 102 "^mac-phy-ctrl@[a-f0-9]+$": 100 "^mac-phy-ctrl@[a-f0-9]+$": 103 $ref: /schemas/net/ingenic,mac.yaml# !! 101 allOf: [ $ref: "../net/ingenic,mac.yaml#" ] 104 102 105 additionalProperties: false 103 additionalProperties: false 106 104 107 examples: 105 examples: 108 - | 106 - | 109 #include <dt-bindings/clock/ingenic,jz4770 !! 107 #include <dt-bindings/clock/jz4770-cgu.h> 110 cgu: clock-controller@10000000 { 108 cgu: clock-controller@10000000 { 111 compatible = "ingenic,jz4770-cgu", "simp 109 compatible = "ingenic,jz4770-cgu", "simple-mfd"; 112 reg = <0x10000000 0x100>; 110 reg = <0x10000000 0x100>; 113 #address-cells = <1>; 111 #address-cells = <1>; 114 #size-cells = <1>; 112 #size-cells = <1>; 115 ranges = <0x0 0x10000000 0x100>; 113 ranges = <0x0 0x10000000 0x100>; 116 114 117 clocks = <&ext>, <&osc32k>; 115 clocks = <&ext>, <&osc32k>; 118 clock-names = "ext", "osc32k"; 116 clock-names = "ext", "osc32k"; 119 117 120 #clock-cells = <1>; 118 #clock-cells = <1>; 121 119 122 otg_phy: usb-phy@3c { 120 otg_phy: usb-phy@3c { 123 compatible = "ingenic,jz4770-phy"; 121 compatible = "ingenic,jz4770-phy"; 124 reg = <0x3c 0x10>; 122 reg = <0x3c 0x10>; 125 123 126 clocks = <&cgu JZ4770_CLK_OTG_PHY>; 124 clocks = <&cgu JZ4770_CLK_OTG_PHY>; 127 125 128 vcc-supply = <&ldo5>; 126 vcc-supply = <&ldo5>; 129 127 130 #phy-cells = <0>; 128 #phy-cells = <0>; 131 }; 129 }; 132 }; 130 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.