Gx Chip Driver ★ Limited Time
echo 0x1f > /sys/module/gx_vpu/parameters/debug to enable verbose logging. Check cat /proc/interrupts | grep vpu for interrupt count. 4.4 I2C / SPI Drivers ( gx_i2c , gx_spi ) These are simple wrapper drivers around DesignWare IP or a custom bit-bang. The GX implementation often lacks proper clock gating or recovery on bus hang.
#define I2C_CON 0x00 #define I2C_TAR 0x04 #define I2C_DATA_CMD 0x10 #define I2C_ENABLE 0x6C static inline void gx_i2c_writel(struct gx_i2c *i2c, u32 val, u32 reg) gx chip driver
gx_mem: allocation failed (size=4194304) → Increase CMA size in bootargs: cma=384M or adjust per-pool sizes in device tree. 7. Device Tree Bindings (Example for GX350) &gx_vpu compatible = "nationalchip,gx350-vpu"; reg = <0x0 0xf1000000 0x0 0x4000>; interrupts = <0 33 4>; clocks = <&clkc GX350_CLK_VPU>, <&clkc GX350_CLK_VPU_AXI>; clock-names = "core", "bus"; firmware-name = "gx_vpu_fw.bin"; memory-region = <&vpu_mem>; ; &gx_disp compatible = "nationalchip,gx350-disp"; reg = <0x0 0xf0000000 0x0 0x2000>; interrupts = <0 25 4>; ports disp_out: endpoint remote-endpoint = <&hdmi_in>; ; ; ; The GX implementation often lacks proper clock gating
Manually gate unused clocks via /sys/kernel/debug/clk/clk_summary and write to clk_disable . Device Tree Bindings (Example for GX350) &gx_vpu compatible







