xref: /linux/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2l.dts (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
1f1193c5cSNeil Armstrong// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2f1193c5cSNeil Armstrong/*
3f1193c5cSNeil Armstrong * Copyright (c) 2022 Dongjin Kim <tobetter@gmail.com>
4f1193c5cSNeil Armstrong */
5f1193c5cSNeil Armstrong
6f1193c5cSNeil Armstrong/dts-v1/;
7f1193c5cSNeil Armstrong
8f1193c5cSNeil Armstrong/* The Amlogic S922X Rev. C supports the same OPPs as the A311D variant */
9f1193c5cSNeil Armstrong#include "meson-g12b-a311d.dtsi"
10f1193c5cSNeil Armstrong#include "meson-g12b-odroid.dtsi"
11f1193c5cSNeil Armstrong
12f1193c5cSNeil Armstrong/ {
13f1193c5cSNeil Armstrong	compatible = "hardkernel,odroid-n2l", "amlogic,s922x", "amlogic,g12b";
14f1193c5cSNeil Armstrong	model = "Hardkernel ODROID-N2L";
15f1193c5cSNeil Armstrong
16f1193c5cSNeil Armstrong	sound {
17f1193c5cSNeil Armstrong		compatible = "amlogic,axg-sound-card";
18f1193c5cSNeil Armstrong		model = "ODROID-N2L";
19f1193c5cSNeil Armstrong		audio-aux-devs = <&tdmout_b>, <&tdmin_a>, <&tdmin_b>,
20f1193c5cSNeil Armstrong				 <&tdmin_c>, <&tdmin_lb>;
21f1193c5cSNeil Armstrong		audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
22f1193c5cSNeil Armstrong				"TDMOUT_B IN 1", "FRDDR_B OUT 1",
23f1193c5cSNeil Armstrong				"TDMOUT_B IN 2", "FRDDR_C OUT 1",
24f1193c5cSNeil Armstrong				"TDM_B Playback", "TDMOUT_B OUT",
25f1193c5cSNeil Armstrong				"TDMIN_A IN 4", "TDM_B Loopback",
26f1193c5cSNeil Armstrong				"TDMIN_B IN 4", "TDM_B Loopback",
27f1193c5cSNeil Armstrong				"TDMIN_C IN 4", "TDM_B Loopback",
28f1193c5cSNeil Armstrong				"TDMIN_LB IN 1", "TDM_B Loopback",
29f1193c5cSNeil Armstrong				"TODDR_A IN 0", "TDMIN_A OUT",
30f1193c5cSNeil Armstrong				"TODDR_B IN 0", "TDMIN_A OUT",
31f1193c5cSNeil Armstrong				"TODDR_C IN 0", "TDMIN_A OUT",
32f1193c5cSNeil Armstrong				"TODDR_A IN 1", "TDMIN_B OUT",
33f1193c5cSNeil Armstrong				"TODDR_B IN 1", "TDMIN_B OUT",
34f1193c5cSNeil Armstrong				"TODDR_C IN 1", "TDMIN_B OUT",
35f1193c5cSNeil Armstrong				"TODDR_A IN 2", "TDMIN_C OUT",
36f1193c5cSNeil Armstrong				"TODDR_B IN 2", "TDMIN_C OUT",
37f1193c5cSNeil Armstrong				"TODDR_C IN 2", "TDMIN_C OUT",
38f1193c5cSNeil Armstrong				"TODDR_A IN 6", "TDMIN_LB OUT",
39f1193c5cSNeil Armstrong				"TODDR_B IN 6", "TDMIN_LB OUT",
40f1193c5cSNeil Armstrong				"TODDR_C IN 6", "TDMIN_LB OUT";
41f1193c5cSNeil Armstrong
42*9b5d2511SNeil Armstrong		clocks = <&clkc CLKID_MPLL2>,
43*9b5d2511SNeil Armstrong			 <&clkc CLKID_MPLL0>,
44*9b5d2511SNeil Armstrong			 <&clkc CLKID_MPLL1>;
45*9b5d2511SNeil Armstrong
46f1193c5cSNeil Armstrong		assigned-clocks = <&clkc CLKID_MPLL2>,
47f1193c5cSNeil Armstrong				  <&clkc CLKID_MPLL0>,
48f1193c5cSNeil Armstrong				  <&clkc CLKID_MPLL1>;
49f1193c5cSNeil Armstrong		assigned-clock-parents = <0>, <0>, <0>;
50f1193c5cSNeil Armstrong		assigned-clock-rates = <294912000>,
51f1193c5cSNeil Armstrong				       <270950400>,
52f1193c5cSNeil Armstrong				       <393216000>;
53f1193c5cSNeil Armstrong
54f1193c5cSNeil Armstrong		dai-link-0 {
55f1193c5cSNeil Armstrong			sound-dai = <&frddr_a>;
56f1193c5cSNeil Armstrong		};
57f1193c5cSNeil Armstrong
58f1193c5cSNeil Armstrong		dai-link-1 {
59f1193c5cSNeil Armstrong			sound-dai = <&frddr_b>;
60f1193c5cSNeil Armstrong		};
61f1193c5cSNeil Armstrong
62f1193c5cSNeil Armstrong		dai-link-2 {
63f1193c5cSNeil Armstrong			sound-dai = <&frddr_c>;
64f1193c5cSNeil Armstrong		};
65f1193c5cSNeil Armstrong
66f1193c5cSNeil Armstrong		dai-link-3 {
67f1193c5cSNeil Armstrong			sound-dai = <&toddr_a>;
68f1193c5cSNeil Armstrong		};
69f1193c5cSNeil Armstrong
70f1193c5cSNeil Armstrong		dai-link-4 {
71f1193c5cSNeil Armstrong			sound-dai = <&toddr_b>;
72f1193c5cSNeil Armstrong		};
73f1193c5cSNeil Armstrong
74f1193c5cSNeil Armstrong		dai-link-5 {
75f1193c5cSNeil Armstrong			sound-dai = <&toddr_c>;
76f1193c5cSNeil Armstrong		};
77f1193c5cSNeil Armstrong
78f1193c5cSNeil Armstrong		/* 8ch hdmi interface */
79f1193c5cSNeil Armstrong		dai-link-6 {
80f1193c5cSNeil Armstrong			sound-dai = <&tdmif_b>;
81f1193c5cSNeil Armstrong			dai-format = "i2s";
82f1193c5cSNeil Armstrong			dai-tdm-slot-tx-mask-0 = <1 1>;
83f1193c5cSNeil Armstrong			dai-tdm-slot-tx-mask-1 = <1 1>;
84f1193c5cSNeil Armstrong			dai-tdm-slot-tx-mask-2 = <1 1>;
85f1193c5cSNeil Armstrong			dai-tdm-slot-tx-mask-3 = <1 1>;
86f1193c5cSNeil Armstrong			mclk-fs = <256>;
87f1193c5cSNeil Armstrong
88f1193c5cSNeil Armstrong			codec {
89f1193c5cSNeil Armstrong				sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
90f1193c5cSNeil Armstrong			};
91f1193c5cSNeil Armstrong		};
92f1193c5cSNeil Armstrong
93f1193c5cSNeil Armstrong		/* hdmi glue */
94f1193c5cSNeil Armstrong		dai-link-7 {
95f1193c5cSNeil Armstrong			sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
96f1193c5cSNeil Armstrong
97f1193c5cSNeil Armstrong			codec {
98f1193c5cSNeil Armstrong				sound-dai = <&hdmi_tx>;
99f1193c5cSNeil Armstrong			};
100f1193c5cSNeil Armstrong		};
101f1193c5cSNeil Armstrong	};
102f1193c5cSNeil Armstrong};
103f1193c5cSNeil Armstrong
104f1193c5cSNeil Armstrong&eth_phy {
105f1193c5cSNeil Armstrong	status = "disabled";
106f1193c5cSNeil Armstrong};
107f1193c5cSNeil Armstrong
108f1193c5cSNeil Armstrong&vddcpu_a {
109f1193c5cSNeil Armstrong	regulator-min-microvolt = <680000>;
110f1193c5cSNeil Armstrong	regulator-max-microvolt = <1040000>;
111f1193c5cSNeil Armstrong
112f1193c5cSNeil Armstrong	pwms = <&pwm_ab 0 1500 0>;
113f1193c5cSNeil Armstrong};
114f1193c5cSNeil Armstrong
115f1193c5cSNeil Armstrong&vddcpu_b {
116f1193c5cSNeil Armstrong	regulator-min-microvolt = <680000>;
117f1193c5cSNeil Armstrong	regulator-max-microvolt = <1040000>;
118f1193c5cSNeil Armstrong
119f1193c5cSNeil Armstrong	pwms = <&pwm_AO_cd 1 1500 0>;
120f1193c5cSNeil Armstrong};
121f1193c5cSNeil Armstrong
122f1193c5cSNeil Armstrong&usb2_phy0 {
123f1193c5cSNeil Armstrong	phy-supply = <&usb_pwr_en>;
124f1193c5cSNeil Armstrong};
125f1193c5cSNeil Armstrong
126f1193c5cSNeil Armstrong&usb2_phy1 {
127f1193c5cSNeil Armstrong	phy-supply = <&usb_pwr_en>;
128f1193c5cSNeil Armstrong};
129