| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319 |
- // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
- /* Copyright (c) 2021, Dirk Buchwalder <[email protected]> */
- /dts-v1/;
- #include "ipq8074-512m.dtsi"
- #include "ipq8074-ac-cpu.dtsi"
- #include "ipq8074-ess.dtsi"
- #include <dt-bindings/gpio/gpio.h>
- #include <dt-bindings/input/input.h>
- / {
- model = "Edimax CAX1800";
- compatible = "edimax,cax1800", "qcom,ipq8074";
- aliases {
- serial0 = &blsp1_uart5;
- led-boot = &led_system_red;
- led-failsafe = &led_system_red;
- led-running = &led_system_green;
- led-upgrade = &led_system_red;
- /* Aliases as required by u-boot to patch MAC addresses */
- ethernet0 = &dp5;
- label-mac-device = &dp5;
- };
- chosen {
- stdout-path = "serial0:115200n8";
- bootargs-append = " root=/dev/ubiblock0_1";
- };
- keys {
- compatible = "gpio-keys";
- reset {
- label = "reset";
- gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
- };
- };
- leds {
- compatible = "gpio-leds";
- led_system_red: system-red {
- label = "red:system";
- gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>;
- };
- led_system_green: system-green {
- label = "green:system";
- gpios = <&tlmm 26 GPIO_ACTIVE_HIGH>;
- };
- led_system_blue: system-blue {
- label = "blue:system";
- gpios = <&tlmm 27 GPIO_ACTIVE_HIGH>;
- };
- };
- };
- &tlmm {
- mdio_pins: mdio-pins {
- mdc {
- pins = "gpio68";
- function = "mdc";
- drive-strength = <8>;
- bias-pull-up;
- };
- mdio {
- pins = "gpio69";
- function = "mdio";
- drive-strength = <8>;
- bias-pull-up;
- };
- };
- };
- &blsp1_uart5 {
- status = "okay";
- };
- &prng {
- status = "okay";
- };
- &cryptobam {
- status = "okay";
- };
- &crypto {
- 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>;
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
- partition@0 {
- label = "rootfs";
- reg = <0x0000000 0x3400000>;
- };
- };
- };
- };
- &blsp1_spi1 {
- pinctrl-0 = <&spi_0_pins>;
- pinctrl-names = "default";
- cs-select = <0>;
- status = "ok";
- m25p80@0 {
- #address-cells = <1>;
- #size-cells = <1>;
- reg = <0>;
- compatible = "jedec,spi-nor";
- spi-max-frequency = <50000000>;
- use-default-sizes;
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
- partition@0 {
- label = "0:sbl1";
- reg = <0x0 0x50000>;
- read-only;
- };
- partition@50000 {
- label = "0:mibib";
- reg = <0x50000 0x10000>;
- read-only;
- };
- partition@60000 {
- label = "0:bootconfig";
- reg = <0x60000 0x20000>;
- read-only;
- };
- partition@80000 {
- label = "0:bootconfig1";
- reg = <0x80000 0x20000>;
- read-only;
- };
- partition@a0000 {
- label = "0:qsee";
- reg = <0xa0000 0x180000>;
- read-only;
- };
- partition@220000 {
- label = "0:qsee_1";
- reg = <0x220000 0x180000>;
- read-only;
- };
- partition@3a0000 {
- label = "0:devcfg";
- reg = <0x3a0000 0x10000>;
- read-only;
- };
- partition@3b0000 {
- label = "0:devcfg_1";
- reg = <0x3b0000 0x10000>;
- read-only;
- };
- partition@3c0000 {
- label = "0:apdp";
- reg = <0x3c0000 0x10000>;
- read-only;
- };
- partition@3d0000 {
- label = "0:apdp_1";
- reg = <0x3d0000 0x10000>;
- read-only;
- };
- partition@3e0000 {
- label = "0:rpm";
- reg = <0x3e0000 0x40000>;
- read-only;
- };
- partition@420000 {
- label = "0:rpm_1";
- reg = <0x420000 0x40000>;
- read-only;
- };
- partition@460000 {
- label = "0:cdt";
- reg = <0x460000 0x10000>;
- read-only;
- };
- partition@470000 {
- label = "0:cdt_1";
- reg = <0x470000 0x10000>;
- read-only;
- };
- partition@480000 {
- label = "0:appsblenv";
- reg = <0x480000 0x10000>;
- };
- partition@490000 {
- label = "0:appsbl";
- reg = <0x490000 0xa0000>;
- read-only;
- };
- partition@530000 {
- label = "0:appsbl_1";
- reg = <0x530000 0xa0000>;
- read-only;
- };
- partition@5d0000 {
- label = "0:art";
- reg = <0x5d0000 0x40000>;
- read-only;
- };
- partition@610000 {
- label = "0:ethphyfw";
- reg = <0x610000 0x80000>;
- read-only;
- };
- };
- };
- };
- &mdio {
- status = "okay";
- pinctrl-0 = <&mdio_pins>;
- pinctrl-names = "default";
- reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
- qca8075: ethernet-phy@4 {
- compatible = "ethernet-phy-ieee802.3-c22";
- reg = <4>;
- };
- };
- &switch {
- status = "okay";
- switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
- switch_wan_bmp = <ESS_PORT5>; /* wan port bitmap */
- switch_mac_mode = <MAC_MODE_PSGMII>; /* mac mode for uniphy instance0*/
- bm_tick_mode = <0>; /* bm tick mode */
- tm_tick_mode = <0>; /* tm tick mode */
- qcom,port_phyinfo {
- port@0 {
- port_id = <1>;
- phy_address = <0>;
- };
- port@1 {
- port_id = <2>;
- phy_address = <1>;
- };
- port@2 {
- port_id = <3>;
- phy_address = <2>;
- };
- port@3 {
- port_id = <4>;
- phy_address = <3>;
- };
- port@4 {
- port_id = <5>;
- phy_address = <4>;
- };
- };
- };
- &edma {
- status = "okay";
- };
- &dp5 {
- status = "okay";
- phy-handle = <&qca8075>;
- label = "lan";
- };
- &wifi {
- status = "okay";
- qcom,ath11k-calibration-variant = "Edimax-CAX1800";
- qcom,ath11k-fw-memory-mode = <1>;
- };
|