Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /dts-v1/;
0003 
0004 #include "kirkwood.dtsi"
0005 #include "kirkwood-6281.dtsi"
0006 
0007 / {
0008         model = "MPL CEC4";
0009         compatible = "mpl,cec4-10", "mpl,cec4", "marvell,kirkwood-88f6281", "marvell,kirkwood";
0010 
0011         memory {
0012                 device_type = "memory";
0013                 reg = <0x00000000 0x20000000>;
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                         pmx_led_health: pmx-led-health {
0024                                 marvell,pins = "mpp7";
0025                                 marvell,function = "gpo";
0026                         };
0027 
0028                         pmx_sata1: pmx-sata1 {
0029                                 marvell,pins = "mpp34";
0030                                 marvell,function = "sata1";
0031                         };
0032 
0033                         pmx_sata0: pmx-sata0 {
0034                                 marvell,pins = "mpp35";
0035                                 marvell,function = "sata0";
0036                         };
0037 
0038                         pmx_led_user1o: pmx-led-user1o {
0039                                 marvell,pins = "mpp40";
0040                                 marvell,function = "gpio";
0041                         };
0042 
0043                         pmx_led_user1g: pmx-led-user1g {
0044                                 marvell,pins = "mpp41";
0045                                 marvell,function = "gpio";
0046                         };
0047 
0048                         pmx_led_user0o: pmx-led-user0o {
0049                                 marvell,pins = "mpp44";
0050                                 marvell,function = "gpio";
0051                         };
0052 
0053                         pmx_led_user0g: pmx-led-user0g {
0054                                 marvell,pins = "mpp45";
0055                                 marvell,function = "gpio";
0056                         };
0057 
0058                         pmx_led_misc: pmx-led-misc {
0059                                 marvell,pins = "mpp46";
0060                                 marvell,function = "gpio";
0061                         };
0062 
0063                         pmx_sdio_cd: pmx-sdio-cd {
0064                                 marvell,pins = "mpp47";
0065                                 marvell,function = "gpio";
0066                         };
0067                 };
0068 
0069                 i2c@11000 {
0070                         status = "okay";
0071 
0072                         rtc@51 {
0073                                 compatible = "nxp,pcf8563";
0074                                 reg = <0x51>;
0075                         };
0076 
0077                         eeprom@57 {
0078                                 compatible = "atmel,24c02";
0079                                 reg = <0x57>;
0080                         };
0081 
0082                 };
0083 
0084                 serial@12000 {
0085                         status = "okay";
0086                 };
0087 
0088                 rtc@10300 {
0089                         status = "disabled";
0090                 };
0091 
0092                 sata@80000 {
0093                         pinctrl-0 = <&pmx_sata0 &pmx_sata1>;
0094                         pinctrl-names = "default";
0095                         nr-ports = <2>;
0096                         status = "okay";
0097                 };
0098 
0099                 mvsdio@90000 {
0100                         pinctrl-0 = <&pmx_sdio &pmx_sdio_cd>;
0101                         pinctrl-names = "default";
0102                         status = "okay";
0103                         cd-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
0104                         /* No WP GPIO */
0105                 };
0106         };
0107 
0108         gpio-leds {
0109                 compatible = "gpio-leds";
0110                 pinctrl-0 = < &pmx_led_health
0111                               &pmx_led_user1o
0112                               &pmx_led_user1g &pmx_led_user0o
0113                               &pmx_led_user0g &pmx_led_misc
0114                             >;
0115                 pinctrl-names = "default";
0116 
0117                 health {
0118                         label = "status:green:health";
0119                         gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
0120                 };
0121 
0122                 user1o {
0123                         label = "user1:orange";
0124                         gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
0125                         default-state = "on";
0126                 };
0127 
0128                 user1g {
0129                         label = "user1:green";
0130                         gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
0131                         default-state = "on";
0132                 };
0133 
0134                 user0o {
0135                         label = "user0:orange";
0136                         gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
0137                         default-state = "on";
0138                 };
0139 
0140                 user0g {
0141                         label = "user0:green";
0142                         gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
0143                         default-state = "on";
0144                 };
0145 
0146                 misc {
0147                         label = "status:orange:misc";
0148                         gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
0149                         default-state = "on";
0150                 };
0151 
0152         };
0153 };
0154 
0155 &nand {
0156         status = "okay";
0157 
0158         partition@0 {
0159                 label = "uboot";
0160                 reg = <0x0000000 0x100000>;
0161         };
0162 
0163         partition@100000 {
0164                 label = "env";
0165                 reg = <0x100000 0x80000>;
0166         };
0167 
0168         partition@180000 {
0169                 label = "fdt";
0170                 reg = <0x180000 0x80000>;
0171         };
0172 
0173         partition@200000 {
0174                 label = "kernel";
0175                 reg = <0x200000 0x400000>;
0176         };
0177 
0178         partition@600000 {
0179                 label = "rootfs";
0180                 reg = <0x600000 0x1fa00000>;
0181         };
0182 };
0183 
0184 &mdio {
0185         status = "okay";
0186 
0187         ethphy0: ethernet-phy@1 {
0188                 reg = <1>;
0189         };
0190 
0191         ethphy1: ethernet-phy@2 {
0192                 reg = <2>;
0193         };
0194 };
0195 
0196 &eth0 {
0197         status = "okay";
0198         ethernet0-port@0 {
0199                 phy-handle = <&ethphy0>;
0200         };
0201 };
0202 
0203 &eth1 {
0204         status = "okay";
0205         ethernet1-port@0 {
0206                 phy-handle = <&ethphy1>;
0207         };
0208 };
0209 
0210 &pciec {
0211         status = "okay";
0212 };
0213 
0214 &pcie0 {
0215         status = "okay";
0216 };