xref: /freebsd-src/sys/contrib/device-tree/src/riscv/allwinner/sun20i-d1.dtsi (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
1*84943d6fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2cb7aa33aSEmmanuel Vadot// Copyright (C) 2021-2022 Samuel Holland <samuel@sholland.org>
3cb7aa33aSEmmanuel Vadot
4cb7aa33aSEmmanuel Vadot#include "sun20i-d1s.dtsi"
5cb7aa33aSEmmanuel Vadot#include "sunxi-d1-t113.dtsi"
6cb7aa33aSEmmanuel Vadot
7cb7aa33aSEmmanuel Vadot/ {
8cb7aa33aSEmmanuel Vadot	soc {
9cb7aa33aSEmmanuel Vadot		lradc: keys@2009800 {
10cb7aa33aSEmmanuel Vadot			compatible = "allwinner,sun20i-d1-lradc",
11cb7aa33aSEmmanuel Vadot				     "allwinner,sun50i-r329-lradc";
12cb7aa33aSEmmanuel Vadot			reg = <0x2009800 0x400>;
13cb7aa33aSEmmanuel Vadot			interrupts = <SOC_PERIPHERAL_IRQ(61) IRQ_TYPE_LEVEL_HIGH>;
14cb7aa33aSEmmanuel Vadot			clocks = <&ccu CLK_BUS_LRADC>;
15cb7aa33aSEmmanuel Vadot			resets = <&ccu RST_BUS_LRADC>;
16cb7aa33aSEmmanuel Vadot			status = "disabled";
17cb7aa33aSEmmanuel Vadot		};
18cb7aa33aSEmmanuel Vadot
19cb7aa33aSEmmanuel Vadot		i2s0: i2s@2032000 {
20cb7aa33aSEmmanuel Vadot			compatible = "allwinner,sun20i-d1-i2s",
21cb7aa33aSEmmanuel Vadot				     "allwinner,sun50i-r329-i2s";
22cb7aa33aSEmmanuel Vadot			reg = <0x2032000 0x1000>;
23cb7aa33aSEmmanuel Vadot			interrupts = <SOC_PERIPHERAL_IRQ(26) IRQ_TYPE_LEVEL_HIGH>;
24cb7aa33aSEmmanuel Vadot			clocks = <&ccu CLK_BUS_I2S0>,
25cb7aa33aSEmmanuel Vadot				 <&ccu CLK_I2S0>;
26cb7aa33aSEmmanuel Vadot			clock-names = "apb", "mod";
27cb7aa33aSEmmanuel Vadot			resets = <&ccu RST_BUS_I2S0>;
28cb7aa33aSEmmanuel Vadot			dmas = <&dma 3>, <&dma 3>;
29cb7aa33aSEmmanuel Vadot			dma-names = "rx", "tx";
30cb7aa33aSEmmanuel Vadot			status = "disabled";
31cb7aa33aSEmmanuel Vadot			#sound-dai-cells = <0>;
32cb7aa33aSEmmanuel Vadot		};
33cb7aa33aSEmmanuel Vadot	};
34cb7aa33aSEmmanuel Vadot};
35cb7aa33aSEmmanuel Vadot
36cb7aa33aSEmmanuel Vadot&pio {
37cb7aa33aSEmmanuel Vadot	/omit-if-no-ref/
38cb7aa33aSEmmanuel Vadot	dmic_pb11_d0_pin: dmic-pb11-d0-pin {
39cb7aa33aSEmmanuel Vadot		pins = "PB11";
40cb7aa33aSEmmanuel Vadot		function = "dmic";
41cb7aa33aSEmmanuel Vadot	};
42cb7aa33aSEmmanuel Vadot
43cb7aa33aSEmmanuel Vadot	/omit-if-no-ref/
44cb7aa33aSEmmanuel Vadot	dmic_pe17_clk_pin: dmic-pe17-clk-pin {
45cb7aa33aSEmmanuel Vadot		pins = "PE17";
46cb7aa33aSEmmanuel Vadot		function = "dmic";
47cb7aa33aSEmmanuel Vadot	};
48cb7aa33aSEmmanuel Vadot
49cb7aa33aSEmmanuel Vadot	/omit-if-no-ref/
50cb7aa33aSEmmanuel Vadot	i2c0_pb10_pins: i2c0-pb10-pins {
51cb7aa33aSEmmanuel Vadot		pins = "PB10", "PB11";
52cb7aa33aSEmmanuel Vadot		function = "i2c0";
53cb7aa33aSEmmanuel Vadot	};
54cb7aa33aSEmmanuel Vadot
55cb7aa33aSEmmanuel Vadot	/omit-if-no-ref/
56cb7aa33aSEmmanuel Vadot	i2c2_pb0_pins: i2c2-pb0-pins {
57cb7aa33aSEmmanuel Vadot		pins = "PB0", "PB1";
58cb7aa33aSEmmanuel Vadot		function = "i2c2";
59cb7aa33aSEmmanuel Vadot	};
60cb7aa33aSEmmanuel Vadot
61cb7aa33aSEmmanuel Vadot	/omit-if-no-ref/
62cb7aa33aSEmmanuel Vadot	uart0_pb8_pins: uart0-pb8-pins {
63cb7aa33aSEmmanuel Vadot		pins = "PB8", "PB9";
64cb7aa33aSEmmanuel Vadot		function = "uart0";
65cb7aa33aSEmmanuel Vadot	};
66cb7aa33aSEmmanuel Vadot};
67