/* Copyright (c) 2015, 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. * */ #include "../../../arm64/boot/dts/qcom/Fritz_Box_HW270.dts" #include "../../../../include/linux/avm_hw_config_def.h" / { model = "AVM FRITZ!Repeater 3000 AX"; avm-hw-revision { compatible = "avm,avm_hw_revision"; revision = "270"; subrevision = "2"; }; avm_gpio { compatible = "avm,avm_gpio_generic"; }; avm-hui { compatible = "avm,hui"; pinctrl-0 = <&avm_button_pins>; pinctrl-names = "default"; status = "ok"; // The LED on this HWSubRev has a // special byteorder for the colors. // So we have to swap the byteorder here. colors { // r b g normal = <0x40>, <0x00>, <0x8C>; warn = <0x8C>, <0x00>, <0x46>; error = <0x8C>, <0x00>, <0x00>; }; repeater-connect { compatible = "avm,hui-generic-button-gpio"; gpios = <&tlmm 27 GPIO_ACTIVE_LOW>; }; }; pmuv8: pmu { compatible = "arm,cortex-a7-pmu"; }; avm_netdev_map { lan2 { netdev = "eth1"; }; }; soc { mdio1: mdio@90000 { status = "ok"; pinctrl-0 = <&mdio1_pins>; pinctrl-names = "default"; phy-reset-gpio = <&tlmm 39 0>; avm,phy-early-reset; ethernet-phy@0 { reg = <28>; }; }; ess-instance { ess-switch@0x39c00000 { switch_mac_mode = <0xf>; /* mac mode for uniphy instance (PORT_WRAPPER_SGMII_CHANNEL0) */ qcom,port_phyinfo { port@1 { port_id = <2>; phy_address = <28>; mdiobus = <&mdio1>; port_mac_sel = "QGMAC_PORT"; avm,qca8081,no_2500T; }; }; }; }; dp1 { qcom,phy-mdio-addr = <7>; mdio-bus = <&mdio0>; devname = "eth1"; macname = "macb"; }; dp2 { status = "ok"; qcom,phy-mdio-addr = <28>; mdio-bus = <&mdio1>; devname = "eth0"; macname = "maca"; }; }; }; &tlmm { 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; }; }; }; &spi_2 { /* BLSP1 QUP2 */ pinctrl-0 = <&blsp2_spi1_pins>; pinctrl-names = "default"; cs-select = <0>; status = "ok"; avm-hui-lc882x@0 { compatible = "avm,hui-generic-lc882x"; spi-max-frequency = <400000>; reg = <0>; repeater-one-fr3000 { brightness-range = <25>, <127>; index = <1>; dimmable; }; repeater-rssi-color { brightness-range = <25>, <127>; index = <0>; dimmable; }; }; };