1*d5b0e70fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 2*d5b0e70fSEmmanuel Vadot%YAML 1.2 3*d5b0e70fSEmmanuel Vadot--- 4*d5b0e70fSEmmanuel Vadot$id: http://devicetree.org/schemas/clock/rockchip,rk3188-cru.yaml# 5*d5b0e70fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*d5b0e70fSEmmanuel Vadot 7*d5b0e70fSEmmanuel Vadottitle: Rockchip RK3188/RK3066 Clock and Reset Unit (CRU) 8*d5b0e70fSEmmanuel Vadot 9*d5b0e70fSEmmanuel Vadotmaintainers: 10*d5b0e70fSEmmanuel Vadot - Elaine Zhang <zhangqing@rock-chips.com> 11*d5b0e70fSEmmanuel Vadot - Heiko Stuebner <heiko@sntech.de> 12*d5b0e70fSEmmanuel Vadot 13*d5b0e70fSEmmanuel Vadotdescription: | 14*d5b0e70fSEmmanuel Vadot The RK3188/RK3066 clock controller generates and supplies clocks to various 15*d5b0e70fSEmmanuel Vadot controllers within the SoC and also implements a reset controller for SoC 16*d5b0e70fSEmmanuel Vadot peripherals. 17*d5b0e70fSEmmanuel Vadot Each clock is assigned an identifier and client nodes can use this identifier 18*d5b0e70fSEmmanuel Vadot to specify the clock which they consume. All available clocks are defined as 19*d5b0e70fSEmmanuel Vadot preprocessor macros in the dt-bindings/clock/rk3188-cru.h and 20*d5b0e70fSEmmanuel Vadot dt-bindings/clock/rk3066-cru.h headers and can be used in device tree sources. 21*d5b0e70fSEmmanuel Vadot Similar macros exist for the reset sources in these files. 22*d5b0e70fSEmmanuel Vadot There are several clocks that are generated outside the SoC. It is expected 23*d5b0e70fSEmmanuel Vadot that they are defined using standard clock bindings with following 24*d5b0e70fSEmmanuel Vadot clock-output-names: 25*d5b0e70fSEmmanuel Vadot - "xin24m" - crystal input - required 26*d5b0e70fSEmmanuel Vadot - "xin32k" - RTC clock - optional 27*d5b0e70fSEmmanuel Vadot - "xin27m" - 27mhz crystal input on RK3066 - optional 28*d5b0e70fSEmmanuel Vadot - "ext_hsadc" - external HSADC clock - optional 29*d5b0e70fSEmmanuel Vadot - "ext_cif0" - external camera clock - optional 30*d5b0e70fSEmmanuel Vadot - "ext_rmii" - external RMII clock - optional 31*d5b0e70fSEmmanuel Vadot - "ext_jtag" - external JTAG clock - optional 32*d5b0e70fSEmmanuel Vadot 33*d5b0e70fSEmmanuel Vadotproperties: 34*d5b0e70fSEmmanuel Vadot compatible: 35*d5b0e70fSEmmanuel Vadot enum: 36*d5b0e70fSEmmanuel Vadot - rockchip,rk3066a-cru 37*d5b0e70fSEmmanuel Vadot - rockchip,rk3188-cru 38*d5b0e70fSEmmanuel Vadot - rockchip,rk3188a-cru 39*d5b0e70fSEmmanuel Vadot 40*d5b0e70fSEmmanuel Vadot reg: 41*d5b0e70fSEmmanuel Vadot maxItems: 1 42*d5b0e70fSEmmanuel Vadot 43*d5b0e70fSEmmanuel Vadot "#clock-cells": 44*d5b0e70fSEmmanuel Vadot const: 1 45*d5b0e70fSEmmanuel Vadot 46*d5b0e70fSEmmanuel Vadot "#reset-cells": 47*d5b0e70fSEmmanuel Vadot const: 1 48*d5b0e70fSEmmanuel Vadot 49*d5b0e70fSEmmanuel Vadot clocks: 50*d5b0e70fSEmmanuel Vadot maxItems: 1 51*d5b0e70fSEmmanuel Vadot 52*d5b0e70fSEmmanuel Vadot clock-names: 53*d5b0e70fSEmmanuel Vadot const: xin24m 54*d5b0e70fSEmmanuel Vadot 55*d5b0e70fSEmmanuel Vadot rockchip,grf: 56*d5b0e70fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle 57*d5b0e70fSEmmanuel Vadot description: 58*d5b0e70fSEmmanuel Vadot Phandle to the syscon managing the "general register files" (GRF), 59*d5b0e70fSEmmanuel Vadot if missing pll rates are not changeable, due to the missing pll 60*d5b0e70fSEmmanuel Vadot lock status. 61*d5b0e70fSEmmanuel Vadot 62*d5b0e70fSEmmanuel Vadotrequired: 63*d5b0e70fSEmmanuel Vadot - compatible 64*d5b0e70fSEmmanuel Vadot - reg 65*d5b0e70fSEmmanuel Vadot - "#clock-cells" 66*d5b0e70fSEmmanuel Vadot - "#reset-cells" 67*d5b0e70fSEmmanuel Vadot 68*d5b0e70fSEmmanuel VadotadditionalProperties: false 69*d5b0e70fSEmmanuel Vadot 70*d5b0e70fSEmmanuel Vadotexamples: 71*d5b0e70fSEmmanuel Vadot - | 72*d5b0e70fSEmmanuel Vadot cru: clock-controller@20000000 { 73*d5b0e70fSEmmanuel Vadot compatible = "rockchip,rk3188-cru"; 74*d5b0e70fSEmmanuel Vadot reg = <0x20000000 0x1000>; 75*d5b0e70fSEmmanuel Vadot rockchip,grf = <&grf>; 76*d5b0e70fSEmmanuel Vadot #clock-cells = <1>; 77*d5b0e70fSEmmanuel Vadot #reset-cells = <1>; 78*d5b0e70fSEmmanuel Vadot }; 79