Lines Matching +full:mipi +full:- +full:dsi1
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
47 #include <dt-bindings/clock/sun8i-a83t-ccu.h>
48 #include <dt-bindings/reset/sun8i-a83t-ccu.h>
50 /* Non-exported clocks */
76 /* Non-exported fixed clocks */
134 CCU_GATE(CLK_BUS_MIPI_DSI, "bus-mipi-dsi", "ahb1", 0x60, 1)
135 CCU_GATE(CLK_BUS_SS, "bus-ss", "ahb1", 0x60, 5)
136 CCU_GATE(CLK_BUS_DMA, "bus-dma", "ahb1", 0x60, 6)
137 CCU_GATE(CLK_BUS_MMC0, "bus-mmc0", "ahb1", 0x60, 8)
138 CCU_GATE(CLK_BUS_MMC1, "bus-mmc1", "ahb1", 0x60, 9)
139 CCU_GATE(CLK_BUS_MMC2, "bus-mmc2", "ahb1", 0x60, 10)
140 CCU_GATE(CLK_BUS_NAND, "bus-nand", "ahb1", 0x60, 13)
141 CCU_GATE(CLK_BUS_DRAM, "bus-dram", "ahb1", 0x60, 14)
142 CCU_GATE(CLK_BUS_EMAC, "bus-emac", "ahb1", 0x60, 17)
143 CCU_GATE(CLK_BUS_HSTIMER, "bus-hstimer", "ahb1", 0x60, 19)
144 CCU_GATE(CLK_BUS_SPI0, "bus-spi0", "ahb1", 0x60, 20)
145 CCU_GATE(CLK_BUS_SPI1, "bus-spi1", "ahb1", 0x60, 21)
146 CCU_GATE(CLK_BUS_OTG, "bus-otg", "ahb1", 0x60, 24)
147 CCU_GATE(CLK_BUS_EHCI0, "bus-ehci0", "ahb2", 0x60, 26)
148 CCU_GATE(CLK_BUS_EHCI1, "bus-ehci1", "ahb2", 0x60, 27)
149 CCU_GATE(CLK_BUS_OHCI0, "bus-ohci0", "ahb2", 0x60, 29)
151 CCU_GATE(CLK_BUS_VE, "bus-ve", "ahb1", 0x64, 0)
152 CCU_GATE(CLK_BUS_TCON0, "bus-tcon0", "ahb1", 0x64, 4)
153 CCU_GATE(CLK_BUS_TCON1, "bus-tcon1", "ahb1", 0x64, 5)
154 CCU_GATE(CLK_BUS_CSI, "bus-csi", "ahb1", 0x64, 8)
155 CCU_GATE(CLK_BUS_HDMI, "bus-hdmi", "ahb1", 0x64, 11)
156 CCU_GATE(CLK_BUS_DE, "bus-de", "ahb1", 0x64, 12)
157 CCU_GATE(CLK_BUS_GPU, "bus-gpu", "ahb1", 0x64, 20)
158 CCU_GATE(CLK_BUS_MSGBOX, "bus-msgbox", "ahb1", 0x64, 21)
159 CCU_GATE(CLK_BUS_SPINLOCK, "bus-spinlock", "ahb1", 0x64, 22)
161 CCU_GATE(CLK_BUS_SPDIF, "bus-spdif", "apb1", 0x68, 1)
162 CCU_GATE(CLK_BUS_PIO, "bus-pio", "apb1", 0x68, 5)
163 CCU_GATE(CLK_BUS_I2S0, "bus-i2s0", "apb1", 0x68, 12)
164 CCU_GATE(CLK_BUS_I2S1, "bus-i2s1", "apb1", 0x68, 13)
165 CCU_GATE(CLK_BUS_I2S2, "bus-i2s2", "apb1", 0x68, 14)
166 CCU_GATE(CLK_BUS_TDM, "bus-tdm", "apb1", 0x68, 15)
168 CCU_GATE(CLK_BUS_I2C0, "bus-i2c0", "apb2", 0x6c, 0)
169 CCU_GATE(CLK_BUS_I2C1, "bus-i2c1", "apb2", 0x6c, 1)
170 CCU_GATE(CLK_BUS_I2C2, "bus-i2c2", "apb2", 0x6c, 2)
171 CCU_GATE(CLK_BUS_UART0, "bus-uart0", "apb2", 0x6c, 16)
172 CCU_GATE(CLK_BUS_UART1, "bus-uart1", "apb2", 0x6c, 17)
173 CCU_GATE(CLK_BUS_UART2, "bus-uart2", "apb2", 0x6c, 18)
174 CCU_GATE(CLK_BUS_UART3, "bus-uart3", "apb2", 0x6c, 19)
175 CCU_GATE(CLK_BUS_UART4, "bus-uart4", "apb2", 0x6c, 20)
177 CCU_GATE(CLK_USB_PHY0, "usb-phy0", "osc24M", 0xcc, 8)
178 CCU_GATE(CLK_USB_PHY1, "usb-phy1", "osc24M", 0xcc, 9)
179 CCU_GATE(CLK_USB_HSIC, "usb-hsic", "pll_hsic", 0xcc, 10)
180 CCU_GATE(CLK_USB_HSIC_12M, "usb-hsic-12M", "osc12M", 0xcc, 11)
181 CCU_GATE(CLK_USB_OHCI0, "usb-ohci0", "osc12M", 0xcc, 16)
183 CCU_GATE(CLK_DRAM_VE, "dram-ve", "dram", 0x100, 0)
184 CCU_GATE(CLK_DRAM_CSI, "dram-csi", "dram", 0x100, 1)
186 CCU_GATE(CLK_CSI_MISC, "csi-misc", "osc24M", 0x130, 16)
187 CCU_GATE(CLK_MIPI_CSI, "mipi-csi", "osc24M", 0x130, 31)
191 CCU_GATE(CLK_HDMI_SLOW, "hdmi-ddc", "osc24M", 0x154, 31)
374 static const char *ahb1_parents[] = {"osc16M-d512", "osc24M", "pll_periph", "pll_periph"};
392 static const char *apb2_parents[] = {"osc16M-d512", "osc24M", "pll_periph", "pll_periph"};
574 "csi-mclk", csi_mclk_parents, /* name, parents */
585 "csi-sclk", csi_sclk_parents, /* name, parents */
629 "mipi-dsi0", mipi_dsi0_parents, /* name, parents */
640 "mipi-dsi1", mipi_dsi1_parents, /* name, parents */
651 "gpu-core", gpu_core_parents, /* name, parents */
662 "gpu-memory", gpu_memory_parents, /* name, parents */
673 "gpu-hyd", gpu_hyd_parents, /* name, parents */
743 if (!ofw_bus_is_compatible(dev, "allwinner,sun8i-a83t-ccu")) in ccu_a83t_probe()
757 sc->resets = a83t_ccu_resets; in ccu_a83t_attach()
758 sc->nresets = nitems(a83t_ccu_resets); in ccu_a83t_attach()
759 sc->gates = a83t_ccu_gates; in ccu_a83t_attach()
760 sc->ngates = nitems(a83t_ccu_gates); in ccu_a83t_attach()
761 sc->clks = a83t_clks; in ccu_a83t_attach()
762 sc->nclks = nitems(a83t_clks); in ccu_a83t_attach()
763 sc->clk_init = a83t_init_clks; in ccu_a83t_attach()
764 sc->n_clk_init = nitems(a83t_init_clks); in ccu_a83t_attach()