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 D48B0C433F5 for ; Thu, 20 Jan 2022 00:29:28 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0B2D8832DA; Thu, 20 Jan 2022 01:29:27 +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="fntmA1Ez"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3A066832CD; Thu, 20 Jan 2022 01:29:25 +0100 (CET) Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) (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 3F947832DA for ; Thu, 20 Jan 2022 01:29:21 +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-qv1-xf36.google.com with SMTP id u26so5031275qva.7 for ; Wed, 19 Jan 2022 16:29:21 -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=2EQn0RLAyjKhc5Ifa4u8BZr5fK6+DnMyrUndsnYi29M=; b=fntmA1EzI1yPeBlbZk4SJ/x3NuFNzsTSVTm+IcV1Yg4aL0zDhO5O1dxDoRqU1ipMy9 7qn4cl4KsEBJ0V4XwLotss5rYNMzN5OjmBIag+TCDrCCH62FL+b/EtrYwsejIZb9SE6O lMKuCzGMsUJA6puc0CY3wUVF1bPN0VgBH1tq+HjIFJq54YB+AUbT3fEYuFYahVKXZSz6 vOJVo1M25NAzbBRa50SX0aN1EgvCc7lRdY6+kk7BZOyLIkXZoZkyV3b7Nc3SuLVo/6nr LJVJ1faAzflTL9368/h03bfJuJ4ksQ0Mq42SZFCKw8Ev7LoSPJ4ZGFhYQMpa9inUQxJ/ 3Rhw== 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=2EQn0RLAyjKhc5Ifa4u8BZr5fK6+DnMyrUndsnYi29M=; b=UN7XH2IuR43UYkg2j7GLRZ1Gcc+7rqROfg4NTBoL5wwLKdQS9d/IoglEKbjPoHhqKO X5inguEeWIrUFlg6SoXvlJ1LOPbnvBtBNp4MsEJ2QuP3MVAgLWaUFF4karsDnRKgaGRu mR2GpnEzHYM9GE6n3DV9kAUc3v+FGLOJecknrkY+n/JfYF9zj/ml4FclnLGxkAMNpN4z Q1TpdvjilhBlUagc0rNlMw9IbGGNo31sjj2UqIMF8UZqBxHlgKLY92WUuWkonkA5vSLa PwjrBs6CqDv1T5YstNXaC7EGTjCUwzwIndc8cqjYXNndRW2hNfGztYuFdV+wRg3LOs8P UbvA== X-Gm-Message-State: AOAM533AKQTj+/mJ6PRJ+PQ1xI7OsrvLSBityp1T7rALRw/ADuwjwJpd 04h4al1muZzyJaLVqKqbMloxirNthoQ= X-Google-Smtp-Source: ABdhPJxQ83T2Fj20njtmFDyrbmBHgHb9v62koF2mrH249FIJTJnKUExZC3ZgC8DG9X/srS1oYOYnAA== X-Received: by 2002:ad4:5aa5:: with SMTP id u5mr30004211qvg.88.1642638560057; Wed, 19 Jan 2022 16:29:20 -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 v12sm790904qkp.21.2022.01.19.16.29.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jan 2022 16:29:19 -0800 (PST) From: Tony Dinh To: U-Boot Mailing List , Stefan Roese Cc: =?UTF-8?q?Pali=20Roh=E1r?= , =?UTF-8?q?Marek=20Beh=FAn?= , Tom Rini , David Purdy , Tony Dinh , Andre Przywara , Christian Hewitt , Fabio Estevam , Jagan Teki , Kever Yang , Lokesh Vutla , Peter Robinson , Simon Glass , Tim Harvey Subject: [RESEND PATCH v3 1/4] arm: kirkwood: Pogoplug-V4 : Add DTS files Date: Wed, 19 Jan 2022 16:28:32 -0800 Message-Id: <20220120002835.21877-2-mibodhi@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220120002835.21877-1-mibodhi@gmail.com> References: <20220120002835.21877-1-mibodhi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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 Reviewed-by: Stefan Roese Signed-off-by: Tony Dinh --- (no changes since v2) 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 1b65e65eb8..ce33a4b52b 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -71,6 +71,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.30.2