Hello Folks,
I am trying to customize the DT (imx8mm-evk.dts) of imx8mmevk board. I add the block of code below at the imx8mm-evk.dts file.
ledclassRGB {
compatible = "arrow,RGBclassleds";
reg = <0x30240000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio_leds>;
red {
label = "red";
};
green {
label = "green";
};
blue {
label = "blue";
linux,default-trigger = "heartbeat";
};
};
After a ran make command to build the kernel with the DT changed I got this message
CALL scripts/checksyscalls.sh
CALL scripts/atomic/check-atomics.sh
CHK include/generated/compile.h
DTC arch/arm64/boot/dts/freescale/imx8mm-evk.dtb
arch/arm64/boot/dts/freescale/imx8mm-evk.dts:49.3-22: Warning (reg_format): /ledclassRGB:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 2)
arch/arm64/boot/dts/freescale/imx8mm-evk.dtb: Warning (pci_device_bus_num): Failed prerequisite 'reg_format'
arch/arm64/boot/dts/freescale/imx8mm-evk.dtb: Warning (i2c_bus_reg): Failed prerequisite 'reg_format'
arch/arm64/boot/dts/freescale/imx8mm-evk.dtb: Warning (spi_bus_reg): Failed prerequisite 'reg_format'
I think the problem is in the "reg =<0x30240000>". Does anybody know how do I fix it?
According I understand the "reg =" should be like this reg = <[GPIOx_DR Address] [GPIOx_DR value] [GPIOx_GDIR Address] [GPIOx_GDIR value]>. But it doesn't work for my platform_driver class implementation.
Thanks in advance.