18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 28c2ecf20Sopenharmony_ci%YAML 1.2 38c2ecf20Sopenharmony_ci--- 48c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/clock/imx7ulp-pcc-clock.yaml# 58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml# 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_cititle: Clock bindings for Freescale i.MX7ULP Peripheral Clock Control (PCC) modules 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_cimaintainers: 108c2ecf20Sopenharmony_ci - A.s. Dong <aisheng.dong@nxp.com> 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_cidescription: | 138c2ecf20Sopenharmony_ci i.MX7ULP Clock functions are under joint control of the System 148c2ecf20Sopenharmony_ci Clock Generation (SCG) modules, Peripheral Clock Control (PCC) 158c2ecf20Sopenharmony_ci modules, and Core Mode Controller (CMC)1 blocks 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci The clocking scheme provides clear separation between M4 domain 188c2ecf20Sopenharmony_ci and A7 domain. Except for a few clock sources shared between two 198c2ecf20Sopenharmony_ci domains, such as the System Oscillator clock, the Slow IRC (SIRC), 208c2ecf20Sopenharmony_ci and and the Fast IRC clock (FIRCLK), clock sources and clock 218c2ecf20Sopenharmony_ci management are separated and contained within each domain. 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci M4 clock management consists of SCG0, PCC0, PCC1, and CMC0 modules. 248c2ecf20Sopenharmony_ci A7 clock management consists of SCG1, PCC2, PCC3, and CMC1 modules. 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci Note: this binding doc is only for A7 clock domain. 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci The Peripheral Clock Control (PCC) is responsible for clock selection, 298c2ecf20Sopenharmony_ci optional division and clock gating mode for peripherals in their 308c2ecf20Sopenharmony_ci respected power domain. 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci The clock consumer should specify the desired clock by having the clock 338c2ecf20Sopenharmony_ci ID in its "clocks" phandle cell. 348c2ecf20Sopenharmony_ci See include/dt-bindings/clock/imx7ulp-clock.h for the full list of 358c2ecf20Sopenharmony_ci i.MX7ULP clock IDs of each module. 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ciproperties: 388c2ecf20Sopenharmony_ci compatible: 398c2ecf20Sopenharmony_ci enum: 408c2ecf20Sopenharmony_ci - fsl,imx7ulp-pcc2 418c2ecf20Sopenharmony_ci - fsl,imx7ulp-pcc3 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci reg: 448c2ecf20Sopenharmony_ci maxItems: 1 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci '#clock-cells': 478c2ecf20Sopenharmony_ci const: 1 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci clocks: 508c2ecf20Sopenharmony_ci items: 518c2ecf20Sopenharmony_ci - description: nic1 bus clock 528c2ecf20Sopenharmony_ci - description: nic1 clock 538c2ecf20Sopenharmony_ci - description: ddr clock 548c2ecf20Sopenharmony_ci - description: apll pfd2 558c2ecf20Sopenharmony_ci - description: apll pfd1 568c2ecf20Sopenharmony_ci - description: apll pfd0 578c2ecf20Sopenharmony_ci - description: usb pll 588c2ecf20Sopenharmony_ci - description: system osc bus clock 598c2ecf20Sopenharmony_ci - description: fast internal reference clock bus 608c2ecf20Sopenharmony_ci - description: rtc osc 618c2ecf20Sopenharmony_ci - description: system pll bus clock 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_ci clock-names: 648c2ecf20Sopenharmony_ci items: 658c2ecf20Sopenharmony_ci - const: nic1_bus_clk 668c2ecf20Sopenharmony_ci - const: nic1_clk 678c2ecf20Sopenharmony_ci - const: ddr_clk 688c2ecf20Sopenharmony_ci - const: apll_pfd2 698c2ecf20Sopenharmony_ci - const: apll_pfd1 708c2ecf20Sopenharmony_ci - const: apll_pfd0 718c2ecf20Sopenharmony_ci - const: upll 728c2ecf20Sopenharmony_ci - const: sosc_bus_clk 738c2ecf20Sopenharmony_ci - const: firc_bus_clk 748c2ecf20Sopenharmony_ci - const: rosc 758c2ecf20Sopenharmony_ci - const: spll_bus_clk 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_cirequired: 788c2ecf20Sopenharmony_ci - compatible 798c2ecf20Sopenharmony_ci - reg 808c2ecf20Sopenharmony_ci - '#clock-cells' 818c2ecf20Sopenharmony_ci - clocks 828c2ecf20Sopenharmony_ci - clock-names 838c2ecf20Sopenharmony_ci 848c2ecf20Sopenharmony_ciadditionalProperties: false 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_ciexamples: 878c2ecf20Sopenharmony_ci - | 888c2ecf20Sopenharmony_ci #include <dt-bindings/clock/imx7ulp-clock.h> 898c2ecf20Sopenharmony_ci #include <dt-bindings/interrupt-controller/arm-gic.h> 908c2ecf20Sopenharmony_ci 918c2ecf20Sopenharmony_ci clock-controller@403f0000 { 928c2ecf20Sopenharmony_ci compatible = "fsl,imx7ulp-pcc2"; 938c2ecf20Sopenharmony_ci reg = <0x403f0000 0x10000>; 948c2ecf20Sopenharmony_ci #clock-cells = <1>; 958c2ecf20Sopenharmony_ci clocks = <&scg1 IMX7ULP_CLK_NIC1_BUS_DIV>, 968c2ecf20Sopenharmony_ci <&scg1 IMX7ULP_CLK_NIC1_DIV>, 978c2ecf20Sopenharmony_ci <&scg1 IMX7ULP_CLK_DDR_DIV>, 988c2ecf20Sopenharmony_ci <&scg1 IMX7ULP_CLK_APLL_PFD2>, 998c2ecf20Sopenharmony_ci <&scg1 IMX7ULP_CLK_APLL_PFD1>, 1008c2ecf20Sopenharmony_ci <&scg1 IMX7ULP_CLK_APLL_PFD0>, 1018c2ecf20Sopenharmony_ci <&scg1 IMX7ULP_CLK_UPLL>, 1028c2ecf20Sopenharmony_ci <&scg1 IMX7ULP_CLK_SOSC_BUS_CLK>, 1038c2ecf20Sopenharmony_ci <&scg1 IMX7ULP_CLK_FIRC_BUS_CLK>, 1048c2ecf20Sopenharmony_ci <&scg1 IMX7ULP_CLK_ROSC>, 1058c2ecf20Sopenharmony_ci <&scg1 IMX7ULP_CLK_SPLL_BUS_CLK>; 1068c2ecf20Sopenharmony_ci clock-names = "nic1_bus_clk", "nic1_clk", "ddr_clk", 1078c2ecf20Sopenharmony_ci "apll_pfd2", "apll_pfd1", "apll_pfd0", 1088c2ecf20Sopenharmony_ci "upll", "sosc_bus_clk", "firc_bus_clk", 1098c2ecf20Sopenharmony_ci "rosc", "spll_bus_clk"; 1108c2ecf20Sopenharmony_ci }; 1118c2ecf20Sopenharmony_ci 1128c2ecf20Sopenharmony_ci mmc@40380000 { 1138c2ecf20Sopenharmony_ci compatible = "fsl,imx7ulp-usdhc"; 1148c2ecf20Sopenharmony_ci reg = <0x40380000 0x10000>; 1158c2ecf20Sopenharmony_ci interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>; 1168c2ecf20Sopenharmony_ci clocks = <&scg1 IMX7ULP_CLK_NIC1_BUS_DIV>, 1178c2ecf20Sopenharmony_ci <&scg1 IMX7ULP_CLK_NIC1_DIV>, 1188c2ecf20Sopenharmony_ci <&pcc2 IMX7ULP_CLK_USDHC1>; 1198c2ecf20Sopenharmony_ci clock-names ="ipg", "ahb", "per"; 1208c2ecf20Sopenharmony_ci bus-width = <4>; 1218c2ecf20Sopenharmony_ci }; 122