Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 #include "kirkwood.dtsi"
0003 #include "kirkwood-6281.dtsi"
0004 
0005 / {
0006         chosen {
0007                 bootargs = "console=ttyS0,115200n8";
0008                 stdout-path = &uart0;
0009         };
0010 
0011         ocp@f1000000 {
0012                 pinctrl: pin-controller@10000 {
0013                         pmx_ns2_sata0: pmx-ns2-sata0 {
0014                                 marvell,pins = "mpp21";
0015                                 marvell,function = "sata0";
0016                         };
0017                         pmx_ns2_sata1: pmx-ns2-sata1 {
0018                                 marvell,pins = "mpp20";
0019                                 marvell,function = "sata1";
0020                         };
0021                 };
0022 
0023                 serial@12000 {
0024                         status = "okay";
0025                 };
0026 
0027                 spi@10600 {
0028                         status = "okay";
0029 
0030                         flash@0 {
0031                                 #address-cells = <1>;
0032                                 #size-cells = <1>;
0033                                 compatible = "mxicy,mx25l4005a", "jedec,spi-nor";
0034                                 reg = <0>;
0035                                 spi-max-frequency = <20000000>;
0036                                 mode = <0>;
0037 
0038                                 partition@0 {
0039                                         reg = <0x0 0x80000>;
0040                                         label = "u-boot";
0041                                 };
0042                         };
0043                 };
0044 
0045                 i2c@11000 {
0046                         status = "okay";
0047 
0048                         eeprom@50 {
0049                                 compatible = "atmel,24c04";
0050                                 pagesize = <16>;
0051                                 reg = <0x50>;
0052                         };
0053                 };
0054         };
0055 
0056         gpio_keys {
0057                 compatible = "gpio-keys";
0058                 #address-cells = <1>;
0059                 #size-cells = <0>;
0060 
0061                 power {
0062                         label = "Power push button";
0063                         linux,code = <KEY_POWER>;
0064                         gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
0065                 };
0066         };
0067 
0068         gpio-leds {
0069                 compatible = "gpio-leds";
0070 
0071                 red-fail {
0072                         label = "ns2:red:fail";
0073                         gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
0074                 };
0075         };
0076 
0077         gpio_poweroff {
0078                 compatible = "gpio-poweroff";
0079                 gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
0080         };
0081 
0082 };
0083 
0084 &mdio {
0085         status = "okay";
0086 
0087         ethphy0: ethernet-phy@X {
0088                 /* overwrite reg property in board file */
0089         };
0090 };
0091 
0092 &eth0 {
0093         status = "okay";
0094         ethernet0-port@0 {
0095                 phy-handle = <&ethphy0>;
0096         };
0097 };