// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) /dts-v1/; #include "ipq5018.dtsi" #include "ipq5018-avm-common.dtsi" / { model = "AVM FRITZ!Powerline 1240 AX"; #address-cells = <0x2>; #size-cells = <0x2>; interrupt-parent = <&intc>; MP_256; /delete-property/ MP_512; avm_netdev_map { compatible = "avm,port_netdev"; plcport; lan1 { netdev = "eth0"; }; lan2 { netdev = "eth1"; }; }; avm-rt-framework { compatible = "avm,rt_framework"; ipi-gic-sgi = <9>, <10>, <11>, <12>, <13>, <14>; }; aliases { sdhc1 = &sdhc_1; /* SDC1 eMMC slot */ serial0 = &blsp1_uart1; serial1 = &blsp1_uart2; ethernet0 = "/soc/dp1"; ethernet1 = "/soc/dp2"; }; chosen { bootargs-prepend = " swiotlb=1 slub_debug=- "; stdout-path = "serial0"; }; reserved-memory { /delete-node/ nss@40000000; nss@40000000 { no-map; reg = <0x0 0x40000000 0x0 0x0800000>; }; q6_region: wcnss@4b000000 { no-map; reg = <0x0 0x4b000000 0x0 0x01700000>; }; m3_dump@4c700000 { no-map; reg = <0x0 0x4C700000 0x0 0x100000>; }; q6_etr_region:q6_etr_dump@4c800000 { no-map; reg = <0x0 0x4c800000 0x0 0x100000>; }; }; soc { serial@78af000 { pinctrl-0 = <&blsp0_uart_pins>; pinctrl-names = "default"; status = "ok"; }; qpic_bam: dma@7984000{ status = "ok"; }; nand: qpic-nand@79b0000 { pinctrl-0 = <&qspi_nand_pins>; pinctrl-names = "default"; status = "ok"; }; mdio0: mdio@88000 { #address-cells = <1>; #size-cells = <0>; status = "ok"; ethernet-phy@0 { reg = <7>; }; }; mdio1: mdio@90000 { status = "ok"; pinctrl-0 = <&mdio1_pins>; pinctrl-names = "default"; phy-reset-gpio = <&tlmm 16 1>; avm,clk_div = <0xF>; ethernet-phy@0 { reg = <8>; }; ethernet-phy@1 { reg = <1>; }; ethernet-phy@2 { reg = <2>; }; }; ess-instance { num_devices = <0x2>; #address-cells = <1>; #size-cells = <0>; ess-switch@0x39c00000 { device_id = <0>; switch_mac_mode = <0xf>; /* SGMII */ cmnblk_clk = "internal_96MHz"; /* cmnblk clk*/ qcom,port_phyinfo { port@0 { port_id = <1>; phy_address = <7>; mdiobus = <&mdio0>; }; /* Required to get GMAC2 up and running */ port@1 { port_id = <2>; forced-speed = <1000>; forced-duplex = <1>; }; }; }; ess-switch1@1 { compatible = "qcom,ess-switch-qca83xx"; device_id = <1>; switch_access_mode = "mdio"; mdio-bus = <&mdio1>; switch_cpu_bmp = <0x40>; /* cpu port bitmap */ switch_lan_bmp = <0x0D>; /* lan port bitmap */ switch_wan_bmp = <0x0>; /* wan port bitmap */ qca,ar8327-initvals = < 0x00004 0x7400000 /* PAD0_MODE BIT 26, 25, 24, 22 */ 0x00008 0x0000000 /* PAD5_MODE no MAC_RGMII_RXCLK_DELAY_EN */ 0x0000c 0x80 /* PAD6_MODE MAC6_SGMII_EN */ 0x00010 0x2613a0 /* PORT6 FORCE MODE*/ 0x000e4 0xaa545 /* MAC_POWER_SEL */ 0x000e0 0xc74164de /* SGMII_CTRL */ 0x0007c 0x4e /* PORT0_STATUS */ 0x00094 0x4e /* PORT6_STATUS */ >; qcom,port_phyinfo { port@0 { port_id = <0>; phy_address = <8>; mdiobus = <&mdio1>; }; port@1 { port_id = <2>; phy_address = <1>; mdiobus = <&mdio1>; }; port@2 { port_id = <3>; phy_address = <2>; mdiobus = <&mdio1>; }; }; }; }; qcom_q6v5_wcss@CD00000 { memory-region = <&q6_region>, <&q6_etr_region>; }; nss-common { avm,mem-profile-low; }; dp1 { status = "disabled"; }; dp2 { status = "ok"; device_type = "network"; compatible = "qcom,nss-dp"; clocks = <&gcc GCC_SNOC_GMAC1_AXI_CLK>; clock-names = "nss-snoc-gmac-axi-clk"; qcom,id = <2>; reg = <0x39D00000 0x10000>; interrupts = ; qcom,mactype = <2>; local-mac-address = [000000000000]; phy-mode = "sgmii"; devname = "gmac1"; avm,no_pa; avm,portid; }; virt-dp1 { compatible = "avm,nss-virtifmgr"; status = "ok"; phy-mode = "sgmii"; devname = "eth1"; macname = "macb"; identifier = <1>; gmac_id = <1>; port_id = <2>; type = <2>; mdio-bus = <&mdio1>; phy_addr = <1>; }; virt-dp2 { compatible = "avm,nss-virtifmgr"; status = "ok"; phy-mode = "sgmii"; devname = "eth0"; macname = "maca"; identifier = <2>; gmac_id = <1>; port_id = <3>; type = <2>; mdio-bus = <&mdio1>; phy_addr = <2>; }; virt-dp3 { compatible = "avm,nss-virtifmgr"; status = "ok"; phy-mode = "sgmii"; devname = "plc"; macname = "usb_board_mac"; identifier = <3>; gmac_id = <1>; port_id = <0>; type = <2>; mdio-bus = <&mdio1>; phy_addr = <8>; }; qcom,test@0 { status = "ok"; }; }; }; &sdhc_1 { status = "disabled"; }; &tlmm { blsp0_uart_pins: blsp0_uart_pins { blsp0_uart_rx { pins = "gpio21"; function = "blsp0_uart1"; drive-strength = <8>; }; blsp0_uart_tx { pins = "gpio20"; function = "blsp0_uart1"; drive-strength = <8>; }; }; qspi_nand_pins: qspi_nand_pins { qspi_clock { pins = "gpio9"; function = "qspi_clk"; drive-strength = <8>; bias-disable; }; qspi_cs { pins = "gpio8"; function = "qspi_cs"; drive-strength = <8>; bias-disable; }; qspi_data_0 { pins = "gpio7"; function = "qspi0"; drive-strength = <8>; bias-disable; }; qspi_data_1 { pins = "gpio6"; function = "qspi1"; drive-strength = <8>; bias-disable; }; qspi_data_2 { pins = "gpio5"; function = "qspi2"; drive-strength = <8>; bias-disable; }; qspi_data_3 { pins = "gpio4"; function = "qspi3"; drive-strength = <8>; bias-disable; }; }; mdio1_pins: mdio_pinmux { mux_0 { pins = "gpio36"; function = "mdc"; drive-strength = <8>; bias-pull-up; }; mux_1 { pins = "gpio37"; function = "mdio"; drive-strength = <8>; bias-pull-up; }; }; avm_led_pins: avm_led_pins { mux { pins = "gpio13", "gpio19", "gpio27", "gpio28", "gpio29"; function = "gpio"; drive-strength = <8>; bias-disable; }; }; avm_plc_pins: avm_plc_pins { plc_reset { pins = "gpio17"; function = "gpio"; drive-strength = <8>; output-low; }; }; /* phy_pins: phy_pins { phy_reset { pins = "gpio16"; function = "gpio"; drive-strength = <8>; bias-pull-up; output-low; }; }; */ }; &pcie_x1phy { status = "disabled"; }; &pcie_x1 { status = "disabled"; }; &pcie_x2phy { status = "disabled"; }; &pcie_x2 { status = "disabled"; }; &eud { status = "ok"; }; &dwc_0 { /delete-property/ #phy-cells; /delete-property/ phys; /delete-property/ phy-names; }; &hs_m31phy_0 { status = "ok"; }; &pcie_x1_rp { status = "disabled"; }; &qfprom { status = "ok"; }; &tsens { status = "ok"; }; /* &qgic_msi_0 { status = "ok"; }; &qgic_msi_1 { status = "ok"; }; */ &q6v5_wcss { qcom,nosecure; /* IPQ5018 */ q6v5_wcss_userpd1 { m3_firmware = "IPQ5018/m3_fw.mdt"; interrupts-extended = <&wcss_smp2p_in 8 0>, <&wcss_smp2p_in 9 0>, <&wcss_smp2p_in 12 0>, <&wcss_smp2p_in 11 0>; interrupt-names ="fatal", "ready", "spawn_ack", "stop-ack"; qcom,smem-states = <&wcss_smp2p_out 8>, <&wcss_smp2p_out 9>, <&wcss_smp2p_out 10>; qcom,smem-state-names = "shutdown", "stop", "spawn"; qca,asid = <1>; qca,auto-restart; qca,int_radio; }; }; &wifi0 { /* IPQ5018 */ qcom,tgt-mem-mode = <2>; qcom,board_id = <0x24>; qcom,bdf-addr = <0x4ba00000 0x4ba00000 0x4ba00000 0x0 0x0>; qcom,caldb-addr = <0x0 0x0 0 0 0>; qcom,caldb-size = <0x0>; status = "ok"; };