1*4882a593Smuzhiyun# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*4882a593Smuzhiyun%YAML 1.2 3*4882a593Smuzhiyun--- 4*4882a593Smuzhiyun$id: http://devicetree.org/schemas/clock/imx7ulp-scg-clock.yaml# 5*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml# 6*4882a593Smuzhiyun 7*4882a593Smuzhiyuntitle: Clock bindings for Freescale i.MX7ULP System Clock Generation (SCG) modules 8*4882a593Smuzhiyun 9*4882a593Smuzhiyunmaintainers: 10*4882a593Smuzhiyun - A.s. Dong <aisheng.dong@nxp.com> 11*4882a593Smuzhiyun 12*4882a593Smuzhiyundescription: | 13*4882a593Smuzhiyun i.MX7ULP Clock functions are under joint control of the System 14*4882a593Smuzhiyun Clock Generation (SCG) modules, Peripheral Clock Control (PCC) 15*4882a593Smuzhiyun modules, and Core Mode Controller (CMC)1 blocks 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun The clocking scheme provides clear separation between M4 domain 18*4882a593Smuzhiyun and A7 domain. Except for a few clock sources shared between two 19*4882a593Smuzhiyun domains, such as the System Oscillator clock, the Slow IRC (SIRC), 20*4882a593Smuzhiyun and and the Fast IRC clock (FIRCLK), clock sources and clock 21*4882a593Smuzhiyun management are separated and contained within each domain. 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun M4 clock management consists of SCG0, PCC0, PCC1, and CMC0 modules. 24*4882a593Smuzhiyun A7 clock management consists of SCG1, PCC2, PCC3, and CMC1 modules. 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun Note: this binding doc is only for A7 clock domain. 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun The System Clock Generation (SCG) is responsible for clock generation 29*4882a593Smuzhiyun and distribution across this device. Functions performed by the SCG 30*4882a593Smuzhiyun include: clock reference selection, generation of clock used to derive 31*4882a593Smuzhiyun processor, system, peripheral bus and external memory interface clocks, 32*4882a593Smuzhiyun source selection for peripheral clocks and control of power saving 33*4882a593Smuzhiyun clock gating mode. 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun The clock consumer should specify the desired clock by having the clock 36*4882a593Smuzhiyun ID in its "clocks" phandle cell. 37*4882a593Smuzhiyun See include/dt-bindings/clock/imx7ulp-clock.h for the full list of 38*4882a593Smuzhiyun i.MX7ULP clock IDs of each module. 39*4882a593Smuzhiyun 40*4882a593Smuzhiyunproperties: 41*4882a593Smuzhiyun compatible: 42*4882a593Smuzhiyun const: fsl,imx7ulp-scg1 43*4882a593Smuzhiyun 44*4882a593Smuzhiyun reg: 45*4882a593Smuzhiyun maxItems: 1 46*4882a593Smuzhiyun 47*4882a593Smuzhiyun '#clock-cells': 48*4882a593Smuzhiyun const: 1 49*4882a593Smuzhiyun 50*4882a593Smuzhiyun clocks: 51*4882a593Smuzhiyun items: 52*4882a593Smuzhiyun - description: rtc osc 53*4882a593Smuzhiyun - description: system osc 54*4882a593Smuzhiyun - description: slow internal reference clock 55*4882a593Smuzhiyun - description: fast internal reference clock 56*4882a593Smuzhiyun - description: usb PLL 57*4882a593Smuzhiyun 58*4882a593Smuzhiyun clock-names: 59*4882a593Smuzhiyun items: 60*4882a593Smuzhiyun - const: rosc 61*4882a593Smuzhiyun - const: sosc 62*4882a593Smuzhiyun - const: sirc 63*4882a593Smuzhiyun - const: firc 64*4882a593Smuzhiyun - const: upll 65*4882a593Smuzhiyun 66*4882a593Smuzhiyunrequired: 67*4882a593Smuzhiyun - compatible 68*4882a593Smuzhiyun - reg 69*4882a593Smuzhiyun - '#clock-cells' 70*4882a593Smuzhiyun - clocks 71*4882a593Smuzhiyun - clock-names 72*4882a593Smuzhiyun 73*4882a593SmuzhiyunadditionalProperties: false 74*4882a593Smuzhiyun 75*4882a593Smuzhiyunexamples: 76*4882a593Smuzhiyun - | 77*4882a593Smuzhiyun #include <dt-bindings/clock/imx7ulp-clock.h> 78*4882a593Smuzhiyun #include <dt-bindings/interrupt-controller/arm-gic.h> 79*4882a593Smuzhiyun 80*4882a593Smuzhiyun clock-controller@403e0000 { 81*4882a593Smuzhiyun compatible = "fsl,imx7ulp-scg1"; 82*4882a593Smuzhiyun reg = <0x403e0000 0x10000>; 83*4882a593Smuzhiyun clocks = <&rosc>, <&sosc>, <&sirc>, 84*4882a593Smuzhiyun <&firc>, <&upll>; 85*4882a593Smuzhiyun clock-names = "rosc", "sosc", "sirc", 86*4882a593Smuzhiyun "firc", "upll"; 87*4882a593Smuzhiyun #clock-cells = <1>; 88*4882a593Smuzhiyun }; 89*4882a593Smuzhiyun 90*4882a593Smuzhiyun mmc@40380000 { 91*4882a593Smuzhiyun compatible = "fsl,imx7ulp-usdhc"; 92*4882a593Smuzhiyun reg = <0x40380000 0x10000>; 93*4882a593Smuzhiyun interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>; 94*4882a593Smuzhiyun clocks = <&scg1 IMX7ULP_CLK_NIC1_BUS_DIV>, 95*4882a593Smuzhiyun <&scg1 IMX7ULP_CLK_NIC1_DIV>, 96*4882a593Smuzhiyun <&pcc2 IMX7ULP_CLK_USDHC1>; 97*4882a593Smuzhiyun clock-names ="ipg", "ahb", "per"; 98*4882a593Smuzhiyun bus-width = <4>; 99*4882a593Smuzhiyun }; 100