页次: 1
设备树加了吗
按照 git 项目上的内容添加的设备树,添加到 sun8i-v3s-licheepi-zero.dts 中,添加的层级有建议吗,因为没修改过设备树,对这块不熟悉,我试了几个地方都不能正常创建设备,下面的内容是否有需要修正的地方
syscon: syscon@1c00000 {
compatible = "allwinner,sun8i-v3s-system-controller", "allwinner,sun8i-h3-system-control", "syscon";
reg = <0x01c00000 0xd0>;
#address-cells = <1>;
#size-cells = <1>;
ranges;
sram_c: sram@1d00000 {
compatible = "mmio-sram";
reg = <0x01d00000 0x80000>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0 0x01d00000 0x80000>;
ve_sram: sram-section@0 {
compatible = "allwinner,sun8i-v3s-sram-c", "allwinner,sun4i-a10-sram-c1";
reg = <0x000000 0x80000>;
};
};
};
cedarx: video-codec@1c0e000 {
compatible = "allwinner,sun8i-v3-cedar";
reg = <0x01c0e000 0x1000>;
clocks = <&ccu CLK_BUS_VE>, <&ccu CLK_VE>, <&ccu CLK_DRAM_VE>;
clock-names = "ahb", "mod", "ram";
resets = <&ccu RST_BUS_VE>;
interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
allwinner,sram = <&ve_sram 1>;
status = "disabled";
};
ion: ion {
compatible = "allwinner,sunxi-ion";
status = "disabled";
heap_cma@0{
compatible = "allwinner,cma";
heap-name = "cma";
heap-id = <0x4>;
heap-base = <0x0>;
heap-size = <0x0>;
heap-type = "ion_cma";
};
};
全志v3s,荔枝派主线 linux 5.2,用的 https://github.com/aodzip/cedar 硬编驱动,编译构建都没有问题,但是启动后 /dev 下没有 cedar_dev 和 ion,启动日志中也没有关于 codec 相关的日志,有大神遇到类似问题吗,或者如何排查,怎么打出来初始化相关的日志
还有个情况,cedar 如果按 模块 编译就会报错,主要是编译器版本高导致的语法检查报错,如何直接编译进内核,就没报错
页次: 1