Lines Matching defs:dev
313 dev_err(info->dev, "unable to find group for node %pOFn\n", np);
347 dev_dbg(pctldev->dev, "maps: function %s group %s num %d\n", (*map)->data.mux.function, (*map)->data.mux.group,
1390 dev_err(info->dev, "pin %d is unrouted\n", pin);
1448 dev_err(info->dev, "pin %d is unrouted\n", pin);
1454 dev_err(info->dev, "pin %d only supports a gpio mux\n", pin);
1493 dev_dbg(info->dev, "setting mux of GPIO%d-%d to %d\n", bank->bank_num, pin, mux);
2432 dev_err(info->dev, "unsupported bit: %d for pinctrl drive type: %d\n", bit, drv_type);
2443 dev_err(info->dev, "unsupported pinctrl drive type: %d\n", drv_type);
2468 dev_dbg(info->dev, "setting drive of GPIO%d-%d to %d\n", bank->bank_num, pin_num, strength);
2493 dev_err(info->dev, "unsupported driver strength %d\n", strength);
2533 dev_err(info->dev, "unsupported bit: %d for pinctrl drive type: %d\n", bit, drv_type);
2543 dev_err(info->dev, "unsupported pinctrl drive type: %d\n", drv_type);
2634 dev_err(info->dev, "unsupported pinctrl type\n");
2648 dev_dbg(info->dev, "setting pull of GPIO%d-%d to %d\n", bank->bank_num, pin_num, pull);
2696 dev_err(info->dev, "unsupported pull setting %d\n", pull);
2708 dev_err(info->dev, "unsupported pinctrl type\n");
2801 dev_dbg(info->dev, "setting input schmitt of GPIO%d-%d to %d\n", bank->bank_num, pin_num, enable);
2885 dev_dbg(info->dev, "setting slew rate of GPIO%d-%d to %d\n", bank->bank_num, pin_num, speed);
2936 dev_dbg(info->dev, "enable function %s group %s\n", info->functions[selector].name, info->groups[group].name);
3040 dev_err(info->dev, "pin-%d has been mux to func%d\n", pin, rc);
3123 dev_err(info->dev, "pin-%d has been mux to func%d\n", pin, rc);
3217 dev_dbg(info->dev, "group(%d): %pOFn\n", index, np);
3230 dev_err(info->dev, "wrong pins number or pins and configs should be by 4\n");
3236 grp->pins = devm_kcalloc(info->dev, grp->npins, sizeof(unsigned int), GFP_KERNEL);
3237 grp->data = devm_kcalloc(info->dev, grp->npins, sizeof(struct rockchip_pin_config), GFP_KERNEL);
3279 dev_dbg(info->dev, "parse function(%d): %pOFn\n", index, np);
3290 func->groups = devm_kcalloc(info->dev, func->ngroups, sizeof(char *), GFP_KERNEL);
3311 struct device *dev = &pdev->dev;
3312 struct device_node *np = dev->of_node;
3319 dev_dbg(&pdev->dev, "nfunctions = %d\n", info->nfunctions);
3320 dev_dbg(&pdev->dev, "ngroups = %d\n", info->ngroups);
3322 info->functions = devm_kcalloc(dev, info->nfunctions, sizeof(struct rockchip_pmx_func), GFP_KERNEL);
3327 info->groups = devm_kcalloc(dev, info->ngroups, sizeof(struct rockchip_pin_group), GFP_KERNEL);
3342 dev_err(&pdev->dev, "failed to parse function\n");
3365 pindesc = devm_kcalloc(&pdev->dev, info->ctrl->nr_pins, sizeof(*pindesc), GFP_KERNEL);
3388 info->pctl_dev = devm_pinctrl_register(&pdev->dev, ctrldesc, info);
3390 dev_err(&pdev->dev, "could not register pinctrl driver\n");
3403 struct device_node *node = pdev->dev.of_node;
3457 dev_dbg(d->dev, "bank %d, iomux %d has iom_offset 0x%x drv_offset 0x%x\n", i, j, iom->offset, drv->offset);
3519 static int __maybe_unused rockchip_pinctrl_suspend(struct device *dev)
3521 struct rockchip_pinctrl *info = dev_get_drvdata(dev);
3543 static int __maybe_unused rockchip_pinctrl_resume(struct device *dev)
3545 struct rockchip_pinctrl *info = dev_get_drvdata(dev);
3608 struct device *dev = &pdev->dev;
3610 struct device_node *np = pdev->dev.of_node, *node;
3615 if (!dev->of_node) {
3616 dev_err(dev, "device tree node not found\n");
3620 info = devm_kzalloc(dev, sizeof(*info), GFP_KERNEL);
3625 info->dev = dev;
3629 dev_err(dev, "driver data not available\n");
3643 base = devm_ioremap_resource(&pdev->dev, res);
3650 info->regmap_base = devm_regmap_init_mmio(&pdev->dev, base, &rockchip_regmap_config);
3658 base = devm_ioremap_resource(&pdev->dev, res);
3665 info->regmap_pull = devm_regmap_init_mmio(&pdev->dev, base, &rockchip_regmap_config);
3696 dev_err(&pdev->dev, "failed to register gpio device\n");
3699 dev_info(dev, "probed %s\n", dev_name(dev));