Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3263452pxv; Mon, 12 Jul 2021 13:12:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+F6zHPME8MVZDbV9nVfRB+uvOBHauTY2pHt47Gp1t4sy1pkbhpZK+Xdo65DVr2A4ReWY6 X-Received: by 2002:a6b:b5c7:: with SMTP id e190mr500536iof.31.1626120767379; Mon, 12 Jul 2021 13:12:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626120767; cv=none; d=google.com; s=arc-20160816; b=amsLBIQ3qti5TzBuqUAkqTGN38FoJ4zU4+qSrCFFEqnpRk8C3cmT/Kss1Av7Dcs+wJ awVH2VDptFww9fpIVLDu63xe6bFD3GFJCaCHvzV9RyqG2cMx9TlRTQpWrQPyQ1KIFhlb gBCpoMmBqHRXJszuxf+I5tjTbqwvDyY1uAeEqeFK71Br4gCt0nz8jzBK1dAERg3MbEZ0 W+ZAWhUIVi4Leu0vg5yv2j10T9OHSVrAjgUIjZud9wPviIyAEdtVW64KH7PJnRdNo3kA r9mM4RSrmR4kJRjTm8qU/BU3sNnw0ShXAUy1aGBo3Bnp+xe5XmVDG2CLuFx/T0oojJoQ 2KNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=8vx4roC1t44uRDMKvtWy4G2yQadZ8UNHNbyeeJaYsn8=; b=SEkTttpp4xHWdTMIDZi9lu6EImEmitIaPuDXxbL3sbdIpCZd2cI5O7mGnkvKCzH+ln PFiSgMHGqYXihza6MsDMJoe9yyOuQdLgh95JIIExTgTqCiLPmJlu2MPeRJlYaXQARWVu PIbcm+fP+1ielYMY9twIJOLnEG8QLeHxeoTlzqsn2/QA1ONh8PtlDLq9vnhCNY8eta2N m5hu8WI5y/DIRkfJmWaZpAEpHA0hAxrzVYMmNtYMx02DY/d00ffFYWJiwOjj0Xlk+69w JKjhG+1qi6hsahKuXl4gt2LyYUkasZ1GRYy8UB2eagkP9++SK53Q8a4K/FOnv2X3dqF5 XXKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g13si20502408ilf.35.2021.07.12.13.12.34; Mon, 12 Jul 2021 13:12:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234859AbhGLUOS (ORCPT + 99 others); Mon, 12 Jul 2021 16:14:18 -0400 Received: from mail-io1-f42.google.com ([209.85.166.42]:40711 "EHLO mail-io1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231693AbhGLUOR (ORCPT ); Mon, 12 Jul 2021 16:14:17 -0400 Received: by mail-io1-f42.google.com with SMTP id l5so24221785iok.7; Mon, 12 Jul 2021 13:11:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=8vx4roC1t44uRDMKvtWy4G2yQadZ8UNHNbyeeJaYsn8=; b=LAVFBR4oVqYY59xvJp8Iqdlh+9CY2iBYYRo/peTDXCNvknUbLH5fkgOyXQhxDP/rWH PZjS78GOv+CECylGdII/NLSbwSedwzz2DP9ylelmP2icKq9spycQI5ixrz49vqEqCxo4 SNK3rg546ThkybPbOXi0tKzzKAmHiLLznJPSEF9iJJXWOziQPylIKQUCa2PjcXjjjxf3 D32v7FO/8iBZmDw8wch2Y0Tz2lpmVNl4w0Ka70WReXZ8jguU025pxYZVXplnm5wghayC Z1cz6RiaRpJd8D8wqdVsuTZAWc6Hl3AyBiGxP9LzaBFBprisfBZrnoSKmGRMq34VI26B CsJQ== X-Gm-Message-State: AOAM531kfHPY71seyoMCV1MU+P0kQMsrWQWbZmtibO7CztMly59m6a/U A/YGvU4Lk+aOwIGHmOaiQw== X-Received: by 2002:a02:6946:: with SMTP id e67mr674179jac.4.1626120688898; Mon, 12 Jul 2021 13:11:28 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id m20sm2261259ioc.39.2021.07.12.13.11.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jul 2021 13:11:28 -0700 (PDT) Received: (nullmailer pid 2407738 invoked by uid 1000); Mon, 12 Jul 2021 20:11:25 -0000 Date: Mon, 12 Jul 2021 14:11:25 -0600 From: Rob Herring To: Corentin Labbe Cc: arnd@arndb.de, linus.walleij@linaro.org, olof@lixom.net, soc@kernel.org, ulli.kroll@googlemail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 5/5] ARM: gemini: add device tree for ssi1328 Message-ID: <20210712201125.GA2401230@robh.at.kernel.org> References: <20210618205533.1527384-1-clabbe@baylibre.com> <20210618205533.1527384-6-clabbe@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210618205533.1527384-6-clabbe@baylibre.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 18, 2021 at 08:55:33PM +0000, Corentin Labbe wrote: > The SSI 1328 is a NAS box running a SL3516 SoC. > > Signed-off-by: Corentin Labbe > --- > arch/arm/boot/dts/Makefile | 1 + > arch/arm/boot/dts/gemini-ssi1328.dts | 138 +++++++++++++++++++++++++++ > 2 files changed, 139 insertions(+) > create mode 100644 arch/arm/boot/dts/gemini-ssi1328.dts > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index 806715f3266d..49bf7af72111 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -221,6 +221,7 @@ dtb-$(CONFIG_ARCH_GEMINI) += \ > gemini-rut1xx.dtb \ > gemini-sl93512r.dtb \ > gemini-sq201.dtb \ > + gemini-ssi1328.dtb \ > gemini-wbd111.dtb \ > gemini-wbd222.dtb > dtb-$(CONFIG_ARCH_HI3xxx) += \ > diff --git a/arch/arm/boot/dts/gemini-ssi1328.dts b/arch/arm/boot/dts/gemini-ssi1328.dts > new file mode 100644 > index 000000000000..2b3e7db84fed > --- /dev/null > +++ b/arch/arm/boot/dts/gemini-ssi1328.dts > @@ -0,0 +1,138 @@ > +// SPDX-License-Identifier: GPL-2.0 Dual license? No one runs BSD or other OS on these devices? > +/* > + * Copyright (C) 2021 Corentin Labbe > + * Device Tree file for SSI 1328 > + */ > + > +/dts-v1/; > + > +#include "gemini.dtsi" Though the license should match this file. > + > +/ { > + model = "SSI 1328"; > + compatible = "ssi,1328", "cortina,gemini"; Where's ssi,1328 documented? > + #address-cells = <1>; > + #size-cells = <1>; > + > + memory@0 { > + /* 128 MB */ > + device_type = "memory"; > + reg = <0x00000000 0x8000000>; > + }; > + > + aliases { > + mdio-gpio0 = &mdio0; > + }; > + > + chosen { > + bootargs = "console=ttyS0,19200n8 initrd=0x900000,9M"; > + stdout-path = &uart0; Don't need both 'console' and stdout-path. (console should be removed) > + }; > + > + mdio0: mdio { > + compatible = "virtual,mdio-gpio"; > + gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */ > + <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */ > + #address-cells = <1>; > + #size-cells = <0>; > + > + /* LAN Marvell 88E1118 */ > + phy0: ethernet-phy@1 { > + reg = <1>; > + device_type = "ethernet-phy"; > + /* We lack the knowledge of necessary GPIO to achieve > + * Gigabit > + */ > + max-speed = <100>; > + }; > + /* WAN ICPlus IP101A */ > + phy1: ethernet-phy@2 { > + reg = <2>; > + device_type = "ethernet-phy"; > + }; > + }; > +}; > + > +ðernet { > + status = "okay"; > + ethernet-port@0 { > + phy-mode = "rgmii"; > + phy-handle = <&phy0>; > + }; > + ethernet-port@1 { > + phy-mode = "rgmii"; > + phy-handle = <&phy1>; > + }; > +}; > + > +&flash { > + status = "okay"; > + /* 32MB of flash */ > + reg = <0x30000000 0x03200000>; > + > + pinctrl-names = "enabled", "disabled"; > + pinctrl-0 = <&pflash_default_pins>; > + pinctrl-1 = <&pflash_disabled_pins>; > + > + partitions { > + compatible = "redboot-fis"; > + /* Eraseblock at 0xfe0000 */ > + fis-index-block = <0x7F>; > + }; > +}; > + > +&gpio0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&gpio0_default_pins>; > +}; > + > +&ide0 { > + status = "okay"; > +}; > + > +&ide1 { > + status = "okay"; > +}; > + > +&sata { > + cortina,gemini-ata-muxmode = <0>; > + cortina,gemini-enable-sata-bridge; > + status = "okay"; > +}; > + > +&syscon { > + pinctrl { > + /* > + * gpio0agrp cover line 0-4 > + * gpio0bgrp cover line 5 > + */ > + gpio0_default_pins: pinctrl-gpio0 { > + mux { > + function = "gpio0"; > + groups = "gpio0agrp", "gpio0bgrp"; > + }; > + }; > + pflash_disabled_pins: pinctrl-pflash-disabled { > + mux { > + function = "gpio0"; > + groups = "gpio0ggrp", "gpio0igrp", "gpio0jgrp", > + "gpio0kgrp"; > + }; > + }; > + pinctrl-gmii { > + /* This platform use both the ethernet ports */ > + mux { > + function = "gmii"; > + groups = "gmii_gmac0_grp", "gmii_gmac1_grp"; > + }; > + }; > + }; > +}; > + > +&usb0 { > + status = "okay"; > +}; > + > +&usb1 { > + status = "okay"; > +}; > -- > 2.31.1 > >