jh7100.dtsi revision 1.2 1 1.2 skrll /* $NetBSD: jh7100.dtsi,v 1.2 2024/10/24 12:03:16 skrll Exp $ */
2 1.1 skrll
3 1.1 skrll /*-
4 1.1 skrll * Copyright (c) 2024 The NetBSD Foundation, Inc.
5 1.1 skrll * All rights reserved.
6 1.1 skrll *
7 1.1 skrll * This code is derived from software contributed to The NetBSD Foundation
8 1.1 skrll * by Nick Hudson
9 1.1 skrll *
10 1.1 skrll * Redistribution and use in source and binary forms, with or without
11 1.1 skrll * modification, are permitted provided that the following conditions
12 1.1 skrll * are met:
13 1.1 skrll * 1. Redistributions of source code must retain the above copyright
14 1.1 skrll * notice, this list of conditions and the following disclaimer.
15 1.1 skrll * 2. Redistributions in binary form must reproduce the above copyright
16 1.1 skrll * notice, this list of conditions and the following disclaimer in the
17 1.1 skrll * documentation and/or other materials provided with the distribution.
18 1.1 skrll *
19 1.1 skrll * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 1.1 skrll * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 1.1 skrll * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 1.1 skrll * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 1.1 skrll * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 1.1 skrll * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 1.1 skrll * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 1.1 skrll * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 1.1 skrll * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 1.1 skrll * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 1.1 skrll * POSSIBILITY OF SUCH DAMAGE.
30 1.1 skrll */
31 1.1 skrll
32 1.2 skrll #include "../../../external/gpl2/dts/dist/include/dt-bindings/clock/starfive-jh7100-audio.h"
33 1.2 skrll
34 1.2 skrll / {
35 1.2 skrll soc {
36 1.2 skrll audclk: clock-controller@10480000 {
37 1.2 skrll compatible = "starfive,jh7100-audclk";
38 1.2 skrll reg = <0x0 0x10480000 0x0 0x10000>;
39 1.2 skrll clocks = <&clkgen JH7100_CLK_AUDIO_SRC>,
40 1.2 skrll <&clkgen JH7100_CLK_AUDIO_12288>,
41 1.2 skrll <&clkgen JH7100_CLK_DOM7AHB_BUS>;
42 1.2 skrll clock-names = "audio_src", "audio_12288", "dom7ahb_bus";
43 1.2 skrll #clock-cells = <1>;
44 1.2 skrll };
45 1.2 skrll
46 1.2 skrll audrst: reset-controller@10490000 {
47 1.2 skrll compatible = "starfive,jh7100-audrst";
48 1.2 skrll reg = <0x0 0x10490000 0x0 0x10000>;
49 1.2 skrll #reset-cells = <1>;
50 1.2 skrll };
51 1.2 skrll
52 1.2 skrll sysaudio: syscon@104a0000 {
53 1.2 skrll compatible = "starfive,jh7100-sysaudio", "syscon";
54 1.2 skrll reg = <0x0 0x104a0000 0x0 0x10000>;
55 1.2 skrll };
56 1.2 skrll
57 1.2 skrll usb3: usb@104c0000 {
58 1.2 skrll compatible = "starfive,jh7100-usb";
59 1.2 skrll ranges = <0x0 0x0 0x104c0000 0x100000>;
60 1.2 skrll #address-cells = <1>;
61 1.2 skrll #size-cells = <1>;
62 1.2 skrll clocks = <&audclk JH7100_AUDCLK_USB_LPM>,
63 1.2 skrll <&audclk JH7100_AUDCLK_USB_STB>,
64 1.2 skrll <&clkgen JH7100_CLK_USB_AXI>,
65 1.2 skrll <&clkgen JH7100_CLK_USBNOC_AXI>;
66 1.2 skrll clock-names = "lpm", "stb", "axi", "nocaxi";
67 1.2 skrll resets = <&rstgen JH7100_RSTN_USB_AXI>,
68 1.2 skrll <&rstgen JH7100_RSTN_USBNOC_AXI>;
69 1.2 skrll reset-names = "axi", "nocaxi";
70 1.2 skrll starfive,syscon = <&sysaudio>;
71 1.2 skrll status = "disabled";
72 1.2 skrll
73 1.2 skrll usb_cdns3: usb@0 {
74 1.2 skrll compatible = "cdns,usb3";
75 1.2 skrll reg = <0x00000 0x10000>,
76 1.2 skrll <0x10000 0x10000>,
77 1.2 skrll <0x20000 0x10000>;
78 1.2 skrll reg-names = "otg", "xhci", "dev";
79 1.2 skrll interrupts = <44>, <52>, <43>;
80 1.2 skrll interrupt-names = "host", "peripheral", "otg";
81 1.2 skrll };
82 1.2 skrll };
83 1.2 skrll };
84 1.2 skrll };
85 1.2 skrll
86 1.2 skrll
87 1.1 skrll &sdio0 {
88 1.1 skrll max-frequency = <10000000>;
89 1.1 skrll };
90 1.1 skrll
91 1.1 skrll
92 1.1 skrll &sdio1 {
93 1.1 skrll max-frequency = <50000000>;
94 1.1 skrll };
95 1.1 skrll
96