xref: /freebsd-src/sys/contrib/device-tree/src/arm/allwinner/sun8i-v3.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (C) 2019 Icenowy Zheng <icenowy@aosc.io>
4*f126890aSEmmanuel Vadot * Copyright (C) 2021 Tobias Schramm <t.schramm@manjaro.org>
5*f126890aSEmmanuel Vadot */
6*f126890aSEmmanuel Vadot
7*f126890aSEmmanuel Vadot#include "sun8i-v3s.dtsi"
8*f126890aSEmmanuel Vadot
9*f126890aSEmmanuel Vadot/ {
10*f126890aSEmmanuel Vadot	soc {
11*f126890aSEmmanuel Vadot		i2s0: i2s@1c22000 {
12*f126890aSEmmanuel Vadot			#sound-dai-cells = <0>;
13*f126890aSEmmanuel Vadot			compatible = "allwinner,sun8i-v3-i2s",
14*f126890aSEmmanuel Vadot				     "allwinner,sun8i-h3-i2s";
15*f126890aSEmmanuel Vadot			reg = <0x01c22000 0x400>;
16*f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
17*f126890aSEmmanuel Vadot			clocks = <&ccu CLK_BUS_I2S0>, <&ccu CLK_I2S0>;
18*f126890aSEmmanuel Vadot			clock-names = "apb", "mod";
19*f126890aSEmmanuel Vadot			dmas = <&dma 3>, <&dma 3>;
20*f126890aSEmmanuel Vadot			dma-names = "rx", "tx";
21*f126890aSEmmanuel Vadot			pinctrl-names = "default";
22*f126890aSEmmanuel Vadot			pinctrl-0 = <&i2s0_pins>;
23*f126890aSEmmanuel Vadot			resets = <&ccu RST_BUS_I2S0>;
24*f126890aSEmmanuel Vadot			status = "disabled";
25*f126890aSEmmanuel Vadot		};
26*f126890aSEmmanuel Vadot	};
27*f126890aSEmmanuel Vadot};
28*f126890aSEmmanuel Vadot
29*f126890aSEmmanuel Vadot&ccu {
30*f126890aSEmmanuel Vadot	compatible = "allwinner,sun8i-v3-ccu";
31*f126890aSEmmanuel Vadot};
32*f126890aSEmmanuel Vadot
33*f126890aSEmmanuel Vadot&codec_analog {
34*f126890aSEmmanuel Vadot	compatible = "allwinner,sun8i-v3-codec-analog",
35*f126890aSEmmanuel Vadot		     "allwinner,sun8i-h3-codec-analog";
36*f126890aSEmmanuel Vadot};
37*f126890aSEmmanuel Vadot
38*f126890aSEmmanuel Vadot&emac {
39*f126890aSEmmanuel Vadot	/delete-property/ phy-handle;
40*f126890aSEmmanuel Vadot	/delete-property/ phy-mode;
41*f126890aSEmmanuel Vadot};
42*f126890aSEmmanuel Vadot
43*f126890aSEmmanuel Vadot&mdio_mux {
44*f126890aSEmmanuel Vadot	external_mdio: mdio@2 {
45*f126890aSEmmanuel Vadot		reg = <2>;
46*f126890aSEmmanuel Vadot		#address-cells = <1>;
47*f126890aSEmmanuel Vadot		#size-cells = <0>;
48*f126890aSEmmanuel Vadot	};
49*f126890aSEmmanuel Vadot};
50*f126890aSEmmanuel Vadot
51*f126890aSEmmanuel Vadot&pio {
52*f126890aSEmmanuel Vadot	compatible = "allwinner,sun8i-v3-pinctrl";
53*f126890aSEmmanuel Vadot
54*f126890aSEmmanuel Vadot	i2s0_pins: i2s0-pins {
55*f126890aSEmmanuel Vadot		pins = "PG10", "PG11", "PG12", "PG13";
56*f126890aSEmmanuel Vadot		function = "i2s";
57*f126890aSEmmanuel Vadot	};
58*f126890aSEmmanuel Vadot
59*f126890aSEmmanuel Vadot	uart1_pg_pins: uart1-pg-pins {
60*f126890aSEmmanuel Vadot		pins = "PG6", "PG7";
61*f126890aSEmmanuel Vadot		function = "uart1";
62*f126890aSEmmanuel Vadot	};
63*f126890aSEmmanuel Vadot};
64