Lines Matching +full:tn48m +full:- +full:reset
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Delta TN48M CPLD reset driver
16 #include <linux/reset-controller.h>
18 #include <dt-bindings/reset/delta,tn48m-reset.h>
55 regmap_update_bits(data->regmap, TN48M_RESET_REG, in tn48m_control_reset()
58 return regmap_read_poll_timeout(data->regmap, in tn48m_control_reset()
73 ret = regmap_read(data->regmap, TN48M_RESET_REG, ®val); in tn48m_control_status()
84 .reset = tn48m_control_reset,
93 regmap = dev_get_regmap(pdev->dev.parent, NULL); in tn48m_reset_probe()
95 return -ENODEV; in tn48m_reset_probe()
97 data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); in tn48m_reset_probe()
99 return -ENOMEM; in tn48m_reset_probe()
101 data->regmap = regmap; in tn48m_reset_probe()
103 data->rcdev.owner = THIS_MODULE; in tn48m_reset_probe()
104 data->rcdev.ops = &tn48_reset_ops; in tn48m_reset_probe()
105 data->rcdev.nr_resets = ARRAY_SIZE(tn48m_resets); in tn48m_reset_probe()
106 data->rcdev.of_node = pdev->dev.of_node; in tn48m_reset_probe()
108 return devm_reset_controller_register(&pdev->dev, &data->rcdev); in tn48m_reset_probe()
112 { .compatible = "delta,tn48m-reset" },
119 .name = "delta-tn48m-reset",
127 MODULE_DESCRIPTION("Delta TN48M CPLD reset driver");