Some problems with kernel module und device tree.. - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: General (https://forum.pine64.org/forumdisplay.php?fid=1) +--- Forum: General (https://forum.pine64.org/forumdisplay.php?fid=74) +--- Thread: Some problems with kernel module und device tree.. (/showthread.php?tid=6062) |
Some problems with kernel module und device tree.. - Osiander - 05-14-2018 Hello guys, I'm developing a kernel driver for a MOST NIC and have got some problems by reading the chip configuration from device tree. Here is the configuration: Code: &i2c2 { My NIC (os8104) is connected to i2c-2. And here is the corresponding code in LKM: Code: static int os8104_probe(struct i2c_client *client, const struct i2c_device_id *id) { If I'm loading the module, the function of_find_node_by_name find my os8104 node, then I'm able to read the both properties (master and bypass). But, if I do an of_get_named_gpio(dn, "gpio_reset", 0), I get for each of four gpio-properties Quote:[ 1610.330108] OF: /soc@01c00000/i2c@01c2b400/os8104@41: arguments longer than property in dmesg. Any ideas? Kernel version is 4.14.39 and SBC is a BananaPRO (Allwinner A20 SoC). Many thanks. |