/* * Copyright (c) 2016-2021, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ /dts-v1/; #include "ipq9574-soc.dtsi" / { model ="QCA, IPQ9574/DB-AL01-C1"; compatible = "qca,ipq9574", "qca,ipq9574-db-al01-c1"; machid = <0x1050000>; config_name = "config@db-al01-c1"; aliases { console = "/serial@78B1000"; uart2 = "/serial@78B2000"; usb0 = "/xhci@8a00000"; nand = "/nand-controller@79B0000"; i2c0 = "/i2c@78BA000"; }; console: serial@78B1000 { status = "ok"; serial_gpio { blsp1_uart2_rx { gpio = <34>; func = <1>; pull = ; drvstr = ; od_en = ; }; blsp1_uart2_tx { gpio = <35>; func = <1>; pull = ; drvstr = ; od_en = ; }; }; }; spi { spi_gpio { blsp0_spi_clk { gpio = <11>; func = <1>; pull = ; oe = ; drvstr = ; }; blsp0_spi_mosi { gpio = <14>; func = <1>; pull = ; oe = ; drvstr = ; }; blsp0_spi_miso { gpio = <13>; func = <1>; pull = ; drvstr = ; }; blsp0_spi_cs { gpio = <12>; func = <1>; oe = ; drvstr = ; }; }; }; i2c0: i2c@78BA000 { i2c_gpio { gpio1 { gpio = <48>; func = <1>; pull = ; drvstr = ; oe = ; }; gpio2 { gpio = <49>; func = <1>; pull = ; drvstr = ; oe = ; }; }; }; nand: nand-controller@79B0000 { status = "okay"; nand_gpio { qspi_dat3 { gpio = <0>; func = <2>; pull = ; od_en = ; drvstr = ; }; qspi_dat2 { gpio = <1>; func = <2>; pull = ; od_en = ; drvstr = ; }; qspi_dat1 { gpio = <2>; func = <2>; pull = ; od_en = ; drvstr = ; }; qspi_dat0 { gpio = <3>; func = <2>; pull = ; od_en = ; drvstr = ; }; qspi_cs_n { gpio = <4>; func = <2>; pull = ; od_en = ; drvstr = ; }; qspi_clk { gpio = <5>; func = <2>; pull = ; od_en = ; drvstr = ; }; }; }; pci0: pci@20000000 { status = "ok"; perst_gpio = <29>; pci_gpio { pci_rst { gpio = <29>; func = <0>; pull = ; oe = ; od_en = ; drvstr = ; }; }; }; pci1: pci@18000000 { status = "ok"; perst_gpio = <32>; pci_gpio { pci_rst { gpio = <32>; func = <0>; pull = ; oe = ; od_en = ; drvstr = ; }; }; }; ess-switch { switch_mac_mode0 = ; switch_mac_mode1 = ; switch_mac_mode2 = ; qca807x_gpio = <60>; qca807x_gpio_cnt = <1>; aquantia_gpio = <36>; aquantia_gpio_cnt = <1>; aquantia_port = <5>; aquantia_port_cnt = <1>; qca808x_gpio = <57>; qca808x_gpio_cnt = <1>; mdc_mdio_gpio = <38 39>; port_phyinfo { port@0 { phy_address = <16>; phy_type = ; }; port@1 { phy_address = <17>; phy_type = ; }; port@2 { phy_address = <18>; phy_type = ; }; port@3 { phy_address = <19>; phy_type = ; }; port@4 { phy_address = <8>; phy_type = ; }; port@5 { phy_address = <28>; phy_type = ; }; }; }; };