| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432 |
- // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
- /dts-v1/;
- #include "ipq6018.dtsi"
- #include "ipq6018-cp-cpu.dtsi"
- #include "ipq6018-ess.dtsi"
- #include <dt-bindings/gpio/gpio.h>
- #include <dt-bindings/input/input.h>
- #include <dt-bindings/leds/common.h>
- / {
- model = "Linksys MR7350";
- compatible = "linksys,mr7350", "qcom,ipq6018";
- aliases {
- serial0 = &blsp1_uart3;
- serial1 = &blsp1_uart2;
- led-boot = &led_system_blue;
- led-running = &led_system_blue;
- led-failsafe = &led_system_red;
- led-upgrade = &led_system_green;
- };
- chosen {
- stdout-path = "serial0:115200n8";
- bootargs-append = " root=/dev/ubiblock0_0";
- };
- keys {
- compatible = "gpio-keys";
- wps-button {
- label = "wps";
- linux,code = <KEY_WPS_BUTTON>;
- gpios = <&tlmm 56 GPIO_ACTIVE_LOW>;
- };
- reset-button {
- label = "reset";
- linux,code = <KEY_RESTART>;
- gpios = <&tlmm 57 GPIO_ACTIVE_LOW>;
- };
- };
- leds {
- compatible = "gpio-leds";
- usb {
- color = <LED_COLOR_ID_BLUE>;
- function = LED_FUNCTION_USB;
- gpios = <&tlmm 60 GPIO_ACTIVE_HIGH>;
- trigger-sources = <&usb3_port1>, <&usb3_port2>;
- linux,default-trigger = "usbport";
- };
- };
- reg_usb_vbus: regulator-usb-vbus {
- compatible = "regulator-fixed";
- regulator-name = "usb_vbus";
- regulator-min-microvolt = <5000000>;
- regulator-max-microvolt = <5000000>;
- gpios = <&tlmm 61 GPIO_ACTIVE_LOW>;
- regulator-boot-on;
- };
- };
- &tlmm {
- hsuart_pins: hsuart-pins {
- mux {
- pins = "gpio69", "gpio70",
- "gpio71", "gpio72";
- function = "blsp1_uart";
- drive-strength = <8>;
- bias-disable;
- };
- };
- i2c_pins: i2c-pins {
- mux {
- pins = "gpio42", "gpio43";
- function = "blsp2_i2c";
- drive-strength = <8>;
- bias-pull-down;
- };
- };
- mdio_pins: mdio-state {
- mdc-pins {
- pins = "gpio64";
- function = "mdc";
- drive-strength = <8>;
- bias-pull-up;
- };
- mdio-pins {
- pins = "gpio65";
- function = "mdio";
- drive-strength = <8>;
- bias-pull-up;
- };
- };
- };
- &blsp1_i2c3 {
- pinctrl-0 = <&i2c_pins>;
- pinctrl-names = "default";
- status = "okay";
- led-controller@62 {
- compatible = "nxp,pca9633";
- #address-cells = <1>;
- #size-cells = <0>;
- reg = <0x62>;
- led_system_red: led@0 {
- reg = <0>;
- color = <LED_COLOR_ID_RED>;
- function = LED_FUNCTION_STATUS;
- };
- led_system_green: led@1 {
- reg = <1>;
- color = <LED_COLOR_ID_GREEN>;
- function = LED_FUNCTION_STATUS;
- };
- led_system_blue: led@2 {
- reg = <2>;
- color = <LED_COLOR_ID_BLUE>;
- function = LED_FUNCTION_STATUS;
- };
- };
- };
- &blsp1_uart2 {
- pinctrl-0 = <&hsuart_pins>;
- pinctrl-names = "default";
- status = "okay";
- };
- &blsp1_uart3 {
- pinctrl-0 = <&serial_3_pins>;
- pinctrl-names = "default";
- status = "okay";
- };
- &dwc_0 {
- #address-cells = <1>;
- #size-cells = <0>;
- usb3_port1: port@1 {
- reg = <1>;
- #trigger-source-cells = <0>;
- };
- usb3_port2: port@2 {
- reg = <2>;
- #trigger-source-cells = <0>;
- };
- };
- &qpic_bam {
- status = "okay";
- };
- &qpic_nand {
- status = "okay";
- nand@0 {
- reg = <0>;
- nand-ecc-strength = <4>;
- nand-ecc-step-size = <512>;
- nand-bus-width = <8>;
- partitions {
- compatible = "qcom,smem-part";
- #address-cells = <1>;
- #size-cells = <1>;
- partition-0-devinfo {
- label = "devinfo";
- read-only;
- #address-cells = <1>;
- #size-cells = <1>;
- nvmem-layout {
- compatible = "ascii-eq-delim-env";
- #address-cells = <1>;
- #size-cells = <1>;
- hw_mac_addr: hw_mac_addr {
- compatible = "mac-base";
- #nvmem-cell-cells = <1>;
- };
- };
- };
- };
- };
- };
- &qusb_phy_0 {
- status = "okay";
- vdd-supply = <®_usb_vbus>;
- };
- &ssphy_0 {
- status = "okay";
- };
- &usb3 {
- vbus-supply = <®_usb_vbus>;
- status = "okay";
- };
- &mdio {
- status = "okay";
- pinctrl-0 = <&mdio_pins>;
- pinctrl-names = "default";
- reset-gpios = <&tlmm 75 GPIO_ACTIVE_LOW>;
- ethernet-phy-package@0 {
- compatible = "qcom,qca8075-package";
- #address-cells = <1>;
- #size-cells = <0>;
- reg = <0>;
- qca8075_0: ethernet-phy@0 {
- compatible = "ethernet-phy-ieee802.3-c22";
- reg = <0>;
- leds {
- #address-cells = <1>;
- #size-cells = <0>;
- led@0 {
- reg = <0>;
- color = <LED_COLOR_ID_ORANGE>;
- function = LED_FUNCTION_LAN;
- default-state = "keep";
- };
- led@1 {
- reg = <1>;
- color = <LED_COLOR_ID_GREEN>;
- function = LED_FUNCTION_LAN;
- default-state = "keep";
- };
- };
- };
- qca8075_1: ethernet-phy@1 {
- compatible = "ethernet-phy-ieee802.3-c22";
- reg = <1>;
- leds {
- #address-cells = <1>;
- #size-cells = <0>;
- led@0 {
- reg = <0>;
- color = <LED_COLOR_ID_ORANGE>;
- function = LED_FUNCTION_LAN;
- default-state = "keep";
- };
- led@1 {
- reg = <1>;
- color = <LED_COLOR_ID_GREEN>;
- function = LED_FUNCTION_LAN;
- default-state = "keep";
- };
- };
- };
- qca8075_2: ethernet-phy@2 {
- compatible = "ethernet-phy-ieee802.3-c22";
- reg = <2>;
- leds {
- #address-cells = <1>;
- #size-cells = <0>;
- led@0 {
- reg = <0>;
- color = <LED_COLOR_ID_ORANGE>;
- function = LED_FUNCTION_LAN;
- default-state = "keep";
- };
- led@1 {
- reg = <1>;
- color = <LED_COLOR_ID_GREEN>;
- function = LED_FUNCTION_LAN;
- default-state = "keep";
- };
- };
- };
- qca8075_3: ethernet-phy@3 {
- compatible = "ethernet-phy-ieee802.3-c22";
- reg = <3>;
- leds {
- #address-cells = <1>;
- #size-cells = <0>;
- led@0 {
- reg = <0>;
- color = <LED_COLOR_ID_ORANGE>;
- function = LED_FUNCTION_LAN;
- default-state = "keep";
- };
- led@1 {
- reg = <1>;
- color = <LED_COLOR_ID_GREEN>;
- function = LED_FUNCTION_LAN;
- default-state = "keep";
- };
- };
- };
- qca8075_4: ethernet-phy@4 {
- compatible = "ethernet-phy-ieee802.3-c22";
- reg = <4>;
- leds {
- #address-cells = <1>;
- #size-cells = <0>;
- led@0 {
- reg = <0>;
- color = <LED_COLOR_ID_ORANGE>;
- function = LED_FUNCTION_WAN;
- default-state = "keep";
- };
- led@1 {
- reg = <1>;
- color = <LED_COLOR_ID_GREEN>;
- function = LED_FUNCTION_WAN;
- default-state = "keep";
- };
- };
- };
- };
- };
- &switch {
- status = "okay";
- switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>;
- switch_wan_bmp = <ESS_PORT5>;
- switch_mac_mode = <MAC_MODE_PSGMII>;
- qcom,port_phyinfo {
- port@1 {
- port_id = <1>;
- phy_address = <0>;
- };
- port@2 {
- port_id = <2>;
- phy_address = <1>;
- };
- port@3 {
- port_id = <3>;
- phy_address = <2>;
- };
- port@4 {
- port_id = <4>;
- phy_address = <3>;
- };
- port@5 {
- port_id = <5>;
- phy_address = <4>;
- };
- };
- };
- &edma {
- status = "okay";
- };
- &dp1 {
- status = "okay";
- phy-handle = <&qca8075_0>;
- label = "lan1";
- nvmem-cells = <&hw_mac_addr 1>;
- nvmem-cell-names = "mac-address";
- };
- &dp2 {
- status = "okay";
- phy-handle = <&qca8075_1>;
- label = "lan2";
- nvmem-cells = <&hw_mac_addr 1>;
- nvmem-cell-names = "mac-address";
- };
- &dp3 {
- status = "okay";
- phy-handle = <&qca8075_2>;
- label = "lan3";
- nvmem-cells = <&hw_mac_addr 1>;
- nvmem-cell-names = "mac-address";
- };
- &dp4 {
- status = "okay";
- phy-handle = <&qca8075_3>;
- label = "lan4";
- nvmem-cells = <&hw_mac_addr 1>;
- nvmem-cell-names = "mac-address";
- };
- &dp5 {
- status = "okay";
- phy-handle = <&qca8075_4>;
- label = "wan";
- nvmem-cells = <&hw_mac_addr 0>;
- nvmem-cell-names = "mac-address";
- };
- &wifi {
- status = "okay";
- qcom,ath11k-calibration-variant = "Linksys-MR7350";
- qcom,ath11k-fw-memory-mode = <1>;
- };
|