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