Lines Matching +full:vexpress +full:- +full:sysreg
1 // SPDX-License-Identifier: GPL-2.0-only
39 /* The sysreg block is just a random collection of various functions... */
43 .base = -1,
49 .base = -1,
55 .base = -1,
61 .name = "basic-mmio-gpio",
62 .of_compatible = "arm,vexpress-sysreg,sys_led",
68 .name = "basic-mmio-gpio",
69 .of_compatible = "arm,vexpress-sysreg,sys_mci",
75 .name = "basic-mmio-gpio",
76 .of_compatible = "arm,vexpress-sysreg,sys_flash",
82 .name = "vexpress-syscfg",
96 return -EINVAL; in vexpress_sysreg_probe()
98 base = devm_ioremap(&pdev->dev, mem->start, resource_size(mem)); in vexpress_sysreg_probe()
100 return -ENOMEM; in vexpress_sysreg_probe()
103 * Duplicated SYS_MCI pseudo-GPIO controller for compatibility with in vexpress_sysreg_probe()
104 * older trees using sysreg node for MMC control lines. in vexpress_sysreg_probe()
106 mmc_gpio_chip = devm_kzalloc(&pdev->dev, sizeof(*mmc_gpio_chip), in vexpress_sysreg_probe()
109 return -ENOMEM; in vexpress_sysreg_probe()
110 bgpio_init(mmc_gpio_chip, &pdev->dev, 0x4, base + SYS_MCI, in vexpress_sysreg_probe()
112 mmc_gpio_chip->ngpio = 2; in vexpress_sysreg_probe()
113 devm_gpiochip_add_data(&pdev->dev, mmc_gpio_chip, NULL); in vexpress_sysreg_probe()
115 return devm_mfd_add_devices(&pdev->dev, PLATFORM_DEVID_AUTO, in vexpress_sysreg_probe()
121 { .compatible = "arm,vexpress-sysreg", },
128 .name = "vexpress-sysreg",