dts 内文件 编辑如下
100ask_led@0 {
compatible = "100ask,leddrv","simple-bus";
pin = <GROUP_PIN(3, 1)>;
};
100ask_led@1 {
compatible = "100ask,leddrv","simple-bus";
pin = <GROUP_PIN(5, 8)>;
};
of_device_id 结构体如下
static const struct of_device_id ask100leds[] = {
{ .compatible = “100ask,leddrv” },
{ .compatible = “simple-bus”, },
{ },
};
还是没有 设备
[root@imx6ull:/sys/devices/platform]# ls -ld 100ask
ls: 100ask: No such file or directory
请问下这是为什么? 还需要我提供什么信息