pinctrl: rockchip: treat pcfg_xxx nodes as invalid function nodes

Look at the pinmux-functions debug node, there are several pcfg_xxx
nodes which actually are not pinctrl functions:

Under RV1126 EVB:
  function: pcfg-pull-up, groups = [ ]
  function: pcfg-pull-down, groups = [ ]
  function: pcfg-pull-none, groups = [ ]
  function: pcfg-pull-none-drv-level-1, groups = [ ]
  function: pcfg-pull-none-drv-level-2, groups = [ ]
  function: pcfg-pull-none-drv-level-3, groups = [ ]
  function: pcfg-pull-up-drv-level-1, groups = [ ]
  function: pcfg-pull-up-drv-level-2, groups = [ ]
  function: pcfg-pull-none-smt, groups = [ ]
  function: pcfg-output-low-pull-down, groups = [ ]
  function: acodec, groups = [ acodec-pins ]

This patch fixs the function node valid check to ignore them.

Change-Id: I432783de72e137e2fb406ce400a69cd56cb1a8de
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
This commit is contained in:
Jianqun Xu
2021-08-27 16:53:30 +08:00
committed by Tao Huang
parent 295855202f
commit 9df5bfa9fc

View File

@@ -2935,6 +2935,9 @@ static bool is_function_node(const struct device_node *np)
if (of_match_node(rockchip_bank_match, np))
return false;
if (!strncmp(np->name, "pcfg", 4))
return false;
return true;
}