0001 // SPDX-License-Identifier: GPL-2.0
0002 /dts-v1/;
0003
0004 #include "kirkwood.dtsi"
0005 #include "kirkwood-6282.dtsi"
0006
0007 / {
0008 model = "Universal Scientific Industrial Co. Topkick-1281P2";
0009 compatible = "usi,topkick-1281P2", "usi,topkick", "marvell,kirkwood-88f6282", "marvell,kirkwood";
0010
0011 memory {
0012 device_type = "memory";
0013 reg = <0x00000000 0x10000000>;
0014 };
0015
0016 chosen {
0017 bootargs = "console=ttyS0,115200n8 earlyprintk";
0018 stdout-path = &uart0;
0019 };
0020
0021 ocp@f1000000 {
0022 pinctrl: pin-controller@10000 {
0023 /*
0024 * Switch positions
0025 *
0026 * /-SW_LEFT(2)
0027 * |
0028 * | /-SW_IDLE
0029 * | |
0030 * | | /-SW_RIGHT
0031 * | | |
0032 * PS [L] [I] [R] LEDS
0033 */
0034 pinctrl-0 = <&pmx_sw_left &pmx_sw_right
0035 &pmx_sw_idle &pmx_sw_left2>;
0036 pinctrl-names = "default";
0037
0038 pmx_led_disk_yellow: pmx-led-disk-yellow {
0039 marvell,pins = "mpp21";
0040 marvell,function = "gpio";
0041 };
0042
0043 pmx_sata0_pwr_enable: pmx-sata0-pwr-enable {
0044 marvell,pins = "mpp36";
0045 marvell,function = "gpio";
0046 };
0047
0048 pmx_led_sys_red: pmx-led-sys-red {
0049 marvell,pins = "mpp37";
0050 marvell,function = "gpio";
0051 };
0052
0053 pmx_led_sys_blue: pmx-led-sys-blue {
0054 marvell,pins = "mpp38";
0055 marvell,function = "gpio";
0056 };
0057
0058 pmx_led_wifi_green: pmx-led-wifi-green {
0059 marvell,pins = "mpp39";
0060 marvell,function = "gpio";
0061 };
0062
0063 pmx_sw_left: pmx-sw-left {
0064 marvell,pins = "mpp43";
0065 marvell,function = "gpio";
0066 };
0067
0068 pmx_sw_right: pmx-sw-right {
0069 marvell,pins = "mpp44";
0070 marvell,function = "gpio";
0071 };
0072
0073 pmx_sw_idle: pmx-sw-idle {
0074 marvell,pins = "mpp45";
0075 marvell,function = "gpio";
0076 };
0077
0078 pmx_sw_left2: pmx-sw-left2 {
0079 marvell,pins = "mpp46";
0080 marvell,function = "gpio";
0081 };
0082
0083 pmx_led_wifi_yellow: pmx-led-wifi-yellow {
0084 marvell,pins = "mpp48";
0085 marvell,function = "gpio";
0086 };
0087 };
0088
0089 serial@12000 {
0090 status = "okay";
0091 };
0092
0093 sata@80000 {
0094 status = "okay";
0095 nr-ports = <1>;
0096 };
0097
0098 i2c@11000 {
0099 status = "okay";
0100 };
0101
0102 mvsdio@90000 {
0103 pinctrl-0 = <&pmx_sdio>;
0104 pinctrl-names = "default";
0105 status = "okay";
0106 /* No CD or WP GPIOs */
0107 broken-cd;
0108 };
0109 };
0110
0111 gpio-leds {
0112 /*
0113 * GPIO LED layout
0114 *
0115 * /-SYS_LED(2)
0116 * |
0117 * | /-DISK_LED
0118 * | |
0119 * | | /-WLAN_LED(2)
0120 * | | |
0121 * [SW] [*] [*] [*]
0122 */
0123
0124 compatible = "gpio-leds";
0125 pinctrl-0 = <&pmx_led_disk_yellow &pmx_led_sys_red
0126 &pmx_led_sys_blue &pmx_led_wifi_green
0127 &pmx_led_wifi_yellow>;
0128 pinctrl-names = "default";
0129
0130 disk {
0131 label = "topkick:yellow:disk";
0132 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
0133 linux,default-trigger = "disk-activity";
0134 };
0135 system2 {
0136 label = "topkick:red:system";
0137 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
0138 };
0139 system {
0140 label = "topkick:blue:system";
0141 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
0142 default-state = "on";
0143 };
0144 wifi {
0145 label = "topkick:green:wifi";
0146 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
0147 };
0148 wifi2 {
0149 label = "topkick:yellow:wifi";
0150 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
0151 };
0152 };
0153 regulators {
0154 compatible = "simple-bus";
0155 #address-cells = <1>;
0156 #size-cells = <0>;
0157 pinctrl-0 = <&pmx_sata0_pwr_enable>;
0158 pinctrl-names = "default";
0159
0160 sata0_power: regulator@1 {
0161 compatible = "regulator-fixed";
0162 reg = <1>;
0163 regulator-name = "SATA0 Power";
0164 regulator-min-microvolt = <5000000>;
0165 regulator-max-microvolt = <5000000>;
0166 enable-active-high;
0167 regulator-always-on;
0168 regulator-boot-on;
0169 gpio = <&gpio1 4 0>;
0170 };
0171 };
0172 };
0173
0174 &nand {
0175 status = "okay";
0176
0177 partition@0 {
0178 label = "u-boot";
0179 reg = <0x0000000 0x180000>;
0180 };
0181
0182 partition@180000 {
0183 label = "u-boot env";
0184 reg = <0x0180000 0x20000>;
0185 };
0186
0187 partition@200000 {
0188 label = "uImage";
0189 reg = <0x0200000 0x600000>;
0190 };
0191
0192 partition@800000 {
0193 label = "uInitrd";
0194 reg = <0x0800000 0x1000000>;
0195 };
0196
0197 partition@1800000 {
0198 label = "rootfs";
0199 reg = <0x1800000 0xe800000>;
0200 };
0201 };
0202
0203 &mdio {
0204 status = "okay";
0205
0206 ethphy0: ethernet-phy@0 {
0207 reg = <0>;
0208 };
0209 };
0210
0211 ð0 {
0212 status = "okay";
0213 ethernet0-port@0 {
0214 phy-handle = <ðphy0>;
0215 };
0216 };