- find register range from the device tree
- provide clock access via of
Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me>
  */
 
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
 #include <linux/clk.h>
        return 0;
 }
 
+static const struct of_device_id ep93xx_pwm_of_ids[] = {
+       { .compatible = "cirrus,ep9301-pwm" },
+       {},
+};
+MODULE_DEVICE_TABLE(of, ep93xx_pwm_of_ids);
+
 static struct platform_driver ep93xx_pwm_driver = {
        .driver = {
                .name = "ep93xx-pwm",
+               .of_match_table = ep93xx_pwm_of_ids,
        },
        .probe = ep93xx_pwm_probe,
 };