| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316 |
- // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
- #include "ipq6018-512m.dtsi"
- #include "ipq6018-ess.dtsi"
- #include <dt-bindings/gpio/gpio.h>
- #include <dt-bindings/input/input.h>
- #include <dt-bindings/leds/common.h>
- / {
- aliases {
- led-boot = &led_run;
- led-failsafe = &led_run;
- led-running = &led_run;
- led-upgrade = &led_run;
- serial0 = &blsp1_uart3;
- serial1 = &blsp1_uart4;
- serial2 = &blsp1_uart5;
- };
- chosen {
- stdout-path = "serial0:115200n8";
- bootargs-append = " root=/dev/ubiblock0_1";
- };
- keys {
- compatible = "gpio-keys";
- switch {
- label = "switch";
- linux,code = <BTN_0>;
- linux,input-type = <EV_SW>;
- gpios = <&tlmm 9 GPIO_ACTIVE_LOW>;
- };
- reset {
- label = "reset";
- linux,code = <KEY_RESTART>;
- gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
- };
- };
- leds {
- compatible = "gpio-leds";
- led_run: run {
- label = "blue:run";
- color = <LED_COLOR_ID_BLUE>;
- gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>;
- };
- system {
- label = "white:system";
- color = <LED_COLOR_ID_WHITE>;
- gpios = <&tlmm 35 GPIO_ACTIVE_HIGH>;
- };
- };
- reg_usb_vbus: regulator-usb-vbus {
- compatible = "regulator-fixed";
- regulator-name = "usb_vbus";
- regulator-min-microvolt = <5000000>;
- regulator-max-microvolt = <5000000>;
- gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
- enable-active-high;
- regulator-boot-on;
- };
- };
- &tlmm {
- mdio_pins: mdio-pins {
- mdc {
- pins = "gpio64";
- function = "mdc";
- drive-strength = <8>;
- bias-pull-up;
- };
- mdio {
- pins = "gpio65";
- function = "mdio";
- drive-strength = <8>;
- bias-pull-up;
- };
- };
- tluart_pins: tluart-pins {
- mux {
- pins = "gpio75", "gpio76";
- function = "blsp3_uart";
- drive-strength = <8>;
- bias-disable;
- };
- };
- hsuart_pins: hsuart-pins {
- mux {
- pins = "gpio57", "gpio58";
- function = "blsp4_uart";
- drive-strength = <8>;
- bias-disable;
- };
- };
- };
- &blsp1_uart3 {
- pinctrl-0 = <&serial_3_pins>;
- pinctrl-names = "default";
- status = "okay";
- };
- &blsp1_uart4 {
- pinctrl-0 = <&tluart_pins>;
- pinctrl-names = "default";
- status = "okay";
- };
- &blsp1_uart5 {
- pinctrl-0 = <&hsuart_pins>;
- pinctrl-names = "default";
- status = "okay";
- };
- &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>;
- #address-cells = <1>;
- #size-cells = <1>;
- partitions: partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
- partition@0 {
- label = "0:sbl1";
- reg = <0x0000000 0x0180000>;
- read-only;
- };
- partition@180000 {
- label = "0:mibib";
- reg = <0x0180000 0x0100000>;
- read-only;
- };
- partition@280000 {
- label = "0:qsee";
- reg = <0x0280000 0x0380000>;
- read-only;
- };
- partition@600000 {
- label = "0:devcfg";
- reg = <0x0600000 0x0080000>;
- read-only;
- };
- partition@680000 {
- label = "0:rpm";
- reg = <0x0680000 0x0080000>;
- read-only;
- };
- partition@700000 {
- label = "0:cdt";
- reg = <0x0700000 0x0080000>;
- read-only;
- };
- partition@780000 {
- label = "0:appsblenv";
- reg = <0x0780000 0x0080000>;
- };
- partition@800000 {
- label = "0:appsbl";
- reg = <0x0800000 0x0180000>;
- read-only;
- };
- partition@980000 {
- label = "0:art";
- reg = <0x0980000 0x0080000>;
- read-only;
- nvmem-layout {
- compatible = "fixed-layout";
- #address-cells = <1>;
- #size-cells = <1>;
- macaddr_wan: macaddr@0 {
- reg = <0x0 0x6>;
- };
- macaddr_lan: macaddr@6 {
- reg = <0x6 0x6>;
- };
- };
- };
- /* rootfs defined in variant dts */
- partition@7d00000 {
- label = "0:ethphyfw";
- reg = <0x7d00000 0x0080000>;
- read-only;
- };
- };
- };
- };
- &qusb_phy_0 {
- vdd-supply = <®_usb_vbus>;
- status = "okay";
- };
- &ssphy_0 {
- status = "okay";
- };
- &usb3 {
- status = "okay";
- };
- &rpm {
- status = "disabled";
- };
- &mdio {
- status = "okay";
- pinctrl-0 = <&mdio_pins>;
- pinctrl-names = "default";
- reset-gpios = <&tlmm 74 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>;
- };
- qca8075_1: ethernet-phy@1 {
- compatible = "ethernet-phy-ieee802.3-c22";
- reg = <1>;
- };
- qca8075_2: ethernet-phy@2 {
- compatible = "ethernet-phy-ieee802.3-c22";
- reg = <2>;
- };
- qca8075_3: ethernet-phy@3 {
- compatible = "ethernet-phy-ieee802.3-c22";
- reg = <3>;
- };
- qca8075_4: ethernet-phy@4 {
- compatible = "ethernet-phy-ieee802.3-c22";
- reg = <4>;
- };
- };
- };
- &switch {
- status = "okay";
- 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";
- };
- &wifi {
- status = "okay";
- qcom,ath11k-fw-memory-mode = <1>;
- };
|