xref: /linux/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi (revision 6a573c4e0f41c3e7c8717cc9e1b338ae1a82be17)
115abee8aSCarlo Caione/*
215abee8aSCarlo Caione * Copyright (c) 2016 Endless Computers, Inc.
315abee8aSCarlo Caione * Author: Carlo Caione <carlo@endlessm.com>
415abee8aSCarlo Caione *
515abee8aSCarlo Caione * This file is dual-licensed: you can use it either under the terms
615abee8aSCarlo Caione * of the GPL or the X11 license, at your option. Note that this dual
715abee8aSCarlo Caione * licensing only applies to this file, and not this project as a
815abee8aSCarlo Caione * whole.
915abee8aSCarlo Caione *
1015abee8aSCarlo Caione *  a) This library is free software; you can redistribute it and/or
1115abee8aSCarlo Caione *     modify it under the terms of the GNU General Public License as
1215abee8aSCarlo Caione *     published by the Free Software Foundation; either version 2 of the
1315abee8aSCarlo Caione *     License, or (at your option) any later version.
1415abee8aSCarlo Caione *
1515abee8aSCarlo Caione *     This library is distributed in the hope that it will be useful,
1615abee8aSCarlo Caione *     but WITHOUT ANY WARRANTY; without even the implied warranty of
1715abee8aSCarlo Caione *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1815abee8aSCarlo Caione *     GNU General Public License for more details.
1915abee8aSCarlo Caione *
2015abee8aSCarlo Caione * Or, alternatively,
2115abee8aSCarlo Caione *
2215abee8aSCarlo Caione *  b) Permission is hereby granted, free of charge, to any person
2315abee8aSCarlo Caione *     obtaining a copy of this software and associated documentation
2415abee8aSCarlo Caione *     files (the "Software"), to deal in the Software without
2515abee8aSCarlo Caione *     restriction, including without limitation the rights to use,
2615abee8aSCarlo Caione *     copy, modify, merge, publish, distribute, sublicense, and/or
2715abee8aSCarlo Caione *     sell copies of the Software, and to permit persons to whom the
2815abee8aSCarlo Caione *     Software is furnished to do so, subject to the following
2915abee8aSCarlo Caione *     conditions:
3015abee8aSCarlo Caione *
3115abee8aSCarlo Caione *     The above copyright notice and this permission notice shall be
3215abee8aSCarlo Caione *     included in all copies or substantial portions of the Software.
3315abee8aSCarlo Caione *
3415abee8aSCarlo Caione *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
3515abee8aSCarlo Caione *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
3615abee8aSCarlo Caione *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
3715abee8aSCarlo Caione *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
3815abee8aSCarlo Caione *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
3915abee8aSCarlo Caione *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
4015abee8aSCarlo Caione *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
4115abee8aSCarlo Caione *     OTHER DEALINGS IN THE SOFTWARE.
4215abee8aSCarlo Caione */
4315abee8aSCarlo Caione
4415abee8aSCarlo Caione#include "meson-gx.dtsi"
45973fbd55SNeil Armstrong#include <dt-bindings/clock/gxbb-clkc.h>
461cf3df8aSKevin Hilman#include <dt-bindings/gpio/meson-gxl-gpio.h>
476939db7eSNeil Armstrong#include <dt-bindings/reset/amlogic,meson-gxbb-reset.h>
4815abee8aSCarlo Caione
4915abee8aSCarlo Caione/ {
5015abee8aSCarlo Caione	compatible = "amlogic,meson-gxl";
5115abee8aSCarlo Caione};
52fb0fe922SNeil Armstrong
53e9e27c64SNeil Armstrong&ethmac {
54e9e27c64SNeil Armstrong	reg = <0x0 0xc9410000 0x0 0x10000
55e9e27c64SNeil Armstrong	       0x0 0xc8834540 0x0 0x4>;
56e9e27c64SNeil Armstrong
57e9e27c64SNeil Armstrong	clocks = <&clkc CLKID_ETH>,
58e9e27c64SNeil Armstrong		 <&clkc CLKID_FCLK_DIV2>,
59e9e27c64SNeil Armstrong		 <&clkc CLKID_MPLL2>;
60e9e27c64SNeil Armstrong	clock-names = "stmmaceth", "clkin0", "clkin1";
61e9e27c64SNeil Armstrong
62e9e27c64SNeil Armstrong	mdio0: mdio {
63e9e27c64SNeil Armstrong		#address-cells = <1>;
64e9e27c64SNeil Armstrong		#size-cells = <0>;
65e9e27c64SNeil Armstrong		compatible = "snps,dwmac-mdio";
66e9e27c64SNeil Armstrong	};
67e9e27c64SNeil Armstrong};
68e9e27c64SNeil Armstrong
69fb0fe922SNeil Armstrong&aobus {
70fb0fe922SNeil Armstrong	pinctrl_aobus: pinctrl@14 {
71fb0fe922SNeil Armstrong		compatible = "amlogic,meson-gxl-aobus-pinctrl";
72fb0fe922SNeil Armstrong		#address-cells = <2>;
73fb0fe922SNeil Armstrong		#size-cells = <2>;
74fb0fe922SNeil Armstrong		ranges;
75fb0fe922SNeil Armstrong
76fb0fe922SNeil Armstrong		gpio_ao: bank@14 {
77fb0fe922SNeil Armstrong			reg = <0x0 0x00014 0x0 0x8>,
78fb0fe922SNeil Armstrong			      <0x0 0x0002c 0x0 0x4>,
79fb0fe922SNeil Armstrong			      <0x0 0x00024 0x0 0x8>;
80fb0fe922SNeil Armstrong			reg-names = "mux", "pull", "gpio";
81fb0fe922SNeil Armstrong			gpio-controller;
82fb0fe922SNeil Armstrong			#gpio-cells = <2>;
8384412e4eSNeil Armstrong			gpio-ranges = <&pinctrl_aobus 0 0 14>;
84fb0fe922SNeil Armstrong		};
85fb0fe922SNeil Armstrong
86fb0fe922SNeil Armstrong		uart_ao_a_pins: uart_ao_a {
87fb0fe922SNeil Armstrong			mux {
88fb0fe922SNeil Armstrong				groups = "uart_tx_ao_a", "uart_rx_ao_a";
89fb0fe922SNeil Armstrong				function = "uart_ao";
90fb0fe922SNeil Armstrong			};
91fb0fe922SNeil Armstrong		};
92fb0fe922SNeil Armstrong
93261e1d5cSMartin Blumenstingl		uart_ao_a_cts_rts_pins: uart_ao_a_cts_rts {
94261e1d5cSMartin Blumenstingl			mux {
95261e1d5cSMartin Blumenstingl				groups = "uart_cts_ao_a",
96261e1d5cSMartin Blumenstingl				       "uart_rts_ao_a";
97261e1d5cSMartin Blumenstingl				function = "uart_ao";
98261e1d5cSMartin Blumenstingl			};
99261e1d5cSMartin Blumenstingl		};
100261e1d5cSMartin Blumenstingl
101890a96a2SMartin Blumenstingl		uart_ao_b_pins: uart_ao_b {
102890a96a2SMartin Blumenstingl			mux {
103890a96a2SMartin Blumenstingl				groups = "uart_tx_ao_b", "uart_rx_ao_b";
104890a96a2SMartin Blumenstingl				function = "uart_ao_b";
105890a96a2SMartin Blumenstingl			};
106890a96a2SMartin Blumenstingl		};
107890a96a2SMartin Blumenstingl
108ca02e3f9SNeil Armstrong		uart_ao_b_0_1_pins: uart_ao_b_0_1 {
109ca02e3f9SNeil Armstrong			mux {
110ca02e3f9SNeil Armstrong				groups = "uart_tx_ao_b_0", "uart_rx_ao_b_1";
111ca02e3f9SNeil Armstrong				function = "uart_ao_b";
112ca02e3f9SNeil Armstrong			};
113ca02e3f9SNeil Armstrong		};
114ca02e3f9SNeil Armstrong
115261e1d5cSMartin Blumenstingl		uart_ao_b_cts_rts_pins: uart_ao_b_cts_rts {
116261e1d5cSMartin Blumenstingl			mux {
117261e1d5cSMartin Blumenstingl				groups = "uart_cts_ao_b",
118261e1d5cSMartin Blumenstingl				       "uart_rts_ao_b";
119261e1d5cSMartin Blumenstingl				function = "uart_ao_b";
120261e1d5cSMartin Blumenstingl			};
121261e1d5cSMartin Blumenstingl		};
122261e1d5cSMartin Blumenstingl
123fb0fe922SNeil Armstrong		remote_input_ao_pins: remote_input_ao {
124fb0fe922SNeil Armstrong			mux {
125fb0fe922SNeil Armstrong				groups = "remote_input_ao";
126fb0fe922SNeil Armstrong				function = "remote_input_ao";
127fb0fe922SNeil Armstrong			};
128fb0fe922SNeil Armstrong		};
129249a2243SMartin Blumenstingl
130ca02e3f9SNeil Armstrong		i2c_ao_pins: i2c_ao {
131ca02e3f9SNeil Armstrong			mux {
132ca02e3f9SNeil Armstrong				groups = "i2c_sck_ao",
133ca02e3f9SNeil Armstrong				       "i2c_sda_ao";
134ca02e3f9SNeil Armstrong				function = "i2c_ao";
135ca02e3f9SNeil Armstrong			};
136ca02e3f9SNeil Armstrong		};
137ca02e3f9SNeil Armstrong
138e98fd134SMartin Blumenstingl		pwm_ao_a_3_pins: pwm_ao_a_3 {
139e98fd134SMartin Blumenstingl			mux {
140e98fd134SMartin Blumenstingl				groups = "pwm_ao_a_3";
141e98fd134SMartin Blumenstingl				function = "pwm_ao_a";
142e98fd134SMartin Blumenstingl			};
143e98fd134SMartin Blumenstingl		};
144e98fd134SMartin Blumenstingl
145e98fd134SMartin Blumenstingl		pwm_ao_a_8_pins: pwm_ao_a_8 {
146e98fd134SMartin Blumenstingl			mux {
147e98fd134SMartin Blumenstingl				groups = "pwm_ao_a_8";
148e98fd134SMartin Blumenstingl				function = "pwm_ao_a";
149e98fd134SMartin Blumenstingl			};
150e98fd134SMartin Blumenstingl		};
151e98fd134SMartin Blumenstingl
152249a2243SMartin Blumenstingl		pwm_ao_b_pins: pwm_ao_b {
153249a2243SMartin Blumenstingl			mux {
154249a2243SMartin Blumenstingl				groups = "pwm_ao_b";
155249a2243SMartin Blumenstingl				function = "pwm_ao_b";
156249a2243SMartin Blumenstingl			};
157249a2243SMartin Blumenstingl		};
158ca02e3f9SNeil Armstrong
159ca02e3f9SNeil Armstrong		pwm_ao_b_6_pins: pwm_ao_b_6 {
160ca02e3f9SNeil Armstrong			mux {
161ca02e3f9SNeil Armstrong				groups = "pwm_ao_b_6";
162ca02e3f9SNeil Armstrong				function = "pwm_ao_b";
163ca02e3f9SNeil Armstrong			};
164ca02e3f9SNeil Armstrong		};
165c16fe9a1Sjbrunet
166c16fe9a1Sjbrunet		i2s_out_ch23_ao_pins: i2s_out_ch23_ao {
167c16fe9a1Sjbrunet			mux {
168c16fe9a1Sjbrunet				groups = "i2s_out_ch23_ao";
169c16fe9a1Sjbrunet				function = "i2s_out_ao";
170c16fe9a1Sjbrunet			};
171c16fe9a1Sjbrunet		};
172c16fe9a1Sjbrunet
173c16fe9a1Sjbrunet		i2s_out_ch45_ao_pins: i2s_out_ch45_ao {
174c16fe9a1Sjbrunet			mux {
175c16fe9a1Sjbrunet				groups = "i2s_out_ch45_ao";
176c16fe9a1Sjbrunet				function = "i2s_out_ao";
177c16fe9a1Sjbrunet			};
178c16fe9a1Sjbrunet		};
1799503062dSjbrunet
1809503062dSjbrunet		spdif_out_ao_6_pins: spdif_out_ao_6 {
1819503062dSjbrunet			mux {
1829503062dSjbrunet				groups = "spdif_out_ao_6";
1839503062dSjbrunet				function = "spdif_out_ao";
1849503062dSjbrunet			};
1859503062dSjbrunet		};
1869503062dSjbrunet
1879503062dSjbrunet		spdif_out_ao_9_pins: spdif_out_ao_9 {
1889503062dSjbrunet			mux {
1899503062dSjbrunet				groups = "spdif_out_ao_9";
1909503062dSjbrunet				function = "spdif_out_ao";
1919503062dSjbrunet			};
1929503062dSjbrunet		};
193fb0fe922SNeil Armstrong	};
194fb0fe922SNeil Armstrong};
195fb0fe922SNeil Armstrong
196*6a573c4eSAndreas Färber&hdmi_tx {
197*6a573c4eSAndreas Färber	compatible = "amlogic,meson-gxl-dw-hdmi", "amlogic,meson-gx-dw-hdmi";
198*6a573c4eSAndreas Färber	resets = <&reset RESET_HDMITX_CAPB3>,
199*6a573c4eSAndreas Färber		 <&reset RESET_HDMI_SYSTEM_RESET>,
200*6a573c4eSAndreas Färber		 <&reset RESET_HDMI_TX>;
201*6a573c4eSAndreas Färber	reset-names = "hdmitx_apb", "hdmitx", "hdmitx_phy";
202*6a573c4eSAndreas Färber	clocks = <&clkc CLKID_HDMI_PCLK>,
203*6a573c4eSAndreas Färber		 <&clkc CLKID_CLK81>,
204*6a573c4eSAndreas Färber		 <&clkc CLKID_GCLK_VENCI_INT0>;
205*6a573c4eSAndreas Färber	clock-names = "isfr", "iahb", "venci";
206*6a573c4eSAndreas Färber};
207*6a573c4eSAndreas Färber
208*6a573c4eSAndreas Färber&hiubus {
209*6a573c4eSAndreas Färber	clkc: clock-controller@0 {
210*6a573c4eSAndreas Färber		compatible = "amlogic,gxl-clkc", "amlogic,gxbb-clkc";
211*6a573c4eSAndreas Färber		#clock-cells = <1>;
212*6a573c4eSAndreas Färber		reg = <0x0 0x0 0x0 0x3db>;
213*6a573c4eSAndreas Färber	};
214*6a573c4eSAndreas Färber};
215*6a573c4eSAndreas Färber
216*6a573c4eSAndreas Färber&i2c_A {
217*6a573c4eSAndreas Färber	clocks = <&clkc CLKID_I2C>;
218*6a573c4eSAndreas Färber};
219*6a573c4eSAndreas Färber
220*6a573c4eSAndreas Färber&i2c_AO {
221*6a573c4eSAndreas Färber	clocks = <&clkc CLKID_AO_I2C>;
222*6a573c4eSAndreas Färber};
223*6a573c4eSAndreas Färber
224*6a573c4eSAndreas Färber&i2c_B {
225*6a573c4eSAndreas Färber	clocks = <&clkc CLKID_I2C>;
226*6a573c4eSAndreas Färber};
227*6a573c4eSAndreas Färber
228*6a573c4eSAndreas Färber&i2c_C {
229*6a573c4eSAndreas Färber	clocks = <&clkc CLKID_I2C>;
230*6a573c4eSAndreas Färber};
231*6a573c4eSAndreas Färber
232fb0fe922SNeil Armstrong&periphs {
233fb0fe922SNeil Armstrong	pinctrl_periphs: pinctrl@4b0 {
234fb0fe922SNeil Armstrong		compatible = "amlogic,meson-gxl-periphs-pinctrl";
235fb0fe922SNeil Armstrong		#address-cells = <2>;
236fb0fe922SNeil Armstrong		#size-cells = <2>;
237fb0fe922SNeil Armstrong		ranges;
238fb0fe922SNeil Armstrong
239fb0fe922SNeil Armstrong		gpio: bank@4b0 {
240fb0fe922SNeil Armstrong			reg = <0x0 0x004b0 0x0 0x28>,
241fb0fe922SNeil Armstrong			      <0x0 0x004e8 0x0 0x14>,
242fb0fe922SNeil Armstrong			      <0x0 0x00120 0x0 0x14>,
243fb0fe922SNeil Armstrong			      <0x0 0x00430 0x0 0x40>;
244fb0fe922SNeil Armstrong			reg-names = "mux", "pull", "pull-enable", "gpio";
245fb0fe922SNeil Armstrong			gpio-controller;
246fb0fe922SNeil Armstrong			#gpio-cells = <2>;
24784412e4eSNeil Armstrong			gpio-ranges = <&pinctrl_periphs 0 14 101>;
248fb0fe922SNeil Armstrong		};
249fb0fe922SNeil Armstrong
250fb0fe922SNeil Armstrong		emmc_pins: emmc {
251fb0fe922SNeil Armstrong			mux {
252fb0fe922SNeil Armstrong				groups = "emmc_nand_d07",
253fb0fe922SNeil Armstrong				       "emmc_cmd",
254fb0fe922SNeil Armstrong				       "emmc_clk",
255fb0fe922SNeil Armstrong				       "emmc_ds";
256fb0fe922SNeil Armstrong				function = "emmc";
257fb0fe922SNeil Armstrong			};
258fb0fe922SNeil Armstrong		};
259fb0fe922SNeil Armstrong
260ca02e3f9SNeil Armstrong		nor_pins: nor {
261ca02e3f9SNeil Armstrong			mux {
262ca02e3f9SNeil Armstrong				groups = "nor_d",
263ca02e3f9SNeil Armstrong				       "nor_q",
264ca02e3f9SNeil Armstrong				       "nor_c",
265ca02e3f9SNeil Armstrong				       "nor_cs";
266ca02e3f9SNeil Armstrong				function = "nor";
267ca02e3f9SNeil Armstrong			};
268ca02e3f9SNeil Armstrong		};
269ca02e3f9SNeil Armstrong
270fb0fe922SNeil Armstrong		sdcard_pins: sdcard {
271fb0fe922SNeil Armstrong			mux {
272fb0fe922SNeil Armstrong				groups = "sdcard_d0",
273fb0fe922SNeil Armstrong				       "sdcard_d1",
274fb0fe922SNeil Armstrong				       "sdcard_d2",
275fb0fe922SNeil Armstrong				       "sdcard_d3",
276fb0fe922SNeil Armstrong				       "sdcard_cmd",
277fb0fe922SNeil Armstrong				       "sdcard_clk";
278fb0fe922SNeil Armstrong				function = "sdcard";
279fb0fe922SNeil Armstrong			};
280fb0fe922SNeil Armstrong		};
281fb0fe922SNeil Armstrong
282fb0fe922SNeil Armstrong		sdio_pins: sdio {
283fb0fe922SNeil Armstrong			mux {
284fb0fe922SNeil Armstrong				groups = "sdio_d0",
285fb0fe922SNeil Armstrong				       "sdio_d1",
286fb0fe922SNeil Armstrong				       "sdio_d2",
287fb0fe922SNeil Armstrong				       "sdio_d3",
288fb0fe922SNeil Armstrong				       "sdio_cmd",
289fb0fe922SNeil Armstrong				       "sdio_clk";
290fb0fe922SNeil Armstrong				function = "sdio";
291fb0fe922SNeil Armstrong			};
292fb0fe922SNeil Armstrong		};
293fb0fe922SNeil Armstrong
294fb0fe922SNeil Armstrong		sdio_irq_pins: sdio_irq {
295fb0fe922SNeil Armstrong			mux {
296fb0fe922SNeil Armstrong				groups = "sdio_irq";
297fb0fe922SNeil Armstrong				function = "sdio";
298fb0fe922SNeil Armstrong			};
299fb0fe922SNeil Armstrong		};
300fb0fe922SNeil Armstrong
301fb0fe922SNeil Armstrong		uart_a_pins: uart_a {
302fb0fe922SNeil Armstrong			mux {
303fb0fe922SNeil Armstrong				groups = "uart_tx_a",
304fb0fe922SNeil Armstrong				       "uart_rx_a";
305fb0fe922SNeil Armstrong				function = "uart_a";
306fb0fe922SNeil Armstrong			};
307fb0fe922SNeil Armstrong		};
308fb0fe922SNeil Armstrong
309261e1d5cSMartin Blumenstingl		uart_a_cts_rts_pins: uart_a_cts_rts {
310261e1d5cSMartin Blumenstingl			mux {
311261e1d5cSMartin Blumenstingl				groups = "uart_cts_a",
312261e1d5cSMartin Blumenstingl				       "uart_rts_a";
313261e1d5cSMartin Blumenstingl				function = "uart_a";
314261e1d5cSMartin Blumenstingl			};
315261e1d5cSMartin Blumenstingl		};
316261e1d5cSMartin Blumenstingl
317fb0fe922SNeil Armstrong		uart_b_pins: uart_b {
318fb0fe922SNeil Armstrong			mux {
319fb0fe922SNeil Armstrong				groups = "uart_tx_b",
320fb0fe922SNeil Armstrong				       "uart_rx_b";
321fb0fe922SNeil Armstrong				function = "uart_b";
322fb0fe922SNeil Armstrong			};
323fb0fe922SNeil Armstrong		};
324fb0fe922SNeil Armstrong
325261e1d5cSMartin Blumenstingl		uart_b_cts_rts_pins: uart_b_cts_rts {
326261e1d5cSMartin Blumenstingl			mux {
327261e1d5cSMartin Blumenstingl				groups = "uart_cts_b",
328261e1d5cSMartin Blumenstingl				       "uart_rts_b";
329261e1d5cSMartin Blumenstingl				function = "uart_b";
330261e1d5cSMartin Blumenstingl			};
331261e1d5cSMartin Blumenstingl		};
332261e1d5cSMartin Blumenstingl
333fb0fe922SNeil Armstrong		uart_c_pins: uart_c {
334fb0fe922SNeil Armstrong			mux {
335fb0fe922SNeil Armstrong				groups = "uart_tx_c",
336fb0fe922SNeil Armstrong				       "uart_rx_c";
337fb0fe922SNeil Armstrong				function = "uart_c";
338fb0fe922SNeil Armstrong			};
339fb0fe922SNeil Armstrong		};
340fb0fe922SNeil Armstrong
341261e1d5cSMartin Blumenstingl		uart_c_cts_rts_pins: uart_c_cts_rts {
342261e1d5cSMartin Blumenstingl			mux {
343261e1d5cSMartin Blumenstingl				groups = "uart_cts_c",
344261e1d5cSMartin Blumenstingl				       "uart_rts_c";
345261e1d5cSMartin Blumenstingl				function = "uart_c";
346261e1d5cSMartin Blumenstingl			};
347261e1d5cSMartin Blumenstingl		};
348261e1d5cSMartin Blumenstingl
349fb0fe922SNeil Armstrong		i2c_a_pins: i2c_a {
350fb0fe922SNeil Armstrong			mux {
351fb0fe922SNeil Armstrong				groups = "i2c_sck_a",
352fb0fe922SNeil Armstrong				     "i2c_sda_a";
353fb0fe922SNeil Armstrong				function = "i2c_a";
354fb0fe922SNeil Armstrong			};
355fb0fe922SNeil Armstrong		};
356fb0fe922SNeil Armstrong
357fb0fe922SNeil Armstrong		i2c_b_pins: i2c_b {
358fb0fe922SNeil Armstrong			mux {
359fb0fe922SNeil Armstrong				groups = "i2c_sck_b",
360fb0fe922SNeil Armstrong				      "i2c_sda_b";
361fb0fe922SNeil Armstrong				function = "i2c_b";
362fb0fe922SNeil Armstrong			};
363fb0fe922SNeil Armstrong		};
364fb0fe922SNeil Armstrong
365fb0fe922SNeil Armstrong		i2c_c_pins: i2c_c {
366fb0fe922SNeil Armstrong			mux {
367fb0fe922SNeil Armstrong				groups = "i2c_sck_c",
368fb0fe922SNeil Armstrong				      "i2c_sda_c";
369fb0fe922SNeil Armstrong				function = "i2c_c";
370fb0fe922SNeil Armstrong			};
371fb0fe922SNeil Armstrong		};
372fb0fe922SNeil Armstrong
373fb0fe922SNeil Armstrong		eth_pins: eth_c {
374fb0fe922SNeil Armstrong			mux {
375fb0fe922SNeil Armstrong				groups = "eth_mdio",
376fb0fe922SNeil Armstrong				       "eth_mdc",
377fb0fe922SNeil Armstrong				       "eth_clk_rx_clk",
378fb0fe922SNeil Armstrong				       "eth_rx_dv",
379fb0fe922SNeil Armstrong				       "eth_rxd0",
380fb0fe922SNeil Armstrong				       "eth_rxd1",
381fb0fe922SNeil Armstrong				       "eth_rxd2",
382fb0fe922SNeil Armstrong				       "eth_rxd3",
383fb0fe922SNeil Armstrong				       "eth_rgmii_tx_clk",
384fb0fe922SNeil Armstrong				       "eth_tx_en",
385fb0fe922SNeil Armstrong				       "eth_txd0",
386fb0fe922SNeil Armstrong				       "eth_txd1",
387fb0fe922SNeil Armstrong				       "eth_txd2",
388fb0fe922SNeil Armstrong				       "eth_txd3";
389fb0fe922SNeil Armstrong				function = "eth";
390fb0fe922SNeil Armstrong			};
391fb0fe922SNeil Armstrong		};
392fb0fe922SNeil Armstrong
393e98fd134SMartin Blumenstingl		pwm_a_pins: pwm_a {
394e98fd134SMartin Blumenstingl			mux {
395e98fd134SMartin Blumenstingl				groups = "pwm_a";
396e98fd134SMartin Blumenstingl				function = "pwm_a";
397e98fd134SMartin Blumenstingl			};
398e98fd134SMartin Blumenstingl		};
399e98fd134SMartin Blumenstingl
400e98fd134SMartin Blumenstingl		pwm_b_pins: pwm_b {
401e98fd134SMartin Blumenstingl			mux {
402e98fd134SMartin Blumenstingl				groups = "pwm_b";
403e98fd134SMartin Blumenstingl				function = "pwm_b";
404e98fd134SMartin Blumenstingl			};
405e98fd134SMartin Blumenstingl		};
406e98fd134SMartin Blumenstingl
407e98fd134SMartin Blumenstingl		pwm_c_pins: pwm_c {
408e98fd134SMartin Blumenstingl			mux {
409e98fd134SMartin Blumenstingl				groups = "pwm_c";
410e98fd134SMartin Blumenstingl				function = "pwm_c";
411e98fd134SMartin Blumenstingl			};
412e98fd134SMartin Blumenstingl		};
413e98fd134SMartin Blumenstingl
414e98fd134SMartin Blumenstingl		pwm_d_pins: pwm_d {
415e98fd134SMartin Blumenstingl			mux {
416e98fd134SMartin Blumenstingl				groups = "pwm_d";
417e98fd134SMartin Blumenstingl				function = "pwm_d";
418e98fd134SMartin Blumenstingl			};
419e98fd134SMartin Blumenstingl		};
420e98fd134SMartin Blumenstingl
421fb0fe922SNeil Armstrong		pwm_e_pins: pwm_e {
422fb0fe922SNeil Armstrong			mux {
423fb0fe922SNeil Armstrong				groups = "pwm_e";
424fb0fe922SNeil Armstrong				function = "pwm_e";
425fb0fe922SNeil Armstrong			};
426fb0fe922SNeil Armstrong		};
427b949165cSNeil Armstrong
428e98fd134SMartin Blumenstingl		pwm_f_clk_pins: pwm_f_clk {
429e98fd134SMartin Blumenstingl			mux {
430e98fd134SMartin Blumenstingl				groups = "pwm_f_clk";
431e98fd134SMartin Blumenstingl				function = "pwm_f";
432e98fd134SMartin Blumenstingl			};
433e98fd134SMartin Blumenstingl		};
434e98fd134SMartin Blumenstingl
435e98fd134SMartin Blumenstingl		pwm_f_x_pins: pwm_f_x {
436e98fd134SMartin Blumenstingl			mux {
437e98fd134SMartin Blumenstingl				groups = "pwm_f_x";
438e98fd134SMartin Blumenstingl				function = "pwm_f";
439e98fd134SMartin Blumenstingl			};
440e98fd134SMartin Blumenstingl		};
441e98fd134SMartin Blumenstingl
442b949165cSNeil Armstrong		hdmi_hpd_pins: hdmi_hpd {
443b949165cSNeil Armstrong			mux {
444b949165cSNeil Armstrong				groups = "hdmi_hpd";
445b949165cSNeil Armstrong				function = "hdmi_hpd";
446b949165cSNeil Armstrong			};
447b949165cSNeil Armstrong		};
448b949165cSNeil Armstrong
449b949165cSNeil Armstrong		hdmi_i2c_pins: hdmi_i2c {
450b949165cSNeil Armstrong			mux {
451b949165cSNeil Armstrong				groups = "hdmi_sda", "hdmi_scl";
452b949165cSNeil Armstrong				function = "hdmi_i2c";
453b949165cSNeil Armstrong			};
454b949165cSNeil Armstrong		};
455c16fe9a1Sjbrunet
456c16fe9a1Sjbrunet		i2s_am_clk_pins: i2s_am_clk {
457c16fe9a1Sjbrunet			mux {
458c16fe9a1Sjbrunet				groups = "i2s_am_clk";
459c16fe9a1Sjbrunet				function = "i2s_out";
460c16fe9a1Sjbrunet			};
461c16fe9a1Sjbrunet		};
462c16fe9a1Sjbrunet
463c16fe9a1Sjbrunet		i2s_out_ao_clk_pins: i2s_out_ao_clk {
464c16fe9a1Sjbrunet			mux {
465c16fe9a1Sjbrunet				groups = "i2s_out_ao_clk";
466c16fe9a1Sjbrunet				function = "i2s_out";
467c16fe9a1Sjbrunet			};
468c16fe9a1Sjbrunet		};
469c16fe9a1Sjbrunet
470c16fe9a1Sjbrunet		i2s_out_lr_clk_pins: i2s_out_lr_clk {
471c16fe9a1Sjbrunet			mux {
472c16fe9a1Sjbrunet				groups = "i2s_out_lr_clk";
473c16fe9a1Sjbrunet				function = "i2s_out";
474c16fe9a1Sjbrunet			};
475c16fe9a1Sjbrunet		};
476c16fe9a1Sjbrunet
477c16fe9a1Sjbrunet		i2s_out_ch01_pins: i2s_out_ch01 {
478c16fe9a1Sjbrunet			mux {
479c16fe9a1Sjbrunet				groups = "i2s_out_ch01";
480c16fe9a1Sjbrunet				function = "i2s_out";
481c16fe9a1Sjbrunet			};
482c16fe9a1Sjbrunet		};
483c16fe9a1Sjbrunet		i2sout_ch23_z_pins: i2sout_ch23_z {
484c16fe9a1Sjbrunet			mux {
485c16fe9a1Sjbrunet				groups = "i2sout_ch23_z";
486c16fe9a1Sjbrunet				function = "i2s_out";
487c16fe9a1Sjbrunet			};
488c16fe9a1Sjbrunet		};
489c16fe9a1Sjbrunet
490c16fe9a1Sjbrunet		i2sout_ch45_z_pins: i2sout_ch45_z {
491c16fe9a1Sjbrunet			mux {
492c16fe9a1Sjbrunet				groups = "i2sout_ch45_z";
493c16fe9a1Sjbrunet				function = "i2s_out";
494c16fe9a1Sjbrunet			};
495c16fe9a1Sjbrunet		};
496c16fe9a1Sjbrunet
497c16fe9a1Sjbrunet		i2sout_ch67_z_pins: i2sout_ch67_z {
498c16fe9a1Sjbrunet			mux {
499c16fe9a1Sjbrunet				groups = "i2sout_ch67_z";
500c16fe9a1Sjbrunet				function = "i2s_out";
501c16fe9a1Sjbrunet			};
502c16fe9a1Sjbrunet		};
5039503062dSjbrunet
5049503062dSjbrunet		spdif_out_h_pins: spdif_out_ao_h {
5059503062dSjbrunet			mux {
5069503062dSjbrunet				groups = "spdif_out_h";
5079503062dSjbrunet				function = "spdif_out";
5089503062dSjbrunet			};
5099503062dSjbrunet		};
510fb0fe922SNeil Armstrong	};
511e9e27c64SNeil Armstrong
512e9e27c64SNeil Armstrong	eth-phy-mux {
513e9e27c64SNeil Armstrong		compatible = "mdio-mux-mmioreg", "mdio-mux";
514e9e27c64SNeil Armstrong		#address-cells = <1>;
515e9e27c64SNeil Armstrong		#size-cells = <0>;
516e9e27c64SNeil Armstrong		reg = <0x0 0x55c 0x0 0x4>;
517e9e27c64SNeil Armstrong		mux-mask = <0xffffffff>;
518e9e27c64SNeil Armstrong		mdio-parent-bus = <&mdio0>;
519e9e27c64SNeil Armstrong
520e9e27c64SNeil Armstrong		internal_mdio: mdio@e40908ff {
521e9e27c64SNeil Armstrong			reg = <0xe40908ff>;
522e9e27c64SNeil Armstrong			#address-cells = <1>;
523e9e27c64SNeil Armstrong			#size-cells = <0>;
524e9e27c64SNeil Armstrong
525e9e27c64SNeil Armstrong			internal_phy: ethernet-phy@8 {
526e9e27c64SNeil Armstrong				compatible = "ethernet-phy-id0181.4400", "ethernet-phy-ieee802.3-c22";
527e9e27c64SNeil Armstrong				reg = <8>;
528e9e27c64SNeil Armstrong				max-speed = <100>;
529e9e27c64SNeil Armstrong			};
530e9e27c64SNeil Armstrong		};
531e9e27c64SNeil Armstrong
532e9e27c64SNeil Armstrong		external_mdio: mdio@2009087f {
533e9e27c64SNeil Armstrong			reg = <0x2009087f>;
534e9e27c64SNeil Armstrong			#address-cells = <1>;
535e9e27c64SNeil Armstrong			#size-cells = <0>;
536e9e27c64SNeil Armstrong		};
537e9e27c64SNeil Armstrong	};
538fb0fe922SNeil Armstrong};
539973fbd55SNeil Armstrong
540bd80ef5eSMartin Blumenstingl&saradc {
541bd80ef5eSMartin Blumenstingl	compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc";
542bd80ef5eSMartin Blumenstingl	clocks = <&xtal>,
543bd80ef5eSMartin Blumenstingl		 <&clkc CLKID_SAR_ADC>,
544bd80ef5eSMartin Blumenstingl		 <&clkc CLKID_SANA>,
545bd80ef5eSMartin Blumenstingl		 <&clkc CLKID_SAR_ADC_CLK>,
546bd80ef5eSMartin Blumenstingl		 <&clkc CLKID_SAR_ADC_SEL>;
547bd80ef5eSMartin Blumenstingl	clock-names = "clkin", "core", "sana", "adc_clk", "adc_sel";
548bd80ef5eSMartin Blumenstingl};
549bd80ef5eSMartin Blumenstingl
5506d489dc8SNeil Armstrong&sd_emmc_a {
5516d489dc8SNeil Armstrong	clocks = <&clkc CLKID_SD_EMMC_A>,
5526d489dc8SNeil Armstrong		 <&xtal>,
5536d489dc8SNeil Armstrong		 <&clkc CLKID_FCLK_DIV2>;
5546d489dc8SNeil Armstrong	clock-names = "core", "clkin0", "clkin1";
5556d489dc8SNeil Armstrong};
5566d489dc8SNeil Armstrong
5576d489dc8SNeil Armstrong&sd_emmc_b {
5586d489dc8SNeil Armstrong	clocks = <&clkc CLKID_SD_EMMC_B>,
5596d489dc8SNeil Armstrong		 <&xtal>,
5606d489dc8SNeil Armstrong		 <&clkc CLKID_FCLK_DIV2>;
5616d489dc8SNeil Armstrong       clock-names = "core", "clkin0", "clkin1";
5626d489dc8SNeil Armstrong};
5636d489dc8SNeil Armstrong
5646d489dc8SNeil Armstrong&sd_emmc_c {
5656d489dc8SNeil Armstrong	clocks = <&clkc CLKID_SD_EMMC_C>,
5666d489dc8SNeil Armstrong		 <&xtal>,
5676d489dc8SNeil Armstrong		 <&clkc CLKID_FCLK_DIV2>;
5686d489dc8SNeil Armstrong	clock-names = "core", "clkin0", "clkin1";
5696d489dc8SNeil Armstrong};
570fafdbdf7SNeil Armstrong
57104b36df4SNeil Armstrong&spifc {
57204b36df4SNeil Armstrong	clocks = <&clkc CLKID_SPI>;
57304b36df4SNeil Armstrong};
57404b36df4SNeil Armstrong
575fafdbdf7SNeil Armstrong&vpu {
576fafdbdf7SNeil Armstrong	compatible = "amlogic,meson-gxl-vpu", "amlogic,meson-gx-vpu";
577fafdbdf7SNeil Armstrong};
578