Lines Matching +full:syscon +full:- +full:dev

1 // SPDX-License-Identifier: GPL-2.0-only
21 #include <linux/mfd/syscon.h>
31 static int integrator_lm_populate(int num, struct device *dev) in integrator_lm_populate() argument
33 struct device_node *np = dev->of_node; in integrator_lm_populate()
46 dev_info(dev, "no valid address on child\n"); in integrator_lm_populate()
50 /* First populate the syscon then any devices */ in integrator_lm_populate()
52 dev_info(dev, "populate module @0x%08x from DT\n", in integrator_lm_populate()
54 ret = of_platform_default_populate(child, NULL, dev); in integrator_lm_populate()
56 dev_err(dev, "failed to populate module\n"); in integrator_lm_populate()
67 { .compatible = "arm,integrator-ap-syscon"},
73 struct device *dev = &pdev->dev; in integrator_ap_lm_probe() local
74 struct device_node *syscon; in integrator_ap_lm_probe() local
81 syscon = of_find_matching_node(NULL, integrator_ap_syscon_match); in integrator_ap_lm_probe()
82 if (!syscon) { in integrator_ap_lm_probe()
83 dev_err(dev, in integrator_ap_lm_probe()
85 return -ENODEV; in integrator_ap_lm_probe()
87 map = syscon_node_to_regmap(syscon); in integrator_ap_lm_probe()
88 of_node_put(syscon); in integrator_ap_lm_probe()
90 dev_err(dev, in integrator_ap_lm_probe()
97 dev_err(dev, "could not read from Integrator/AP syscon\n"); in integrator_ap_lm_probe()
106 dev_info(dev, "detected module in slot %d\n", i); in integrator_ap_lm_probe()
107 ret = integrator_lm_populate(i, dev); in integrator_ap_lm_probe()
116 { .compatible = "arm,integrator-ap-lm"},
123 .name = "integratorap-lm",