Message ID | 20230125-tfp410_i2c-v2-0-bf22f4dcbcea@criticallink.com |
---|---|
Headers | show |
Series | drm/bridge: tfp410: Add i2c support | expand |
On 26/01/2023 23:40, Jonathan Cormier wrote: > Add a i2c example with HDMI connector > > Signed-off-by: Jonathan Cormier <jcormier@criticallink.com> > --- > .../bindings/display/bridge/ti,tfp410.yaml | 30 ++++++++++++++++++++++ > 1 file changed, 30 insertions(+) > > diff --git a/Documentation/devicetree/bindings/display/bridge/ti,tfp410.yaml b/Documentation/devicetree/bindings/display/bridge/ti,tfp410.yaml > index 4c5dd8ec2951..1f3d29259f22 100644 > --- a/Documentation/devicetree/bindings/display/bridge/ti,tfp410.yaml > +++ b/Documentation/devicetree/bindings/display/bridge/ti,tfp410.yaml > @@ -116,4 +116,34 @@ examples: > }; > }; > > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + tfp410_i2c: encoder@38 { > + compatible = "ti,tfp410"; > + reg = <0x38>; This differs only by two properties, I don't think it's beneficial to add it. Best regards, Krzysztof
The TFP410 driver does not support I2C. As such, the device remains in Power Down if the I2C is enabled by the bootstrap pins. Add basic support for the I2C interface, and provide support to take the device out of power down when enabled. Also read the bootstrap mode pins via the CTL_1_MODE register when using the I2C bus. Also allow polling device to support hdmi/dvi hotplug detection. Signed-off-by: Jonathan Cormier <jcormier@criticallink.com> --- Changes in v2: - Fix dt_binding_check errors - Remove hdmi connector from binding example - Fix compile warning. Unused variable and unsigned int instead of int for ret - Fix commit titles - Drop of_match_ptr change - Link to v1: https://lore.kernel.org/r/20230125-tfp410_i2c-v1-0-66a4d4e390b7@criticallink.com --- Jonathan Cormier (1): dt-bindings: display: bridge: tfp410: Add tfp410 i2c example Michael Williamson (3): drm/bridge: tfp410: Support basic I2C interface drm/bridge: tfp410: Fix logic to configured polled HPD drm/bridge: tfp410: If connected, use I2C for polled HPD status. .../bindings/display/bridge/ti,tfp410.yaml | 30 ++++++ drivers/gpu/drm/bridge/ti-tfp410.c | 107 +++++++++++++++------ 2 files changed, 110 insertions(+), 27 deletions(-) --- base-commit: 93f875a8526a291005e7f38478079526c843cbec change-id: 20230125-tfp410_i2c-3b270b0bf3e0 Best regards,