1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (c) 2019 BayLibre, SAS
4 * Author: Neil Armstrong <narmstrong@baylibre.com>
7 #include <linux/of_address.h>
8 #include <linux/platform_device.h>
9 #include <linux/pm_domain.h>
10 #include <linux/bitfield.h>
11 #include <linux/regmap.h>
12 #include <linux/mfd/syscon.h>
13 #include <linux/of_device.h>
14 #include <linux/reset-controller.h>
15 #include <linux/reset.h>
16 #include <linux/clk.h>
17 #include <dt-bindings/power/meson8-power.h>
18 #include <dt-bindings/power/meson-axg-power.h>
19 #include <dt-bindings/power/meson-g12a-power.h>
20 #include <dt-bindings/power/meson-gxbb-power.h>
21 #include <dt-bindings/power/meson-sm1-power.h>
25 #define GX_AO_RTI_GEN_PWR_SLEEP0 (0x3a << 2)
26 #define GX_AO_RTI_GEN_PWR_ISO0 (0x3b << 2)
29 * Meson8/Meson8b/Meson8m2 only expose the power management registers of the
30 * AO-bus as syscon. 0x3a from GX translates to 0x02, 0x3b translates to 0x03
33 #define MESON8_AO_RTI_GEN_PWR_SLEEP0 (0x02 << 2)
34 #define MESON8_AO_RTI_GEN_PWR_ISO0 (0x03 << 2)
38 #define HHI_MEM_PD_REG0 (0x40 << 2)
39 #define HHI_VPU_MEM_PD_REG0 (0x41 << 2)
40 #define HHI_VPU_MEM_PD_REG1 (0x42 << 2)
41 #define HHI_VPU_MEM_PD_REG3 (0x43 << 2)
42 #define HHI_VPU_MEM_PD_REG4 (0x44 << 2)
43 #define HHI_AUDIO_MEM_PD_REG0 (0x45 << 2)
44 #define HHI_NANOQ_MEM_PD_REG0 (0x46 << 2)
45 #define HHI_NANOQ_MEM_PD_REG1 (0x47 << 2)
46 #define HHI_VPU_MEM_PD_REG2 (0x4d << 2)
49 struct meson_ee_pwrc_domain;
51 struct meson_ee_pwrc_mem_domain {
56 struct meson_ee_pwrc_top_domain {
57 unsigned int sleep_reg;
58 unsigned int sleep_mask;
60 unsigned int iso_mask;
63 struct meson_ee_pwrc_domain_desc {
65 unsigned int reset_names_count;
66 unsigned int clk_names_count;
67 struct meson_ee_pwrc_top_domain *top_pd;
68 unsigned int mem_pd_count;
69 struct meson_ee_pwrc_mem_domain *mem_pd;
70 bool (*get_power)(struct meson_ee_pwrc_domain *pwrc_domain);
73 struct meson_ee_pwrc_domain_data {
75 struct meson_ee_pwrc_domain_desc *domains;
78 /* TOP Power Domains */
80 static struct meson_ee_pwrc_top_domain gx_pwrc_vpu = {
81 .sleep_reg = GX_AO_RTI_GEN_PWR_SLEEP0,
83 .iso_reg = GX_AO_RTI_GEN_PWR_SLEEP0,
87 static struct meson_ee_pwrc_top_domain meson8_pwrc_vpu = {
88 .sleep_reg = MESON8_AO_RTI_GEN_PWR_SLEEP0,
90 .iso_reg = MESON8_AO_RTI_GEN_PWR_SLEEP0,
94 #define SM1_EE_PD(__bit) \
96 .sleep_reg = GX_AO_RTI_GEN_PWR_SLEEP0, \
97 .sleep_mask = BIT(__bit), \
98 .iso_reg = GX_AO_RTI_GEN_PWR_ISO0, \
99 .iso_mask = BIT(__bit), \
102 static struct meson_ee_pwrc_top_domain sm1_pwrc_vpu = SM1_EE_PD(8);
103 static struct meson_ee_pwrc_top_domain sm1_pwrc_nna = SM1_EE_PD(16);
104 static struct meson_ee_pwrc_top_domain sm1_pwrc_usb = SM1_EE_PD(17);
105 static struct meson_ee_pwrc_top_domain sm1_pwrc_pci = SM1_EE_PD(18);
106 static struct meson_ee_pwrc_top_domain sm1_pwrc_ge2d = SM1_EE_PD(19);
108 /* Memory PD Domains */
110 #define VPU_MEMPD(__reg) \
111 { __reg, GENMASK(1, 0) }, \
112 { __reg, GENMASK(3, 2) }, \
113 { __reg, GENMASK(5, 4) }, \
114 { __reg, GENMASK(7, 6) }, \
115 { __reg, GENMASK(9, 8) }, \
116 { __reg, GENMASK(11, 10) }, \
117 { __reg, GENMASK(13, 12) }, \
118 { __reg, GENMASK(15, 14) }, \
119 { __reg, GENMASK(17, 16) }, \
120 { __reg, GENMASK(19, 18) }, \
121 { __reg, GENMASK(21, 20) }, \
122 { __reg, GENMASK(23, 22) }, \
123 { __reg, GENMASK(25, 24) }, \
124 { __reg, GENMASK(27, 26) }, \
125 { __reg, GENMASK(29, 28) }, \
126 { __reg, GENMASK(31, 30) }
128 #define VPU_HHI_MEMPD(__reg) \
131 { __reg, BIT(10) }, \
132 { __reg, BIT(11) }, \
133 { __reg, BIT(12) }, \
134 { __reg, BIT(13) }, \
135 { __reg, BIT(14) }, \
138 static struct meson_ee_pwrc_mem_domain axg_pwrc_mem_vpu[] = {
139 VPU_MEMPD(HHI_VPU_MEM_PD_REG0),
140 VPU_HHI_MEMPD(HHI_MEM_PD_REG0),
143 static struct meson_ee_pwrc_mem_domain g12a_pwrc_mem_vpu[] = {
144 VPU_MEMPD(HHI_VPU_MEM_PD_REG0),
145 VPU_MEMPD(HHI_VPU_MEM_PD_REG1),
146 VPU_MEMPD(HHI_VPU_MEM_PD_REG2),
147 VPU_HHI_MEMPD(HHI_MEM_PD_REG0),
150 static struct meson_ee_pwrc_mem_domain gxbb_pwrc_mem_vpu[] = {
151 VPU_MEMPD(HHI_VPU_MEM_PD_REG0),
152 VPU_MEMPD(HHI_VPU_MEM_PD_REG1),
153 VPU_HHI_MEMPD(HHI_MEM_PD_REG0),
156 static struct meson_ee_pwrc_mem_domain meson_pwrc_mem_eth[] = {
157 { HHI_MEM_PD_REG0, GENMASK(3, 2) },
160 static struct meson_ee_pwrc_mem_domain meson8_pwrc_audio_dsp_mem[] = {
161 { HHI_MEM_PD_REG0, GENMASK(1, 0) },
164 static struct meson_ee_pwrc_mem_domain meson8_pwrc_mem_vpu[] = {
165 VPU_MEMPD(HHI_VPU_MEM_PD_REG0),
166 VPU_MEMPD(HHI_VPU_MEM_PD_REG1),
167 VPU_HHI_MEMPD(HHI_MEM_PD_REG0),
170 static struct meson_ee_pwrc_mem_domain sm1_pwrc_mem_vpu[] = {
171 VPU_MEMPD(HHI_VPU_MEM_PD_REG0),
172 VPU_MEMPD(HHI_VPU_MEM_PD_REG1),
173 VPU_MEMPD(HHI_VPU_MEM_PD_REG2),
174 VPU_MEMPD(HHI_VPU_MEM_PD_REG3),
175 { HHI_VPU_MEM_PD_REG4, GENMASK(1, 0) },
176 { HHI_VPU_MEM_PD_REG4, GENMASK(3, 2) },
177 { HHI_VPU_MEM_PD_REG4, GENMASK(5, 4) },
178 { HHI_VPU_MEM_PD_REG4, GENMASK(7, 6) },
179 VPU_HHI_MEMPD(HHI_MEM_PD_REG0),
182 static struct meson_ee_pwrc_mem_domain sm1_pwrc_mem_nna[] = {
183 { HHI_NANOQ_MEM_PD_REG0, 0xff },
184 { HHI_NANOQ_MEM_PD_REG1, 0xff },
187 static struct meson_ee_pwrc_mem_domain sm1_pwrc_mem_usb[] = {
188 { HHI_MEM_PD_REG0, GENMASK(31, 30) },
191 static struct meson_ee_pwrc_mem_domain sm1_pwrc_mem_pcie[] = {
192 { HHI_MEM_PD_REG0, GENMASK(29, 26) },
195 static struct meson_ee_pwrc_mem_domain sm1_pwrc_mem_ge2d[] = {
196 { HHI_MEM_PD_REG0, GENMASK(25, 18) },
199 static struct meson_ee_pwrc_mem_domain axg_pwrc_mem_audio[] = {
200 { HHI_MEM_PD_REG0, GENMASK(5, 4) },
203 static struct meson_ee_pwrc_mem_domain sm1_pwrc_mem_audio[] = {
204 { HHI_MEM_PD_REG0, GENMASK(5, 4) },
205 { HHI_AUDIO_MEM_PD_REG0, GENMASK(1, 0) },
206 { HHI_AUDIO_MEM_PD_REG0, GENMASK(3, 2) },
207 { HHI_AUDIO_MEM_PD_REG0, GENMASK(5, 4) },
208 { HHI_AUDIO_MEM_PD_REG0, GENMASK(7, 6) },
209 { HHI_AUDIO_MEM_PD_REG0, GENMASK(13, 12) },
210 { HHI_AUDIO_MEM_PD_REG0, GENMASK(15, 14) },
211 { HHI_AUDIO_MEM_PD_REG0, GENMASK(17, 16) },
212 { HHI_AUDIO_MEM_PD_REG0, GENMASK(19, 18) },
213 { HHI_AUDIO_MEM_PD_REG0, GENMASK(21, 20) },
214 { HHI_AUDIO_MEM_PD_REG0, GENMASK(23, 22) },
215 { HHI_AUDIO_MEM_PD_REG0, GENMASK(25, 24) },
216 { HHI_AUDIO_MEM_PD_REG0, GENMASK(27, 26) },
219 #define VPU_PD(__name, __top_pd, __mem, __get_power, __resets, __clks) \
222 .reset_names_count = __resets, \
223 .clk_names_count = __clks, \
224 .top_pd = __top_pd, \
225 .mem_pd_count = ARRAY_SIZE(__mem), \
227 .get_power = __get_power, \
230 #define TOP_PD(__name, __top_pd, __mem, __get_power) \
233 .top_pd = __top_pd, \
234 .mem_pd_count = ARRAY_SIZE(__mem), \
236 .get_power = __get_power, \
239 #define MEM_PD(__name, __mem) \
240 TOP_PD(__name, NULL, __mem, NULL)
242 static bool pwrc_ee_get_power(struct meson_ee_pwrc_domain *pwrc_domain);
244 static struct meson_ee_pwrc_domain_desc axg_pwrc_domains[] = {
245 [PWRC_AXG_VPU_ID] = VPU_PD("VPU", &gx_pwrc_vpu, axg_pwrc_mem_vpu,
246 pwrc_ee_get_power, 5, 2),
247 [PWRC_AXG_ETHERNET_MEM_ID] = MEM_PD("ETH", meson_pwrc_mem_eth),
248 [PWRC_AXG_AUDIO_ID] = MEM_PD("AUDIO", axg_pwrc_mem_audio),
251 static struct meson_ee_pwrc_domain_desc g12a_pwrc_domains[] = {
252 [PWRC_G12A_VPU_ID] = VPU_PD("VPU", &gx_pwrc_vpu, g12a_pwrc_mem_vpu,
253 pwrc_ee_get_power, 11, 2),
254 [PWRC_G12A_ETH_ID] = MEM_PD("ETH", meson_pwrc_mem_eth),
257 static struct meson_ee_pwrc_domain_desc gxbb_pwrc_domains[] = {
258 [PWRC_GXBB_VPU_ID] = VPU_PD("VPU", &gx_pwrc_vpu, gxbb_pwrc_mem_vpu,
259 pwrc_ee_get_power, 12, 2),
260 [PWRC_GXBB_ETHERNET_MEM_ID] = MEM_PD("ETH", meson_pwrc_mem_eth),
263 static struct meson_ee_pwrc_domain_desc meson8_pwrc_domains[] = {
264 [PWRC_MESON8_VPU_ID] = VPU_PD("VPU", &meson8_pwrc_vpu,
265 meson8_pwrc_mem_vpu, pwrc_ee_get_power,
267 [PWRC_MESON8_ETHERNET_MEM_ID] = MEM_PD("ETHERNET_MEM",
269 [PWRC_MESON8_AUDIO_DSP_MEM_ID] = MEM_PD("AUDIO_DSP_MEM",
270 meson8_pwrc_audio_dsp_mem),
273 static struct meson_ee_pwrc_domain_desc meson8b_pwrc_domains[] = {
274 [PWRC_MESON8_VPU_ID] = VPU_PD("VPU", &meson8_pwrc_vpu,
275 meson8_pwrc_mem_vpu, pwrc_ee_get_power,
277 [PWRC_MESON8_ETHERNET_MEM_ID] = MEM_PD("ETHERNET_MEM",
279 [PWRC_MESON8_AUDIO_DSP_MEM_ID] = MEM_PD("AUDIO_DSP_MEM",
280 meson8_pwrc_audio_dsp_mem),
283 static struct meson_ee_pwrc_domain_desc sm1_pwrc_domains[] = {
284 [PWRC_SM1_VPU_ID] = VPU_PD("VPU", &sm1_pwrc_vpu, sm1_pwrc_mem_vpu,
285 pwrc_ee_get_power, 11, 2),
286 [PWRC_SM1_NNA_ID] = TOP_PD("NNA", &sm1_pwrc_nna, sm1_pwrc_mem_nna,
288 [PWRC_SM1_USB_ID] = TOP_PD("USB", &sm1_pwrc_usb, sm1_pwrc_mem_usb,
290 [PWRC_SM1_PCIE_ID] = TOP_PD("PCI", &sm1_pwrc_pci, sm1_pwrc_mem_pcie,
292 [PWRC_SM1_GE2D_ID] = TOP_PD("GE2D", &sm1_pwrc_ge2d, sm1_pwrc_mem_ge2d,
294 [PWRC_SM1_AUDIO_ID] = MEM_PD("AUDIO", sm1_pwrc_mem_audio),
295 [PWRC_SM1_ETH_ID] = MEM_PD("ETH", meson_pwrc_mem_eth),
298 struct meson_ee_pwrc_domain {
299 struct generic_pm_domain base;
301 struct meson_ee_pwrc *pwrc;
302 struct meson_ee_pwrc_domain_desc desc;
303 struct clk_bulk_data *clks;
305 struct reset_control *rstc;
309 struct meson_ee_pwrc {
310 struct regmap *regmap_ao;
311 struct regmap *regmap_hhi;
312 struct meson_ee_pwrc_domain *domains;
313 struct genpd_onecell_data xlate;
316 static bool pwrc_ee_get_power(struct meson_ee_pwrc_domain *pwrc_domain)
320 regmap_read(pwrc_domain->pwrc->regmap_ao,
321 pwrc_domain->desc.top_pd->sleep_reg, ®);
323 return (reg & pwrc_domain->desc.top_pd->sleep_mask);
326 static int meson_ee_pwrc_off(struct generic_pm_domain *domain)
328 struct meson_ee_pwrc_domain *pwrc_domain =
329 container_of(domain, struct meson_ee_pwrc_domain, base);
332 if (pwrc_domain->desc.top_pd)
333 regmap_update_bits(pwrc_domain->pwrc->regmap_ao,
334 pwrc_domain->desc.top_pd->sleep_reg,
335 pwrc_domain->desc.top_pd->sleep_mask,
336 pwrc_domain->desc.top_pd->sleep_mask);
339 for (i = 0 ; i < pwrc_domain->desc.mem_pd_count ; ++i)
340 regmap_update_bits(pwrc_domain->pwrc->regmap_hhi,
341 pwrc_domain->desc.mem_pd[i].reg,
342 pwrc_domain->desc.mem_pd[i].mask,
343 pwrc_domain->desc.mem_pd[i].mask);
347 if (pwrc_domain->desc.top_pd)
348 regmap_update_bits(pwrc_domain->pwrc->regmap_ao,
349 pwrc_domain->desc.top_pd->iso_reg,
350 pwrc_domain->desc.top_pd->iso_mask,
351 pwrc_domain->desc.top_pd->iso_mask);
353 if (pwrc_domain->num_clks) {
355 clk_bulk_disable_unprepare(pwrc_domain->num_clks,
362 static int meson_ee_pwrc_on(struct generic_pm_domain *domain)
364 struct meson_ee_pwrc_domain *pwrc_domain =
365 container_of(domain, struct meson_ee_pwrc_domain, base);
368 if (pwrc_domain->desc.top_pd)
369 regmap_update_bits(pwrc_domain->pwrc->regmap_ao,
370 pwrc_domain->desc.top_pd->sleep_reg,
371 pwrc_domain->desc.top_pd->sleep_mask, 0);
374 for (i = 0 ; i < pwrc_domain->desc.mem_pd_count ; ++i)
375 regmap_update_bits(pwrc_domain->pwrc->regmap_hhi,
376 pwrc_domain->desc.mem_pd[i].reg,
377 pwrc_domain->desc.mem_pd[i].mask, 0);
381 ret = reset_control_assert(pwrc_domain->rstc);
385 if (pwrc_domain->desc.top_pd)
386 regmap_update_bits(pwrc_domain->pwrc->regmap_ao,
387 pwrc_domain->desc.top_pd->iso_reg,
388 pwrc_domain->desc.top_pd->iso_mask, 0);
390 ret = reset_control_deassert(pwrc_domain->rstc);
394 return clk_bulk_prepare_enable(pwrc_domain->num_clks,
398 static int meson_ee_pwrc_init_domain(struct platform_device *pdev,
399 struct meson_ee_pwrc *pwrc,
400 struct meson_ee_pwrc_domain *dom)
405 dom->num_rstc = dom->desc.reset_names_count;
406 dom->num_clks = dom->desc.clk_names_count;
409 int count = reset_control_get_count(&pdev->dev);
411 if (count != dom->num_rstc)
412 dev_warn(&pdev->dev, "Invalid resets count %d for domain %s\n",
413 count, dom->desc.name);
415 dom->rstc = devm_reset_control_array_get(&pdev->dev, false,
417 if (IS_ERR(dom->rstc))
418 return PTR_ERR(dom->rstc);
422 int ret = devm_clk_bulk_get_all(&pdev->dev, &dom->clks);
426 if (dom->num_clks != ret) {
427 dev_warn(&pdev->dev, "Invalid clocks count %d for domain %s\n",
428 ret, dom->desc.name);
433 dom->base.name = dom->desc.name;
434 dom->base.power_on = meson_ee_pwrc_on;
435 dom->base.power_off = meson_ee_pwrc_off;
438 * TOFIX: This is a special case for the VPU power domain, which can
439 * be enabled previously by the bootloader. In this case the VPU
440 * pipeline may be functional but no driver maybe never attach
441 * to this power domain, and if the domain is disabled it could
442 * cause system errors. This is why the pm_domain_always_on_gov
444 * For the same reason, the clocks should be enabled in case
445 * we need to power the domain off, otherwise the internal clocks
446 * prepare/enable counters won't be in sync.
448 if (dom->num_clks && dom->desc.get_power && !dom->desc.get_power(dom)) {
449 ret = clk_bulk_prepare_enable(dom->num_clks, dom->clks);
453 dom->base.flags = GENPD_FLAG_ALWAYS_ON;
454 ret = pm_genpd_init(&dom->base, NULL, false);
458 ret = pm_genpd_init(&dom->base, NULL,
459 (dom->desc.get_power ?
460 dom->desc.get_power(dom) : true));
468 static int meson_ee_pwrc_probe(struct platform_device *pdev)
470 const struct meson_ee_pwrc_domain_data *match;
471 struct regmap *regmap_ao, *regmap_hhi;
472 struct meson_ee_pwrc *pwrc;
475 match = of_device_get_match_data(&pdev->dev);
477 dev_err(&pdev->dev, "failed to get match data\n");
481 pwrc = devm_kzalloc(&pdev->dev, sizeof(*pwrc), GFP_KERNEL);
485 pwrc->xlate.domains = devm_kcalloc(&pdev->dev, match->count,
486 sizeof(*pwrc->xlate.domains),
488 if (!pwrc->xlate.domains)
491 pwrc->domains = devm_kcalloc(&pdev->dev, match->count,
492 sizeof(*pwrc->domains), GFP_KERNEL);
496 pwrc->xlate.num_domains = match->count;
498 regmap_hhi = syscon_node_to_regmap(of_get_parent(pdev->dev.of_node));
499 if (IS_ERR(regmap_hhi)) {
500 dev_err(&pdev->dev, "failed to get HHI regmap\n");
501 return PTR_ERR(regmap_hhi);
504 regmap_ao = syscon_regmap_lookup_by_phandle(pdev->dev.of_node,
505 "amlogic,ao-sysctrl");
506 if (IS_ERR(regmap_ao)) {
507 dev_err(&pdev->dev, "failed to get AO regmap\n");
508 return PTR_ERR(regmap_ao);
511 pwrc->regmap_ao = regmap_ao;
512 pwrc->regmap_hhi = regmap_hhi;
514 platform_set_drvdata(pdev, pwrc);
516 for (i = 0 ; i < match->count ; ++i) {
517 struct meson_ee_pwrc_domain *dom = &pwrc->domains[i];
519 memcpy(&dom->desc, &match->domains[i], sizeof(dom->desc));
521 ret = meson_ee_pwrc_init_domain(pdev, pwrc, dom);
525 pwrc->xlate.domains[i] = &dom->base;
528 return of_genpd_add_provider_onecell(pdev->dev.of_node, &pwrc->xlate);
531 static void meson_ee_pwrc_shutdown(struct platform_device *pdev)
533 struct meson_ee_pwrc *pwrc = platform_get_drvdata(pdev);
536 for (i = 0 ; i < pwrc->xlate.num_domains ; ++i) {
537 struct meson_ee_pwrc_domain *dom = &pwrc->domains[i];
539 if (dom->desc.get_power && !dom->desc.get_power(dom))
540 meson_ee_pwrc_off(&dom->base);
544 static struct meson_ee_pwrc_domain_data meson_ee_g12a_pwrc_data = {
545 .count = ARRAY_SIZE(g12a_pwrc_domains),
546 .domains = g12a_pwrc_domains,
549 static struct meson_ee_pwrc_domain_data meson_ee_axg_pwrc_data = {
550 .count = ARRAY_SIZE(axg_pwrc_domains),
551 .domains = axg_pwrc_domains,
554 static struct meson_ee_pwrc_domain_data meson_ee_gxbb_pwrc_data = {
555 .count = ARRAY_SIZE(gxbb_pwrc_domains),
556 .domains = gxbb_pwrc_domains,
559 static struct meson_ee_pwrc_domain_data meson_ee_m8_pwrc_data = {
560 .count = ARRAY_SIZE(meson8_pwrc_domains),
561 .domains = meson8_pwrc_domains,
564 static struct meson_ee_pwrc_domain_data meson_ee_m8b_pwrc_data = {
565 .count = ARRAY_SIZE(meson8b_pwrc_domains),
566 .domains = meson8b_pwrc_domains,
569 static struct meson_ee_pwrc_domain_data meson_ee_sm1_pwrc_data = {
570 .count = ARRAY_SIZE(sm1_pwrc_domains),
571 .domains = sm1_pwrc_domains,
574 static const struct of_device_id meson_ee_pwrc_match_table[] = {
576 .compatible = "amlogic,meson8-pwrc",
577 .data = &meson_ee_m8_pwrc_data,
580 .compatible = "amlogic,meson8b-pwrc",
581 .data = &meson_ee_m8b_pwrc_data,
584 .compatible = "amlogic,meson8m2-pwrc",
585 .data = &meson_ee_m8b_pwrc_data,
588 .compatible = "amlogic,meson-axg-pwrc",
589 .data = &meson_ee_axg_pwrc_data,
592 .compatible = "amlogic,meson-gxbb-pwrc",
593 .data = &meson_ee_gxbb_pwrc_data,
596 .compatible = "amlogic,meson-g12a-pwrc",
597 .data = &meson_ee_g12a_pwrc_data,
600 .compatible = "amlogic,meson-sm1-pwrc",
601 .data = &meson_ee_sm1_pwrc_data,
606 static struct platform_driver meson_ee_pwrc_driver = {
607 .probe = meson_ee_pwrc_probe,
608 .shutdown = meson_ee_pwrc_shutdown,
610 .name = "meson_ee_pwrc",
611 .of_match_table = meson_ee_pwrc_match_table,
614 builtin_platform_driver(meson_ee_pwrc_driver);