xref: /linux/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi (revision 6d717619944fc4855f11596cc19be84605420c3e)
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		};
193*6d717619SNeil Armstrong
194*6d717619SNeil Armstrong		ao_cec_pins: ao_cec {
195*6d717619SNeil Armstrong			mux {
196*6d717619SNeil Armstrong				groups = "ao_cec";
197*6d717619SNeil Armstrong				function = "cec_ao";
198*6d717619SNeil Armstrong			};
199*6d717619SNeil Armstrong		};
200*6d717619SNeil Armstrong
201*6d717619SNeil Armstrong		ee_cec_pins: ee_cec {
202*6d717619SNeil Armstrong			mux {
203*6d717619SNeil Armstrong				groups = "ee_cec";
204*6d717619SNeil Armstrong				function = "cec_ao";
205*6d717619SNeil Armstrong			};
206*6d717619SNeil Armstrong		};
207fb0fe922SNeil Armstrong	};
208fb0fe922SNeil Armstrong};
209fb0fe922SNeil Armstrong
2106a573c4eSAndreas Färber&hdmi_tx {
2116a573c4eSAndreas Färber	compatible = "amlogic,meson-gxl-dw-hdmi", "amlogic,meson-gx-dw-hdmi";
2126a573c4eSAndreas Färber	resets = <&reset RESET_HDMITX_CAPB3>,
2136a573c4eSAndreas Färber		 <&reset RESET_HDMI_SYSTEM_RESET>,
2146a573c4eSAndreas Färber		 <&reset RESET_HDMI_TX>;
2156a573c4eSAndreas Färber	reset-names = "hdmitx_apb", "hdmitx", "hdmitx_phy";
2166a573c4eSAndreas Färber	clocks = <&clkc CLKID_HDMI_PCLK>,
2176a573c4eSAndreas Färber		 <&clkc CLKID_CLK81>,
2186a573c4eSAndreas Färber		 <&clkc CLKID_GCLK_VENCI_INT0>;
2196a573c4eSAndreas Färber	clock-names = "isfr", "iahb", "venci";
2206a573c4eSAndreas Färber};
2216a573c4eSAndreas Färber
2226a573c4eSAndreas Färber&hiubus {
2236a573c4eSAndreas Färber	clkc: clock-controller@0 {
2246a573c4eSAndreas Färber		compatible = "amlogic,gxl-clkc", "amlogic,gxbb-clkc";
2256a573c4eSAndreas Färber		#clock-cells = <1>;
2266a573c4eSAndreas Färber		reg = <0x0 0x0 0x0 0x3db>;
2276a573c4eSAndreas Färber	};
2286a573c4eSAndreas Färber};
2296a573c4eSAndreas Färber
2306a573c4eSAndreas Färber&i2c_A {
2316a573c4eSAndreas Färber	clocks = <&clkc CLKID_I2C>;
2326a573c4eSAndreas Färber};
2336a573c4eSAndreas Färber
2346a573c4eSAndreas Färber&i2c_AO {
2356a573c4eSAndreas Färber	clocks = <&clkc CLKID_AO_I2C>;
2366a573c4eSAndreas Färber};
2376a573c4eSAndreas Färber
2386a573c4eSAndreas Färber&i2c_B {
2396a573c4eSAndreas Färber	clocks = <&clkc CLKID_I2C>;
2406a573c4eSAndreas Färber};
2416a573c4eSAndreas Färber
2426a573c4eSAndreas Färber&i2c_C {
2436a573c4eSAndreas Färber	clocks = <&clkc CLKID_I2C>;
2446a573c4eSAndreas Färber};
2456a573c4eSAndreas Färber
246fb0fe922SNeil Armstrong&periphs {
247fb0fe922SNeil Armstrong	pinctrl_periphs: pinctrl@4b0 {
248fb0fe922SNeil Armstrong		compatible = "amlogic,meson-gxl-periphs-pinctrl";
249fb0fe922SNeil Armstrong		#address-cells = <2>;
250fb0fe922SNeil Armstrong		#size-cells = <2>;
251fb0fe922SNeil Armstrong		ranges;
252fb0fe922SNeil Armstrong
253fb0fe922SNeil Armstrong		gpio: bank@4b0 {
254fb0fe922SNeil Armstrong			reg = <0x0 0x004b0 0x0 0x28>,
255fb0fe922SNeil Armstrong			      <0x0 0x004e8 0x0 0x14>,
256f4c406d5SNeil Armstrong			      <0x0 0x00520 0x0 0x14>,
257fb0fe922SNeil Armstrong			      <0x0 0x00430 0x0 0x40>;
258fb0fe922SNeil Armstrong			reg-names = "mux", "pull", "pull-enable", "gpio";
259fb0fe922SNeil Armstrong			gpio-controller;
260fb0fe922SNeil Armstrong			#gpio-cells = <2>;
261d79a079cSNeil Armstrong			gpio-ranges = <&pinctrl_periphs 0 10 101>;
262fb0fe922SNeil Armstrong		};
263fb0fe922SNeil Armstrong
264fb0fe922SNeil Armstrong		emmc_pins: emmc {
265fb0fe922SNeil Armstrong			mux {
266fb0fe922SNeil Armstrong				groups = "emmc_nand_d07",
267fb0fe922SNeil Armstrong				       "emmc_cmd",
268fb0fe922SNeil Armstrong				       "emmc_clk",
269fb0fe922SNeil Armstrong				       "emmc_ds";
270fb0fe922SNeil Armstrong				function = "emmc";
271fb0fe922SNeil Armstrong			};
272fb0fe922SNeil Armstrong		};
273fb0fe922SNeil Armstrong
274ca02e3f9SNeil Armstrong		nor_pins: nor {
275ca02e3f9SNeil Armstrong			mux {
276ca02e3f9SNeil Armstrong				groups = "nor_d",
277ca02e3f9SNeil Armstrong				       "nor_q",
278ca02e3f9SNeil Armstrong				       "nor_c",
279ca02e3f9SNeil Armstrong				       "nor_cs";
280ca02e3f9SNeil Armstrong				function = "nor";
281ca02e3f9SNeil Armstrong			};
282ca02e3f9SNeil Armstrong		};
283ca02e3f9SNeil Armstrong
284fb0fe922SNeil Armstrong		sdcard_pins: sdcard {
285fb0fe922SNeil Armstrong			mux {
286fb0fe922SNeil Armstrong				groups = "sdcard_d0",
287fb0fe922SNeil Armstrong				       "sdcard_d1",
288fb0fe922SNeil Armstrong				       "sdcard_d2",
289fb0fe922SNeil Armstrong				       "sdcard_d3",
290fb0fe922SNeil Armstrong				       "sdcard_cmd",
291fb0fe922SNeil Armstrong				       "sdcard_clk";
292fb0fe922SNeil Armstrong				function = "sdcard";
293fb0fe922SNeil Armstrong			};
294fb0fe922SNeil Armstrong		};
295fb0fe922SNeil Armstrong
296fb0fe922SNeil Armstrong		sdio_pins: sdio {
297fb0fe922SNeil Armstrong			mux {
298fb0fe922SNeil Armstrong				groups = "sdio_d0",
299fb0fe922SNeil Armstrong				       "sdio_d1",
300fb0fe922SNeil Armstrong				       "sdio_d2",
301fb0fe922SNeil Armstrong				       "sdio_d3",
302fb0fe922SNeil Armstrong				       "sdio_cmd",
303fb0fe922SNeil Armstrong				       "sdio_clk";
304fb0fe922SNeil Armstrong				function = "sdio";
305fb0fe922SNeil Armstrong			};
306fb0fe922SNeil Armstrong		};
307fb0fe922SNeil Armstrong
308fb0fe922SNeil Armstrong		sdio_irq_pins: sdio_irq {
309fb0fe922SNeil Armstrong			mux {
310fb0fe922SNeil Armstrong				groups = "sdio_irq";
311fb0fe922SNeil Armstrong				function = "sdio";
312fb0fe922SNeil Armstrong			};
313fb0fe922SNeil Armstrong		};
314fb0fe922SNeil Armstrong
315fb0fe922SNeil Armstrong		uart_a_pins: uart_a {
316fb0fe922SNeil Armstrong			mux {
317fb0fe922SNeil Armstrong				groups = "uart_tx_a",
318fb0fe922SNeil Armstrong				       "uart_rx_a";
319fb0fe922SNeil Armstrong				function = "uart_a";
320fb0fe922SNeil Armstrong			};
321fb0fe922SNeil Armstrong		};
322fb0fe922SNeil Armstrong
323261e1d5cSMartin Blumenstingl		uart_a_cts_rts_pins: uart_a_cts_rts {
324261e1d5cSMartin Blumenstingl			mux {
325261e1d5cSMartin Blumenstingl				groups = "uart_cts_a",
326261e1d5cSMartin Blumenstingl				       "uart_rts_a";
327261e1d5cSMartin Blumenstingl				function = "uart_a";
328261e1d5cSMartin Blumenstingl			};
329261e1d5cSMartin Blumenstingl		};
330261e1d5cSMartin Blumenstingl
331fb0fe922SNeil Armstrong		uart_b_pins: uart_b {
332fb0fe922SNeil Armstrong			mux {
333fb0fe922SNeil Armstrong				groups = "uart_tx_b",
334fb0fe922SNeil Armstrong				       "uart_rx_b";
335fb0fe922SNeil Armstrong				function = "uart_b";
336fb0fe922SNeil Armstrong			};
337fb0fe922SNeil Armstrong		};
338fb0fe922SNeil Armstrong
339261e1d5cSMartin Blumenstingl		uart_b_cts_rts_pins: uart_b_cts_rts {
340261e1d5cSMartin Blumenstingl			mux {
341261e1d5cSMartin Blumenstingl				groups = "uart_cts_b",
342261e1d5cSMartin Blumenstingl				       "uart_rts_b";
343261e1d5cSMartin Blumenstingl				function = "uart_b";
344261e1d5cSMartin Blumenstingl			};
345261e1d5cSMartin Blumenstingl		};
346261e1d5cSMartin Blumenstingl
347fb0fe922SNeil Armstrong		uart_c_pins: uart_c {
348fb0fe922SNeil Armstrong			mux {
349fb0fe922SNeil Armstrong				groups = "uart_tx_c",
350fb0fe922SNeil Armstrong				       "uart_rx_c";
351fb0fe922SNeil Armstrong				function = "uart_c";
352fb0fe922SNeil Armstrong			};
353fb0fe922SNeil Armstrong		};
354fb0fe922SNeil Armstrong
355261e1d5cSMartin Blumenstingl		uart_c_cts_rts_pins: uart_c_cts_rts {
356261e1d5cSMartin Blumenstingl			mux {
357261e1d5cSMartin Blumenstingl				groups = "uart_cts_c",
358261e1d5cSMartin Blumenstingl				       "uart_rts_c";
359261e1d5cSMartin Blumenstingl				function = "uart_c";
360261e1d5cSMartin Blumenstingl			};
361261e1d5cSMartin Blumenstingl		};
362261e1d5cSMartin Blumenstingl
363fb0fe922SNeil Armstrong		i2c_a_pins: i2c_a {
364fb0fe922SNeil Armstrong			mux {
365fb0fe922SNeil Armstrong				groups = "i2c_sck_a",
366fb0fe922SNeil Armstrong				     "i2c_sda_a";
367fb0fe922SNeil Armstrong				function = "i2c_a";
368fb0fe922SNeil Armstrong			};
369fb0fe922SNeil Armstrong		};
370fb0fe922SNeil Armstrong
371fb0fe922SNeil Armstrong		i2c_b_pins: i2c_b {
372fb0fe922SNeil Armstrong			mux {
373fb0fe922SNeil Armstrong				groups = "i2c_sck_b",
374fb0fe922SNeil Armstrong				      "i2c_sda_b";
375fb0fe922SNeil Armstrong				function = "i2c_b";
376fb0fe922SNeil Armstrong			};
377fb0fe922SNeil Armstrong		};
378fb0fe922SNeil Armstrong
379fb0fe922SNeil Armstrong		i2c_c_pins: i2c_c {
380fb0fe922SNeil Armstrong			mux {
381fb0fe922SNeil Armstrong				groups = "i2c_sck_c",
382fb0fe922SNeil Armstrong				      "i2c_sda_c";
383fb0fe922SNeil Armstrong				function = "i2c_c";
384fb0fe922SNeil Armstrong			};
385fb0fe922SNeil Armstrong		};
386fb0fe922SNeil Armstrong
387fb0fe922SNeil Armstrong		eth_pins: eth_c {
388fb0fe922SNeil Armstrong			mux {
389fb0fe922SNeil Armstrong				groups = "eth_mdio",
390fb0fe922SNeil Armstrong				       "eth_mdc",
391fb0fe922SNeil Armstrong				       "eth_clk_rx_clk",
392fb0fe922SNeil Armstrong				       "eth_rx_dv",
393fb0fe922SNeil Armstrong				       "eth_rxd0",
394fb0fe922SNeil Armstrong				       "eth_rxd1",
395fb0fe922SNeil Armstrong				       "eth_rxd2",
396fb0fe922SNeil Armstrong				       "eth_rxd3",
397fb0fe922SNeil Armstrong				       "eth_rgmii_tx_clk",
398fb0fe922SNeil Armstrong				       "eth_tx_en",
399fb0fe922SNeil Armstrong				       "eth_txd0",
400fb0fe922SNeil Armstrong				       "eth_txd1",
401fb0fe922SNeil Armstrong				       "eth_txd2",
402fb0fe922SNeil Armstrong				       "eth_txd3";
403fb0fe922SNeil Armstrong				function = "eth";
404fb0fe922SNeil Armstrong			};
405fb0fe922SNeil Armstrong		};
406fb0fe922SNeil Armstrong
407e98fd134SMartin Blumenstingl		pwm_a_pins: pwm_a {
408e98fd134SMartin Blumenstingl			mux {
409e98fd134SMartin Blumenstingl				groups = "pwm_a";
410e98fd134SMartin Blumenstingl				function = "pwm_a";
411e98fd134SMartin Blumenstingl			};
412e98fd134SMartin Blumenstingl		};
413e98fd134SMartin Blumenstingl
414e98fd134SMartin Blumenstingl		pwm_b_pins: pwm_b {
415e98fd134SMartin Blumenstingl			mux {
416e98fd134SMartin Blumenstingl				groups = "pwm_b";
417e98fd134SMartin Blumenstingl				function = "pwm_b";
418e98fd134SMartin Blumenstingl			};
419e98fd134SMartin Blumenstingl		};
420e98fd134SMartin Blumenstingl
421e98fd134SMartin Blumenstingl		pwm_c_pins: pwm_c {
422e98fd134SMartin Blumenstingl			mux {
423e98fd134SMartin Blumenstingl				groups = "pwm_c";
424e98fd134SMartin Blumenstingl				function = "pwm_c";
425e98fd134SMartin Blumenstingl			};
426e98fd134SMartin Blumenstingl		};
427e98fd134SMartin Blumenstingl
428e98fd134SMartin Blumenstingl		pwm_d_pins: pwm_d {
429e98fd134SMartin Blumenstingl			mux {
430e98fd134SMartin Blumenstingl				groups = "pwm_d";
431e98fd134SMartin Blumenstingl				function = "pwm_d";
432e98fd134SMartin Blumenstingl			};
433e98fd134SMartin Blumenstingl		};
434e98fd134SMartin Blumenstingl
435fb0fe922SNeil Armstrong		pwm_e_pins: pwm_e {
436fb0fe922SNeil Armstrong			mux {
437fb0fe922SNeil Armstrong				groups = "pwm_e";
438fb0fe922SNeil Armstrong				function = "pwm_e";
439fb0fe922SNeil Armstrong			};
440fb0fe922SNeil Armstrong		};
441b949165cSNeil Armstrong
442e98fd134SMartin Blumenstingl		pwm_f_clk_pins: pwm_f_clk {
443e98fd134SMartin Blumenstingl			mux {
444e98fd134SMartin Blumenstingl				groups = "pwm_f_clk";
445e98fd134SMartin Blumenstingl				function = "pwm_f";
446e98fd134SMartin Blumenstingl			};
447e98fd134SMartin Blumenstingl		};
448e98fd134SMartin Blumenstingl
449e98fd134SMartin Blumenstingl		pwm_f_x_pins: pwm_f_x {
450e98fd134SMartin Blumenstingl			mux {
451e98fd134SMartin Blumenstingl				groups = "pwm_f_x";
452e98fd134SMartin Blumenstingl				function = "pwm_f";
453e98fd134SMartin Blumenstingl			};
454e98fd134SMartin Blumenstingl		};
455e98fd134SMartin Blumenstingl
456b949165cSNeil Armstrong		hdmi_hpd_pins: hdmi_hpd {
457b949165cSNeil Armstrong			mux {
458b949165cSNeil Armstrong				groups = "hdmi_hpd";
459b949165cSNeil Armstrong				function = "hdmi_hpd";
460b949165cSNeil Armstrong			};
461b949165cSNeil Armstrong		};
462b949165cSNeil Armstrong
463b949165cSNeil Armstrong		hdmi_i2c_pins: hdmi_i2c {
464b949165cSNeil Armstrong			mux {
465b949165cSNeil Armstrong				groups = "hdmi_sda", "hdmi_scl";
466b949165cSNeil Armstrong				function = "hdmi_i2c";
467b949165cSNeil Armstrong			};
468b949165cSNeil Armstrong		};
469c16fe9a1Sjbrunet
470c16fe9a1Sjbrunet		i2s_am_clk_pins: i2s_am_clk {
471c16fe9a1Sjbrunet			mux {
472c16fe9a1Sjbrunet				groups = "i2s_am_clk";
473c16fe9a1Sjbrunet				function = "i2s_out";
474c16fe9a1Sjbrunet			};
475c16fe9a1Sjbrunet		};
476c16fe9a1Sjbrunet
477c16fe9a1Sjbrunet		i2s_out_ao_clk_pins: i2s_out_ao_clk {
478c16fe9a1Sjbrunet			mux {
479c16fe9a1Sjbrunet				groups = "i2s_out_ao_clk";
480c16fe9a1Sjbrunet				function = "i2s_out";
481c16fe9a1Sjbrunet			};
482c16fe9a1Sjbrunet		};
483c16fe9a1Sjbrunet
484c16fe9a1Sjbrunet		i2s_out_lr_clk_pins: i2s_out_lr_clk {
485c16fe9a1Sjbrunet			mux {
486c16fe9a1Sjbrunet				groups = "i2s_out_lr_clk";
487c16fe9a1Sjbrunet				function = "i2s_out";
488c16fe9a1Sjbrunet			};
489c16fe9a1Sjbrunet		};
490c16fe9a1Sjbrunet
491c16fe9a1Sjbrunet		i2s_out_ch01_pins: i2s_out_ch01 {
492c16fe9a1Sjbrunet			mux {
493c16fe9a1Sjbrunet				groups = "i2s_out_ch01";
494c16fe9a1Sjbrunet				function = "i2s_out";
495c16fe9a1Sjbrunet			};
496c16fe9a1Sjbrunet		};
497c16fe9a1Sjbrunet		i2sout_ch23_z_pins: i2sout_ch23_z {
498c16fe9a1Sjbrunet			mux {
499c16fe9a1Sjbrunet				groups = "i2sout_ch23_z";
500c16fe9a1Sjbrunet				function = "i2s_out";
501c16fe9a1Sjbrunet			};
502c16fe9a1Sjbrunet		};
503c16fe9a1Sjbrunet
504c16fe9a1Sjbrunet		i2sout_ch45_z_pins: i2sout_ch45_z {
505c16fe9a1Sjbrunet			mux {
506c16fe9a1Sjbrunet				groups = "i2sout_ch45_z";
507c16fe9a1Sjbrunet				function = "i2s_out";
508c16fe9a1Sjbrunet			};
509c16fe9a1Sjbrunet		};
510c16fe9a1Sjbrunet
511c16fe9a1Sjbrunet		i2sout_ch67_z_pins: i2sout_ch67_z {
512c16fe9a1Sjbrunet			mux {
513c16fe9a1Sjbrunet				groups = "i2sout_ch67_z";
514c16fe9a1Sjbrunet				function = "i2s_out";
515c16fe9a1Sjbrunet			};
516c16fe9a1Sjbrunet		};
5179503062dSjbrunet
5189503062dSjbrunet		spdif_out_h_pins: spdif_out_ao_h {
5199503062dSjbrunet			mux {
5209503062dSjbrunet				groups = "spdif_out_h";
5219503062dSjbrunet				function = "spdif_out";
5229503062dSjbrunet			};
5239503062dSjbrunet		};
524fb0fe922SNeil Armstrong	};
525e9e27c64SNeil Armstrong
526e9e27c64SNeil Armstrong	eth-phy-mux {
527e9e27c64SNeil Armstrong		compatible = "mdio-mux-mmioreg", "mdio-mux";
528e9e27c64SNeil Armstrong		#address-cells = <1>;
529e9e27c64SNeil Armstrong		#size-cells = <0>;
530e9e27c64SNeil Armstrong		reg = <0x0 0x55c 0x0 0x4>;
531e9e27c64SNeil Armstrong		mux-mask = <0xffffffff>;
532e9e27c64SNeil Armstrong		mdio-parent-bus = <&mdio0>;
533e9e27c64SNeil Armstrong
534e9e27c64SNeil Armstrong		internal_mdio: mdio@e40908ff {
535e9e27c64SNeil Armstrong			reg = <0xe40908ff>;
536e9e27c64SNeil Armstrong			#address-cells = <1>;
537e9e27c64SNeil Armstrong			#size-cells = <0>;
538e9e27c64SNeil Armstrong
539e9e27c64SNeil Armstrong			internal_phy: ethernet-phy@8 {
540e9e27c64SNeil Armstrong				compatible = "ethernet-phy-id0181.4400", "ethernet-phy-ieee802.3-c22";
541e9e27c64SNeil Armstrong				reg = <8>;
542e9e27c64SNeil Armstrong				max-speed = <100>;
543e9e27c64SNeil Armstrong			};
544e9e27c64SNeil Armstrong		};
545e9e27c64SNeil Armstrong
546e9e27c64SNeil Armstrong		external_mdio: mdio@2009087f {
547e9e27c64SNeil Armstrong			reg = <0x2009087f>;
548e9e27c64SNeil Armstrong			#address-cells = <1>;
549e9e27c64SNeil Armstrong			#size-cells = <0>;
550e9e27c64SNeil Armstrong		};
551e9e27c64SNeil Armstrong	};
552fb0fe922SNeil Armstrong};
553973fbd55SNeil Armstrong
554bd80ef5eSMartin Blumenstingl&saradc {
555bd80ef5eSMartin Blumenstingl	compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc";
556bd80ef5eSMartin Blumenstingl	clocks = <&xtal>,
557bd80ef5eSMartin Blumenstingl		 <&clkc CLKID_SAR_ADC>,
558bd80ef5eSMartin Blumenstingl		 <&clkc CLKID_SANA>,
559bd80ef5eSMartin Blumenstingl		 <&clkc CLKID_SAR_ADC_CLK>,
560bd80ef5eSMartin Blumenstingl		 <&clkc CLKID_SAR_ADC_SEL>;
561bd80ef5eSMartin Blumenstingl	clock-names = "clkin", "core", "sana", "adc_clk", "adc_sel";
562bd80ef5eSMartin Blumenstingl};
563bd80ef5eSMartin Blumenstingl
5646d489dc8SNeil Armstrong&sd_emmc_a {
5656d489dc8SNeil Armstrong	clocks = <&clkc CLKID_SD_EMMC_A>,
5666d489dc8SNeil Armstrong		 <&xtal>,
5676d489dc8SNeil Armstrong		 <&clkc CLKID_FCLK_DIV2>;
5686d489dc8SNeil Armstrong	clock-names = "core", "clkin0", "clkin1";
5696d489dc8SNeil Armstrong};
5706d489dc8SNeil Armstrong
5716d489dc8SNeil Armstrong&sd_emmc_b {
5726d489dc8SNeil Armstrong	clocks = <&clkc CLKID_SD_EMMC_B>,
5736d489dc8SNeil Armstrong		 <&xtal>,
5746d489dc8SNeil Armstrong		 <&clkc CLKID_FCLK_DIV2>;
5756d489dc8SNeil Armstrong       clock-names = "core", "clkin0", "clkin1";
5766d489dc8SNeil Armstrong};
5776d489dc8SNeil Armstrong
5786d489dc8SNeil Armstrong&sd_emmc_c {
5796d489dc8SNeil Armstrong	clocks = <&clkc CLKID_SD_EMMC_C>,
5806d489dc8SNeil Armstrong		 <&xtal>,
5816d489dc8SNeil Armstrong		 <&clkc CLKID_FCLK_DIV2>;
5826d489dc8SNeil Armstrong	clock-names = "core", "clkin0", "clkin1";
5836d489dc8SNeil Armstrong};
584fafdbdf7SNeil Armstrong
58504b36df4SNeil Armstrong&spifc {
58604b36df4SNeil Armstrong	clocks = <&clkc CLKID_SPI>;
58704b36df4SNeil Armstrong};
58804b36df4SNeil Armstrong
589fafdbdf7SNeil Armstrong&vpu {
590fafdbdf7SNeil Armstrong	compatible = "amlogic,meson-gxl-vpu", "amlogic,meson-gx-vpu";
591fafdbdf7SNeil Armstrong};
592