Lines Matching +full:bus +full:- +full:id

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
34 #include <sys/bus.h>
39 #include <machine/bus.h>
52 #include <dt-bindings/clock/sun20i-d1-ccu.h>
53 #include <dt-bindings/reset/sun20i-d1-ccu.h>
125 CCU_GATE(CLK_BUS_DE, "bus-de", "psi-ahb", 0x60C, 0)
126 CCU_GATE(CLK_BUS_DI, "bus-di", "psi-ahb", 0x62C, 0)
127 CCU_GATE(CLK_BUS_G2D, "bus-g2d", "psi-ahb", 0x63C, 0)
128 CCU_GATE(CLK_BUS_CE, "bus-ce", "psi-ahb", 0x68C, 0)
129 CCU_GATE(CLK_BUS_VE, "bus-ve", "psi-ahb", 0x690, 0)
130 CCU_GATE(CLK_BUS_DMA, "bus-dma", "psi-ahb", 0x70C, 0)
131 CCU_GATE(CLK_BUS_MSGBOX0, "bus-msgbox0", "psi-ahb", 0x71C, 0)
132 CCU_GATE(CLK_BUS_MSGBOX1, "bus-msgbox1", "psi-ahb", 0x71C, 1)
133 CCU_GATE(CLK_BUS_MSGBOX2, "bus-msgbox2", "psi-ahb", 0x71C, 2)
134 CCU_GATE(CLK_BUS_SPINLOCK, "bus-spinlock", "psi-ahb", 0x72C, 0)
135 CCU_GATE(CLK_BUS_HSTIMER, "bus-hstimer", "psi-ahb", 0x73C, 0)
137 CCU_GATE(CLK_BUS_DBG, "bus-dbg", "psi-ahb", 0x78C, 0)
138 CCU_GATE(CLK_BUS_PWM, "bus-pwm", "psi-ahb", 0x7AC, 0)
139 CCU_GATE(CLK_BUS_IOMMU, "bus-iommu", "apb0", 0x7BC, 0)
140 CCU_GATE(CLK_MBUS_DMA, "mbus-dma", "mbus", 0x804, 0)
141 CCU_GATE(CLK_MBUS_VE, "mbus-ve", "mbus", 0x804, 1)
142 CCU_GATE(CLK_MBUS_CE, "mbus-ce", "mbus", 0x804, 2)
143 CCU_GATE(CLK_MBUS_TVIN, "mbus-tvin", "mbus", 0x804, 7)
144 CCU_GATE(CLK_MBUS_CSI, "mbus-csi", "mbus", 0x804, 8)
145 CCU_GATE(CLK_MBUS_G2D, "mbus-g2d", "mbus", 0x804, 10)
146 CCU_GATE(CLK_MBUS_RISCV, "mbus-riscv", "mbus", 0x804, 11)
147 CCU_GATE(CLK_BUS_DRAM, "bus-dram", "psi-ahb", 0x80C, 0)
148 CCU_GATE(CLK_BUS_MMC0, "bus-mmc0", "psi-ahb", 0x84C, 0)
149 CCU_GATE(CLK_BUS_MMC1, "bus-mmc1", "psi-ahb", 0x84C, 1)
150 CCU_GATE(CLK_BUS_MMC2, "bus-mmc2", "psi-ahb", 0x84C, 2)
151 CCU_GATE(CLK_BUS_UART0, "bus-uart0", "apb1", 0x90C, 0)
152 CCU_GATE(CLK_BUS_UART1, "bus-uart1", "apb1", 0x90C, 1)
153 CCU_GATE(CLK_BUS_UART2, "bus-uart2", "apb1", 0x90C, 2)
154 CCU_GATE(CLK_BUS_UART3, "bus-uart3", "apb1", 0x90C, 3)
155 CCU_GATE(CLK_BUS_UART4, "bus-uart4", "apb1", 0x90C, 4)
156 CCU_GATE(CLK_BUS_UART5, "bus-uart5", "apb1", 0x90C, 5)
157 CCU_GATE(CLK_BUS_I2C0, "bus-i2c0", "apb1", 0x91C, 0)
158 CCU_GATE(CLK_BUS_I2C1, "bus-i2c1", "apb1", 0x91C, 1)
159 CCU_GATE(CLK_BUS_I2C2, "bus-i2c2", "apb1", 0x91C, 2)
160 CCU_GATE(CLK_BUS_I2C3, "bus-i2c3", "apb1", 0x91C, 3)
161 CCU_GATE(CLK_BUS_SPI0, "bus-spi0", "psi-ahb", 0x96C, 0)
162 CCU_GATE(CLK_BUS_SPI1, "bus-spi1", "psi-ahb", 0x96C, 1)
163 CCU_GATE(CLK_BUS_EMAC, "bus-emac", "psi-ahb", 0x97C, 0)
164 CCU_GATE(CLK_BUS_IR_TX, "bus-ir-tx", "apb0", 0x9CC, 0)
165 CCU_GATE(CLK_BUS_GPADC, "bus-gpadc", "apb0", 0x9EC, 0)
166 CCU_GATE(CLK_BUS_THS, "bus-ths", "apb0", 0x9FC, 0)
167 CCU_GATE(CLK_BUS_I2S0, "bus-i2s0", "apb0", 0xA10, 0)
168 CCU_GATE(CLK_BUS_I2S1, "bus-i2s1", "apb0", 0xA10, 1)
169 CCU_GATE(CLK_BUS_I2S2, "bus-i2s2", "apb0", 0xA10, 2)
170 CCU_GATE(CLK_BUS_SPDIF, "bus-spdif", "apb0", 0xA2C, 0)
171 CCU_GATE(CLK_BUS_DMIC, "bus-dmic", "apb0", 0xA4C, 0)
172 CCU_GATE(CLK_BUS_AUDIO, "bus-audio", "apb0", 0xA5C, 0)
173 CCU_GATE(CLK_BUS_OHCI0, "bus-ohci0", "psi-ahb", 0xA8C, 0)
174 CCU_GATE(CLK_BUS_OHCI1, "bus-ohci1", "psi-ahb", 0xA8C, 1)
175 CCU_GATE(CLK_BUS_EHCI0, "bus-ehci0", "psi-ahb", 0xA8C, 4)
176 CCU_GATE(CLK_BUS_EHCI1, "bus-ehci1", "psi-ahb", 0xA8C, 5)
177 CCU_GATE(CLK_BUS_OTG, "bus-otg", "psi-ahb", 0xA8C, 8)
178 CCU_GATE(CLK_BUS_LRADC, "bus-lradc", "apb0", 0xA9C, 0)
179 CCU_GATE(CLK_BUS_DPSS_TOP, "bus-dpss-top", "psi-ahb", 0xABC, 0)
180 CCU_GATE(CLK_BUS_MIPI_DSI, "bus-mipi-dsi", "psi-ahb", 0xB4C, 0)
181 CCU_GATE(CLK_BUS_TCON_LCD0, "bus-tcon-lcd0", "psi-ahb", 0xB7C, 0)
182 CCU_GATE(CLK_BUS_TCON_TV, "bus-tcon-tv", "psi-ahb", 0xB9C, 0)
183 CCU_GATE(CLK_BUS_TVE_TOP, "bus-tve-top", "psi-ahb", 0xBBC, 0)
184 CCU_GATE(CLK_BUS_TVE, "bus-tve", "psi-ahb", 0xBBC, 1)
185 CCU_GATE(CLK_BUS_TVD_TOP, "bus-tvd-top", "psi-ahb", 0xBDC, 0)
186 CCU_GATE(CLK_BUS_TVD, "bus-tvd", "psi-ahb", 0xBDC, 1)
187 CCU_GATE(CLK_BUS_LEDC, "bus-ledc", "psi-ahb", 0xBFC, 0)
188 CCU_GATE(CLK_BUS_CSI, "bus-csi", "psi-ahb", 0xC1C, 0)
189 CCU_GATE(CLK_BUS_TPADC, "bus-tpadc", "apb0", 0xC5C, 0)
190 CCU_GATE(CLK_BUS_TZMA, "bus-tzma", "apb0", 0xC6C, 0)
191 CCU_GATE(CLK_BUS_DSP_CFG, "bus-dsp-cfg", "psi-ahb", 0xC7C, 1)
192 CCU_GATE(CLK_BUS_RISCV_CFG, "bus-riscv-cfg", "psi-ahb", 0xD0C, 0)
193 CCU_GATE(CLK_BUS_CAN0, "bus-can0", "apb1", 0x92C, 0)
194 CCU_GATE(CLK_BUS_CAN1, "bus-can1", "apb1", 0x92C, 1)
199 CLK_PLL_CPUX, /* id */
211 CLK_PLL_DDR0, /* id */
225 CLK_PLL_PERIPH0_4X, /* id */
239 CLK_PLL_PERIPH0_2X, /* id */
251 CLK_PLL_PERIPH0_800M, /* id */
263 CLK_PLL_PERIPH0, /* id */
274 CLK_PLL_VIDEO0, /* id */
288 CLK_PLL_VIDEO0_4X, /* id */
300 CLK_PLL_VIDEO0_2X, /* id */
311 CLK_PLL_VIDEO1, /* id */
325 CLK_PLL_VIDEO1_4X, /* id */
337 CLK_PLL_VIDEO1_2X, /* id */
347 CLK_PLL_VE, /* id */
361 CLK_PLL_AUDIO0_4X, /* id */
375 CLK_PLL_AUDIO0_2X, /* id */
386 CLK_PLL_AUDIO0, /* id */
397 CLK_PLL_AUDIO1, /* id */
410 CLK_PLL_AUDIO1_DIV2, /* id */
422 CLK_PLL_AUDIO1_DIV5, /* id */
434 CLK_CPUX, /* id */
445 CLK_CPUX_AXI, /* id */
456 CLK_CPUX_APB, /* id */
468 CLK_PSI_AHB, "psi-ahb", psi_ahb_parents, /* id, name, parents */
476 static const char *apb0_parents[] = { "dcxo", "osc32k", "psi-ahb", "pll_periph0" };
478 CLK_APB0, "apb0", apb0_parents, /* id, name, parents */
486 static const char *apb1_parents[] = { "dcxo", "osc32k", "psi-ahb", "pll_periph0" };
488 CLK_APB1, "apb1", apb1_parents, /* id, name, parents */
498 CLK_MBUS, "mbus", mbus_parents, /* id, name, parents */
507 CLK_DE, "de", de_parents, /* id, name, parents */
518 CLK_DI, "di", di_parents, /* id, name, parents */
529 CLK_G2D, "g2d", g2d_parents, /* id, name, parents */
539 CLK_CE, "ce", ce_parents, /* id, name, parents */
550 CLK_VE, "ve", ve_parents, /* id, name, parents */
561 CLK_DRAM, "dram", dram_parents, /* id, name, parents */
574 CLK_MMC0, "mmc0", mmc0_parents, /* id, name, parents */
587 CLK_MMC1, "mmc1", mmc1_parents, /* id, name, parents */
600 CLK_MMC2, "mmc2", mmc2_parents, /* id, name, parents */
612 CLK_SPI0, "spi0", spi0_parents, /* id, name, parents */
624 CLK_SPI1, "spi1", spi1_parents, /* id, name, parents */
636 CLK_EMAC_25M, /* id */
647 CLK_IR_TX, "irtx", irtx_parents, /* id, name, parents */
659 CLK_I2S0, "i2s0", i2s0_parents, /* id, name, parents */
671 CLK_I2S1, "i2s1", i2s1_parents, /* id, name, parents */
683 CLK_I2S2, "i2s2", i2s2_parents, /* id, name, parents */
695 CLK_I2S2_ASRC, /* id */
710 CLK_SPDIF_TX, "spdif_tx", spdif_tx_parents, /* id, name, parents */
723 CLK_SPDIF_RX, "spdif_rx", spdif_rx_parents, /* id, name, parents */
735 CLK_DMIC, "dmic", dmic_parents, /* id, name, parents */
747 CLK_AUDIO_DAC, /* id */
761 CLK_AUDIO_ADC, /* id */
794 CLK_USB_OHCI0, /* id */
804 CLK_USB_OHCI1, /* id */
817 CLK_MIPI_DSI, "mipi-dsi", dsi_parents, /* id, name, parents */
828 CLK_TCON_LCD0, "tcon-lcd0", tconlcd_parents, /* id, name, parents */
840 CLK_TCON_TV, "tcon-tv", tcontv_parents, /* id, name, parents */
852 CLK_TVE, "tve", tve_parents, /* id, name, parents */
864 CLK_TVD, "tvd", tvd_parents, /* id, name, parents */
874 CLK_LEDC, "ledc", ledc_parents, /* id, name, parents */
886 CLK_CSI_TOP, "csi-top", csi_top_parents, /* id, name, parents */
897 CLK_CSI_MCLK, /* id */
898 "csi-mclk", /* name */
910 CLK_TPADC, "tpadc", tpadc_parents, /* id, name, parents */
921 CLK_DSP, "dsp", dsp_parents, /* id, name, parents */
932 CLK_RISCV, "riscv", riscv_parents, /* id, name, parents */
947 CLK_RISCV_AXI, /* id */
1027 if (!ofw_bus_is_compatible(dev, "allwinner,sun20i-d1-ccu")) in ccu_d1_probe()
1041 sc->resets = ccu_d1_resets; in ccu_d1_attach()
1042 sc->nresets = nitems(ccu_d1_resets); in ccu_d1_attach()
1043 sc->gates = ccu_d1_gates; in ccu_d1_attach()
1044 sc->ngates = nitems(ccu_d1_gates); in ccu_d1_attach()
1045 sc->clks = ccu_d1_clks; in ccu_d1_attach()
1046 sc->nclks = nitems(ccu_d1_clks); in ccu_d1_attach()