Lines Matching +full:lcd +full:- +full:rst

1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
26 #include "pinctrl-mvebu.h"
46 MPP_VAR_FUNCTION(0x4, "lcd", "d0", V_MV78230_PLUS)),
50 MPP_VAR_FUNCTION(0x4, "lcd", "d1", V_MV78230_PLUS)),
54 MPP_VAR_FUNCTION(0x4, "lcd", "d2", V_MV78230_PLUS)),
58 MPP_VAR_FUNCTION(0x4, "lcd", "d3", V_MV78230_PLUS)),
62 MPP_VAR_FUNCTION(0x4, "lcd", "d4", V_MV78230_PLUS)),
66 MPP_VAR_FUNCTION(0x4, "lcd", "d5", V_MV78230_PLUS)),
70 MPP_VAR_FUNCTION(0x4, "lcd", "d6", V_MV78230_PLUS)),
74 MPP_VAR_FUNCTION(0x4, "lcd", "d7", V_MV78230_PLUS)),
78 MPP_VAR_FUNCTION(0x4, "lcd", "d8", V_MV78230_PLUS)),
82 MPP_VAR_FUNCTION(0x4, "lcd", "d9", V_MV78230_PLUS)),
86 MPP_VAR_FUNCTION(0x4, "lcd", "d10", V_MV78230_PLUS)),
90 MPP_VAR_FUNCTION(0x4, "lcd", "d11", V_MV78230_PLUS)),
95 MPP_VAR_FUNCTION(0x4, "lcd", "d12", V_MV78230_PLUS)),
101 MPP_VAR_FUNCTION(0x4, "lcd", "d13", V_MV78230_PLUS)),
107 MPP_VAR_FUNCTION(0x4, "lcd", "d14", V_MV78230_PLUS)),
112 MPP_VAR_FUNCTION(0x4, "lcd", "d15", V_MV78230_PLUS)),
118 MPP_VAR_FUNCTION(0x4, "lcd", "d16", V_MV78230_PLUS)),
124 MPP_VAR_FUNCTION(0x4, "lcd", "d17", V_MV78230_PLUS)),
130 MPP_VAR_FUNCTION(0x4, "lcd", "d18", V_MV78230_PLUS)),
136 MPP_VAR_FUNCTION(0x4, "lcd", "d19", V_MV78230_PLUS)),
142 MPP_VAR_FUNCTION(0x4, "lcd", "d20", V_MV78230_PLUS)),
148 MPP_VAR_FUNCTION(0x4, "lcd", "d21", V_MV78230_PLUS)),
154 MPP_VAR_FUNCTION(0x4, "lcd", "d22", V_MV78230_PLUS)),
160 MPP_VAR_FUNCTION(0x4, "lcd", "d23", V_MV78230_PLUS)),
164 MPP_VAR_FUNCTION(0x3, "tdm", "rst", V_MV78230_PLUS),
165 MPP_VAR_FUNCTION(0x4, "lcd", "hsync", V_MV78230_PLUS)),
170 MPP_VAR_FUNCTION(0x4, "lcd", "vsync", V_MV78230_PLUS)),
174 MPP_VAR_FUNCTION(0x4, "lcd", "clk", V_MV78230_PLUS)),
179 MPP_VAR_FUNCTION(0x4, "lcd", "e", V_MV78230_PLUS)),
184 MPP_VAR_FUNCTION(0x4, "lcd", "pwm", V_MV78230_PLUS)),
189 MPP_VAR_FUNCTION(0x4, "lcd", "ref-clk", V_MV78230_PLUS)),
235 MPP_VAR_FUNCTION(0x4, "lcd", "vga-hsync", V_MV78230_PLUS),
243 MPP_VAR_FUNCTION(0x4, "lcd", "vga-vsync", V_MV78230_PLUS),
480 .compatible = "marvell,mv78230-pinctrl",
484 .compatible = "marvell,mv78260-pinctrl",
488 .compatible = "marvell,mv78460-pinctrl",
492 .compatible = "marvell,98dx3236-pinctrl",
496 .compatible = "marvell,98dx4251-pinctrl",
546 nregs = DIV_ROUND_UP(soc->nmodes, MVEBU_MPPS_PER_REG); in armada_xp_pinctrl_suspend()
549 mpp_saved_regs[i] = readl(soc->control_data[0].base + i * 4); in armada_xp_pinctrl_suspend()
560 nregs = DIV_ROUND_UP(soc->nmodes, MVEBU_MPPS_PER_REG); in armada_xp_pinctrl_resume()
563 writel(mpp_saved_regs[i], soc->control_data[0].base + i * 4); in armada_xp_pinctrl_resume()
572 of_match_device(armada_xp_pinctrl_of_match, &pdev->dev); in armada_xp_pinctrl_probe()
576 return -ENODEV; in armada_xp_pinctrl_probe()
578 soc->variant = (unsigned) match->data & 0xff; in armada_xp_pinctrl_probe()
580 switch (soc->variant) { in armada_xp_pinctrl_probe()
582 soc->controls = mv78230_mpp_controls; in armada_xp_pinctrl_probe()
583 soc->ncontrols = ARRAY_SIZE(mv78230_mpp_controls); in armada_xp_pinctrl_probe()
584 soc->modes = armada_xp_mpp_modes; in armada_xp_pinctrl_probe()
588 soc->nmodes = mv78230_mpp_controls[0].npins; in armada_xp_pinctrl_probe()
589 soc->gpioranges = mv78230_mpp_gpio_ranges; in armada_xp_pinctrl_probe()
590 soc->ngpioranges = ARRAY_SIZE(mv78230_mpp_gpio_ranges); in armada_xp_pinctrl_probe()
593 soc->controls = mv78260_mpp_controls; in armada_xp_pinctrl_probe()
594 soc->ncontrols = ARRAY_SIZE(mv78260_mpp_controls); in armada_xp_pinctrl_probe()
595 soc->modes = armada_xp_mpp_modes; in armada_xp_pinctrl_probe()
599 soc->nmodes = mv78260_mpp_controls[0].npins; in armada_xp_pinctrl_probe()
600 soc->gpioranges = mv78260_mpp_gpio_ranges; in armada_xp_pinctrl_probe()
601 soc->ngpioranges = ARRAY_SIZE(mv78260_mpp_gpio_ranges); in armada_xp_pinctrl_probe()
604 soc->controls = mv78460_mpp_controls; in armada_xp_pinctrl_probe()
605 soc->ncontrols = ARRAY_SIZE(mv78460_mpp_controls); in armada_xp_pinctrl_probe()
606 soc->modes = armada_xp_mpp_modes; in armada_xp_pinctrl_probe()
610 soc->nmodes = mv78460_mpp_controls[0].npins; in armada_xp_pinctrl_probe()
611 soc->gpioranges = mv78460_mpp_gpio_ranges; in armada_xp_pinctrl_probe()
612 soc->ngpioranges = ARRAY_SIZE(mv78460_mpp_gpio_ranges); in armada_xp_pinctrl_probe()
617 /* fall-through */ in armada_xp_pinctrl_probe()
618 soc->controls = mv98dx3236_mpp_controls; in armada_xp_pinctrl_probe()
619 soc->ncontrols = ARRAY_SIZE(mv98dx3236_mpp_controls); in armada_xp_pinctrl_probe()
620 soc->modes = mv98dx3236_mpp_modes; in armada_xp_pinctrl_probe()
621 soc->nmodes = mv98dx3236_mpp_controls[0].npins; in armada_xp_pinctrl_probe()
622 soc->gpioranges = mv98dx3236_mpp_gpio_ranges; in armada_xp_pinctrl_probe()
623 soc->ngpioranges = ARRAY_SIZE(mv98dx3236_mpp_gpio_ranges); in armada_xp_pinctrl_probe()
627 nregs = DIV_ROUND_UP(soc->nmodes, MVEBU_MPPS_PER_REG); in armada_xp_pinctrl_probe()
629 mpp_saved_regs = devm_kmalloc_array(&pdev->dev, nregs, sizeof(u32), in armada_xp_pinctrl_probe()
632 return -ENOMEM; in armada_xp_pinctrl_probe()
634 pdev->dev.platform_data = soc; in armada_xp_pinctrl_probe()
641 .name = "armada-xp-pinctrl",