Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Device Tree common file for kirkwood based Buffalo Linkstation
0004  *
0005  * Copyright (C) 2015, 2016
0006  * Roger Shimizu <rogershimizu@gmail.com>
0007  */
0008 
0009 / {
0010         chosen {
0011                 bootargs = "console=ttyS0,115200n8 earlyprintk";
0012                 stdout-path = &uart0;
0013         };
0014 
0015         ocp@f1000000 {
0016                 pinctrl: pin-controller@10000 {
0017                         pmx_power_hdd0: pmx-power-hdd0 {
0018                                 marvell,function = "gpio";
0019                         };
0020                         pmx_usb_vbus: pmx-usb-vbus {
0021                                 marvell,function = "gpio";
0022                         };
0023                         pmx_led_alarm: pmx-led-alarm {
0024                                 marvell,function = "gpio";
0025                         };
0026                         pmx_led_function_red: pmx-led-function-red {
0027                                 marvell,function = "gpio";
0028                         };
0029                         pmx_led_function_blue: pmx-led-function-blue {
0030                                 marvell,function = "gpio";
0031                         };
0032                         pmx_led_info: pmx-led-info {
0033                                 marvell,function = "gpio";
0034                         };
0035                         pmx_led_power: pmx-led-power {
0036                                 marvell,function = "gpio";
0037                         };
0038                         pmx_button_function: pmx-button-function {
0039                                 marvell,function = "gpio";
0040                         };
0041                         pmx_power_switch: pmx-power-switch {
0042                                 marvell,function = "gpio";
0043                         };
0044                         pmx_power_auto_switch: pmx-power-auto-switch {
0045                                 marvell,function = "gpio";
0046                         };
0047                 };
0048 
0049                 serial@12000 {
0050                         status = "okay";
0051                 };
0052 
0053                 sata@80000 {
0054                         status = "okay";
0055                         nr-ports = <1>;
0056                 };
0057 
0058                 spi@10600 {
0059                         status = "okay";
0060 
0061                         m25p40@0 {
0062                                 #address-cells = <1>;
0063                                 #size-cells = <1>;
0064                                 compatible = "st,m25p40", "jedec,spi-nor";
0065                                 reg = <0>;
0066                                 spi-max-frequency = <25000000>;
0067                                 mode = <0>;
0068 
0069                                 partition@0 {
0070                                         reg = <0x0 0x60000>;
0071                                         label = "uboot";
0072                                         read-only;
0073                                 };
0074 
0075                                 partition@60000 {
0076                                         reg = <0x60000 0x10000>;
0077                                         label = "dtb";
0078                                         read-only;
0079                                 };
0080 
0081                                 partition@70000 {
0082                                         reg = <0x70000 0x10000>;
0083                                         label = "uboot_env";
0084                                 };
0085                         };
0086                 };
0087         };
0088 
0089         gpio_keys {
0090                 compatible = "gpio-keys";
0091                 #address-cells = <1>;
0092                 #size-cells = <0>;
0093                 pinctrl-0 = <&pmx_button_function &pmx_power_switch
0094                              &pmx_power_auto_switch>;
0095                 pinctrl-names = "default";
0096 
0097                 function-button {
0098                         label = "Function Button";
0099                         linux,code = <KEY_OPTION>;
0100                 };
0101 
0102                 power-on-switch {
0103                         label = "Power-on Switch";
0104                         linux,code = <KEY_RESERVED>;
0105                         linux,input-type = <5>;
0106                 };
0107 
0108                 power-auto-switch {
0109                         label = "Power-auto Switch";
0110                         linux,code = <KEY_ESC>;
0111                         linux,input-type = <5>;
0112                 };
0113         };
0114 
0115         gpio_leds {
0116                 compatible = "gpio-leds";
0117                 pinctrl-0 = <&pmx_led_function_red &pmx_led_alarm
0118                              &pmx_led_info &pmx_led_power
0119                              &pmx_led_function_blue>;
0120                 pinctrl-names = "default";
0121         };
0122 
0123         restart_poweroff {
0124                 compatible = "restart-poweroff";
0125         };
0126 
0127         regulators {
0128                 compatible = "simple-bus";
0129                 #address-cells = <1>;
0130                 #size-cells = <0>;
0131                 pinctrl-0 = <&pmx_power_hdd0 &pmx_usb_vbus>;
0132                 pinctrl-names = "default";
0133 
0134                 usb_power: regulator@1 {
0135                         compatible = "regulator-fixed";
0136                         reg = <1>;
0137                         regulator-name = "USB Power";
0138                         regulator-min-microvolt = <5000000>;
0139                         regulator-max-microvolt = <5000000>;
0140                         enable-active-high;
0141                         regulator-always-on;
0142                         regulator-boot-on;
0143                 };
0144 
0145                 hdd_power0: regulator@2 {
0146                         compatible = "regulator-fixed";
0147                         reg = <2>;
0148                         regulator-name = "HDD0 Power";
0149                         regulator-min-microvolt = <5000000>;
0150                         regulator-max-microvolt = <5000000>;
0151                         enable-active-high;
0152                         regulator-always-on;
0153                         regulator-boot-on;
0154                 };
0155         };
0156 };
0157 
0158 &pciec {
0159         status = "okay";
0160 };
0161 
0162 &pcie0 {
0163         status = "okay";
0164 };