// SPDX-License-Identifier: GPL-2.0-or-later OR MIT /* * Broadcom BCM470X / BCM5301X ARM platform code. * DTS for Meru AP822i * * Copyright (C) 2015 Felix Fietkau */ /dts-v1/; #include "bcm4709.dtsi" #include "bcm5301x-nand-cs0-bch8.dtsi" / { compatible = "meru,ap822i", "brcm,bcm4709", "brcm,bcm4708"; model = "Meru AP822i"; chosen { bootargs = "console=ttyS0,115200 root=/dev/mtdblock6"; }; memory@0 { device_type = "memory"; reg = <0x00000000 0x08000000>, <0x88000000 0x18000000>; }; leds { compatible = "gpio-leds"; led-usb { label = "bcm53xx:green:usb"; gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>; }; led-power-amber { label = "bcm53xx:amber:power"; gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>; }; led-power-white { label = "bcm53xx:white:power"; gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>; linux,default-trigger = "default-on"; }; led-router-amber { label = "bcm53xx:amber:router"; gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>; }; led-router-white { label = "bcm53xx:white:router"; gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>; }; led-wan-amber { label = "bcm53xx:amber:wan"; gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>; }; led-wan-white { label = "bcm53xx:white:wan"; gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>; }; led-wireless-amber { label = "bcm53xx:amber:wireless"; gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>; }; led-wireless-white { label = "bcm53xx:white:wireless"; gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>; }; }; gpio-keys { compatible = "gpio-keys"; button-power { label = "Power"; linux,code = ; gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>; }; button-restart { label = "Reset"; linux,code = ; gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>; }; button-aoss { label = "AOSS"; linux,code = ; gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>; }; /* Commit mode set by switch? */ button-mode { label = "Mode"; linux,code = ; gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; }; /* Switch: AP mode */ button-sw-ap { label = "AP"; linux,code = ; gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>; }; button-eject { label = "USB eject"; linux,code = ; gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>; }; }; }; &usb2 { vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>; }; &spi_nor { status = "okay"; compatible = "jedec,spi-nor"; spi-max-frequency = <50000000>; reg = <0>; #address-cells = <1>; #size-cells = <1>; partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; partition@0 { label = "bootloader"; reg = <0x00000000 0x00080000>; read-only; }; partition@80000 { label = "boot_env"; reg = <0x00080000 0x00040000>; read-only; }; partition@c0000 { label = "logk0"; reg = <0x000C0000 0x00100000>; read-only; }; partition@1c0000 { label = "logk1"; reg = <0x001C0000 0x00100000>; read-only; }; partition@2c0000 { label = "user0"; reg = <0x002C0000 0x00080000>; read-only; }; partition@340000 { label = "kernel"; reg = <0x00340000 0x0030D7E4>; }; partition@64d7e4 { label = "rootfs"; reg = <0x0064D7E4 0x00400000>; }; partition@1f80000 { label = "nvram1"; reg = <0x01F80000 0x00040000>; }; partition@1fc0000 { label = "nvram"; reg = <0x01FC0000 0x00040000>; }; partition@2000000 { label = "runtime0"; reg = <0x02000000 0x01C00000>; read-only; }; partition@3c00000 { label = "config0"; reg = <0x03C00000 0x00400000>; read-only; }; }; }; &usb3_phy { status = "okay"; }; &srab { status = "okay"; ports { port@0 { label = "lan1"; }; port@1 { label = "lan2"; }; port@2 { label = "lan3"; }; port@3 { label = "lan4"; }; port@4 { label = "wan"; }; port@5 { label = "cpu"; }; port@7 { status = "disabled"; }; port@8 { status = "disabled"; }; }; };