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> 47*6939db7eSNeil 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ðmac { 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 196fb0fe922SNeil Armstrong&periphs { 197fb0fe922SNeil Armstrong pinctrl_periphs: pinctrl@4b0 { 198fb0fe922SNeil Armstrong compatible = "amlogic,meson-gxl-periphs-pinctrl"; 199fb0fe922SNeil Armstrong #address-cells = <2>; 200fb0fe922SNeil Armstrong #size-cells = <2>; 201fb0fe922SNeil Armstrong ranges; 202fb0fe922SNeil Armstrong 203fb0fe922SNeil Armstrong gpio: bank@4b0 { 204fb0fe922SNeil Armstrong reg = <0x0 0x004b0 0x0 0x28>, 205fb0fe922SNeil Armstrong <0x0 0x004e8 0x0 0x14>, 206fb0fe922SNeil Armstrong <0x0 0x00120 0x0 0x14>, 207fb0fe922SNeil Armstrong <0x0 0x00430 0x0 0x40>; 208fb0fe922SNeil Armstrong reg-names = "mux", "pull", "pull-enable", "gpio"; 209fb0fe922SNeil Armstrong gpio-controller; 210fb0fe922SNeil Armstrong #gpio-cells = <2>; 21184412e4eSNeil Armstrong gpio-ranges = <&pinctrl_periphs 0 14 101>; 212fb0fe922SNeil Armstrong }; 213fb0fe922SNeil Armstrong 214fb0fe922SNeil Armstrong emmc_pins: emmc { 215fb0fe922SNeil Armstrong mux { 216fb0fe922SNeil Armstrong groups = "emmc_nand_d07", 217fb0fe922SNeil Armstrong "emmc_cmd", 218fb0fe922SNeil Armstrong "emmc_clk", 219fb0fe922SNeil Armstrong "emmc_ds"; 220fb0fe922SNeil Armstrong function = "emmc"; 221fb0fe922SNeil Armstrong }; 222fb0fe922SNeil Armstrong }; 223fb0fe922SNeil Armstrong 224ca02e3f9SNeil Armstrong nor_pins: nor { 225ca02e3f9SNeil Armstrong mux { 226ca02e3f9SNeil Armstrong groups = "nor_d", 227ca02e3f9SNeil Armstrong "nor_q", 228ca02e3f9SNeil Armstrong "nor_c", 229ca02e3f9SNeil Armstrong "nor_cs"; 230ca02e3f9SNeil Armstrong function = "nor"; 231ca02e3f9SNeil Armstrong }; 232ca02e3f9SNeil Armstrong }; 233ca02e3f9SNeil Armstrong 234fb0fe922SNeil Armstrong sdcard_pins: sdcard { 235fb0fe922SNeil Armstrong mux { 236fb0fe922SNeil Armstrong groups = "sdcard_d0", 237fb0fe922SNeil Armstrong "sdcard_d1", 238fb0fe922SNeil Armstrong "sdcard_d2", 239fb0fe922SNeil Armstrong "sdcard_d3", 240fb0fe922SNeil Armstrong "sdcard_cmd", 241fb0fe922SNeil Armstrong "sdcard_clk"; 242fb0fe922SNeil Armstrong function = "sdcard"; 243fb0fe922SNeil Armstrong }; 244fb0fe922SNeil Armstrong }; 245fb0fe922SNeil Armstrong 246fb0fe922SNeil Armstrong sdio_pins: sdio { 247fb0fe922SNeil Armstrong mux { 248fb0fe922SNeil Armstrong groups = "sdio_d0", 249fb0fe922SNeil Armstrong "sdio_d1", 250fb0fe922SNeil Armstrong "sdio_d2", 251fb0fe922SNeil Armstrong "sdio_d3", 252fb0fe922SNeil Armstrong "sdio_cmd", 253fb0fe922SNeil Armstrong "sdio_clk"; 254fb0fe922SNeil Armstrong function = "sdio"; 255fb0fe922SNeil Armstrong }; 256fb0fe922SNeil Armstrong }; 257fb0fe922SNeil Armstrong 258fb0fe922SNeil Armstrong sdio_irq_pins: sdio_irq { 259fb0fe922SNeil Armstrong mux { 260fb0fe922SNeil Armstrong groups = "sdio_irq"; 261fb0fe922SNeil Armstrong function = "sdio"; 262fb0fe922SNeil Armstrong }; 263fb0fe922SNeil Armstrong }; 264fb0fe922SNeil Armstrong 265fb0fe922SNeil Armstrong uart_a_pins: uart_a { 266fb0fe922SNeil Armstrong mux { 267fb0fe922SNeil Armstrong groups = "uart_tx_a", 268fb0fe922SNeil Armstrong "uart_rx_a"; 269fb0fe922SNeil Armstrong function = "uart_a"; 270fb0fe922SNeil Armstrong }; 271fb0fe922SNeil Armstrong }; 272fb0fe922SNeil Armstrong 273261e1d5cSMartin Blumenstingl uart_a_cts_rts_pins: uart_a_cts_rts { 274261e1d5cSMartin Blumenstingl mux { 275261e1d5cSMartin Blumenstingl groups = "uart_cts_a", 276261e1d5cSMartin Blumenstingl "uart_rts_a"; 277261e1d5cSMartin Blumenstingl function = "uart_a"; 278261e1d5cSMartin Blumenstingl }; 279261e1d5cSMartin Blumenstingl }; 280261e1d5cSMartin Blumenstingl 281fb0fe922SNeil Armstrong uart_b_pins: uart_b { 282fb0fe922SNeil Armstrong mux { 283fb0fe922SNeil Armstrong groups = "uart_tx_b", 284fb0fe922SNeil Armstrong "uart_rx_b"; 285fb0fe922SNeil Armstrong function = "uart_b"; 286fb0fe922SNeil Armstrong }; 287fb0fe922SNeil Armstrong }; 288fb0fe922SNeil Armstrong 289261e1d5cSMartin Blumenstingl uart_b_cts_rts_pins: uart_b_cts_rts { 290261e1d5cSMartin Blumenstingl mux { 291261e1d5cSMartin Blumenstingl groups = "uart_cts_b", 292261e1d5cSMartin Blumenstingl "uart_rts_b"; 293261e1d5cSMartin Blumenstingl function = "uart_b"; 294261e1d5cSMartin Blumenstingl }; 295261e1d5cSMartin Blumenstingl }; 296261e1d5cSMartin Blumenstingl 297fb0fe922SNeil Armstrong uart_c_pins: uart_c { 298fb0fe922SNeil Armstrong mux { 299fb0fe922SNeil Armstrong groups = "uart_tx_c", 300fb0fe922SNeil Armstrong "uart_rx_c"; 301fb0fe922SNeil Armstrong function = "uart_c"; 302fb0fe922SNeil Armstrong }; 303fb0fe922SNeil Armstrong }; 304fb0fe922SNeil Armstrong 305261e1d5cSMartin Blumenstingl uart_c_cts_rts_pins: uart_c_cts_rts { 306261e1d5cSMartin Blumenstingl mux { 307261e1d5cSMartin Blumenstingl groups = "uart_cts_c", 308261e1d5cSMartin Blumenstingl "uart_rts_c"; 309261e1d5cSMartin Blumenstingl function = "uart_c"; 310261e1d5cSMartin Blumenstingl }; 311261e1d5cSMartin Blumenstingl }; 312261e1d5cSMartin Blumenstingl 313fb0fe922SNeil Armstrong i2c_a_pins: i2c_a { 314fb0fe922SNeil Armstrong mux { 315fb0fe922SNeil Armstrong groups = "i2c_sck_a", 316fb0fe922SNeil Armstrong "i2c_sda_a"; 317fb0fe922SNeil Armstrong function = "i2c_a"; 318fb0fe922SNeil Armstrong }; 319fb0fe922SNeil Armstrong }; 320fb0fe922SNeil Armstrong 321fb0fe922SNeil Armstrong i2c_b_pins: i2c_b { 322fb0fe922SNeil Armstrong mux { 323fb0fe922SNeil Armstrong groups = "i2c_sck_b", 324fb0fe922SNeil Armstrong "i2c_sda_b"; 325fb0fe922SNeil Armstrong function = "i2c_b"; 326fb0fe922SNeil Armstrong }; 327fb0fe922SNeil Armstrong }; 328fb0fe922SNeil Armstrong 329fb0fe922SNeil Armstrong i2c_c_pins: i2c_c { 330fb0fe922SNeil Armstrong mux { 331fb0fe922SNeil Armstrong groups = "i2c_sck_c", 332fb0fe922SNeil Armstrong "i2c_sda_c"; 333fb0fe922SNeil Armstrong function = "i2c_c"; 334fb0fe922SNeil Armstrong }; 335fb0fe922SNeil Armstrong }; 336fb0fe922SNeil Armstrong 337fb0fe922SNeil Armstrong eth_pins: eth_c { 338fb0fe922SNeil Armstrong mux { 339fb0fe922SNeil Armstrong groups = "eth_mdio", 340fb0fe922SNeil Armstrong "eth_mdc", 341fb0fe922SNeil Armstrong "eth_clk_rx_clk", 342fb0fe922SNeil Armstrong "eth_rx_dv", 343fb0fe922SNeil Armstrong "eth_rxd0", 344fb0fe922SNeil Armstrong "eth_rxd1", 345fb0fe922SNeil Armstrong "eth_rxd2", 346fb0fe922SNeil Armstrong "eth_rxd3", 347fb0fe922SNeil Armstrong "eth_rgmii_tx_clk", 348fb0fe922SNeil Armstrong "eth_tx_en", 349fb0fe922SNeil Armstrong "eth_txd0", 350fb0fe922SNeil Armstrong "eth_txd1", 351fb0fe922SNeil Armstrong "eth_txd2", 352fb0fe922SNeil Armstrong "eth_txd3"; 353fb0fe922SNeil Armstrong function = "eth"; 354fb0fe922SNeil Armstrong }; 355fb0fe922SNeil Armstrong }; 356fb0fe922SNeil Armstrong 357e98fd134SMartin Blumenstingl pwm_a_pins: pwm_a { 358e98fd134SMartin Blumenstingl mux { 359e98fd134SMartin Blumenstingl groups = "pwm_a"; 360e98fd134SMartin Blumenstingl function = "pwm_a"; 361e98fd134SMartin Blumenstingl }; 362e98fd134SMartin Blumenstingl }; 363e98fd134SMartin Blumenstingl 364e98fd134SMartin Blumenstingl pwm_b_pins: pwm_b { 365e98fd134SMartin Blumenstingl mux { 366e98fd134SMartin Blumenstingl groups = "pwm_b"; 367e98fd134SMartin Blumenstingl function = "pwm_b"; 368e98fd134SMartin Blumenstingl }; 369e98fd134SMartin Blumenstingl }; 370e98fd134SMartin Blumenstingl 371e98fd134SMartin Blumenstingl pwm_c_pins: pwm_c { 372e98fd134SMartin Blumenstingl mux { 373e98fd134SMartin Blumenstingl groups = "pwm_c"; 374e98fd134SMartin Blumenstingl function = "pwm_c"; 375e98fd134SMartin Blumenstingl }; 376e98fd134SMartin Blumenstingl }; 377e98fd134SMartin Blumenstingl 378e98fd134SMartin Blumenstingl pwm_d_pins: pwm_d { 379e98fd134SMartin Blumenstingl mux { 380e98fd134SMartin Blumenstingl groups = "pwm_d"; 381e98fd134SMartin Blumenstingl function = "pwm_d"; 382e98fd134SMartin Blumenstingl }; 383e98fd134SMartin Blumenstingl }; 384e98fd134SMartin Blumenstingl 385fb0fe922SNeil Armstrong pwm_e_pins: pwm_e { 386fb0fe922SNeil Armstrong mux { 387fb0fe922SNeil Armstrong groups = "pwm_e"; 388fb0fe922SNeil Armstrong function = "pwm_e"; 389fb0fe922SNeil Armstrong }; 390fb0fe922SNeil Armstrong }; 391b949165cSNeil Armstrong 392e98fd134SMartin Blumenstingl pwm_f_clk_pins: pwm_f_clk { 393e98fd134SMartin Blumenstingl mux { 394e98fd134SMartin Blumenstingl groups = "pwm_f_clk"; 395e98fd134SMartin Blumenstingl function = "pwm_f"; 396e98fd134SMartin Blumenstingl }; 397e98fd134SMartin Blumenstingl }; 398e98fd134SMartin Blumenstingl 399e98fd134SMartin Blumenstingl pwm_f_x_pins: pwm_f_x { 400e98fd134SMartin Blumenstingl mux { 401e98fd134SMartin Blumenstingl groups = "pwm_f_x"; 402e98fd134SMartin Blumenstingl function = "pwm_f"; 403e98fd134SMartin Blumenstingl }; 404e98fd134SMartin Blumenstingl }; 405e98fd134SMartin Blumenstingl 406b949165cSNeil Armstrong hdmi_hpd_pins: hdmi_hpd { 407b949165cSNeil Armstrong mux { 408b949165cSNeil Armstrong groups = "hdmi_hpd"; 409b949165cSNeil Armstrong function = "hdmi_hpd"; 410b949165cSNeil Armstrong }; 411b949165cSNeil Armstrong }; 412b949165cSNeil Armstrong 413b949165cSNeil Armstrong hdmi_i2c_pins: hdmi_i2c { 414b949165cSNeil Armstrong mux { 415b949165cSNeil Armstrong groups = "hdmi_sda", "hdmi_scl"; 416b949165cSNeil Armstrong function = "hdmi_i2c"; 417b949165cSNeil Armstrong }; 418b949165cSNeil Armstrong }; 419c16fe9a1Sjbrunet 420c16fe9a1Sjbrunet i2s_am_clk_pins: i2s_am_clk { 421c16fe9a1Sjbrunet mux { 422c16fe9a1Sjbrunet groups = "i2s_am_clk"; 423c16fe9a1Sjbrunet function = "i2s_out"; 424c16fe9a1Sjbrunet }; 425c16fe9a1Sjbrunet }; 426c16fe9a1Sjbrunet 427c16fe9a1Sjbrunet i2s_out_ao_clk_pins: i2s_out_ao_clk { 428c16fe9a1Sjbrunet mux { 429c16fe9a1Sjbrunet groups = "i2s_out_ao_clk"; 430c16fe9a1Sjbrunet function = "i2s_out"; 431c16fe9a1Sjbrunet }; 432c16fe9a1Sjbrunet }; 433c16fe9a1Sjbrunet 434c16fe9a1Sjbrunet i2s_out_lr_clk_pins: i2s_out_lr_clk { 435c16fe9a1Sjbrunet mux { 436c16fe9a1Sjbrunet groups = "i2s_out_lr_clk"; 437c16fe9a1Sjbrunet function = "i2s_out"; 438c16fe9a1Sjbrunet }; 439c16fe9a1Sjbrunet }; 440c16fe9a1Sjbrunet 441c16fe9a1Sjbrunet i2s_out_ch01_pins: i2s_out_ch01 { 442c16fe9a1Sjbrunet mux { 443c16fe9a1Sjbrunet groups = "i2s_out_ch01"; 444c16fe9a1Sjbrunet function = "i2s_out"; 445c16fe9a1Sjbrunet }; 446c16fe9a1Sjbrunet }; 447c16fe9a1Sjbrunet i2sout_ch23_z_pins: i2sout_ch23_z { 448c16fe9a1Sjbrunet mux { 449c16fe9a1Sjbrunet groups = "i2sout_ch23_z"; 450c16fe9a1Sjbrunet function = "i2s_out"; 451c16fe9a1Sjbrunet }; 452c16fe9a1Sjbrunet }; 453c16fe9a1Sjbrunet 454c16fe9a1Sjbrunet i2sout_ch45_z_pins: i2sout_ch45_z { 455c16fe9a1Sjbrunet mux { 456c16fe9a1Sjbrunet groups = "i2sout_ch45_z"; 457c16fe9a1Sjbrunet function = "i2s_out"; 458c16fe9a1Sjbrunet }; 459c16fe9a1Sjbrunet }; 460c16fe9a1Sjbrunet 461c16fe9a1Sjbrunet i2sout_ch67_z_pins: i2sout_ch67_z { 462c16fe9a1Sjbrunet mux { 463c16fe9a1Sjbrunet groups = "i2sout_ch67_z"; 464c16fe9a1Sjbrunet function = "i2s_out"; 465c16fe9a1Sjbrunet }; 466c16fe9a1Sjbrunet }; 4679503062dSjbrunet 4689503062dSjbrunet spdif_out_h_pins: spdif_out_ao_h { 4699503062dSjbrunet mux { 4709503062dSjbrunet groups = "spdif_out_h"; 4719503062dSjbrunet function = "spdif_out"; 4729503062dSjbrunet }; 4739503062dSjbrunet }; 474fb0fe922SNeil Armstrong }; 475e9e27c64SNeil Armstrong 476e9e27c64SNeil Armstrong eth-phy-mux { 477e9e27c64SNeil Armstrong compatible = "mdio-mux-mmioreg", "mdio-mux"; 478e9e27c64SNeil Armstrong #address-cells = <1>; 479e9e27c64SNeil Armstrong #size-cells = <0>; 480e9e27c64SNeil Armstrong reg = <0x0 0x55c 0x0 0x4>; 481e9e27c64SNeil Armstrong mux-mask = <0xffffffff>; 482e9e27c64SNeil Armstrong mdio-parent-bus = <&mdio0>; 483e9e27c64SNeil Armstrong 484e9e27c64SNeil Armstrong internal_mdio: mdio@e40908ff { 485e9e27c64SNeil Armstrong reg = <0xe40908ff>; 486e9e27c64SNeil Armstrong #address-cells = <1>; 487e9e27c64SNeil Armstrong #size-cells = <0>; 488e9e27c64SNeil Armstrong 489e9e27c64SNeil Armstrong internal_phy: ethernet-phy@8 { 490e9e27c64SNeil Armstrong compatible = "ethernet-phy-id0181.4400", "ethernet-phy-ieee802.3-c22"; 491e9e27c64SNeil Armstrong reg = <8>; 492e9e27c64SNeil Armstrong max-speed = <100>; 493e9e27c64SNeil Armstrong }; 494e9e27c64SNeil Armstrong }; 495e9e27c64SNeil Armstrong 496e9e27c64SNeil Armstrong external_mdio: mdio@2009087f { 497e9e27c64SNeil Armstrong reg = <0x2009087f>; 498e9e27c64SNeil Armstrong #address-cells = <1>; 499e9e27c64SNeil Armstrong #size-cells = <0>; 500e9e27c64SNeil Armstrong }; 501e9e27c64SNeil Armstrong }; 502fb0fe922SNeil Armstrong}; 503973fbd55SNeil Armstrong 504973fbd55SNeil Armstrong&hiubus { 505973fbd55SNeil Armstrong clkc: clock-controller@0 { 506973fbd55SNeil Armstrong compatible = "amlogic,gxl-clkc", "amlogic,gxbb-clkc"; 507973fbd55SNeil Armstrong #clock-cells = <1>; 508973fbd55SNeil Armstrong reg = <0x0 0x0 0x0 0x3db>; 509973fbd55SNeil Armstrong }; 510973fbd55SNeil Armstrong}; 5115d28bb01SNeil Armstrong 5125d28bb01SNeil Armstrong&i2c_A { 5135d28bb01SNeil Armstrong clocks = <&clkc CLKID_I2C>; 5145d28bb01SNeil Armstrong}; 5155d28bb01SNeil Armstrong 51604b36df4SNeil Armstrong&i2c_AO { 51704b36df4SNeil Armstrong clocks = <&clkc CLKID_AO_I2C>; 51804b36df4SNeil Armstrong}; 51904b36df4SNeil Armstrong 5205d28bb01SNeil Armstrong&i2c_B { 5215d28bb01SNeil Armstrong clocks = <&clkc CLKID_I2C>; 5225d28bb01SNeil Armstrong}; 5235d28bb01SNeil Armstrong 5245d28bb01SNeil Armstrong&i2c_C { 5255d28bb01SNeil Armstrong clocks = <&clkc CLKID_I2C>; 5265d28bb01SNeil Armstrong}; 5276d489dc8SNeil Armstrong 528bd80ef5eSMartin Blumenstingl&saradc { 529bd80ef5eSMartin Blumenstingl compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc"; 530bd80ef5eSMartin Blumenstingl clocks = <&xtal>, 531bd80ef5eSMartin Blumenstingl <&clkc CLKID_SAR_ADC>, 532bd80ef5eSMartin Blumenstingl <&clkc CLKID_SANA>, 533bd80ef5eSMartin Blumenstingl <&clkc CLKID_SAR_ADC_CLK>, 534bd80ef5eSMartin Blumenstingl <&clkc CLKID_SAR_ADC_SEL>; 535bd80ef5eSMartin Blumenstingl clock-names = "clkin", "core", "sana", "adc_clk", "adc_sel"; 536bd80ef5eSMartin Blumenstingl}; 537bd80ef5eSMartin Blumenstingl 5386d489dc8SNeil Armstrong&sd_emmc_a { 5396d489dc8SNeil Armstrong clocks = <&clkc CLKID_SD_EMMC_A>, 5406d489dc8SNeil Armstrong <&xtal>, 5416d489dc8SNeil Armstrong <&clkc CLKID_FCLK_DIV2>; 5426d489dc8SNeil Armstrong clock-names = "core", "clkin0", "clkin1"; 5436d489dc8SNeil Armstrong}; 5446d489dc8SNeil Armstrong 5456d489dc8SNeil Armstrong&sd_emmc_b { 5466d489dc8SNeil Armstrong clocks = <&clkc CLKID_SD_EMMC_B>, 5476d489dc8SNeil Armstrong <&xtal>, 5486d489dc8SNeil Armstrong <&clkc CLKID_FCLK_DIV2>; 5496d489dc8SNeil Armstrong clock-names = "core", "clkin0", "clkin1"; 5506d489dc8SNeil Armstrong}; 5516d489dc8SNeil Armstrong 5526d489dc8SNeil Armstrong&sd_emmc_c { 5536d489dc8SNeil Armstrong clocks = <&clkc CLKID_SD_EMMC_C>, 5546d489dc8SNeil Armstrong <&xtal>, 5556d489dc8SNeil Armstrong <&clkc CLKID_FCLK_DIV2>; 5566d489dc8SNeil Armstrong clock-names = "core", "clkin0", "clkin1"; 5576d489dc8SNeil Armstrong}; 558fafdbdf7SNeil Armstrong 55904b36df4SNeil Armstrong&spifc { 56004b36df4SNeil Armstrong clocks = <&clkc CLKID_SPI>; 56104b36df4SNeil Armstrong}; 56204b36df4SNeil Armstrong 563fafdbdf7SNeil Armstrong&vpu { 564fafdbdf7SNeil Armstrong compatible = "amlogic,meson-gxl-vpu", "amlogic,meson-gx-vpu"; 565fafdbdf7SNeil Armstrong}; 566*6939db7eSNeil Armstrong 567*6939db7eSNeil Armstrong&hdmi_tx { 568*6939db7eSNeil Armstrong compatible = "amlogic,meson-gxl-dw-hdmi", "amlogic,meson-gx-dw-hdmi"; 569*6939db7eSNeil Armstrong resets = <&reset RESET_HDMITX_CAPB3>, 570*6939db7eSNeil Armstrong <&reset RESET_HDMI_SYSTEM_RESET>, 571*6939db7eSNeil Armstrong <&reset RESET_HDMI_TX>; 572*6939db7eSNeil Armstrong reset-names = "hdmitx_apb", "hdmitx", "hdmitx_phy"; 573*6939db7eSNeil Armstrong clocks = <&clkc CLKID_HDMI_PCLK>, 574*6939db7eSNeil Armstrong <&clkc CLKID_CLK81>, 575*6939db7eSNeil Armstrong <&clkc CLKID_GCLK_VENCI_INT0>; 576*6939db7eSNeil Armstrong clock-names = "isfr", "iahb", "venci"; 577*6939db7eSNeil Armstrong}; 578