Firefly开源社区

标题: rk3328-roc-cc 如何将gpio 注册至leds-gpio驱动框架下 其dts文件如何编写 [打印本页]

作者: panzidong    时间: 2019-3-15 11:19
标题: rk3328-roc-cc 如何将gpio 注册至leds-gpio驱动框架下 其dts文件如何编写
修改kernel/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts
将系统自带的   ir leds打开编译,出现如下错误,           
  ir {
                        status = "disabled";
                        gpios = <&gpio2 GPIO_C2 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "ir";
                        default-state = "off";
                        mode = <0x00>;
                };

make[1]: 'include/generated/vdso-offsets.h' is up to date.
  CHK     include/generated/compile.h
  DTC     arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dtb
Error: arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts:224.20-21 syntax error
FATAL ERROR: Unable to parse input tree
scripts/Makefile.lib:299: recipe for target 'arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dtb' failed
make[2]: *** [arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dtb] Error 1
scripts/Makefile.build:484: recipe for target 'arch/arm64/boot/dts/rockchip' failed
make[1]: *** [arch/arm64/boot/dts/rockchip] Error 2
arch/arm64/Makefile:127: recipe for target 'dtbs' failed
make: *** [dtbs] Error 2
make: *** Waiting for unfinished jobs....
MAKE KERNEL IMAGE FAILED.

求解?




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1