1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2021 Corentin Labbe <clabbe@baylibre.com>
4 * Device Tree file for Edimax NS 2502
12 model = "Edimax NS-2502";
13 compatible = "edimax,ns-2502", "cortina,gemini";
19 device_type = "memory";
20 reg = <0x00000000 0x8000000>;
28 bootargs = "console=ttyS0,19200n8";
33 compatible = "virtual,mdio-gpio";
34 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
35 <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
39 phy0: ethernet-phy@1 {
41 device_type = "ethernet-phy";
42 /* We lack the knowledge of necessary GPIO to achieve
61 reg = <0x30000000 0x00800000>;
63 pinctrl-names = "enabled", "disabled";
64 pinctrl-0 = <&pflash_default_pins>;
65 pinctrl-1 = <&pflash_disabled_pins>;
68 compatible = "fixed-partitions";
74 reg = <0x00000000 0x00020000>;
78 reg = <0x00020000 0x00700000>;
82 reg = <0x00720000 0x00020000>;
86 reg = <0x00740000 0x000a0000>;
90 reg = <0x007e0000 0x00010000>;
96 pinctrl-names = "default";
97 pinctrl-0 = <&gpio0_default_pins>;
109 cortina,gemini-ata-muxmode = <3>;
110 cortina,gemini-enable-sata-bridge;
117 * gpio0agrp cover line 0-4
118 * gpio0bgrp cover line 5
120 gpio0_default_pins: pinctrl-gpio0 {
123 groups = "gpio0agrp", "gpio0bgrp", "gpio0hgrp";
126 pflash_disabled_pins: pinctrl-pflash-disabled {
129 groups = "gpio0ggrp", "gpio0igrp", "gpio0jgrp",
136 groups = "gmii_gmac0_grp";