Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
- #include "qca955x.dtsi"
- #include <dt-bindings/gpio/gpio.h>
- #include <dt-bindings/input/input.h>
- / {
- compatible = "asus,rt-ac55u", "qca,qca9557";
- model = "ASUS RT-AC55U";
- aliases {
- led-boot = &led_power;
- led-failsafe = &led_power;
- led-running = &led_power;
- led-upgrade = &led_power;
- };
- keys {
- compatible = "gpio-keys";
- reset {
- label = "reset";
- gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
- debounce-interval = <60>;
- };
- wps {
- label = "wps";
- gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_WPS_BUTTON>;
- debounce-interval = <60>;
- };
- };
- leds {
- compatible = "gpio-leds";
- led_power: power {
- label = "blue:power";
- gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
- };
- wifi2g {
- label = "blue:wifi2g";
- gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
- linux,default-trigger = "phy1tpt";
- };
- wps {
- label = "blue:wps";
- gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
- };
- };
- };
- &nand {
- status="okay";
- partitions {
- compatible="fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
- partition@0 {
- label = "Bootloader";
- reg = <0x000000000000 0x000e0000>;
- };
- partition@000000100000 {
- label = "ubi";
- reg = <0x000000100000 0x07e00000>;
- };
- caldata: partition@000007f00000 {
- label = "caldata";
- reg = <0x000007f00000 0x00010000>;
- };
- };
- };
- &wmac {
- status="okay";
- mtd-cal-data = <&caldata 0x1000>;
- };
- &pcie0 {
- status = "okay";
- wifi@0,0 {
- compatible = "qcom,ath10k";
- reg = <0 0 0 0 0>;
- };
- };
- &mdio0 {
- status = "okay";
- phy17: ethernet-phy@11 {
- reg = <0x11>;
- phy-mode = "rgmii-id";
- };
- switch0@1f {
- compatible = "qca,ar8327";
- reg = <0x1f>;
- qca,ar8327-initvals = <
- 0x04 0x87600000 /* PORT0 PAD MODE CTRL */
- 0x0c 0x00080080 /* PORT6 PAD MODE CTRL */
- 0x10 0x81000080 /* POWER_ON_STRAP */
- 0x50 0xffb7ffb7 /* LED_CTRL0 */
- 0x54 0xffb7ffb7 /* LED_CTRL1 */
- 0x58 0xffb7ffb7 /* LED_CTRL2 */
- 0x5c 0x03ffff00 /* LED_CTRL3 */
- 0x7c 0x0000007e /* PORT0_STATUS */
- 0x94 0x0000007e /* PORT6 STATUS */
- >;
- };
- };
- &mdio1 {
- status = "okay";
- phy1: ethernet-phy@1 {
- reg = <1>;
- phy-mode = "sgmii";
- };
- };
- ð0 {
- status = "okay";
- pll-data = <0xa6000000 0x00000101 0x00001616>;
- phy-handle = <&phy17>;
- fixed-link {
- speed = <1000>;
- full-duplex;
- };
- };
- ð1 {
- status = "okay";
- fixed-link {
- speed = <1000>;
- full-duplex;
- };
- };
- &pcie1 {
- status="okay";
- };
- &usb_phy0 {
- status="okay";
- };
- &usb0 {
- status="okay";
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement