Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp737027lkv; Tue, 18 May 2021 18:41:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPGoyhTj/Qkdvr82uwikgSKzb15uKi3PeRV9z+N1fbQtf9XzeUId1HNH1l1s1q9kEDhiVP X-Received: by 2002:a05:6e02:5b0:: with SMTP id k16mr1555362ils.293.1621388508307; Tue, 18 May 2021 18:41:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621388508; cv=none; d=google.com; s=arc-20160816; b=Az1H9pkV3wavDxPC6/R7+cjBn0PYk7nlqnK0BzsuASAQ5NcHfbE6SQnXcJET31W+it /y9yTptzrHWHZkI3Ft65WqllbYvKIOEq/9gq1DsoNIsrvwI6tWUv7uv33IlOzYY8ZFJg PTtveowMhXVnUP2J0clD16nUG+hMUhk0TSh6HkeqatRJGOInjK18BJ6XCUVXxoGVdUzF kzqRqDBHfgNrp4k93jbyrgOGhqhR+6weom6ICdhmx4WZMdM5FaHpZzSQ2esb2gBtBCWd NlOy06dgyoS4eSYcvOmWDHcXMlfrp5RjhAZm88gDqj5JtM4a+XM+MzJqIE77T343WsyM NUGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rpO3uokOqiPCm4WwzxXP4FgPuwUQkbWlx97bygCs6TE=; b=rB5ebeY9NiX7c8obrmf8Au6AvMcAweeHjjPNhdntZRi8sQkck2ulxf8PEVSslQbV1y o16vMUH9DUiSUGbSmA57g3ULDhcr/8y9xkljghw3vuGgEPMx8tG3eK+uMqYPLMLKw9Ua dQ87kZ7/wKcwHoMvDtvwkCNuJYld+A6rxKMiYy8u2UZrWUxT29YwCTkTuBjXb4kYKdJp ikwAQu3vFT7nYlkyB7tkpFQN+dQlwehon5/gJlUM7N7IM9JX6aF8OxBqiegq7gOXsYYW hnyPlHIxehYiOBolj5qpt3Pkvlsn0Pem+z5rVDUyI8ZXrFawK9khKXin9KI5HbBPuxVs 8agA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=rV0rOUax; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si27188425ilv.134.2021.05.18.18.41.36; Tue, 18 May 2021 18:41:48 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=rV0rOUax; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234669AbhEQTdx (ORCPT + 99 others); Mon, 17 May 2021 15:33:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234330AbhEQTdn (ORCPT ); Mon, 17 May 2021 15:33:43 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB360C06138B for ; Mon, 17 May 2021 12:32:21 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id j14so5880252wrq.5 for ; Mon, 17 May 2021 12:32:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rpO3uokOqiPCm4WwzxXP4FgPuwUQkbWlx97bygCs6TE=; b=rV0rOUax1CAS9yX/C9BpXQgRVQ3xSi21tse0r9NlAHpECR1RNeTpenSOZeIIyVgIsB 3sYSOhnzW5XwxGSYiZRLei2ZDL4lN1nxEFZEB51MRLPDtwTcX8mcU+ExGLnh7L/aUM6g UQ0th7gYDHW1YgavwjEJ2bWpUBmWzQ1Dt6N7LnswvQgbNmDqaucW2B47UMsxPFq1r1Qp tZHBTBhnWIWgFzTSYqQRbwAN8O6ttc94CWEtIJcwx5Ry8EzQWBhsbk3Z8Dk9VuKopZPO SwYJ5a4uR9Ro8abLx6zFvuBc5i2TAewpz2+RqgTyT3uewSZ2OjDO/NyFcjc2l6rOVYEV lx0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rpO3uokOqiPCm4WwzxXP4FgPuwUQkbWlx97bygCs6TE=; b=c+3RzTjxcASgAXguL/XV9pQcsj015wVCEx9IIt2e4rIpEJklVD9HL54IJNKzWQWixV bX1lxcVlr7F0oS1SHjWNUSL1ifO4EmrcNaGeGeu4aJg3SXRU1V3VIBI054QclAUMSe2K 5vjDsmwwpXIUWFf6MwA5lCAj466l6a7xu9Y8jMB8JXPfWJ/5MSnbxt2y9GY0jlbM6ctQ glfNvaO7NLpQiXQwXIYGY1HSTpG09qvJW9CFx52Rio25ZBTVpbdSeYXPfMAlPopaWNGB HRZ142ancfO3ZS/uy/eNfxuf0Y+oNAvgt3Qh/2wMsqlcXmxbCI0TLSMd1vmwahjaxphx yOXg== X-Gm-Message-State: AOAM531wwdSwT9c81Rv7LFxnp+GBx4xmJgXpePQUmo4K6pPGYSJFAtEg 62BKqqln+O8s7oa/WRU/KQNnMQ== X-Received: by 2002:adf:f212:: with SMTP id p18mr1506508wro.318.1621279940435; Mon, 17 May 2021 12:32:20 -0700 (PDT) Received: from localhost.localdomain (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id e10sm18928907wrw.20.2021.05.17.12.32.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 May 2021 12:32:20 -0700 (PDT) From: Corentin Labbe To: arnd@arndb.de, linus.walleij@linaro.org, olof@lixom.net, robh+dt@kernel.org, soc@kernel.org, ulli.kroll@googlemail.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH 4/5] ARM: gemini: add device tree for edimax NS2502 Date: Mon, 17 May 2021 19:32:04 +0000 Message-Id: <20210517193205.691147-5-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210517193205.691147-1-clabbe@baylibre.com> References: <20210517193205.691147-1-clabbe@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The edimax NS2502 is a NAS box running a SL3516 SoC. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/gemini-ns2502.dts | 141 ++++++++++++++++++++++++++++ 2 files changed, 142 insertions(+) create mode 100644 arch/arm/boot/dts/gemini-ns2502.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 1754b562e0b9..bb30d13c9c60 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -216,6 +216,7 @@ dtb-$(CONFIG_ARCH_GEMINI) += \ gemini-dlink-dir-685.dtb \ gemini-dlink-dns-313.dtb \ gemini-nas4220b.dtb \ + gemini-ns2502.dtb \ gemini-rut1xx.dtb \ gemini-sl93512r.dtb \ gemini-sq201.dtb \ diff --git a/arch/arm/boot/dts/gemini-ns2502.dts b/arch/arm/boot/dts/gemini-ns2502.dts new file mode 100644 index 000000000000..a23745dc20f4 --- /dev/null +++ b/arch/arm/boot/dts/gemini-ns2502.dts @@ -0,0 +1,141 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2021 Corentin Labbe + * Device Tree file for Edimax NS 2502 + */ + +/dts-v1/; + +#include "gemini.dtsi" + +/ { + model = "Edimax NS-2502"; + compatible = "edimax,ns-2502", "cortina,gemini"; + #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"; + stdout-path = &uart0; + }; + + 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>; + + phy0: ethernet-phy@1 { + reg = <1>; + device_type = "ethernet-phy"; + /* We lack the knowledge of necessary GPIO to achieve + * Gigabit + */ + max-speed = <100>; + }; + }; +}; + +ðernet { + status = "okay"; + ethernet-port@0 { + phy-mode = "rgmii"; + phy-handle = <&phy0>; + }; +}; + +&flash { + status = "okay"; + /* 8MB of flash */ + reg = <0x30000000 0x00800000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "RedBoot"; + reg = <0x00000000 0x00020000>; + read-only; + }; + partition@20000 { + label = "kernel"; + reg = <0x00020000 0x00700000>; + }; + partition@720000 { + label = "VCTL"; + reg = <0x00720000 0x00020000>; + read-only; + }; + partition@740000 { + label = "CurConf"; + reg = <0x00740000 0x000a0000>; + read-only; + }; + partition@7e0000 { + label = "FIS"; + reg = <0x007e0000 0x00010000>; + read-only; + }; + }; +}; + +&gpio0 { + pinctrl-names = "default"; + pinctrl-0 = <&gpio0_default_pins>; +}; + +&ide0 { + status = "okay"; +}; + +&ide1 { + status = "okay"; +}; + +&sata { + cortina,gemini-ata-muxmode = <3>; + 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", "gpio0hgrp"; + }; + }; + pinctrl-gmii { + mux { + function = "gmii"; + groups = "gmii_gmac0_grp"; + }; + }; + }; +}; + +&usb0 { + status = "okay"; +}; + +&usb1 { + status = "okay"; +}; -- 2.26.3