Using Max14830 as GPIO controller for ADV7611

custom_board

#1

I have seen some previous topics asking about this so maybe someone would be able to help me.

I have set up my Max14830 similar to this topic https://discuss.96boards.org/t/how-to-use-max14830-as-i2c-with-dragonboard820c/6109

I was wondering how do I hook up a GPIO from the Max chip to use as a reset line for my ADV7611 chip that I will be using on the same bus

i2c@075b6000 {
            /* On Low speed expansion */
                    label = "LS-I2C1";
                    status = "okay";
                    max14830: max14830@6c {
                        compatible = "maxim,max14830";
                        reg = <0x6c>;
                        maxim,clock-type = "xtal";
                        maxim,clock-frequency = <3686400>;
                        interrupt-parent = <&msmgpio>;
                        interrupts = <89 IRQ_TYPE_EDGE_FALLING>;
                        maxim,minorstart = <209>;
                        gpio-controller;
                        #gpio-cells = <2>;
                    };

                    hdmi_receiver@4c {
                            compatible = "adi,adv7611";
                            reg = <0x4c>;

                            #address-cells = <1>;
                            #size-cells = <0>;

                            reset-gpios = <DONT KNOW WHAT GOES HERE>;
                            default-input = <0>;

                            port@0 {
                                    reg = <0>;
                                    hdmi_rx: endpoint {
                                            hsync-active=<1>;
                                            vsync-active=<1>;
                                            pclk-sample=<0>;
                                    };
                            };
                            port@1 {
                                    reg = <1>;
                            };
                    };

I probably have some issues around the adv chip itself with the device tree and I’m still trying to figure out how to get that hooked up properly into the camss for the 820c since this is on the cci bus that doesn’t seem to function properly, but i was noticing that in the driver when it is probed the reset seems to not function properly. but when i toggle the GPIOs manually and the loaded the module manually the driver probe functions properly and outputs no errors. So i wanted to focus on the first part with getting the reset to work properly.

NOTE: I have commented out the HPD stuff in the adv7604.c driver so I don’t need to worry about that in my device tree currently.


#2

Looks like i may have solved my issue.

reset-gpios = <&max14830 5 GPIO_ACTIVE_HIGH>;

This seems to have gotten the driver to probe it correctly as my max GPIO 5 is connected to the reset line.