Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: ISC
0002 /*
0003  * Device Tree file for Iomega NAS 100D
0004  */
0005 
0006 /dts-v1/;
0007 
0008 #include "intel-ixp42x.dtsi"
0009 #include <dt-bindings/input/input.h>
0010 
0011 / {
0012         model = "Iomega NAS 100D";
0013         compatible = "iom,nas-100d", "intel,ixp42x";
0014         #address-cells = <1>;
0015         #size-cells = <1>;
0016 
0017         memory@0 {
0018                 /* 64 MB SDRAM */
0019                 device_type = "memory";
0020                 reg = <0x00000000 0x4000000>;
0021         };
0022 
0023         chosen {
0024                 bootargs = "console=ttyS0,115200n8 root=/dev/sda1 rw rootwait";
0025                 stdout-path = "uart0:115200n8";
0026         };
0027 
0028         aliases {
0029                 serial0 = &uart0;
0030         };
0031 
0032         leds {
0033                 compatible = "gpio-leds";
0034                 led-wlan {
0035                         label = "nas100d:red:wlan";
0036                         gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
0037                         default-state = "on";
0038                         /* We don't have WLAN trigger in the kernel (yet) */
0039                         linux,default-trigger = "netdev";
0040                 };
0041                 led-disk {
0042                         label = "nas100d:red:disk";
0043                         gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
0044                         default-state = "on";
0045                         linux,default-trigger = "disk-activity";
0046                 };
0047                 led-power {
0048                         label = "nas100d:red:power";
0049                         gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
0050                         default-state = "on";
0051                         linux,default-trigger = "heartbeat";
0052                 };
0053         };
0054 
0055         gpio_keys {
0056                 compatible = "gpio-keys";
0057 
0058                 button-power {
0059                         wakeup-source;
0060                         linux,code = <KEY_POWER>;
0061                         label = "power";
0062                         gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
0063                 };
0064                 button-reset {
0065                         wakeup-source;
0066                         linux,code = <KEY_ESC>;
0067                         label = "reset";
0068                         gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
0069                 };
0070         };
0071 
0072         i2c {
0073                 compatible = "i2c-gpio";
0074                 sda-gpios = <&gpio0 5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
0075                 scl-gpios = <&gpio0 6 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
0076                 #address-cells = <1>;
0077                 #size-cells = <0>;
0078 
0079                 rtc@51 {
0080                         compatible = "nxp,pcf8563";
0081                         reg = <0x51>;
0082                 };
0083         };
0084 
0085         gpio-poweroff {
0086                 compatible = "gpio-poweroff";
0087                 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
0088                 timeout-ms = <5000>;
0089         };
0090 
0091         soc {
0092                 bus@c4000000 {
0093                         /* The first 16MB region at CS0 on the expansion bus */
0094                         flash@0,0 {
0095                                 compatible = "intel,ixp4xx-flash", "cfi-flash";
0096                                 bank-width = <2>;
0097                                 /*
0098                                  * 8 MB of Flash in 0x20000 byte blocks
0099                                  * mapped in at CS0.
0100                                  */
0101                                 reg = <0 0x00000000 0x800000>;
0102 
0103                                 partitions {
0104                                         compatible = "redboot-fis";
0105                                         /* Eraseblock at 0x7e0000 */
0106                                         fis-index-block = <0x3f>;
0107                                 };
0108                         };
0109                 };
0110 
0111                 pci@c0000000 {
0112                         status = "ok";
0113 
0114                         /*
0115                          * Taken from NAS 100D PCI boardfile (nas100d-pci.c)
0116                          * We have slots (IDSEL) 1, 2 and 3 and pins 1, 2 and 3.
0117                          */
0118                         #interrupt-cells = <1>;
0119                         interrupt-map-mask = <0xf800 0 0 7>;
0120                         interrupt-map =
0121                         /* IDSEL 1 */
0122                         <0x0800 0 0 1 &gpio0 11 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 1 is irq 11 */
0123                         /* IDSEL 2 */
0124                         <0x1000 0 0 1 &gpio0 10 IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 2 is irq 10 */
0125                         /* IDSEL 3 */
0126                         <0x1800 0 0 1 &gpio0 9  IRQ_TYPE_LEVEL_LOW>, /* INT A on slot 3 is irq 9 */
0127                         <0x1800 0 0 2 &gpio0 8  IRQ_TYPE_LEVEL_LOW>, /* INT B on slot 3 is irq 8 */
0128                         <0x1800 0 0 3 &gpio0 7  IRQ_TYPE_LEVEL_LOW>; /* INT C on slot 3 is irq 7 */
0129                 };
0130 
0131                 ethernet@c8009000 {
0132                         status = "ok";
0133                         queue-rx = <&qmgr 3>;
0134                         queue-txready = <&qmgr 20>;
0135                         phy-mode = "rgmii";
0136                         phy-handle = <&phy0>;
0137 
0138                         mdio {
0139                                 #address-cells = <1>;
0140                                 #size-cells = <0>;
0141 
0142                                 phy0: ethernet-phy@0 {
0143                                         reg = <0>;
0144                                 };
0145                         };
0146                 };
0147         };
0148 };