Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2101718pxb; Mon, 11 Jan 2021 00:24:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwc3Tq8eUuaGe36iT4xx9Frg8GOVI/y5QT4LI13ATQsJQrFNXMHPIRaDcTPciQoUHTLUz0d X-Received: by 2002:aa7:db56:: with SMTP id n22mr13666292edt.4.1610353452281; Mon, 11 Jan 2021 00:24:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610353452; cv=none; d=google.com; s=arc-20160816; b=K14BQpJzGmfUkd5ONWHODmMcvG6vpMkqsW0cbrExkt4wakKbqun+JZZ+1x7poQ1BO0 gQt8Pns/4rp7JYVJDCGBfg+1da4O6s396tG7B6/dOoMKNfwoTw6qSlyn4H5fI+yQEOQw rtEp7fyH4ulgnC2Yzkv5IlBXkqpVTHy9F/TpOWe8cG6B/wMi1iuvbQxFTJSlDPOw8fjm ScwFTIk9zbvU91nl5pBrnlQ7LZ0QAHjwhMJA1ImfLBMh3uO62X+vULEAjuNixu07ho1w cqqs4HoRgg9wX0iSTRo30SJF5d13EiTJZ1WMiZJBDN7uMcekvWbGhPxNOHmLLNHUDQnL trMw== 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=T9P/1yS9veDOaVa754RMRHNp46B9NwbFkzK8FAXtVng=; b=0kJAYKg9YCCiT1KfwBg+5nlquLafJ6ywhe63AXFTgb+wRqVuE6q9pej19kpk5kegO8 p3e85Ae5AwxRdbOaCg4OxPUmnHL9DS96gUVmvhid7c03MFza7j4lbEvHgPPZhKzSQuln k6eqHHaqEHgdzWFQ71MzT2otPyUrOqK9v1K2WNyeqsHXhp+LPYTktSyH336nHCTyvmMT OihVi9GRLAG8bSmi3nYWHgwbw69xKXvelhoVCx1sD9zifv4k+nEX6+BS8O2Fd6kbzSfv +PTYbDriAikDowzXf5dex5uUCEhAyHHJIEqpW7G/qLeSkHp66+t1ITvGtbCmZ3BmVSgJ Gl+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b="nC/0TmIU"; 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 d19si6769572eds.173.2021.01.11.00.23.48; Mon, 11 Jan 2021 00:24:12 -0800 (PST) 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=@walle.cc header.s=mail2016061301 header.b="nC/0TmIU"; 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 S1727880AbhAKIWt (ORCPT + 99 others); Mon, 11 Jan 2021 03:22:49 -0500 Received: from ssl.serverraum.org ([176.9.125.105]:56465 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727786AbhAKIWt (ORCPT ); Mon, 11 Jan 2021 03:22:49 -0500 Received: from mwalle01.fritz.box (unknown [IPv6:2a02:810c:c200:2e91:fa59:71ff:fe9b:b851]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 1C68422FEB; Mon, 11 Jan 2021 09:22:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1610353324; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=T9P/1yS9veDOaVa754RMRHNp46B9NwbFkzK8FAXtVng=; b=nC/0TmIUjGeLA9eB1e17dv2k2zdBczdkYgBbQb5UzebgIm+cDlpAnSIfZwz6My4nl9+3ZL kur+grguG5E8OF1wfnQbtjy3Z/l5gNISRAs6gbVI4ZCAaJbwcLoqvVKkhWRy7quCIHS917 T7OmRxGOey9IpMQcqtgFJ1x13M/GpHU= From: Michael Walle To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Rob Herring , Shawn Guo , Li Yang , Michael Walle Subject: [PATCH v2 2/2] arm64: dts: freescale: sl28: add variant 1 Date: Mon, 11 Jan 2021 09:21:34 +0100 Message-Id: <20210111082134.24704-2-michael@walle.cc> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210111082134.24704-1-michael@walle.cc> References: <20210111082134.24704-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is a new variant 1 of this board available. It features up to four SerDes lanes for customer use. Add a new device tree which features just the basic peripherals. A customer will then have to modify or append to this device tree. Signed-off-by: Michael Walle --- changes since v1: - removed unnecessary newlines - added comment about /delete-*/ statements arch/arm64/boot/dts/freescale/Makefile | 1 + .../fsl-ls1028a-kontron-sl28-var1.dts | 62 +++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var1.dts diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 901d80086b47..0dd038bc0095 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -6,6 +6,7 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1012a-qds.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1012a-rdb.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-kontron-kbox-a-230-ls.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-kontron-sl28.dtb +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-kontron-sl28-var1.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-kontron-sl28-var2.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-kontron-sl28-var3-ads2.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-kontron-sl28-var4.dtb diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var1.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var1.dts new file mode 100644 index 000000000000..6c309b97587d --- /dev/null +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var1.dts @@ -0,0 +1,62 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Device Tree file for the Kontron SMARC-sAL28 board. + * + * This is for the network variant 1 which has one ethernet port. It is + * different than the base variant, which also has one port, but here the + * port is connected via RGMII. This port is not TSN aware. + * None of the four SerDes lanes are used by the module, instead they are + * all led out to the carrier for customer use. + * + * Copyright (C) 2020 Michael Walle + * + */ + +/dts-v1/; +#include "fsl-ls1028a-kontron-sl28.dts" +#include + +/ { + model = "Kontron SMARC-sAL28 (4 Lanes)"; + compatible = "kontron,sl28-var1", "kontron,sl28", "fsl,ls1028a"; +}; + +&enetc_port0 { + status = "disabled"; + /* + * Delete both the phy-handle to the old phy0 label as well as + * the mdio node with the old phy node with the old phy0 label. + */ + /delete-property/ phy-handle; + /delete-node/ mdio; +}; + +&enetc_port1 { + phy-handle = <&phy0>; + phy-connection-type = "rgmii-id"; + status = "okay"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + phy0: ethernet-phy@4 { + reg = <0x4>; + eee-broken-1000t; + eee-broken-100tx; + qca,clk-out-frequency = <125000000>; + qca,clk-out-strength = ; + vddio-supply = <&vddh>; + + vddio: vddio-regulator { + regulator-name = "VDDIO"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + vddh: vddh-regulator { + regulator-name = "VDDH"; + }; + }; + }; +}; -- 2.20.1