0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Copyright (C) 2021 Corentin Labbe <clabbe@baylibre.com>
0004 * Device Tree file for SSI 1328
0005 */
0006
0007 /dts-v1/;
0008
0009 #include "gemini.dtsi"
0010
0011 / {
0012 model = "SSI 1328";
0013 compatible = "ssi,1328", "cortina,gemini";
0014 #address-cells = <1>;
0015 #size-cells = <1>;
0016
0017 memory@0 {
0018 /* 128 MB */
0019 device_type = "memory";
0020 reg = <0x00000000 0x8000000>;
0021 };
0022
0023 aliases {
0024 mdio-gpio0 = &mdio0;
0025 };
0026
0027 chosen {
0028 bootargs = "console=ttyS0,19200n8 initrd=0x900000,9M";
0029 stdout-path = &uart0;
0030 };
0031
0032 mdio0: mdio {
0033 compatible = "virtual,mdio-gpio";
0034 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
0035 <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
0036 #address-cells = <1>;
0037 #size-cells = <0>;
0038
0039 /* LAN Marvell 88E1118 */
0040 phy0: ethernet-phy@1 {
0041 reg = <1>;
0042 device_type = "ethernet-phy";
0043 /* We lack the knowledge of necessary GPIO to achieve
0044 * Gigabit
0045 */
0046 max-speed = <100>;
0047 };
0048 /* WAN ICPlus IP101A */
0049 phy1: ethernet-phy@2 {
0050 reg = <2>;
0051 device_type = "ethernet-phy";
0052 };
0053 };
0054 };
0055
0056 ðernet {
0057 status = "okay";
0058 ethernet-port@0 {
0059 phy-mode = "rgmii";
0060 phy-handle = <&phy0>;
0061 };
0062 ethernet-port@1 {
0063 phy-mode = "rgmii";
0064 phy-handle = <&phy1>;
0065 };
0066 };
0067
0068 &flash {
0069 status = "okay";
0070 /* 32MB of flash */
0071 reg = <0x30000000 0x03200000>;
0072
0073 pinctrl-names = "enabled", "disabled";
0074 pinctrl-0 = <&pflash_default_pins>;
0075 pinctrl-1 = <&pflash_disabled_pins>;
0076
0077 partitions {
0078 compatible = "redboot-fis";
0079 /* Eraseblock at 0xfe0000 */
0080 fis-index-block = <0x7F>;
0081 };
0082 };
0083
0084 &gpio0 {
0085 pinctrl-names = "default";
0086 pinctrl-0 = <&gpio0_default_pins>;
0087 };
0088
0089 &ide0 {
0090 status = "okay";
0091 };
0092
0093 &ide1 {
0094 status = "okay";
0095 };
0096
0097 &sata {
0098 cortina,gemini-ata-muxmode = <0>;
0099 cortina,gemini-enable-sata-bridge;
0100 status = "okay";
0101 };
0102
0103 &syscon {
0104 pinctrl {
0105 /*
0106 * gpio0agrp cover line 0-4
0107 * gpio0bgrp cover line 5
0108 */
0109 gpio0_default_pins: pinctrl-gpio0 {
0110 mux {
0111 function = "gpio0";
0112 groups = "gpio0agrp", "gpio0bgrp";
0113 };
0114 };
0115 pflash_disabled_pins: pinctrl-pflash-disabled {
0116 mux {
0117 function = "gpio0";
0118 groups = "gpio0ggrp", "gpio0igrp", "gpio0jgrp",
0119 "gpio0kgrp";
0120 };
0121 };
0122 pinctrl-gmii {
0123 /* This platform use both the ethernet ports */
0124 mux {
0125 function = "gmii";
0126 groups = "gmii_gmac0_grp", "gmii_gmac1_grp";
0127 };
0128 };
0129 };
0130 };
0131
0132 &usb0 {
0133 status = "okay";
0134 };
0135
0136 &usb1 {
0137 status = "okay";
0138 };