Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Copyright (C) 2013 Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
0004  *
0005  */
0006 
0007 /dts-v1/;
0008 
0009 #include <dt-bindings/gpio/gpio.h>
0010 #include <dt-bindings/input/input.h>
0011 #include "kirkwood.dtsi"
0012 #include "kirkwood-6192.dtsi"
0013 
0014 / {
0015         model = "LaCie LaPlug";
0016         compatible = "lacie,laplug", "marvell,kirkwood-88f6192", "marvell,kirkwood";
0017 
0018         memory {
0019                 device_type = "memory";
0020                 reg = <0x00000000 0x8000000>; /* 128 MB */
0021         };
0022 
0023         chosen {
0024                 bootargs = "console=ttyS0,115200n8 earlyprintk";
0025                 stdout-path = &uart0;
0026         };
0027 
0028         ocp@f1000000 {
0029                 serial@12000 {
0030                         status = "okay";
0031                 };
0032 
0033                 i2c@11000 {
0034                         status = "okay";
0035 
0036                         eeprom@50 {
0037                                 compatible = "atmel,24c04";
0038                                 pagesize = <16>;
0039                                 reg = <0x50>;
0040                         };
0041                 };
0042 
0043                 pinctrl: pin-controller@10000 {
0044                         pmx_usb_power_enable: pmx-usb-power-enable {
0045                                 marvell,pins = "mpp14";
0046                                 marvell,function = "gpio";
0047                         };
0048                 };
0049         };
0050 
0051         gpio_keys {
0052                 compatible = "gpio-keys";
0053 
0054                 power {
0055                         label = "Power push button";
0056                         linux,code = <KEY_POWER>;
0057                         gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
0058                 };
0059         };
0060 
0061         gpio-leds {
0062                 compatible = "gpio-leds";
0063 
0064                 red-fail {
0065                         label = "laplug_v2:red:power";
0066                         gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
0067                 };
0068                 blue-power {
0069                         label = "laplug_v2:blue:power";
0070                         gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
0071                         linux,default-trigger = "default-on";
0072                 };
0073         };
0074 
0075         gpio_poweroff {
0076                 compatible = "gpio-poweroff";
0077                 gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
0078         };
0079 
0080         regulators {
0081                 compatible = "simple-bus";
0082                 #address-cells = <1>;
0083                 #size-cells = <0>;
0084                 pinctrl-0 = <&pmx_usb_power_enable>;
0085                 pinctrl-names = "default";
0086 
0087                 usb_power_back1: regulator@1 {
0088                         compatible = "regulator-fixed";
0089                         reg = <1>;
0090                         regulator-name = "USB Power Back 1";
0091                         regulator-min-microvolt = <5000000>;
0092                         regulator-max-microvolt = <5000000>;
0093                         enable-active-high;
0094                         regulator-always-on;
0095                         regulator-boot-on;
0096                         gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>;
0097                 };
0098 
0099                 usb_power_back2: regulator@2 {
0100                         compatible = "regulator-fixed";
0101                         reg = <2>;
0102                         regulator-name = "USB Power Back 2";
0103                         regulator-min-microvolt = <5000000>;
0104                         regulator-max-microvolt = <5000000>;
0105                         enable-active-high;
0106                         regulator-always-on;
0107                         regulator-boot-on;
0108                         gpio = <&gpio0 28 GPIO_ACTIVE_HIGH>;
0109                 };
0110 
0111                 usb_power_front: regulator@3 {
0112                         compatible = "regulator-fixed";
0113                         reg = <3>;
0114                         regulator-name = "USB Power Front";
0115                         regulator-min-microvolt = <5000000>;
0116                         regulator-max-microvolt = <5000000>;
0117                         enable-active-high;
0118                         regulator-always-on;
0119                         regulator-boot-on;
0120                         gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>;
0121                 };
0122         };
0123 };
0124 
0125 &nand {
0126         /* Total size : 512MB */
0127         status = "okay";
0128 
0129         partition@0 {
0130                 label = "u-boot";
0131                 reg = <0x0 0x100000>; /* 1MB */
0132                 read-only;
0133         };
0134 
0135         partition@100000 {
0136                 label = "uImage";
0137                 reg = <0x100000 0x1000000>; /* 16MB */
0138         };
0139 
0140         partition@1100000 {
0141                 label = "rootfs";
0142                 reg = <0x1100000 0x1EF00000>; /* 495MB */
0143         };
0144 };
0145 
0146 &mdio {
0147         status = "okay";
0148 
0149         ethphy0: ethernet-phy@0 {
0150                 device_type = "ethernet-phy";
0151                 reg = <0>;
0152         };
0153 };
0154 
0155 &eth0 {
0156         status = "okay";
0157         ethernet0-port@0 {
0158                 phy-handle = <&ethphy0>;
0159         };
0160 };
0161 
0162 &pciec {
0163         status = "okay";
0164 };
0165 
0166 &pcie0 {
0167         status = "okay";
0168 };