xref: /freebsd/sys/contrib/device-tree/src/arm64/ti/k3-am62p-main.dtsi (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
101950c46SEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only OR MIT
2aa1a8ff2SEmmanuel Vadot/*
30e8011faSEmmanuel Vadot * Device Tree file for the AM62P MAIN domain peripherals
40e8011faSEmmanuel Vadot *
501950c46SEmmanuel Vadot * Copyright (C) 2023-2024 Texas Instruments Incorporated - https://www.ti.com/
6aa1a8ff2SEmmanuel Vadot */
7aa1a8ff2SEmmanuel Vadot
8aa1a8ff2SEmmanuel Vadot&cbass_main {
97d0873ebSEmmanuel Vadot	usbss1: usb@f910000 {
107d0873ebSEmmanuel Vadot		compatible = "ti,am62-usb";
117d0873ebSEmmanuel Vadot		reg = <0x00 0x0f910000 0x00 0x800>,
127d0873ebSEmmanuel Vadot		      <0x00 0x0f918000 0x00 0x400>;
137d0873ebSEmmanuel Vadot		clocks = <&k3_clks 162 3>;
147d0873ebSEmmanuel Vadot		clock-names = "ref";
157d0873ebSEmmanuel Vadot		ti,syscon-phy-pll-refclk = <&usb1_phy_ctrl 0x0>;
167d0873ebSEmmanuel Vadot		#address-cells = <2>;
177d0873ebSEmmanuel Vadot		#size-cells = <2>;
187d0873ebSEmmanuel Vadot		power-domains = <&k3_pds 179 TI_SCI_PD_EXCLUSIVE>;
197d0873ebSEmmanuel Vadot		ranges;
207d0873ebSEmmanuel Vadot		status = "disabled";
217d0873ebSEmmanuel Vadot
227d0873ebSEmmanuel Vadot		usb1: usb@31100000 {
237d0873ebSEmmanuel Vadot			compatible = "snps,dwc3";
247d0873ebSEmmanuel Vadot			reg = <0x00 0x31100000 0x00 0x50000>;
257d0873ebSEmmanuel Vadot			interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>, /* irq.0 */
267d0873ebSEmmanuel Vadot			<GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>; /* irq.0 */
277d0873ebSEmmanuel Vadot			interrupt-names = "host", "peripheral";
287d0873ebSEmmanuel Vadot			maximum-speed = "high-speed";
297d0873ebSEmmanuel Vadot			dr_mode = "otg";
307d0873ebSEmmanuel Vadot			snps,usb2-gadget-lpm-disable;
317d0873ebSEmmanuel Vadot			snps,usb2-lpm-disable;
327d0873ebSEmmanuel Vadot		};
337d0873ebSEmmanuel Vadot	};
340e8011faSEmmanuel Vadot};
357d0873ebSEmmanuel Vadot
360e8011faSEmmanuel Vadot&oc_sram {
370e8011faSEmmanuel Vadot	reg = <0x00 0x70000000 0x00 0x10000>;
380e8011faSEmmanuel Vadot	ranges = <0x00 0x00 0x70000000 0x10000>;
390e8011faSEmmanuel Vadot};
4084943d6fSEmmanuel Vadot
410e8011faSEmmanuel Vadot&inta_main_dmss {
420e8011faSEmmanuel Vadot	ti,interrupt-ranges = <5 69 35>;
430e8011faSEmmanuel Vadot};
440e8011faSEmmanuel Vadot
450e8011faSEmmanuel Vadot&main_pmx0 {
460e8011faSEmmanuel Vadot	pinctrl-single,gpio-range =
470e8011faSEmmanuel Vadot		<&main_pmx0_range 0 32 PIN_GPIO_RANGE_IOPAD>,
480e8011faSEmmanuel Vadot		<&main_pmx0_range 33 38 PIN_GPIO_RANGE_IOPAD>,
490e8011faSEmmanuel Vadot		<&main_pmx0_range 72 22 PIN_GPIO_RANGE_IOPAD>,
500e8011faSEmmanuel Vadot		<&main_pmx0_range 137 5 PIN_GPIO_RANGE_IOPAD>,
510e8011faSEmmanuel Vadot		<&main_pmx0_range 143 3 PIN_GPIO_RANGE_IOPAD>,
520e8011faSEmmanuel Vadot		<&main_pmx0_range 149 2 PIN_GPIO_RANGE_IOPAD>;
530e8011faSEmmanuel Vadot
540e8011faSEmmanuel Vadot	main_pmx0_range: gpio-range {
550e8011faSEmmanuel Vadot		#pinctrl-single,gpio-range-cells = <3>;
5684943d6fSEmmanuel Vadot	};
5784943d6fSEmmanuel Vadot};
5884943d6fSEmmanuel Vadot
590e8011faSEmmanuel Vadot&main_gpio0 {
600e8011faSEmmanuel Vadot	gpio-ranges = <&main_pmx0 0 0 32>, <&main_pmx0 32 33 38>,
610e8011faSEmmanuel Vadot			<&main_pmx0 70 72 22>;
620e8011faSEmmanuel Vadot	ti,ngpio = <92>;
6384943d6fSEmmanuel Vadot};
6484943d6fSEmmanuel Vadot
650e8011faSEmmanuel Vadot&main_gpio1 {
660e8011faSEmmanuel Vadot	gpio-ranges = <&main_pmx0 0 94 32>, <&main_pmx0 42 137 5>,
670e8011faSEmmanuel Vadot			<&main_pmx0 47 143 3>, <&main_pmx0 50 149 2>;
68*b2d2a78aSEmmanuel Vadot	gpio-reserved-ranges = <32 10>;
690e8011faSEmmanuel Vadot	ti,ngpio = <52>;
70aa1a8ff2SEmmanuel Vadot};
71