Lines Matching defs:node
44 int node, i2c_node, ret;
49 node = fdt_node_offset_by_compatible(gd->fdt_blob, -1, "khadas,mcu");
50 if (node < 0) {
51 printf("vim3: cannot find khadas,mcu node\n");
56 val = (u32 *)fdt_getprop(gd->fdt_blob, node, "reg", NULL);
58 printf("vim3: cannot find khadas,mcu node i2c addr\n");
64 i2c_node = fdt_parent_offset(gd->fdt_blob, node);
65 if (node < 0) {
66 printf("vim3: cannot find khadas,mcu i2c node\n");
99 /* Find USB node */
100 node = fdt_node_offset_by_compatible(blob, -1, "amlogic,meson-g12a-usb-ctrl");
101 if (node < 0) {
102 printf("vim3: cannot find amlogic,meson-g12a-usb-ctrl node\n");
109 ret = fdt_setprop(blob, node, "phy-names", data, len);
116 ptmp = fdt_getprop(blob, node, "phys", &len);
120 ret = fdt_setprop(blob, node, "phys", data,
125 printf("vim3: cannot find usb node phys property\n");
127 /* Find PCIe node */
128 node = fdt_node_offset_by_compatible(blob, -1, "amlogic,g12a-pcie");
129 if (node < 0) {
130 printf("vim3: cannot find amlogic,g12a-pcie node\n");
136 ret = fdt_setprop(blob, node, "status", data, len);
138 printf("vim3: failed to enable pcie node (%d)\n", ret);