Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * Copyright (C) 2017 Moxa Inc. - https://www.moxa.com/
0004  *
0005  * Author: Harry YJ Jhou (周亞諄) <harryyj.jhou@moxa.com>
0006  *         Jimmy Chen (陳永達)    <jimmy.chen@moxa.com>
0007  *         SZ Lin (林上智)        <sz.lin@moxa.com>
0008  */
0009 
0010 /dts-v1/;
0011 
0012 #include <dt-bindings/gpio/gpio.h>
0013 #include <dt-bindings/input/input.h>
0014 #include "ls1021a.dtsi"
0015 
0016 / {
0017         model = "Moxa UC-8410A";
0018         compatible = "fsl,ls1021a-moxa-uc-8410a", "fsl,ls1021a";
0019 
0020         aliases {
0021                 enet0_rgmii_phy = &rgmii_phy0;
0022                 enet1_rgmii_phy = &rgmii_phy1;
0023                 enet2_rgmii_phy = &rgmii_phy2;
0024         };
0025 
0026         sys_mclk: clock-mclk {
0027                 compatible = "fixed-clock";
0028                 #clock-cells = <0>;
0029                 clock-frequency = <24576000>;
0030         };
0031 
0032         reg_3p3v: regulator-3p3v {
0033                   compatible = "regulator-fixed";
0034                   regulator-name = "3P3V";
0035                   regulator-min-microvolt = <3300000>;
0036                   regulator-max-microvolt = <3300000>;
0037                   regulator-always-on;
0038         };
0039 
0040         leds {
0041                 compatible = "gpio-leds";
0042 
0043                 cel-pwr {
0044                         label = "UC8410A:CEL-PWR";
0045                         gpios = <&gpio3 27 GPIO_ACTIVE_LOW>;
0046                         default-state = "off";
0047                 };
0048 
0049                 cel-reset {
0050                         label = "UC8410A:CEL-RESET";
0051                         gpios = <&gpio3 28 GPIO_ACTIVE_LOW>;
0052                         default-state = "off";
0053                 };
0054 
0055                 str-led {
0056                         label = "UC8410A:RED:PROG";
0057                         gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
0058                         linux,default-trigger = "mmc0";
0059                 };
0060 
0061                 sw-ready {
0062                         label = "UC8410A:GREEN:SWRDY";
0063                         gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
0064                         default-state = "on";
0065                 };
0066 
0067                 beeper {
0068                         label = "UC8410A:BEEP";
0069                         gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
0070                         default-state = "off";
0071                 };
0072 
0073                 prog-led0 {
0074                         label = "UC8410A:GREEN:PROG2";
0075                         gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
0076                         default-state = "off";
0077                 };
0078 
0079                 prog-led1 {
0080                         label = "UC8410A:GREEN:PROG1";
0081                         gpios = <&gpio3 15 GPIO_ACTIVE_HIGH>;
0082                         default-state = "off";
0083                 };
0084 
0085                 prog-led2 {
0086                         label = "UC8410A:GREEN:PROG0";
0087                         gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>;
0088                         default-state = "off";
0089                 };
0090 
0091                 wifi-signal0 {
0092                         label = "UC8410A:GREEN:CEL2";
0093                         gpios = <&gpio3 17 GPIO_ACTIVE_HIGH>;
0094                         default-state = "off";
0095                 };
0096 
0097                 wifi-signal1 {
0098                         label = "UC8410A:GREEN:CEL1";
0099                         gpios = <&gpio3 18 GPIO_ACTIVE_HIGH>;
0100                         default-state = "off";
0101                 };
0102 
0103                 wifi-signal2 {
0104                         label = "UC8410A:GREEN:CEL0";
0105                         gpios = <&gpio3 19 GPIO_ACTIVE_HIGH>;
0106                         default-state = "off";
0107                 };
0108 
0109                 cpu-diag-red {
0110                         label = "UC8410A:RED:DIA";
0111                         gpios = <&gpio3 20 GPIO_ACTIVE_HIGH>;
0112                         default-state = "off";
0113                 };
0114 
0115                 cpu-diag-green {
0116                         label = "UC8410A:GREEN:DIA";
0117                         gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
0118                         default-state = "off";
0119                 };
0120 
0121                 cpu-diag-yellow {
0122                         label = "UC8410A:YELLOW:DIA";
0123                         gpios = <&gpio3 22 GPIO_ACTIVE_HIGH>;
0124                         default-state = "off";
0125                 };
0126         };
0127 
0128         gpio-keys {
0129                 compatible = "gpio-keys";
0130 
0131                 pushbtn-key {
0132                         label = "push button key";
0133                         gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
0134                         linux,code = <BTN_MISC>;
0135                         default-state = "on";
0136                 };
0137         };
0138 };
0139 
0140 &enet0 {
0141         phy-handle = <&rgmii_phy0>;
0142         phy-connection-type = "rgmii-id";
0143         status = "okay";
0144 };
0145 
0146 &enet1 {
0147         phy-handle = <&rgmii_phy1>;
0148         phy-connection-type = "rgmii-id";
0149         status = "okay";
0150 };
0151 
0152 &enet2 {
0153         phy-handle = <&rgmii_phy2>;
0154         phy-connection-type = "rgmii-id";
0155         status = "okay";
0156 };
0157 
0158 &i2c0 {
0159         clock-frequency = <100000>;
0160         status = "okay";
0161 
0162         tpm@20 {
0163                 compatible = "infineon,slb9635tt";
0164                 reg = <0x20>;
0165         };
0166 
0167         rtc@68 {
0168                 compatible = "dallas,ds1374";
0169                 reg = <0x68>;
0170         };
0171 };
0172 
0173 &lpuart0 {
0174         status = "okay";
0175 };
0176 
0177 &mdio0 {
0178         rgmii_phy0: ethernet-phy@0 {
0179                 compatible = "marvell,88e1118";
0180                 reg = <0x0>;
0181                 marvell,reg-init =
0182                         <3 0x11 0 0x4415>, /* Reg 3,17 */
0183                         <3 0x10 0 0x77>; /* Reg 3,16 */
0184         };
0185 
0186         rgmii_phy1: ethernet-phy@1 {
0187                 compatible = "marvell,88e1118";
0188                 reg = <0x1>;
0189                 marvell,reg-init =
0190                         <3 0x11 0 0x4415>, /* Reg 3,17 */
0191                         <3 0x10 0 0x77>; /* Reg 3,16 */
0192         };
0193 
0194         rgmii_phy2: ethernet-phy@2 {
0195                 compatible = "marvell,88e1118";
0196                 reg = <0x2>;
0197                 marvell,reg-init =
0198                         <3 0x11 0 0x4415>, /* Reg 3,17 */
0199                         <3 0x10 0 0x77>; /* Reg 3,16 */
0200         };
0201 };
0202 
0203 &qspi {
0204         status = "okay";
0205 
0206         flash: flash@0 {
0207                 compatible = "spansion,s25fl064l", "spansion,s25fl164k";
0208                 #address-cells = <1>;
0209                 #size-cells = <1>;
0210                 spi-max-frequency = <20000000>;
0211                 spi-rx-bus-width = <4>;
0212                 spi-tx-bus-width = <4>;
0213                 reg = <0>;
0214 
0215                 partitions@0 {
0216                         label = "U-Boot";
0217                         reg = <0x0 0x180000>;
0218                 };
0219 
0220                 partitions@180000 {
0221                         label = "U-Boot Env";
0222                         reg = <0x180000 0x680000>;
0223                 };
0224         };
0225 };
0226 
0227 &sata {
0228         status = "okay";
0229 };
0230 
0231 &uart0 {
0232         status = "okay";
0233 };
0234 
0235 &uart1 {
0236         status = "okay";
0237 };