| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392 |
- // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
- /*
- * Copyright (c) 2025, Shubham Vishwakarma <[email protected]>
- */
- /dts-v1/;
- #include "ipq5018.dtsi"
- #include "ipq5018-ess.dtsi"
- #include "ipq5018-qcn6122.dtsi"
- #include <dt-bindings/gpio/gpio.h>
- #include <dt-bindings/input/input.h>
- #include <dt-bindings/leds/common.h>
- / {
- model = "Yuncore AX830";
- compatible = "yuncore,ax830", "qcom,ipq5018";
- aliases {
- serial0 = &blsp1_uart1;
- led-boot = &led_system;
- led-failsafe = &led_system;
- led-running = &led_system;
- led-upgrade = &led_system;
- };
- chosen {
- bootargs-append = " root=/dev/ubiblock0_1 swiotlb=1 coherent_pool=2M";
- stdout-path = "serial0:115200n8";
- };
- keys {
- compatible = "gpio-keys";
- pinctrl-0 = <&button_pins>;
- pinctrl-names = "default";
- reset {
- label = "reset";
- gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
- };
- };
- leds {
- compatible = "gpio-leds";
- led_system: system {
- function = LED_FUNCTION_POWER;
- color = <LED_COLOR_ID_RED>;
- gpios = <&tlmm 26 GPIO_ACTIVE_LOW>;
- };
- wlan2g {
- function = LED_FUNCTION_WLAN_2GHZ;
- color = <LED_COLOR_ID_GREEN>;
- gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
- linux,default-trigger = "phy0radio";
- };
- wlan5g {
- function = LED_FUNCTION_WLAN_5GHZ;
- color = <LED_COLOR_ID_BLUE>;
- gpios = <&tlmm 34 GPIO_ACTIVE_LOW>;
- linux,default-trigger = "phy1radio";
- };
- };
- gpio-watchdog {
- compatible = "linux,wdt-gpio";
- gpios = <&tlmm 27 GPIO_ACTIVE_LOW>;
- hw_algo = "toggle";
- hw_margin_ms = <5000>;
- always-running;
- };
- };
- &switch {
- status = "okay";
- switch_mac_mode = <MAC_MODE_SGMII_CHANNEL0>;
- qcom,port_phyinfo {
- // MAC0 -> GE Phy
- port@1 {
- port_id = <1>;
- mdiobus = <&mdio0>;
- phy_address = <7>;
- };
- // MAC1 -> Uniphy --- SGMII --- QCA8081
- port@2 {
- port_id = <2>;
- mdiobus = <&mdio1>;
- phy_address = <28>;
- port_mac_sel = "QGMAC_PORT";
- };
- };
- };
- // MAC0 -> GE Phy
- &dp1 {
- status = "okay";
- label = "lan";
- nvmem-cells = <&hw_mac_addr 0>;
- nvmem-cell-names = "mac-address";
- phy-mode = "sgmii";
- };
- // MAC1 ---SGMII---> QCA8081
- &dp2 {
- status = "okay";
- label = "wan";
- phy-handle = <&qca8081>;
- nvmem-cells = <&hw_mac_addr 1>;
- nvmem-cell-names = "mac-address";
- };
- &mdio0 {
- status = "okay";
- };
- &mdio1 {
- status = "okay";
- pinctrl-0 = <&mdio1_pins>;
- pinctrl-names = "default";
- qca8081: ethernet-phy@28 {
- compatible = "ethernet-phy-id004d.d101";
- reg = <28>;
- reset-deassert-us = <10000>;
- reset-gpios = <&tlmm 24 GPIO_ACTIVE_LOW>;
- };
- };
- &sleep_clk {
- clock-frequency = <32000>;
- };
- &xo_board_clk {
- clock-div = <4>;
- clock-mult = <1>;
- };
- &blsp1_uart1 {
- status = "okay";
- pinctrl-0 = <&serial_0_pins>;
- pinctrl-names = "default";
- };
- &crypto {
- status = "okay";
- };
- &cryptobam {
- status = "okay";
- };
- &prng {
- status = "okay";
- };
- &qfprom {
- status = "okay";
- };
- &qpic_bam {
- status = "okay";
- };
- &blsp1_spi1 {
- status = "okay";
- flash@0 {
- reg = <0>;
- compatible = "jedec,spi-nor";
- spi-max-frequency = <50000000>;
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
- partition@0 {
- label = "0:SBL1";
- reg = <0x00 0x30000>;
- read-only;
- };
- partition@30000 {
- label = "0:MIBIB";
- reg = <0x30000 0x10000>;
- read-only;
- };
- partition@40000 {
- label = "0:BOOTCONFIG";
- reg = <0x40000 0x10000>;
- read-only;
- };
- partition@50000 {
- label = "0:BOOTCONFIG1";
- reg = <0x50000 0x10000>;
- read-only;
- };
- partition@60000 {
- label = "0:QSEE";
- reg = <0x60000 0xa0000>;
- read-only;
- };
- partition@100000 {
- label = "0:QSEE_1";
- reg = <0x100000 0xa0000>;
- read-only;
- };
- partition@1a0000 {
- label = "0:DEVCFG";
- reg = <0x1a0000 0x10000>;
- read-only;
- };
- partition@1b0000 {
- label = "0:DEVCFG_1";
- reg = <0x1b0000 0x10000>;
- read-only;
- };
- partition@1c0000 {
- label = "0:CDT";
- reg = <0x1c0000 0x10000>;
- read-only;
- };
- partition@1d0000 {
- label = "0:CDT_1";
- reg = <0x1d0000 0x10000>;
- read-only;
- };
- partition@1e0000 {
- label = "0:APPSBLENV";
- reg = <0x1e0000 0x10000>;
- };
- partition@1f0000 {
- label = "0:APPSBL";
- reg = <0x1f0000 0xa0000>;
- read-only;
- };
- partition@290000 {
- label = "0:APPSBL_1";
- reg = <0x290000 0xa0000>;
- read-only;
- };
- partition@330000 {
- label = "0:ART";
- reg = <0x330000 0x70000>;
- read-only;
- nvmem-layout {
- compatible = "fixed-layout";
- #address-cells = <1>;
- #size-cells = <1>;
- hw_mac_addr: hw_mac_addr {
- #nvmem-cell-cells = <1>;
- compatible = "mac-base";
- reg = <0x0 0x6>;
- };
- };
- };
- };
- };
- };
- &qpic_nand {
- pinctrl-0 = <&qpic_pins>;
- pinctrl-names = "default";
- status = "okay";
- nand@0 {
- compatible = "spi-nand";
- reg = <0>;
- nand-ecc-engine = <&qpic_nand>;
- nand-bus-width = <8>;
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
- partition@0 {
- label = "0:TRAINING";
- reg = <0x00 0x80000>;
- };
- partition@80000 {
- label = "rootfs_1";
- reg = <0x80000 0x3e00000>;
- };
- partition@3e80000 {
- label = "rootfs";
- reg = <0x3e80000 0x3e00000>;
- };
- };
- };
- };
- &tlmm {
- button_pins: button-state {
- pins = "gpio38";
- function = "gpio";
- drive-strength = <8>;
- bias-pull-up;
- };
- mdio1_pins: mdio-state {
- mdc-pins {
- pins = "gpio36";
- function = "mdc";
- drive-strength = <8>;
- bias-pull-up;
- };
- mdio-pins {
- pins = "gpio37";
- function = "mdio";
- drive-strength = <8>;
- bias-pull-up;
- };
- };
- qpic_pins: qpic-state {
- clock-pins {
- pins = "gpio9";
- function = "qspi_clk";
- drive-strength = <8>;
- bias-disable;
- };
- cs-pins {
- pins = "gpio8";
- function = "qspi_cs";
- drive-strength = <8>;
- bias-disable;
- };
- data-pins {
- pins = "gpio4", "gpio5", "gpio6", "gpio7";
- function = "qspi_data";
- drive-strength = <8>;
- bias-disable;
- };
- };
- serial_0_pins: uart0-state {
- pins = "gpio20", "gpio21";
- function = "blsp0_uart0";
- drive-strength = <8>;
- bias-disable;
- };
- };
- &wifi {
- status = "okay";
- qcom,rproc = <&q6_wcss_pd1>;
- qcom,ath11k-calibration-variant = "Yuncore-AX830";
- qcom,ath11k-fw-memory-mode = <1>;
- qcom,bdf-addr = <0x4c400000>;
- };
- &wifi1 {
- status = "okay";
- qcom,rproc = <&q6_wcss_pd3>;
- qcom,userpd-subsys-name = "q6v5_wcss_userpd3";
- qcom,ath11k-calibration-variant = "Yuncore-AX830";
- qcom,ath11k-fw-memory-mode = <1>;
- qcom,bdf-addr = <0x4d100000>;
- qcom,m3-dump-addr = <0x4df00000>;
- };
|