mbox series

[v2,0/2] PCI: mediatek-gen3: Add support for disable dvfsrc

Message ID 20210611114824.14537-1-jianjun.wang@mediatek.com
Headers show
Series PCI: mediatek-gen3: Add support for disable dvfsrc | expand

Message

Jianjun Wang (王建军) June 11, 2021, 11:48 a.m. UTC
These series patches add support for disable dvfsrc voltage request.

Changes in v2:
Fix typo.

Jianjun Wang (2):
  dt-bindings: PCI: mediatek-gen3: Add property to disable dvfsrc
    voltage request
  PCI: mediatek-gen3: Add support for disable dvfsrc voltage request

 .../bindings/pci/mediatek-pcie-gen3.yaml      |  8 +++++
 drivers/pci/controller/pcie-mediatek-gen3.c   | 31 +++++++++++++++++++
 2 files changed, 39 insertions(+)

Comments

Jianjun Wang (王建军) June 28, 2021, 8:03 a.m. UTC | #1
Hi Rob, Bjorn, Matthias,

Could you please help to take a look at this patch series?

We have done the internal tests and need to implement this function in
the final product, We really need your suggestions.

Thanks.

On Fri, 2021-06-11 at 19:48 +0800, Jianjun Wang wrote:
> Add property to disable dvfsrc voltage request, if this property

> is presented, we assume that the requested voltage is always

> higher enough to keep the PCIe controller active.

> 

> Signed-off-by: Jianjun Wang <jianjun.wang@mediatek.com>

> Reviewed-by: Qizhong Cheng <qizhong.cheng@mediatek.com>

> Tested-by: Qizhong Cheng <qizhong.cheng@mediatek.com>

> ---

>  .../devicetree/bindings/pci/mediatek-pcie-gen3.yaml       | 8 ++++++++

>  1 file changed, 8 insertions(+)

> 

> diff --git a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml

> index e7b1f9892da4..3e26c032cea9 100644

> --- a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml

> +++ b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml

> @@ -96,6 +96,12 @@ properties:

>    phys:

>      maxItems: 1

>  

> +  disable-dvfsrc-vlt-req:

> +    description: Disable dvfsrc voltage request, if this property is presented,

> +      we assume that the requested voltage is always higher enough to keep

> +      the PCIe controller active.

> +    type: boolean

> +

>    '#interrupt-cells':

>      const: 1

>  

> @@ -166,6 +172,8 @@ examples:

>                       <&infracfg_rst 3>;

>              reset-names = "phy", "mac";

>  

> +            disable-dvfsrc-vlt-req;

> +

>              #interrupt-cells = <1>;

>              interrupt-map-mask = <0 0 0 0x7>;

>              interrupt-map = <0 0 0 1 &pcie_intc 0>,