Lines Matching refs:np
48 static int px30_get_soc_info(struct device *dev, struct device_node *np, int *bin, int *process) in px30_get_soc_info() argument
57 if (of_property_match_string(np, "nvmem-cell-names", "performance") >= 0) { in px30_get_soc_info()
58 ret = rockchip_nvmem_cell_read_u8(np, "performance", &value); in px30_get_soc_info()
72 static int rk3288_get_soc_info(struct device *dev, struct device_node *np, int *bin, int *process) in rk3288_get_soc_info() argument
81 if (of_property_match_string(np, "nvmem-cell-names", "special") >= 0) { in rk3288_get_soc_info()
82 ret = rockchip_nvmem_cell_read_u8(np, "special", &value); in rk3288_get_soc_info()
100 if (of_property_match_string(np, "nvmem-cell-names", name) >= 0) { in rk3288_get_soc_info()
101 ret = rockchip_nvmem_cell_read_u8(np, name, &value); in rk3288_get_soc_info()
120 if (of_property_match_string(np, "nvmem-cell-names", "process") >= 0) { in rk3288_get_soc_info()
121 ret = rockchip_nvmem_cell_read_u8(np, "process", &value); in rk3288_get_soc_info()
138 static int rk3399_get_soc_info(struct device *dev, struct device_node *np, int *bin, int *process) in rk3399_get_soc_info() argument
147 if (of_property_match_string(np, "nvmem-cell-names", "specification_serial_number") >= 0) { in rk3399_get_soc_info()
148 ret = rockchip_nvmem_cell_read_u8(np, "specification_serial_number", &value); in rk3399_get_soc_info()
157 if (of_property_match_string(np, "nvmem-cell-names", "customer_demand") >= 0) { in rk3399_get_soc_info()
158 ret = rockchip_nvmem_cell_read_u8(np, "customer_demand", &value); in rk3399_get_soc_info()
220 static int rv1126_get_soc_info(struct device *dev, struct device_node *np, int *bin, int *process) in rv1126_get_soc_info() argument
225 if (of_property_match_string(np, "nvmem-cell-names", "performance") >= 0) { in rv1126_get_soc_info()
226 ret = rockchip_nvmem_cell_read_u8(np, "performance", &value); in rv1126_get_soc_info()
414 struct device_node *np; in rockchip_cpufreq_cluster_init() local
436 np = of_parse_phandle(dev->of_node, "operating-points-v2", 0); in rockchip_cpufreq_cluster_init()
437 if (!np) { in rockchip_cpufreq_cluster_init()
451 opp_info->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); in rockchip_cpufreq_cluster_init()
455 rockchip_get_volt_rm_table(dev, np, "volt-mem-read-margin", &opp_info->volt_rm_tbl); in rockchip_cpufreq_cluster_init()
458 opp_info->data->get_soc_info(dev, np, &bin, &process); in rockchip_cpufreq_cluster_init()
480 of_node_put(np); in rockchip_cpufreq_cluster_init()
493 of_node_put(np); in rockchip_cpufreq_cluster_init()