From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A39A3C433F5 for ; Thu, 23 Dec 2021 07:28:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 90B10831D7; Thu, 23 Dec 2021 08:28:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="elaVCpGw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 11E60833B8; Thu, 23 Dec 2021 08:28:19 +0100 (CET) Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B1743831D7 for ; Thu, 23 Dec 2021 08:28:15 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mibodhi@gmail.com Received: by mail-oi1-x22d.google.com with SMTP id t204so1655023oie.7 for ; Wed, 22 Dec 2021 23:28:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PBz1d7AvFofGji9FSNcXUGP/OLFwOVPUYJioPAP0HVQ=; b=elaVCpGwkN6OKJ3GXnZyGxYLNtwxs5MCG3xQf1QoBsM+hltI/gq4oD36siCl68Nyyb 9+oRn5wZf9gG6guIYrWL1QbUzUhMbNZWWkmq1i8u3wPEq9EmSBngUf6XJuv968WyBrjf terhPDXPNEGojqUtjgfpOoWlPspEaw1sTB/xLLga5Yuptx3l5X0YIbjKOqDNRNlpzZv2 fXuabZ3MQCxseMZHmYxwKydxW+dSR4B25PeVfCh7VhQSYx79SmPjLB0y0en8+Cx+8b7g E+YWM8njP4XWG0f5iExp/Z1GyqNMrg2GT8LqzszlBMqMCBhul9h7ySATE58gMJFKCbj6 XgNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PBz1d7AvFofGji9FSNcXUGP/OLFwOVPUYJioPAP0HVQ=; b=yudTsuSxJMyBkemVkobpp3FjPFeyWQkARnUExuBnDP8twKibYWThJKtadKWfvMsoba +sKcN/qI63IWBG7mnWRKHgsauwQZhmd31XlL4JWFF98tHnynuRj26Ft+d1ZkussRkOuO HUEYFFxLwpPB+yrIlnmvFgdUK+tKdf8K8yvrYc2PuWQ09qztmKtUAuPT+rN6Pj3CuCcy Um+eHYhmV12YMKO8RzrXfjda1qQPdtIW03I1xXE5JcFzud/zlPOsF/+cVcVZdzMXVXLm pRJsJClVuWqnA0zhmAhokdQyZZ+syFHYmYv6/2xL/9Vj7Bb1a1devI4xfAJcT/3DS2EX rOPg== X-Gm-Message-State: AOAM5332aFFrK0pE4m9+Rv+eKiaXTvZK306txOUWHoXfwdNNYJ4AJEpB kon4TdDUr5ftckncdC/z6qbyJwEi7pQXeUsq X-Google-Smtp-Source: ABdhPJxr8XNu5uokXFuKWl02jTMaijubo6+iORyXCqlHrMEg0EXHREYhQL09T7TUEaJZuRVT4uqy0g== X-Received: by 2002:aca:eac4:: with SMTP id i187mr950303oih.40.1640244494044; Wed, 22 Dec 2021 23:28:14 -0800 (PST) Received: from localhost.localdomain (76-229-100-169.lightspeed.irvnca.sbcglobal.net. [76.229.100.169]) by smtp.gmail.com with ESMTPSA id g17sm842486oiy.14.2021.12.22.23.28.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Dec 2021 23:28:13 -0800 (PST) From: Tony Dinh To: U-Boot Mailing List , Stefan Roese Cc: =?UTF-8?q?Marek=20Beh=FAn?= , =?UTF-8?q?Pali=20Roh=E1r?= , David Purdy , Tom Rini , Tony Dinh , Andre Przywara , Christian Hewitt , Fabio Estevam , Jagan Teki , Lokesh Vutla , Neil Armstrong , Peter Robinson , Tim Harvey Subject: [PATCH v2 1/8] arm: kirkwood: Pogoplug-V4 : Add DTS files Date: Wed, 22 Dec 2021 23:26:41 -0800 Message-Id: <20211223072649.13237-2-mibodhi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211223072649.13237-1-mibodhi@gmail.com> References: <20211223072649.13237-1-mibodhi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Add DTS files for Pogoplug V4 board Signed-off-by: Tony Dinh --- Changes in v2: - Use mainline Linux DTS version arch/arm/dts/Makefile | 1 + arch/arm/dts/kirkwood-pogoplug-series-4.dts | 180 ++++++++++++++++++++ 2 files changed, 181 insertions(+) create mode 100644 arch/arm/dts/kirkwood-pogoplug-series-4.dts diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 7f622fedbd..c8be5b8ae5 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -68,6 +68,7 @@ dtb-$(CONFIG_ARCH_KIRKWOOD) += \ kirkwood-openrd-client.dtb \ kirkwood-openrd-ultimate.dtb \ kirkwood-pogo_e02.dtb \ + kirkwood-pogoplug-series-4.dtb \ kirkwood-sheevaplug.dtb dtb-$(CONFIG_MACH_S900) += \ diff --git a/arch/arm/dts/kirkwood-pogoplug-series-4.dts b/arch/arm/dts/kirkwood-pogoplug-series-4.dts new file mode 100644 index 0000000000..5aa4669ae2 --- /dev/null +++ b/arch/arm/dts/kirkwood-pogoplug-series-4.dts @@ -0,0 +1,180 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * kirkwood-pogoplug-series-4.dts - Device tree file for PogoPlug Series 4 + * inspired by the board files made by Kevin Mihelich for ArchLinux, + * and their DTS file. + * + * Copyright (C) 2015 Linus Walleij + */ + +/dts-v1/; + +#include "kirkwood.dtsi" +#include "kirkwood-6192.dtsi" +#include + +/ { + model = "Cloud Engines PogoPlug Series 4"; + compatible = "cloudengines,pogoplugv4", "marvell,kirkwood-88f6192", + "marvell,kirkwood"; + + memory { + device_type = "memory"; + reg = <0x00000000 0x08000000>; + }; + + chosen { + stdout-path = "uart0:115200n8"; + }; + + gpio_keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + pinctrl-0 = <&pmx_button_eject>; + pinctrl-names = "default"; + + eject { + debounce-interval = <50>; + wakeup-source; + linux,code = ; + label = "Eject Button"; + gpios = <&gpio0 29 GPIO_ACTIVE_LOW>; + }; + }; + + gpio-leds { + compatible = "gpio-leds"; + pinctrl-0 = <&pmx_led_green &pmx_led_red>; + pinctrl-names = "default"; + + health { + label = "pogoplugv4:green:health"; + gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; + default-state = "on"; + }; + fault { + label = "pogoplugv4:red:fault"; + gpios = <&gpio0 24 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&pinctrl { + pmx_sata0: pmx-sata0 { + marvell,pins = "mpp21"; + marvell,function = "sata0"; + }; + + pmx_sata1: pmx-sata1 { + marvell,pins = "mpp20"; + marvell,function = "sata1"; + }; + + pmx_sdio_cd: pmx-sdio-cd { + marvell,pins = "mpp27"; + marvell,function = "gpio"; + }; + + pmx_sdio_wp: pmx-sdio-wp { + marvell,pins = "mpp28"; + marvell,function = "gpio"; + }; + + pmx_button_eject: pmx-button-eject { + marvell,pins = "mpp29"; + marvell,function = "gpio"; + }; + + pmx_led_green: pmx-led-green { + marvell,pins = "mpp22"; + marvell,function = "gpio"; + }; + + pmx_led_red: pmx-led-red { + marvell,pins = "mpp24"; + marvell,function = "gpio"; + }; +}; + +&uart0 { + status = "okay"; +}; + +/* + * This PCIE controller has a USB 3.0 XHCI controller at 1,0 + */ +&pciec { + status = "okay"; +}; + +&pcie0 { + status = "okay"; +}; + +&sata { + status = "okay"; + pinctrl-0 = <&pmx_sata0 &pmx_sata1>; + pinctrl-names = "default"; + nr-ports = <1>; +}; + +&sdio { + status = "okay"; + pinctrl-0 = <&pmx_sdio &pmx_sdio_cd &pmx_sdio_wp>; + pinctrl-names = "default"; + cd-gpios = <&gpio0 27 GPIO_ACTIVE_LOW>; + wp-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>; +}; + +&nand { + /* 128 MiB of NAND flash */ + chip-delay = <40>; + status = "okay"; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x00000000 0x200000>; + read-only; + }; + + partition@200000 { + label = "uImage"; + reg = <0x00200000 0x300000>; + }; + + partition@500000 { + label = "uImage2"; + reg = <0x00500000 0x300000>; + }; + + partition@800000 { + label = "failsafe"; + reg = <0x00800000 0x800000>; + }; + + partition@1000000 { + label = "root"; + reg = <0x01000000 0x7000000>; + }; + }; +}; + +&mdio { + status = "okay"; + + ethphy0: ethernet-phy@0 { + reg = <0>; + }; +}; + +ð0 { + status = "okay"; + ethernet0-port@0 { + phy-handle = <ðphy0>; + }; +}; -- 2.20.1