Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /dts-v1/;
0003 
0004 #include "kirkwood.dtsi"
0005 #include "kirkwood-6282.dtsi"
0006 
0007 / {
0008         model = "Plat'Home OpenBlocksA6";
0009         compatible = "plathome,openblocks-a6", "marvell,kirkwood-88f6283", "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                 serial@12000 {
0023                         status = "okay";
0024                 };
0025 
0026                 serial@12100 {
0027                         status = "okay";
0028                 };
0029 
0030                 sata@80000 {
0031                         nr-ports = <1>;
0032                         status = "okay";
0033                 };
0034 
0035                 i2c@11100 {
0036                         status = "okay";
0037 
0038                         s35390a: s35390a@30 {
0039                                 compatible = "sii,s35390a";
0040                                 reg = <0x30>;
0041                         };
0042                 };
0043 
0044                 pinctrl: pin-controller@10000 {
0045                         pinctrl-0 = <&pmx_dip_switches>;
0046                         pinctrl-names = "default";
0047 
0048                         pmx_uart0: pmx-uart0 {
0049                                 marvell,pins = "mpp10", "mpp11", "mpp15",
0050                                         "mpp16";
0051                                 marvell,function = "uart0";
0052                         };
0053 
0054                         pmx_uart1: pmx-uart1 {
0055                                 marvell,pins = "mpp13", "mpp14", "mpp8",
0056                                         "mpp9";
0057                                 marvell,function = "uart1";
0058                         };
0059 
0060                         pmx_sysrst: pmx-sysrst {
0061                                 marvell,pins = "mpp6";
0062                                 marvell,function = "sysrst";
0063                         };
0064 
0065                         pmx_dip_switches: pmx-dip-switches {
0066                                 marvell,pins = "mpp20", "mpp21", "mpp22", "mpp23";
0067                                 marvell,function = "gpio";
0068                         };
0069 
0070                         pmx_gpio_header: pmx-gpio-header {
0071                                 marvell,pins = "mpp24", "mpp25", "mpp26", "mpp27",
0072                                                "mpp28", "mpp29", "mpp30", "mpp31";
0073                                 marvell,function = "gpio";
0074                         };
0075 
0076                         pmx_gpio_init: pmx-init {
0077                                 marvell,pins = "mpp38";
0078                                 marvell,function = "gpio";
0079                         };
0080 
0081                         pmx_usb_oc: pmx-usb-oc {
0082                                 marvell,pins = "mpp39";
0083                                 marvell,function = "gpio";
0084                         };
0085 
0086                         pmx_leds: pmx-leds {
0087                                 marvell,pins = "mpp41", "mpp42", "mpp43";
0088                                 marvell,function = "gpio";
0089                         };
0090                 };
0091         };
0092 
0093         gpio-leds {
0094                 compatible = "gpio-leds";
0095                 pinctrl-0 = <&pmx_leds>;
0096                 pinctrl-names = "default";
0097 
0098                 led-red {
0099                         label = "obsa6:red:stat";
0100                         gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
0101                 };
0102 
0103                 led-green {
0104                         label = "obsa6:green:stat";
0105                         gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
0106                 };
0107 
0108                 led-yellow {
0109                         label = "obsa6:yellow:stat";
0110                         gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
0111                 };
0112         };
0113 
0114         gpio_keys {
0115                 compatible = "gpio-keys";
0116                 pinctrl-0 = <&pmx_gpio_init>;
0117                 pinctrl-names = "default";
0118                 #address-cells = <1>;
0119                 #size-cells = <0>;
0120 
0121                 power {
0122                         label = "Init Button";
0123                         linux,code = <KEY_POWER>;
0124                         gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
0125                 };
0126         };
0127 };
0128 
0129 &nand {
0130         chip-delay = <25>;
0131         status = "okay";
0132 
0133         partition@0 {
0134                 label = "uboot";
0135                 reg = <0x0 0x90000>;
0136         };
0137 
0138         partition@90000 {
0139                 label = "env";
0140                 reg = <0x90000 0x44000>;
0141         };
0142 
0143         partition@d4000 {
0144                 label = "test";
0145                 reg = <0xd4000 0x20000>;
0146         };
0147 
0148         partition@f4000 {
0149                 label = "conf";
0150                 reg = <0xf4000 0x400000>;
0151         };
0152 
0153         partition@4f4000 {
0154                 label = "linux";
0155                 reg = <0x4f4000 0x1d20000>;
0156         };
0157 
0158         partition@2214000 {
0159                 label = "user";
0160                 reg = <0x2214000 0x1dec000>;
0161         };
0162 };
0163 
0164 &mdio {
0165         status = "okay";
0166 
0167         ethphy0: ethernet-phy@0 {
0168                 reg = <0>;
0169         };
0170 };
0171 
0172 &eth0 {
0173         status = "okay";
0174         ethernet0-port@0 {
0175                 phy-handle = <&ethphy0>;
0176         };
0177 };
0178 
0179 &gpio0 {
0180         status = "okay";
0181 
0182         pinctrl-0 = <&pmx_gpio_header>;
0183         pinctrl-names = "default";
0184 };