Hi,
we have a problem with how to define signals to "adi, gpios" in kernel device-tree.
The following configuration does not work for us:
adi,gpios { #address-cells = <1>; #size-cells = <0>; /* gpio@0 { reg = <ADRV9002_DGPIO_0>; adi,signal = <ADRV9002_GPIO_SIGNAL_ORX_ENABLE_1>; }; gpio@1 { reg = <ADRV9002_DGPIO_1>; adi,signal = <ADRV9002_GPIO_SIGNAL_ORX_ENABLE_2>; };*/ gpio@2 { reg = <ADRV9002_AGPIO_00>; //Gpio number. Mandatory property in this node. adi,signal = <ADRV9002_GPIO_SIGNAL_TX1_EXT_FRONTEND_CONTROL>; //Defines the function of this gpio. Valid range from 0 to 19. Mandatory property in this node. adi,polarity = <0>; //Polarity of the GPIO pin (normal or inverted). 0 - normal, 1 - inverted adi,master = <2>; //Whether BBIC or ADRV9001 controls this pin. 0 - BBIC, 2 - ADRV9002 }; gpio@3{ reg = <ADRV9002_AGPIO_08>; //Gpio number. Mandatory property in this node. adi,signal = <ADRV9001_GPIO_SIGNAL_TX2_EXT_FRONTEND_CONTROL>; //Defines the function of this gpio. Valid range from 0 to 19. Mandatory property in this node. adi,polarity = <0>; //Polarity of the GPIO pin (normal or inverted). 0 - normal, 1 - inverted adi,master = <2>; //Whether BBIC or ADRV9001 controls this pin. 0 - BBIC, 2 - ADRV9002 }; gpio@4{ reg = <ADRV9002_AGPIO_01>; //Gpio number. Mandatory property in this node. adi,signal = <ADRV9001_GPIO_SIGNAL_RX1_EXT_FRONTEND_CONTROL>; //Defines the function of this gpio. Valid range from 0 to 19. Mandatory property in this node. adi,polarity = <0>; //Polarity of the GPIO pin (normal or inverted). 0 - normal, 1 - inverted adi,master = <2>; //Whether BBIC or ADRV9001 controls this pin. 0 - BBIC, 2 - ADRV9002 }; /*gpio@5{ reg = <ADRV9002_AGPIO_09>; //Gpio number. Mandatory property in this node. adi,signal = <ADRV9001_GPIO_SIGNAL_RX2_EXT_FRONTEND_CONTROL>; //Defines the function of this gpio. Valid range from 0 to 19. Mandatory property in this node. adi,polarity = <0>; //Polarity of the GPIO pin (normal or inverted). 0 - normal, 1 - inverted adi,master = <2>; //Whether BBIC or ADRV9001 controls this pin. 0 - BBIC, 2 - ADRV9002 };*/ };
--
If we pull the signal TX1_EN it switches between primed and rf_enabled ensm mode correctly but nothing happens on agpio0 pin.
------
Next problem is gpio ADRV9002_AGPIO_09 is commented out in dts because of this error, we don't know why his settings don't work:
Even if I disconnect it from our LNA, initialization still fails.
Any idea?
Thanks, Tom