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 earlyprintk";
0008 stdout-path = &uart0;
0009 };
0010
0011 ocp@f1000000 {
0012 pinctrl: pin-controller@10000 {
0013 pmx_power_hdd: pmx-power-hdd {
0014 marvell,pins = "mpp10";
0015 marvell,function = "gpo";
0016 };
0017 pmx_usb_vbus: pmx-usb-vbus {
0018 marvell,pins = "mpp11";
0019 marvell,function = "gpio";
0020 };
0021 pmx_fan_high: pmx-fan-high {
0022 marvell,pins = "mpp18";
0023 marvell,function = "gpo";
0024 };
0025 pmx_fan_low: pmx-fan-low {
0026 marvell,pins = "mpp19";
0027 marvell,function = "gpo";
0028 };
0029 pmx_led_function_blue: pmx-led-function-blue {
0030 marvell,pins = "mpp36";
0031 marvell,function = "gpio";
0032 };
0033 pmx_led_alarm: pmx-led-alarm {
0034 marvell,pins = "mpp37";
0035 marvell,function = "gpio";
0036 };
0037 pmx_led_info: pmx-led-info {
0038 marvell,pins = "mpp38";
0039 marvell,function = "gpio";
0040 };
0041 pmx_led_power: pmx-led-power {
0042 marvell,pins = "mpp39";
0043 marvell,function = "gpio";
0044 };
0045 pmx_fan_lock: pmx-fan-lock {
0046 marvell,pins = "mpp40";
0047 marvell,function = "gpio";
0048 };
0049 pmx_button_function: pmx-button-function {
0050 marvell,pins = "mpp41";
0051 marvell,function = "gpio";
0052 };
0053 pmx_power_switch: pmx-power-switch {
0054 marvell,pins = "mpp42";
0055 marvell,function = "gpio";
0056 };
0057 pmx_power_auto_switch: pmx-power-auto-switch {
0058 marvell,pins = "mpp43";
0059 marvell,function = "gpio";
0060 };
0061 pmx_led_function_red: pmx-led-function_red {
0062 marvell,pins = "mpp48";
0063 marvell,function = "gpio";
0064 };
0065
0066 };
0067 sata@80000 {
0068 status = "okay";
0069 nr-ports = <1>;
0070 };
0071
0072 spi@10600 {
0073 status = "okay";
0074
0075 m25p40@0 {
0076 #address-cells = <1>;
0077 #size-cells = <1>;
0078 compatible = "m25p40", "jedec,spi-nor";
0079 reg = <0>;
0080 spi-max-frequency = <25000000>;
0081 mode = <0>;
0082
0083 partition@0 {
0084 reg = <0x0 0x60000>;
0085 label = "uboot";
0086 read-only;
0087 };
0088
0089 partition@60000 {
0090 reg = <0x60000 0x10000>;
0091 label = "dtb";
0092 read-only;
0093 };
0094
0095 partition@70000 {
0096 reg = <0x70000 0x10000>;
0097 label = "uboot_env";
0098 };
0099 };
0100 };
0101 };
0102
0103 gpio_keys {
0104 compatible = "gpio-keys";
0105 #address-cells = <1>;
0106 #size-cells = <0>;
0107 pinctrl-0 = <&pmx_button_function &pmx_power_switch
0108 &pmx_power_auto_switch>;
0109 pinctrl-names = "default";
0110
0111 option {
0112 label = "Function Button";
0113 linux,code = <KEY_OPTION>;
0114 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
0115 };
0116 reserved {
0117 label = "Power-on Switch";
0118 linux,code = <KEY_RESERVED>;
0119 linux,input-type = <5>;
0120 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
0121 };
0122 power {
0123 label = "Power-auto Switch";
0124 linux,code = <KEY_ESC>;
0125 linux,input-type = <5>;
0126 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
0127 };
0128 };
0129
0130 gpio_leds {
0131 compatible = "gpio-leds";
0132 pinctrl-0 = <&pmx_led_function_red &pmx_led_alarm
0133 &pmx_led_info &pmx_led_power
0134 &pmx_led_function_blue>;
0135 pinctrl-names = "default";
0136
0137 func_blue {
0138 label = "lsxl:blue:func";
0139 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
0140 };
0141
0142 alarm {
0143 label = "lsxl:red:alarm";
0144 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
0145 };
0146
0147 info {
0148 label = "lsxl:amber:info";
0149 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
0150 };
0151
0152 power {
0153 label = "lsxl:blue:power";
0154 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
0155 default-state = "keep";
0156 };
0157
0158 func_red {
0159 label = "lsxl:red:func";
0160 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
0161 };
0162 };
0163
0164 gpio_fan {
0165 compatible = "gpio-fan";
0166 pinctrl-0 = <&pmx_fan_low &pmx_fan_high &pmx_fan_lock>;
0167 pinctrl-names = "default";
0168 gpios = <&gpio0 19 GPIO_ACTIVE_LOW
0169 &gpio0 18 GPIO_ACTIVE_LOW>;
0170 gpio-fan,speed-map = <0 3
0171 1500 2
0172 3250 1
0173 5000 0>;
0174 alarm-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
0175 };
0176
0177 restart_poweroff {
0178 compatible = "restart-poweroff";
0179 };
0180
0181 regulators {
0182 compatible = "simple-bus";
0183 #address-cells = <1>;
0184 #size-cells = <0>;
0185 pinctrl-0 = <&pmx_power_hdd &pmx_usb_vbus>;
0186 pinctrl-names = "default";
0187
0188 usb_power: regulator@1 {
0189 compatible = "regulator-fixed";
0190 reg = <1>;
0191 regulator-name = "USB Power";
0192 regulator-min-microvolt = <5000000>;
0193 regulator-max-microvolt = <5000000>;
0194 enable-active-high;
0195 regulator-always-on;
0196 regulator-boot-on;
0197 gpio = <&gpio0 11 0>;
0198 };
0199 hdd_power: regulator@2 {
0200 compatible = "regulator-fixed";
0201 reg = <2>;
0202 regulator-name = "HDD Power";
0203 regulator-min-microvolt = <5000000>;
0204 regulator-max-microvolt = <5000000>;
0205 enable-active-high;
0206 regulator-always-on;
0207 regulator-boot-on;
0208 gpio = <&gpio0 10 0>;
0209 };
0210 };
0211 };
0212
0213 &mdio {
0214 status = "okay";
0215
0216 ethphy0: ethernet-phy@0 {
0217 reg = <0>;
0218 };
0219
0220 ethphy1: ethernet-phy@8 {
0221 reg = <8>;
0222 };
0223 };
0224
0225 ð0 {
0226 status = "okay";
0227 ethernet0-port@0 {
0228 phy-handle = <ðphy0>;
0229 };
0230 };
0231
0232 ð1 {
0233 status = "okay";
0234 ethernet1-port@0 {
0235 phy-handle = <ðphy1>;
0236 };
0237 };