Lines Matching refs:np

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