Lines Matching +full:clock +full:- +full:tree
1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
3 * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
10 #include <generic-phy.h>
39 const void *blob = gd->fdt_blob; in board_usb_init()
47 node = fdt_node_offset_by_compatible(blob, -1, "snps,dwc2"); in board_usb_init()
50 return -ENODEV; in board_usb_init()
54 debug("stm32 usbotg is disabled in the device tree\n"); in board_usb_init()
55 return -ENODEV; in board_usb_init()
58 /* Enable clock */ in board_usb_init()
60 "#clock-cells", 0, 0, &args); in board_usb_init()
62 debug("usbotg has no clocks defined in the device tree\n"); in board_usb_init()
71 debug("Can't find clock ID in the device tree\n"); in board_usb_init()
72 return -ENODATA; in board_usb_init()
80 debug("Failed to enable usbotg clock\n"); in board_usb_init()
86 "#reset-cells", 0, 0, &args); in board_usb_init()
88 debug("usbotg has no resets defined in the device tree\n"); in board_usb_init()
105 "#phy-cells", 0, 0, &args); in board_usb_init()
114 phy.id = fdtdec_get_uint(blob, args.node, "reg", -1); in board_usb_init()
133 ret = -ENODATA; in board_usb_init()
138 "g-rx-fifo-size", 0); in board_usb_init()
140 "g-np-tx-fifo-size", 0); in board_usb_init()
142 "g-tx-fifo-size", 0); in board_usb_init()
144 if (!(fdtdec_parse_phandle_with_args(blob, node, "usb33d-supply", in board_usb_init()
192 gd->bd->bi_boot_params = STM32_DDR_BASE + 0x100; in board_init()