Lines Matching refs:np
53 static int px30_get_soc_info(struct device *dev, struct device_node *np, in px30_get_soc_info() argument
62 if (of_property_match_string(np, "nvmem-cell-names", in px30_get_soc_info()
64 ret = rockchip_nvmem_cell_read_u8(np, "performance", &value); in px30_get_soc_info()
77 static int rk3288_get_soc_info(struct device *dev, struct device_node *np, in rk3288_get_soc_info() argument
86 if (of_property_match_string(np, "nvmem-cell-names", "special") >= 0) { in rk3288_get_soc_info()
87 ret = rockchip_nvmem_cell_read_u8(np, "special", &value); in rk3288_get_soc_info()
103 if (of_property_match_string(np, "nvmem-cell-names", name) >= 0) { in rk3288_get_soc_info()
104 ret = rockchip_nvmem_cell_read_u8(np, name, &value); in rk3288_get_soc_info()
120 if (of_property_match_string(np, "nvmem-cell-names", in rk3288_get_soc_info()
122 ret = rockchip_nvmem_cell_read_u8(np, "process", &value); in rk3288_get_soc_info()
137 static int rk3399_get_soc_info(struct device *dev, struct device_node *np, in rk3399_get_soc_info() argument
146 if (of_property_match_string(np, "nvmem-cell-names", in rk3399_get_soc_info()
148 ret = rockchip_nvmem_cell_read_u8(np, in rk3399_get_soc_info()
160 if (of_property_match_string(np, "nvmem-cell-names", in rk3399_get_soc_info()
162 ret = rockchip_nvmem_cell_read_u8(np, in rk3399_get_soc_info()
235 static int rv1126_get_soc_info(struct device *dev, struct device_node *np, in rv1126_get_soc_info() argument
241 if (of_property_match_string(np, "nvmem-cell-names", "performance") >= 0) { in rv1126_get_soc_info()
242 ret = rockchip_nvmem_cell_read_u8(np, "performance", &value); in rv1126_get_soc_info()
455 struct device_node *np; in rockchip_cpufreq_cluster_init() local
475 np = of_parse_phandle(dev->of_node, "operating-points-v2", 0); in rockchip_cpufreq_cluster_init()
476 if (!np) { in rockchip_cpufreq_cluster_init()
490 opp_info->grf = syscon_regmap_lookup_by_phandle(np, in rockchip_cpufreq_cluster_init()
495 syscon_regmap_lookup_by_phandle(np, "rockchip,dsu-grf"); in rockchip_cpufreq_cluster_init()
498 rockchip_get_volt_rm_table(dev, np, "volt-mem-read-margin", in rockchip_cpufreq_cluster_init()
502 opp_info->data->get_soc_info(dev, np, &bin, &process); in rockchip_cpufreq_cluster_init()
527 of_node_put(np); in rockchip_cpufreq_cluster_init()
538 of_node_put(np); in rockchip_cpufreq_cluster_init()