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" 45*973fbd55SNeil Armstrong#include <dt-bindings/clock/gxbb-clkc.h> 46fb0fe922SNeil Armstrong#include <dt-bindings/gpio/meson-gxbb-gpio.h> 4715abee8aSCarlo Caione 4815abee8aSCarlo Caione/ { 4915abee8aSCarlo Caione compatible = "amlogic,meson-gxl"; 5015abee8aSCarlo Caione}; 51fb0fe922SNeil Armstrong 52fb0fe922SNeil Armstrong&aobus { 53fb0fe922SNeil Armstrong pinctrl_aobus: pinctrl@14 { 54fb0fe922SNeil Armstrong compatible = "amlogic,meson-gxl-aobus-pinctrl"; 55fb0fe922SNeil Armstrong #address-cells = <2>; 56fb0fe922SNeil Armstrong #size-cells = <2>; 57fb0fe922SNeil Armstrong ranges; 58fb0fe922SNeil Armstrong 59fb0fe922SNeil Armstrong gpio_ao: bank@14 { 60fb0fe922SNeil Armstrong reg = <0x0 0x00014 0x0 0x8>, 61fb0fe922SNeil Armstrong <0x0 0x0002c 0x0 0x4>, 62fb0fe922SNeil Armstrong <0x0 0x00024 0x0 0x8>; 63fb0fe922SNeil Armstrong reg-names = "mux", "pull", "gpio"; 64fb0fe922SNeil Armstrong gpio-controller; 65fb0fe922SNeil Armstrong #gpio-cells = <2>; 66fb0fe922SNeil Armstrong }; 67fb0fe922SNeil Armstrong 68fb0fe922SNeil Armstrong uart_ao_a_pins: uart_ao_a { 69fb0fe922SNeil Armstrong mux { 70fb0fe922SNeil Armstrong groups = "uart_tx_ao_a", "uart_rx_ao_a"; 71fb0fe922SNeil Armstrong function = "uart_ao"; 72fb0fe922SNeil Armstrong }; 73fb0fe922SNeil Armstrong }; 74fb0fe922SNeil Armstrong 75fb0fe922SNeil Armstrong remote_input_ao_pins: remote_input_ao { 76fb0fe922SNeil Armstrong mux { 77fb0fe922SNeil Armstrong groups = "remote_input_ao"; 78fb0fe922SNeil Armstrong function = "remote_input_ao"; 79fb0fe922SNeil Armstrong }; 80fb0fe922SNeil Armstrong }; 81fb0fe922SNeil Armstrong }; 82fb0fe922SNeil Armstrong}; 83fb0fe922SNeil Armstrong 84fb0fe922SNeil Armstrong&periphs { 85fb0fe922SNeil Armstrong pinctrl_periphs: pinctrl@4b0 { 86fb0fe922SNeil Armstrong compatible = "amlogic,meson-gxl-periphs-pinctrl"; 87fb0fe922SNeil Armstrong #address-cells = <2>; 88fb0fe922SNeil Armstrong #size-cells = <2>; 89fb0fe922SNeil Armstrong ranges; 90fb0fe922SNeil Armstrong 91fb0fe922SNeil Armstrong gpio: bank@4b0 { 92fb0fe922SNeil Armstrong reg = <0x0 0x004b0 0x0 0x28>, 93fb0fe922SNeil Armstrong <0x0 0x004e8 0x0 0x14>, 94fb0fe922SNeil Armstrong <0x0 0x00120 0x0 0x14>, 95fb0fe922SNeil Armstrong <0x0 0x00430 0x0 0x40>; 96fb0fe922SNeil Armstrong reg-names = "mux", "pull", "pull-enable", "gpio"; 97fb0fe922SNeil Armstrong gpio-controller; 98fb0fe922SNeil Armstrong #gpio-cells = <2>; 99fb0fe922SNeil Armstrong }; 100fb0fe922SNeil Armstrong 101fb0fe922SNeil Armstrong emmc_pins: emmc { 102fb0fe922SNeil Armstrong mux { 103fb0fe922SNeil Armstrong groups = "emmc_nand_d07", 104fb0fe922SNeil Armstrong "emmc_cmd", 105fb0fe922SNeil Armstrong "emmc_clk", 106fb0fe922SNeil Armstrong "emmc_ds"; 107fb0fe922SNeil Armstrong function = "emmc"; 108fb0fe922SNeil Armstrong }; 109fb0fe922SNeil Armstrong }; 110fb0fe922SNeil Armstrong 111fb0fe922SNeil Armstrong sdcard_pins: sdcard { 112fb0fe922SNeil Armstrong mux { 113fb0fe922SNeil Armstrong groups = "sdcard_d0", 114fb0fe922SNeil Armstrong "sdcard_d1", 115fb0fe922SNeil Armstrong "sdcard_d2", 116fb0fe922SNeil Armstrong "sdcard_d3", 117fb0fe922SNeil Armstrong "sdcard_cmd", 118fb0fe922SNeil Armstrong "sdcard_clk"; 119fb0fe922SNeil Armstrong function = "sdcard"; 120fb0fe922SNeil Armstrong }; 121fb0fe922SNeil Armstrong }; 122fb0fe922SNeil Armstrong 123fb0fe922SNeil Armstrong sdio_pins: sdio { 124fb0fe922SNeil Armstrong mux { 125fb0fe922SNeil Armstrong groups = "sdio_d0", 126fb0fe922SNeil Armstrong "sdio_d1", 127fb0fe922SNeil Armstrong "sdio_d2", 128fb0fe922SNeil Armstrong "sdio_d3", 129fb0fe922SNeil Armstrong "sdio_cmd", 130fb0fe922SNeil Armstrong "sdio_clk"; 131fb0fe922SNeil Armstrong function = "sdio"; 132fb0fe922SNeil Armstrong }; 133fb0fe922SNeil Armstrong }; 134fb0fe922SNeil Armstrong 135fb0fe922SNeil Armstrong sdio_irq_pins: sdio_irq { 136fb0fe922SNeil Armstrong mux { 137fb0fe922SNeil Armstrong groups = "sdio_irq"; 138fb0fe922SNeil Armstrong function = "sdio"; 139fb0fe922SNeil Armstrong }; 140fb0fe922SNeil Armstrong }; 141fb0fe922SNeil Armstrong 142fb0fe922SNeil Armstrong uart_a_pins: uart_a { 143fb0fe922SNeil Armstrong mux { 144fb0fe922SNeil Armstrong groups = "uart_tx_a", 145fb0fe922SNeil Armstrong "uart_rx_a"; 146fb0fe922SNeil Armstrong function = "uart_a"; 147fb0fe922SNeil Armstrong }; 148fb0fe922SNeil Armstrong }; 149fb0fe922SNeil Armstrong 150fb0fe922SNeil Armstrong uart_b_pins: uart_b { 151fb0fe922SNeil Armstrong mux { 152fb0fe922SNeil Armstrong groups = "uart_tx_b", 153fb0fe922SNeil Armstrong "uart_rx_b"; 154fb0fe922SNeil Armstrong function = "uart_b"; 155fb0fe922SNeil Armstrong }; 156fb0fe922SNeil Armstrong }; 157fb0fe922SNeil Armstrong 158fb0fe922SNeil Armstrong uart_c_pins: uart_c { 159fb0fe922SNeil Armstrong mux { 160fb0fe922SNeil Armstrong groups = "uart_tx_c", 161fb0fe922SNeil Armstrong "uart_rx_c"; 162fb0fe922SNeil Armstrong function = "uart_c"; 163fb0fe922SNeil Armstrong }; 164fb0fe922SNeil Armstrong }; 165fb0fe922SNeil Armstrong 166fb0fe922SNeil Armstrong i2c_a_pins: i2c_a { 167fb0fe922SNeil Armstrong mux { 168fb0fe922SNeil Armstrong groups = "i2c_sck_a", 169fb0fe922SNeil Armstrong "i2c_sda_a"; 170fb0fe922SNeil Armstrong function = "i2c_a"; 171fb0fe922SNeil Armstrong }; 172fb0fe922SNeil Armstrong }; 173fb0fe922SNeil Armstrong 174fb0fe922SNeil Armstrong i2c_b_pins: i2c_b { 175fb0fe922SNeil Armstrong mux { 176fb0fe922SNeil Armstrong groups = "i2c_sck_b", 177fb0fe922SNeil Armstrong "i2c_sda_b"; 178fb0fe922SNeil Armstrong function = "i2c_b"; 179fb0fe922SNeil Armstrong }; 180fb0fe922SNeil Armstrong }; 181fb0fe922SNeil Armstrong 182fb0fe922SNeil Armstrong i2c_c_pins: i2c_c { 183fb0fe922SNeil Armstrong mux { 184fb0fe922SNeil Armstrong groups = "i2c_sck_c", 185fb0fe922SNeil Armstrong "i2c_sda_c"; 186fb0fe922SNeil Armstrong function = "i2c_c"; 187fb0fe922SNeil Armstrong }; 188fb0fe922SNeil Armstrong }; 189fb0fe922SNeil Armstrong 190fb0fe922SNeil Armstrong eth_pins: eth_c { 191fb0fe922SNeil Armstrong mux { 192fb0fe922SNeil Armstrong groups = "eth_mdio", 193fb0fe922SNeil Armstrong "eth_mdc", 194fb0fe922SNeil Armstrong "eth_clk_rx_clk", 195fb0fe922SNeil Armstrong "eth_rx_dv", 196fb0fe922SNeil Armstrong "eth_rxd0", 197fb0fe922SNeil Armstrong "eth_rxd1", 198fb0fe922SNeil Armstrong "eth_rxd2", 199fb0fe922SNeil Armstrong "eth_rxd3", 200fb0fe922SNeil Armstrong "eth_rgmii_tx_clk", 201fb0fe922SNeil Armstrong "eth_tx_en", 202fb0fe922SNeil Armstrong "eth_txd0", 203fb0fe922SNeil Armstrong "eth_txd1", 204fb0fe922SNeil Armstrong "eth_txd2", 205fb0fe922SNeil Armstrong "eth_txd3"; 206fb0fe922SNeil Armstrong function = "eth"; 207fb0fe922SNeil Armstrong }; 208fb0fe922SNeil Armstrong }; 209fb0fe922SNeil Armstrong 210fb0fe922SNeil Armstrong pwm_e_pins: pwm_e { 211fb0fe922SNeil Armstrong mux { 212fb0fe922SNeil Armstrong groups = "pwm_e"; 213fb0fe922SNeil Armstrong function = "pwm_e"; 214fb0fe922SNeil Armstrong }; 215fb0fe922SNeil Armstrong }; 216fb0fe922SNeil Armstrong }; 217fb0fe922SNeil Armstrong}; 218*973fbd55SNeil Armstrong 219*973fbd55SNeil Armstrong&hiubus { 220*973fbd55SNeil Armstrong clkc: clock-controller@0 { 221*973fbd55SNeil Armstrong compatible = "amlogic,gxl-clkc", "amlogic,gxbb-clkc"; 222*973fbd55SNeil Armstrong #clock-cells = <1>; 223*973fbd55SNeil Armstrong reg = <0x0 0x0 0x0 0x3db>; 224*973fbd55SNeil Armstrong }; 225*973fbd55SNeil Armstrong}; 226