Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Copyright (C) 2021 Corentin Labbe <clabbe@baylibre.com>
0004  * Device Tree file for Edimax NS 2502
0005  */
0006 
0007 /dts-v1/;
0008 
0009 #include "gemini.dtsi"
0010 
0011 / {
0012         model = "Edimax NS-2502";
0013         compatible = "edimax,ns-2502", "cortina,gemini";
0014         #address-cells = <1>;
0015         #size-cells = <1>;
0016 
0017         memory@0 {
0018                 /* 128 MB */
0019                 device_type = "memory";
0020                 reg = <0x00000000 0x8000000>;
0021         };
0022 
0023         aliases {
0024                 mdio-gpio0 = &mdio0;
0025         };
0026 
0027         chosen {
0028                 bootargs = "console=ttyS0,19200n8";
0029                 stdout-path = &uart0;
0030         };
0031 
0032         mdio0: mdio {
0033                 compatible = "virtual,mdio-gpio";
0034                 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
0035                         <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
0036                 #address-cells = <1>;
0037                 #size-cells = <0>;
0038 
0039                 phy0: ethernet-phy@1 {
0040                         reg = <1>;
0041                         device_type = "ethernet-phy";
0042                         /* We lack the knowledge of necessary GPIO to achieve
0043                          * Gigabit
0044                          */
0045                         max-speed = <100>;
0046                 };
0047         };
0048 };
0049 
0050 &ethernet {
0051         status = "okay";
0052         ethernet-port@0 {
0053                 phy-mode = "rgmii";
0054                 phy-handle = <&phy0>;
0055         };
0056 };
0057 
0058 &flash {
0059         status = "okay";
0060         /* 8MB of flash */
0061         reg = <0x30000000 0x00800000>;
0062 
0063         pinctrl-names = "enabled", "disabled";
0064         pinctrl-0 = <&pflash_default_pins>;
0065         pinctrl-1 = <&pflash_disabled_pins>;
0066 
0067         partitions {
0068                 compatible = "fixed-partitions";
0069                 #address-cells = <1>;
0070                 #size-cells = <1>;
0071 
0072                 partition@0 {
0073                         label = "RedBoot";
0074                         reg = <0x00000000 0x00020000>;
0075                 };
0076                 partition@20000 {
0077                         label = "kernel";
0078                         reg = <0x00020000 0x00700000>;
0079                 };
0080                 partition@720000 {
0081                         label = "VCTL";
0082                         reg = <0x00720000 0x00020000>;
0083                 };
0084                 partition@740000 {
0085                         label = "CurConf";
0086                         reg = <0x00740000 0x000a0000>;
0087                 };
0088                 partition@7e0000 {
0089                         label = "FIS";
0090                         reg = <0x007e0000 0x00010000>;
0091                 };
0092         };
0093 };
0094 
0095 &gpio0 {
0096         pinctrl-names = "default";
0097         pinctrl-0 = <&gpio0_default_pins>;
0098 };
0099 
0100 &ide0 {
0101         status = "okay";
0102 };
0103 
0104 &ide1 {
0105         status = "okay";
0106 };
0107 
0108 &sata {
0109         cortina,gemini-ata-muxmode = <3>;
0110         cortina,gemini-enable-sata-bridge;
0111         status = "okay";
0112 };
0113 
0114 &syscon {
0115         pinctrl {
0116                 /*
0117                  * gpio0agrp cover line 0-4
0118                  * gpio0bgrp cover line 5
0119                  */
0120                 gpio0_default_pins: pinctrl-gpio0 {
0121                             mux {
0122                                     function = "gpio0";
0123                                     groups = "gpio0agrp", "gpio0bgrp", "gpio0hgrp";
0124                             };
0125                 };
0126                 pflash_disabled_pins: pinctrl-pflash-disabled {
0127                         mux {
0128                                 function = "gpio0";
0129                                 groups = "gpio0ggrp", "gpio0igrp", "gpio0jgrp",
0130                                          "gpio0kgrp";
0131                         };
0132                 };
0133                 pinctrl-gmii {
0134                         mux {
0135                                 function = "gmii";
0136                                 groups = "gmii_gmac0_grp";
0137                                 };
0138                 };
0139         };
0140 };
0141 
0142 &usb0 {
0143         status = "okay";
0144 };
0145 
0146 &usb1 {
0147         status = "okay";
0148 };