sun8i-v3s.dtsi sun8i-v3s-licheepi-zero.dts都找不到LED的驱动
离线
https://elixir.bootlin.com/linux/latest/source/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
leds {
compatible = "gpio-leds";
blue_led {
label = "licheepi:blue:usr";
gpios = <&pio 6 1 GPIO_ACTIVE_LOW>; /* PG1 */
};
green_led {
label = "licheepi:green:usr";
gpios = <&pio 6 0 GPIO_ACTIVE_LOW>; /* PG0 */
default-state = "on";
};
red_led {
label = "licheepi:red:usr";
gpios = <&pio 6 2 GPIO_ACTIVE_LOW>; /* PG2 */
};
};
离线
https://elixir.bootlin.com/linux/latest/source/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
leds { compatible = "gpio-leds"; blue_led { label = "licheepi:blue:usr"; gpios = <&pio 6 1 GPIO_ACTIVE_LOW>; /* PG1 */ }; green_led { label = "licheepi:green:usr"; gpios = <&pio 6 0 GPIO_ACTIVE_LOW>; /* PG0 */ default-state = "on"; }; red_led { label = "licheepi:red:usr"; gpios = <&pio 6 2 GPIO_ACTIVE_LOW>; /* PG2 */ }; };
老大哥,你给的这个网页代码是适配荔枝派的吗?我有点不清楚,还是去作者的github下载,我确定4.10y是没有LED驱动的
离线
https://github.com/Lichee-Pi/linux/tree/zero-4.13.y/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
leds {
compatible = "gpio-leds";
blue_led {
label = "licheepi:blue:usr";
gpios = <&pio 6 1 GPIO_ACTIVE_LOW>; /* PG1 */
};
green_led {
label = "licheepi:green:usr";
gpios = <&pio 6 0 GPIO_ACTIVE_LOW>; /* PG0 */
default-state = "on";
};
red_led {
label = "licheepi:red:usr";
gpios = <&pio 6 2 GPIO_ACTIVE_LOW>; /* PG2 */
};
};
离线
https://github.com/Lichee-Pi/linux/tree/zero-4.13.y/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
leds { compatible = "gpio-leds"; blue_led { label = "licheepi:blue:usr"; gpios = <&pio 6 1 GPIO_ACTIVE_LOW>; /* PG1 */ }; green_led { label = "licheepi:green:usr"; gpios = <&pio 6 0 GPIO_ACTIVE_LOW>; /* PG0 */ default-state = "on"; }; red_led { label = "licheepi:red:usr"; gpios = <&pio 6 2 GPIO_ACTIVE_LOW>; /* PG2 */ }; };
大哥,请问哪里能看到版本的差异。
离线