设备无法转换成 platform devices

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

请问下这是为什么? 还需要我提供什么信息


我这里测试添加了是有的。你对照看看。


用ls看看,应该也是有的,只是没有100ask

devicetree 的信息有 /sys/devices/platform 目录下没有

看下这个帖子

OK 另外一个目录下是有的
感谢 老师 答疑