Lines Matching refs:np

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