The DT bindings added in commit:
b983a5a3303f68a2b9422deb452ff5e5cd3b806c
("media: i2c: adv7511: Add DT binding to this driver")
were added before support for infoframes were added in commit:
b4dbad8fe3b60466e0d364b34c075117757838f2
("[media] adv7511: log the currently set infoframes")
With the infoframes added, DT based use of the driver will fail to find
the pktmem I2C device and fail to load.
Add a pktmem-addr device tree binding (similar to the edid-addr)
to enable this address to be specified.
Add a cec-addr device tree binding as well, for future use.
Signed-off-by: Matthew Fornero <mfornero@mathworks.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
if (prop)
state->pdata.i2c_edid = (uint8_t)be32_to_cpup(prop);
+ prop = of_get_property(dn, "pktmem-addr", &size);
+ if (prop)
+ state->pdata.i2c_pktmem = (uint8_t)be32_to_cpup(prop);
+
+ prop = of_get_property(dn, "cec-addr", &size);
+ if (prop)
+ state->pdata.i2c_cec = (uint8_t)be32_to_cpup(prop);
+
np = of_find_node_by_name(dn, "video-input");
if (np) {
prop = of_get_property(np, "input-id", &size);