1// SPDX-License-Identifier: GPL-2.0-only OR MIT
2/*
3 * Device Tree file for the AM62P MAIN domain peripherals
4 *
5 * Copyright (C) 2023-2024 Texas Instruments Incorporated - https://www.ti.com/
6 */
7
8&cbass_main {
9	usbss1: usb@f910000 {
10		compatible = "ti,am62-usb";
11		reg = <0x00 0x0f910000 0x00 0x800>,
12		      <0x00 0x0f918000 0x00 0x400>;
13		clocks = <&k3_clks 162 3>;
14		clock-names = "ref";
15		ti,syscon-phy-pll-refclk = <&usb1_phy_ctrl 0x0>;
16		#address-cells = <2>;
17		#size-cells = <2>;
18		power-domains = <&k3_pds 179 TI_SCI_PD_EXCLUSIVE>;
19		ranges;
20		status = "disabled";
21
22		usb1: usb@31100000 {
23			compatible = "snps,dwc3";
24			reg = <0x00 0x31100000 0x00 0x50000>;
25			interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>, /* irq.0 */
26			<GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>; /* irq.0 */
27			interrupt-names = "host", "peripheral";
28			maximum-speed = "high-speed";
29			dr_mode = "otg";
30			snps,usb2-gadget-lpm-disable;
31			snps,usb2-lpm-disable;
32		};
33	};
34};
35
36&oc_sram {
37	reg = <0x00 0x70000000 0x00 0x10000>;
38	ranges = <0x00 0x00 0x70000000 0x10000>;
39};
40
41&inta_main_dmss {
42	ti,interrupt-ranges = <5 69 35>;
43};
44
45&main_conf {
46	audio_refclk0: clock-controller@82e0 {
47		compatible = "ti,am62-audio-refclk";
48		reg = <0x82e0 0x4>;
49		clocks = <&k3_clks 157 0>;
50		assigned-clocks = <&k3_clks 157 0>;
51		assigned-clock-parents = <&k3_clks 157 16>;
52		#clock-cells = <0>;
53	};
54
55	audio_refclk1: clock-controller@82e4 {
56		compatible = "ti,am62-audio-refclk";
57		reg = <0x82e4 0x4>;
58		clocks = <&k3_clks 157 18>;
59		assigned-clocks = <&k3_clks 157 18>;
60		assigned-clock-parents = <&k3_clks 157 34>;
61		#clock-cells = <0>;
62	};
63};
64
65&main_gpio0 {
66	gpio-ranges = <&main_pmx0 0 0 32>, <&main_pmx0 32 33 38>,
67			<&main_pmx0 70 72 22>;
68	ti,ngpio = <92>;
69};
70
71&main_gpio1 {
72	gpio-ranges = <&main_pmx0 0 94 32>, <&main_pmx0 42 137 5>,
73			<&main_pmx0 47 143 3>, <&main_pmx0 50 149 2>;
74	gpio-reserved-ranges = <32 10>;
75	ti,ngpio = <52>;
76};
77