Lines Matching +full:tegra210 +full:- +full:xusb +full:- +full:padctl

1 // SPDX-License-Identifier: GPL-2.0+
30 * good reason why driver-model conversion is infeasible. Examples include
36 COMPAT(NVIDIA_TEGRA20_EMC, "nvidia,tegra20-emc"),
37 COMPAT(NVIDIA_TEGRA20_EMC_TABLE, "nvidia,tegra20-emc-table"),
38 COMPAT(NVIDIA_TEGRA20_NAND, "nvidia,tegra20-nand"),
39 COMPAT(NVIDIA_TEGRA124_XUSB_PADCTL, "nvidia,tegra124-xusb-padctl"),
40 COMPAT(NVIDIA_TEGRA210_XUSB_PADCTL, "nvidia,tegra210-xusb-padctl"),
42 COMPAT(SAMSUNG_EXYNOS5_SROMC, "samsung,exynos-sromc"),
43 COMPAT(SAMSUNG_EXYNOS_USB_PHY, "samsung,exynos-usb-phy"),
44 COMPAT(SAMSUNG_EXYNOS5_USB3_PHY, "samsung,exynos5250-usb3-phy"),
45 COMPAT(SAMSUNG_EXYNOS_TMU, "samsung,exynos-tmu"),
46 COMPAT(SAMSUNG_EXYNOS_MIPI_DSI, "samsung,exynos-mipi-dsi"),
47 COMPAT(SAMSUNG_EXYNOS_DWMMC, "samsung,exynos-dwmmc"),
48 COMPAT(GENERIC_SPI_FLASH, "spi-flash"),
49 COMPAT(SAMSUNG_EXYNOS_SYSMMU, "samsung,sysmmu-v3.3"),
51 COMPAT(INTEL_QRK_MRC, "intel,quark-mrc"),
52 COMPAT(ALTERA_SOCFPGA_DWMAC, "altr,socfpga-stmmac"),
53 COMPAT(ALTERA_SOCFPGA_DWMMC, "altr,socfpga-dw-mshc"),
55 COMPAT(INTEL_BAYTRAIL_FSP, "intel,baytrail-fsp"),
56 COMPAT(INTEL_BAYTRAIL_FSP_MDP, "intel,baytrail-fsp-mdp"),
57 COMPAT(INTEL_IVYBRIDGE_FSP, "intel,ivybridge-fsp"),
58 COMPAT(COMPAT_SUNXI_NAND, "allwinner,sun4i-a10-nand"),
59 COMPAT(ALTERA_SOCFPGA_CLK, "altr,clk-mgr"),
60 COMPAT(ALTERA_SOCFPGA_PINCTRL_SINGLE, "pinctrl-single"),
61 COMPAT(ALTERA_SOCFPGA_H2F_BRG, "altr,socfpga-hps2fpga-bridge"),
62 COMPAT(ALTERA_SOCFPGA_LWH2F_BRG, "altr,socfpga-lwhps2fpga-bridge"),
63 COMPAT(ALTERA_SOCFPGA_F2H_BRG, "altr,socfpga-fpga2hps-bridge"),
64 COMPAT(ALTERA_SOCFPGA_F2SDR0, "altr,socfpga-fpga2sdram0-bridge"),
65 COMPAT(ALTERA_SOCFPGA_F2SDR1, "altr,socfpga-fpga2sdram1-bridge"),
66 COMPAT(ALTERA_SOCFPGA_F2SDR2, "altr,socfpga-fpga2sdram2-bridge"),
67 COMPAT(ALTERA_SOCFPGA_FPGA0, "altr,socfpga-a10-fpga-mgr"),
68 COMPAT(ALTERA_SOCFPGA_NOC, "altr,socfpga-a10-noc"),
69 COMPAT(ALTERA_SOCFPGA_CLK_INIT, "altr,socfpga-a10-clk-init")
103 (u32)(prop_after_size - prop), ((u32)(prop_end - prop))); in fdtdec_get_addr_size_fixed()
136 debug("(bad #address-cells)\n"); in fdtdec_get_addr_size_auto_parent()
142 debug("(bad #size-cells)\n"); in fdtdec_get_addr_size_auto_parent()
192 int ret = -ENOENT; in fdtdec_get_pci_addr()
198 * the value of the node's parent node's #address-cells and in fdtdec_get_pci_addr()
199 * #size-cells. They need to be 3 and 2 accordingly. However, in fdtdec_get_pci_addr()
216 addr->phys_hi = fdt32_to_cpu(cell[0]); in fdtdec_get_pci_addr()
217 addr->phys_mid = fdt32_to_cpu(cell[1]); in fdtdec_get_pci_addr()
218 addr->phys_lo = fdt32_to_cpu(cell[1]); in fdtdec_get_pci_addr()
227 ret = -ENXIO; in fdtdec_get_pci_addr()
234 ret = -EINVAL; in fdtdec_get_pci_addr()
248 return -ENOENT; in fdtdec_get_pci_vendev()
274 return -ENOENT; in fdtdec_get_pci_vendev()
283 barnum = addr->phys_hi & 0xff; in fdtdec_get_pci_bar32()
285 return -EINVAL; in fdtdec_get_pci_bar32()
287 barnum = (barnum - PCI_BASE_ADDRESS_0) / 4; in fdtdec_get_pci_bar32()
316 * http://www.mail-archive.com/u-boot@lists.denx.de/msg71598.html in fdtdec_get_is_enabled()
353 return -FDT_ERR_NOTFOUND; in fdtdec_next_compatible_subnode()
373 return -FDT_ERR_NOTFOUND; in fdtdec_next_alias()
430 path = fdt_string(blob, fdt32_to_cpu(prop->nameoff)); in fdtdec_add_aliases_for_id()
431 if (prop->len && 0 == strncmp(path, name, name_len)) in fdtdec_add_aliases_for_id()
432 node = fdt_path_offset(blob, prop->data); in fdtdec_add_aliases_for_id()
445 found = -1; in fdtdec_add_aliases_for_id()
452 if (found == -1) { in fdtdec_add_aliases_for_id()
525 debug(" - %s, %s\n", name, prop); in fdtdec_get_alias_seq()
526 if (len < find_namelen || *prop != '/' || prop[len - 1] || in fdtdec_get_alias_seq()
534 if (val != -1) { in fdtdec_get_alias_seq()
542 return -ENOENT; in fdtdec_get_alias_seq()
550 int max = -1; in fdtdec_get_alias_highest_id()
563 debug(" - %s, %s\n", name, prop); in fdtdec_get_alias_highest_id()
564 if (*prop != '/' || prop[len - 1] || in fdtdec_get_alias_highest_id()
594 return -FDT_ERR_NOTFOUND; in fdtdec_get_chosen_node()
617 if (!gd->fdt_blob || ((uintptr_t)gd->fdt_blob & 3) || in fdtdec_prepare_fdt()
618 fdt_check_header(gd->fdt_blob)) { in fdtdec_prepare_fdt()
622 …device tree binary found - please append one to U-Boot binary, use u-boot-dtb.bin or define CONFIG… in fdtdec_prepare_fdt()
624 if (gd->fdt_blob) { in fdtdec_prepare_fdt()
625 printf("fdt_blob=%p\n", gd->fdt_blob); in fdtdec_prepare_fdt()
626 print_buffer((ulong)gd->fdt_blob, gd->fdt_blob, 4, in fdtdec_prepare_fdt()
631 return -1; in fdtdec_prepare_fdt()
644 return -FDT_ERR_NOTFOUND; in fdtdec_lookup_phandle()
657 * @param err 0 if ok, or -FDT_ERR_NOTFOUND if the property is not
658 found, or -FDT_ERR_BADLAYOUT if not enough data
671 *err = -FDT_ERR_NOTFOUND; in get_prop_check_min_len()
673 *err = -FDT_ERR_BADLAYOUT; in get_prop_check_min_len()
707 return -FDT_ERR_NOTFOUND; in fdtdec_get_int_array_count()
747 int node = -1; in fdtdec_parse_phandle_with_args()
753 return -ENOENT; in fdtdec_parse_phandle_with_args()
758 rc = -EINVAL; in fdtdec_parse_phandle_with_args()
768 * Find the provider node and parse the #*-cells in fdtdec_parse_phandle_with_args()
771 * This is not needed if the cell count is hard-coded in fdtdec_parse_phandle_with_args()
789 -1); in fdtdec_parse_phandle_with_args()
790 if (count == -1) { in fdtdec_parse_phandle_with_args()
818 * or return -ENOENT for an empty entry. in fdtdec_parse_phandle_with_args()
820 rc = -ENOENT; in fdtdec_parse_phandle_with_args()
834 out_args->node = node; in fdtdec_parse_phandle_with_args()
835 out_args->args_count = count; in fdtdec_parse_phandle_with_args()
837 out_args->args[i] = in fdtdec_parse_phandle_with_args()
846 node = -1; in fdtdec_parse_phandle_with_args()
853 * -ENOENT : index is for empty phandle in fdtdec_parse_phandle_with_args()
854 * -EINVAL : parsing error on data in fdtdec_parse_phandle_with_args()
855 * [1..n] : Number of phandle (count mode; when index = -1) in fdtdec_parse_phandle_with_args()
857 rc = index < 0 ? cur_index : -ENOENT; in fdtdec_parse_phandle_with_args()
945 while (cells--) in fdtdec_get_number()
973 res->start = fdtdec_get_number(ptr, na); in fdt_get_resource()
974 res->end = res->start; in fdt_get_resource()
975 res->end += fdtdec_get_number(&ptr[na], ns) - 1; in fdt_get_resource()
983 return -FDT_ERR_NOTFOUND; in fdt_get_resource()
1013 result->typ = fdtdec_get_int(blob, node, name, 0); in decode_timing_property()
1014 result->min = result->typ; in decode_timing_property()
1015 result->max = result->typ; in decode_timing_property()
1017 ret = fdtdec_get_int_array(blob, node, name, &result->min, 3); in decode_timing_property()
1030 timings_node = fdt_subnode_offset(blob, parent, "display-timings"); in fdtdec_decode_display_timing()
1044 ret |= decode_timing_property(blob, node, "hback-porch", in fdtdec_decode_display_timing()
1045 &dt->hback_porch); in fdtdec_decode_display_timing()
1046 ret |= decode_timing_property(blob, node, "hfront-porch", in fdtdec_decode_display_timing()
1047 &dt->hfront_porch); in fdtdec_decode_display_timing()
1048 ret |= decode_timing_property(blob, node, "hactive", &dt->hactive); in fdtdec_decode_display_timing()
1049 ret |= decode_timing_property(blob, node, "hsync-len", &dt->hsync_len); in fdtdec_decode_display_timing()
1050 ret |= decode_timing_property(blob, node, "vback-porch", in fdtdec_decode_display_timing()
1051 &dt->vback_porch); in fdtdec_decode_display_timing()
1052 ret |= decode_timing_property(blob, node, "vfront-porch", in fdtdec_decode_display_timing()
1053 &dt->vfront_porch); in fdtdec_decode_display_timing()
1054 ret |= decode_timing_property(blob, node, "vactive", &dt->vactive); in fdtdec_decode_display_timing()
1055 ret |= decode_timing_property(blob, node, "vsync-len", &dt->vsync_len); in fdtdec_decode_display_timing()
1056 ret |= decode_timing_property(blob, node, "clock-frequency", in fdtdec_decode_display_timing()
1057 &dt->pixelclock); in fdtdec_decode_display_timing()
1059 dt->flags = 0; in fdtdec_decode_display_timing()
1060 val = fdtdec_get_int(blob, node, "vsync-active", -1); in fdtdec_decode_display_timing()
1061 if (val != -1) { in fdtdec_decode_display_timing()
1062 dt->flags |= val ? DISPLAY_FLAGS_VSYNC_HIGH : in fdtdec_decode_display_timing()
1065 val = fdtdec_get_int(blob, node, "hsync-active", -1); in fdtdec_decode_display_timing()
1066 if (val != -1) { in fdtdec_decode_display_timing()
1067 dt->flags |= val ? DISPLAY_FLAGS_HSYNC_HIGH : in fdtdec_decode_display_timing()
1070 val = fdtdec_get_int(blob, node, "de-active", -1); in fdtdec_decode_display_timing()
1071 if (val != -1) { in fdtdec_decode_display_timing()
1072 dt->flags |= val ? DISPLAY_FLAGS_DE_HIGH : in fdtdec_decode_display_timing()
1075 val = fdtdec_get_int(blob, node, "pixelclk-active", -1); in fdtdec_decode_display_timing()
1076 if (val != -1) { in fdtdec_decode_display_timing()
1077 dt->flags |= val ? DISPLAY_FLAGS_PIXDATA_POSEDGE : in fdtdec_decode_display_timing()
1082 dt->flags |= DISPLAY_FLAGS_INTERLACED; in fdtdec_decode_display_timing()
1084 dt->flags |= DISPLAY_FLAGS_DOUBLESCAN; in fdtdec_decode_display_timing()
1086 dt->flags |= DISPLAY_FLAGS_DOUBLECLK; in fdtdec_decode_display_timing()
1096 mem = fdt_path_offset(gd->fdt_blob, "/memory"); in fdtdec_setup_mem_size_base()
1099 return -EINVAL; in fdtdec_setup_mem_size_base()
1102 ret = fdt_get_resource(gd->fdt_blob, mem, "reg", 0, &res); in fdtdec_setup_mem_size_base()
1105 return -EINVAL; in fdtdec_setup_mem_size_base()
1108 gd->ram_size = (phys_size_t)(res.end - res.start + 1); in fdtdec_setup_mem_size_base()
1109 gd->ram_base = (unsigned long)res.start; in fdtdec_setup_mem_size_base()
1111 (unsigned long long)gd->ram_size); in fdtdec_setup_mem_size_base()
1121 mem = fdt_node_offset_by_prop_value(gd->fdt_blob, mem, in get_next_memory_node()
1133 mem = get_next_memory_node(gd->fdt_blob, -1); in fdtdec_setup_memory_banksize()
1136 return -EINVAL; in fdtdec_setup_memory_banksize()
1140 ret = fdt_get_resource(gd->fdt_blob, mem, "reg", reg++, &res); in fdtdec_setup_memory_banksize()
1141 if (ret == -FDT_ERR_NOTFOUND) { in fdtdec_setup_memory_banksize()
1143 mem = get_next_memory_node(gd->fdt_blob, mem); in fdtdec_setup_memory_banksize()
1144 if (mem == -FDT_ERR_NOTFOUND) in fdtdec_setup_memory_banksize()
1147 ret = fdt_get_resource(gd->fdt_blob, mem, "reg", reg++, &res); in fdtdec_setup_memory_banksize()
1148 if (ret == -FDT_ERR_NOTFOUND) in fdtdec_setup_memory_banksize()
1152 return -EINVAL; in fdtdec_setup_memory_banksize()
1155 gd->bd->bi_dram[bank].start = (phys_addr_t)res.start; in fdtdec_setup_memory_banksize()
1156 gd->bd->bi_dram[bank].size = in fdtdec_setup_memory_banksize()
1157 (phys_size_t)(res.end - res.start + 1); in fdtdec_setup_memory_banksize()
1161 (unsigned long long)gd->bd->bi_dram[bank].start, in fdtdec_setup_memory_banksize()
1162 (unsigned long long)gd->bd->bi_dram[bank].size); in fdtdec_setup_memory_banksize()
1181 return -1; in uncompress_blob()
1184 return -EBADMSG; in uncompress_blob()
1190 return -ENOMEM; in uncompress_blob()
1196 return -ENOTSUPP; in uncompress_blob()
1210 return -EBADMSG; in uncompress_blob()
1255 gd->fdt_blob = __dtb_dt_spl_begin; in fdtdec_setup()
1257 gd->fdt_blob = __dtb_dt_begin; in fdtdec_setup()
1261 gd->fdt_blob = board_fdt_blob_setup(); in fdtdec_setup()
1265 return -1; in fdtdec_setup()
1271 gd->fdt_blob = (void *)prior_stage_fdt_address; in fdtdec_setup()
1273 gd->fdt_blob = map_sysmem in fdtdec_setup()
1275 (unsigned long)map_to_sysmem(gd->fdt_blob)), 0); in fdtdec_setup()
1286 if (uncompress_blob(gd->fdt_blob, 0x1000000, &fdt_blob) == 0) in fdtdec_setup()
1287 gd->fdt_blob = fdt_blob; in fdtdec_setup()
1293 fdt_blob = locate_dtb_in_fit(gd->fdt_blob); in fdtdec_setup()
1295 gd->multi_dtb_fit = gd->fdt_blob; in fdtdec_setup()
1296 gd->fdt_blob = fdt_blob; in fdtdec_setup()
1316 if (gd->multi_dtb_fit) { in fdtdec_resetup()
1317 fdt_blob = locate_dtb_in_fit(gd->multi_dtb_fit); in fdtdec_resetup()
1319 if (fdt_blob == gd->fdt_blob) { in fdtdec_resetup()
1329 gd->fdt_blob = fdt_blob; in fdtdec_resetup()
1334 * If multi_dtb_fit is NULL, it means that blob appended to u-boot is in fdtdec_resetup()
1361 return -ENOENT; in fdtdec_decode_ram_size()
1367 return -ENOENT; in fdtdec_decode_ram_size()
1379 match_mask = fdtdec_get_int(blob, child, "match-mask", -1); in fdtdec_decode_ram_size()
1380 match_value = fdtdec_get_int(blob, child, "match-value", -1); in fdtdec_decode_ram_size()
1389 debug("No memory-banks property found\n"); in fdtdec_decode_ram_size()
1390 return -EINVAL; in fdtdec_decode_ram_size()
1398 memset(bd->bi_dram, '\0', sizeof(bd->bi_dram[0]) * in fdtdec_decode_ram_size()
1402 auto_size = fdtdec_get_bool(blob, node, "auto-size"); in fdtdec_decode_ram_size()
1405 end = cell + len / 4 - addr_cells - size_cells; in fdtdec_decode_ram_size()
1415 bd->bi_dram[bank].start = addr; in fdtdec_decode_ram_size()
1427 debug("Auto-sizing %llx, size %llx: ", addr, size); in fdtdec_decode_ram_size()
1438 bd->bi_dram[bank].size = size; in fdtdec_decode_ram_size()