/* Copyright (c) 2016, The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * */ /dts-v1/; #include #include #include "../../../../include/linux/avm_hw_config_def.h" #include "ath79_avm.dtsi" / { model = "AVM FritzBox 7490 - Target"; nmi-relocation = <1>; aliases { serial0 = "/ahb/apb/uart@18020000"; pci0 = &pci_0; ehci_0 = &ehci0; ehci_1 = &ehci1; eth0 = "/ahb/ethernet@19000000"; eth1 = "/ahb/ethernet@1a000000"; }; avm-hw-revision { compatible = "avm,avm_hw_revision"; revision = "238"; subrevision = "0"; }; chosen { }; avm-gpio{ compatible = "avm,avm_gpio_generic"; gpio_avm_uart_rx { value = <9>; param = ; function = <0x00000008>; }; gpio_avm_uart_tx { value = <10>; param = ; function = <0x00000016>; }; gpio_avm_mdio_slave_clk { value = <11>; param = ; function = <0x00000308>; }; gpio_avm_mdio_slave_data { value = <18>; param = ; function = <0x00010300>; }; gpio_avm_peregrine_reset { value = <23>; param = ; default = <1>; }; }; extosc: oscillator { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <40000000>; }; ahb { apb { uart@18020000 { status = "okay"; }; pll-controller@18050000 { clocks = <&extosc>; }; ehci0: usb@1b000000 { compatible = "qca,ath79-ehci", "qca,ap135-ehci"; reg = <0x1b000000 0x1000>; interrupt-parent = <&ip3_int>; interrupts = <0>; has-transaction-translator; qca_force_host_mode; qca_force_16bit_ptw; caps-offset = <0x100>; status = "disabled"; }; ehci1: usb@1b400000 { compatible = "qca,ath79-ehci", "qca,ap135-ehci"; reg = <0x1b400000 0x1000>; interrupt-parent = <&ip3_int>; interrupts = <1>; has-transaction-translator; qca_force_host_mode; qca_force_16bit_ptw; caps-offset = <0x100>; status = "disabled"; }; pci_0: pci@0x14000000 { compatible = "qca,ar724x-pci"; reg = <0x14000000 0x1000>, <0x180f0000 0x100>, <0x180c0000 0x1000>, <0x10000000 0x02000000>, <0 1>; reg-names = "cfg_base","ctrl_base","crp_base", "mem_base","io_base"; interrupt-parent = <&ip2_int>; interrupts = <0>; status = "okay"; }; pci_1: pci@0x16000000 { compatible = "qca,ar724x-pci"; reg = <0x16000000 0x1000>, <0x18280000 0x100>, <0x18250000 0x1000>, <0x12000000 0x02000000>, <1 1>; reg-names = "cfg_base","ctrl_base","crp_base", "mem_base","io_base"; interrupt-parent = <&ip3_int>; interrupts = <2>; status = "disabled"; }; }; mdio0: mdio@19000000 { compatible = "qca,ag71xx-mdio"; reg = <0x19000000 0x200>; phy-mask = <0>; builtin-switch = <0>; ar934x-support = <0>; reset-bit = <0x400000>; }; eth0: ethernet@19000000 { compatible = "qca,ag71xx-eth"; reg = <0x19000000 0x200>, <0x18070000 0x14>; reg-names = "mac_base", "cfg_base"; mdio-handle = <&mdio0>; eth-pll-data = <0x1313 0 0x86000000>; phy-mode = <7>; phy-mask = <1>; force-speed = <1000>; force-duplex = <1>; max-frame-len = <4095>; desc-pktlen-mask = <0x3fff>; reset-bit = <0x200>; has-gbit = <1>; ar724x-support = <1>; qca955x-support = <1>; fifo-cfg = <0x0010ffff 0x015500aa 0x01f00140>; interrupts = <4>; interrupt-names = "mac_irq"; local-mac-address = [ 00 00 00 00 00 00 ]; }; eth1: ethernet@1a000000 { compatible = "qca,ag71xx-eth"; reg = <0x1a000000 0x200>; reg-names = "mac_base"; mdio-handle = <&mdio0>; eth-pll-data = <0x1616 0x101 0x03000101>; phy-mode = <3>; force-speed = <1000>; force-duplex = <1>; max-frame-len = <4095>; desc-pktlen-mask = <0x3fff>; reset-bit = <0x2000>; has-gbit = <1>; ar724x-support = <1>; qca955x-support = <1>; fifo-cfg = <0x0010ffff 0x015500aa 0x01f00140>; interrupts = <5>; interrupt-names = "mac_irq"; local-mac-address = [ 00 00 00 00 00 00 ]; status = "disabled"; }; }; wifi0: wifi@b8100000 { compatible = "qca,wifi-ar955x"; reg = <0xb8100000 0x20000>; core-id = <0x0>; interrupt-parent = <&ip2_int>; interrupts = <1>; interrupt-names = "legacy"; status = "ok"; }; };