Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /* moxart-uc7112lx.dts - Device Tree file for MOXA UC-7112-LX
0003  *
0004  * Copyright (C) 2013 Jonas Jensen <jonas.jensen@gmail.com>
0005  */
0006 
0007 /dts-v1/;
0008 #include "moxart.dtsi"
0009 
0010 / {
0011         model = "MOXA UC-7112-LX";
0012         compatible = "moxa,moxart-uc-7112-lx", "moxa,moxart";
0013 
0014         memory {
0015                 device_type = "memory";
0016                 reg = <0x0 0x2000000>;
0017         };
0018 
0019         clocks {
0020                 ref12: ref12M {
0021                         compatible = "fixed-clock";
0022                         #clock-cells = <0>;
0023                         clock-frequency = <12000000>;
0024                 };
0025         };
0026 
0027         flash@80000000,0 {
0028                 compatible = "numonyx,js28f128", "cfi-flash";
0029                 reg = <0x80000000 0x1000000>;
0030                 bank-width = <2>;
0031                 #address-cells = <1>;
0032                 #size-cells = <1>;
0033                 partition@0 {
0034                         label = "bootloader";
0035                         reg = <0x0 0x40000>;
0036                 };
0037                 partition@40000 {
0038                         label = "linux kernel";
0039                         reg = <0x40000 0x1C0000>;
0040                 };
0041                 partition@200000 {
0042                         label = "root filesystem";
0043                         reg = <0x200000 0x800000>;
0044                 };
0045                 partition@a00000 {
0046                         label = "user filesystem";
0047                         reg = <0xa00000 0x600000>;
0048                 };
0049         };
0050 
0051         leds {
0052                 compatible = "gpio-leds";
0053                 user-led {
0054                         label = "ready-led";
0055                         gpios = <&gpio 27 0x1>;
0056                         default-state = "on";
0057                         linux,default-trigger = "default-on";
0058                 };
0059         };
0060 
0061         gpio_keys_polled {
0062                 compatible = "gpio-keys-polled";
0063                 #address-cells = <1>;
0064                 #size-cells = <0>;
0065                 poll-interval = <500>;
0066                 button@25 {
0067                         label = "GPIO Reset";
0068                         linux,code = <116>;
0069                         gpios = <&gpio 25 1>;
0070                 };
0071         };
0072 
0073         chosen {
0074                 bootargs = "console=ttyS0,115200n8 earlyprintk root=/dev/mmcblk0p1 rw rootwait";
0075         };
0076 };
0077 
0078 &clk_pll {
0079         clocks = <&ref12>;
0080 };
0081 
0082 &mmc {
0083         status = "okay";
0084 };
0085 
0086 &mdio0 {
0087         status = "okay";
0088 
0089         ethphy0: ethernet-phy@1 {
0090                 device_type = "ethernet-phy";
0091                 compatible = "moxa,moxart-rtl8201cp", "ethernet-phy-ieee802.3-c22";
0092                 reg = <1>;
0093         };
0094 };
0095 
0096 &mdio1 {
0097         status = "okay";
0098 
0099         ethphy1: ethernet-phy@1 {
0100                 device_type = "ethernet-phy";
0101                 compatible = "moxa,moxart-rtl8201cp", "ethernet-phy-ieee802.3-c22";
0102                 reg = <1>;
0103         };
0104 };
0105 
0106 &mac0 {
0107         status = "okay";
0108 };
0109 
0110 &mac1 {
0111         status = "okay";
0112 };
0113 
0114 &uart0 {
0115         status = "okay";
0116 };