From patchwork Mon Mar 11 05:32:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Cappelli X-Patchwork-Id: 145 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C4D8640B0E for ; Mon, 11 Mar 2019 06:32:19 +0100 (CET) Received: by mail-lj1-f197.google.com with SMTP id d15sf930317ljg.3 for ; Sun, 10 Mar 2019 22:32:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1552282339; cv=pass; d=google.com; s=arc-20160816; b=B5b4918E3L25AMAfA7uJ7UViksFd6lPKA/+HH/OCfwRheDNHm39gEOnFQxlnHEMRXp PVwK7WE1D9RqckI9QESDkfZ2KmCtYrjSpErscBGgce4tbCik0HVesVf0F5ZqmwEpDD2X +OsBklsOwVaCcGI4OKFHx8NCXSfNHS798NznTCX0j5P3L1WXDi/+tFondepLuNcDZ7HA dLhpjOz7uwISNsUop1fdBNSDIW1H6YNh3YSoO7KRmMHwppqaZyt3NerEnIlDNHYgGip5 CZXIjeTqPg/Qu8W+mwqc2inwVcJL4H7JfG7EKixRaJRZ4iVT1onR+rJVIiEa5BbPeHYG afBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=JkP6msoXM+NZu7gGpeYqjnVA7lzhVQFv3nAXMzh5Ah4=; b=CQf7q5V7weT9xbnPs3fe8oUv+mmRuh4jEyS/5MaW+H+54NsmMKHax40qfB2H64Dqsa pgX6utlswQRamPuLEGCJIt4gEyUZ9pBsZUHhuEDJj9lw+sUm5AsjEsqONia7z6BwL8SK vH+h6uQbeLbfoDHJ/vuDz5JWjoIS8qo5T7MyVYr9Y/adUpFxeVbiD/Mx6ISZDovmaiSe jTbROWO5LfNnopH3w8tq+YU29j1lIS7CwP8EKWzUKRyfZsyAYT/VX+0Q9bXuPC2v5JRP 1R8G+FFWn8/NXiikYoa+drWj7vDxJ5qSZCfiEwUJubVN6CldU975pcZXQYYykJlgtuvZ rw6A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=iNwVm08Q; spf=pass (google.com: domain of ac@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=ac@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=JkP6msoXM+NZu7gGpeYqjnVA7lzhVQFv3nAXMzh5Ah4=; b=ieKIuk/MRlbjTq4OO/tm1TE73aqyQ9045p9iEH3hBy1U0nvsTyTy3A13HvXVtH9XAW wHMw9H8pv2b9ZFDPbC+khEom9SL7XIGNCEYgGNw7MSedo/tkz3Bi5U1eHUwvba52TlMp ymdys9vF3IEoD+lL+gb8eIWgjpUviEI7957Rw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=JkP6msoXM+NZu7gGpeYqjnVA7lzhVQFv3nAXMzh5Ah4=; b=XFAJ36pQleruruu8K84mRahrk0BRbJFlgX+KlJT1rkzqg4GT1DluJrS0GzxuAHvgzH dKTvnf1gPlffV2DR9unci09eQMtJx6qnVSmiYYlkQ4wDAzkbTCJtUsR23uFNHZ2N1i50 1KxQ4su2TgrnHHTHw+BkwhhuTszoGeyaQ3kuoHVqgyUmJLwIfHluJpZJFguWcRJY9Yam 3z4CeVf3MpN+xh5p8kTNbkg6wX5xbk5zvjkj5B+IWc0BACbeJDymz3wdyI7XYLiVKKer TMKG/7Xe8u+KZbCw8NqS4RKjphI2tf0AMx3deZLEWtWvm3G+X/9xBUojGnGlNUThqwhX lwUQ== X-Gm-Message-State: APjAAAVkfpN4O5WxslKC4gUHXPD5BOjvL2sTOwYc7sbosdN2JZYY6l8B sHoJAepCngDVEpNkPQzh3vO0FgYi X-Google-Smtp-Source: APXvYqxwiAffMkHrb1AbtgH59Ae6zFteJwSTS7HHkP1T+k6r3rAfUv+wCtyjr7BLI8iqy9ZeFHKd7A== X-Received: by 2002:a2e:447:: with SMTP id 68mr1612366lje.0.1552282339373; Sun, 10 Mar 2019 22:32:19 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:ac2:508f:: with SMTP id f15ls1357220lfm.7.gmail; Sun, 10 Mar 2019 22:32:18 -0700 (PDT) X-Received: by 2002:a19:960c:: with SMTP id y12mr721885lfd.159.1552282338682; Sun, 10 Mar 2019 22:32:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552282338; cv=none; d=google.com; s=arc-20160816; b=G500Kb3A/LxDYHIEvmcp3pcVHsLL8XxkVnMYAtAHVj+S2AbuXRR5cWJE+oLj1Kom6X vZbWZzsh7o24DnnemQy96hI38oZLePcaCZGPW0P1EL1n66bXShrAM9PphLjfunLh4bSW swfaoZqmGntOftw6NksQ9V1MgbpxVSLB/RWxxkoSeFhyrAez+bcEzNNvtB3FiWyyU/aK uvrHqJlHB3RDUrIMuJaq+t0WCy0YxQ+fAtar7NoXXSnuxFAX8OSlvuqBJg5KioUrd/2o EdQN11FxNPjfEz1Zz3u6Qb0jj/1lsoiu+n0ST4DdHYePdO5bc4ENcgWEU2l1FTRITZxX DNHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=zYqfBJatSq1hTShVMQndndH3tDS2EUYlS2nAlzKiu4Q=; b=Nmfg2QbCuYBie41c9+la3zHPAWIxtovRsRygHVyyMh9f4SOOp2o/Hp6/diqIuPZ1YK /XMoTh3RfWuaT7bFnv0vsBUDL1xILD4TSWjeR5ZpjYraWK70VPjfHgu2MJ5n/Km7/lpW QOaCndUVMsH10GnCz+2OpKjiHtws8q182bpMFib5X6azr3c61jHuvxfXihjK05JVxq65 sIO9/yA0QljWAzZh6hykaQIrGSvSvl9Z3LaUyBOgLJlnM/XaOMeDQTR+mVxUvS9GZjTq Hqk9SEQ5i1GmXB5E0gmvteJd/Y3MnKpK/sVnpdXy4bY+PLd6R84sMIhUeR0lStZjKgX5 iZpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=iNwVm08Q; spf=pass (google.com: domain of ac@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=ac@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id f13sor833128lfh.22.2019.03.10.22.32.18 for (Google Transport Security); Sun, 10 Mar 2019 22:32:18 -0700 (PDT) Received-SPF: pass (google.com: domain of ac@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a19:ced0:: with SMTP id e199mr13913860lfg.40.1552282337970; Sun, 10 Mar 2019 22:32:17 -0700 (PDT) MIME-Version: 1.0 References: <20190308061501.5861-1-jagan@amarulasolutions.com> In-Reply-To: <20190308061501.5861-1-jagan@amarulasolutions.com> From: Andrea Cappelli Date: Mon, 11 Mar 2019 06:32:06 +0100 Message-ID: Subject: Fwd: [PATCH] sun50i: a64: Add Oceanic 5205 5inMFD initial support To: Amarula Linux Content-Type: multipart/alternative; boundary="00000000000058aa4f0583cae57e" X-Original-Sender: ac@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=iNwVm08Q; spf=pass (google.com: domain of ac@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=ac@amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , ---------- Forwarded message --------- From: Jagan Teki Date: Fri, 8 Mar 2019 at 07:15 Subject: [PATCH] sun50i: a64: Add Oceanic 5205 5inMFD initial support To: Maxime Ripard Cc: , Michael Trimarchi , Ryan Pannell , , Jagan Teki Oceanic 5205 5inMFD is a 5 inch Multi function display baseboard designed to mount SoPine SOM. Key features: - Allwinner A64 Cortex-A53 - Mali-400MP2 GPU - AXP803 PMIC - 2GB DDR3 RAM - SD Slot - SPI-NOR flash - EMAC, RTL8211E - MCP2515 CAN - 4-lane, MIPI-DSI panel - Goodix 911 CTP - USB Host - 12V DC power supply Signed-off-by: Jagan Teki --- arch/arm/dts/Makefile | 1 + .../dts/sun50i-a64-oceanic-5205-5inmfd.dts | 68 +++++++++++++++++++ board/sunxi/MAINTAINERS | 5 ++ configs/oceanic_5205_5inmfd_defconfig | 20 ++++++ 4 files changed, 94 insertions(+) create mode 100644 arch/arm/dts/sun50i-a64-oceanic-5205-5inmfd.dts create mode 100644 configs/oceanic_5205_5inmfd_defconfig diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 2a040b20a5..1fbaefaccb 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -424,6 +424,7 @@ dtb-$(CONFIG_MACH_SUN50I) += \ sun50i-a64-amarula-relic.dtb \ sun50i-a64-bananapi-m64.dtb \ sun50i-a64-nanopi-a64.dtb \ + sun50i-a64-oceanic-5205-5inmfd.dtb \ sun50i-a64-olinuxino.dtb \ sun50i-a64-orangepi-win.dtb \ sun50i-a64-pine64-plus.dtb \ diff --git a/arch/arm/dts/sun50i-a64-oceanic-5205-5inmfd.dts b/arch/arm/dts/sun50i-a64-oceanic-5205-5inmfd.dts new file mode 100644 index 0000000000..6a2154525d --- /dev/null +++ b/arch/arm/dts/sun50i-a64-oceanic-5205-5inmfd.dts @@ -0,0 +1,68 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2019 Oceanic Systems (UK) Ltd. + * Copyright (C) 2019 Amarula Solutions B.V. + * Author: Jagan Teki + */ + +/dts-v1/; + +#include "sun50i-a64-sopine.dtsi" + +/ { + model = "Oceanic 5205 5inMFD"; + compatible = "oceanic,5205-5inmfd", "allwinner,sun50i-a64"; + + aliases { + ethernet0 = &emac; + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&ehci0 { + status = "okay"; +}; + +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>; + phy-mode = "rgmii"; + phy-handle = <&ext_rgmii_phy>; + phy-supply = <®_dc1sw>; + allwinner,tx-delay-ps = <600>; + status = "okay"; +}; + +&mdio { + ext_rgmii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; +}; + +&ohci0 { + status = "okay"; +}; + +®_dc1sw { + regulator-name = "vcc-phy"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pb_pins>; + status = "okay"; +}; + +&usb_otg { + dr_mode = "host"; + status = "okay"; +}; + +&usbphy { + status = "okay"; +}; diff --git a/board/sunxi/MAINTAINERS b/board/sunxi/MAINTAINERS index 8e2f90fc68..7f96d2bb1c 100644 --- a/board/sunxi/MAINTAINERS +++ b/board/sunxi/MAINTAINERS @@ -341,6 +341,11 @@ M: FUKAUMI Naoki S: Maintained F: configs/Nintendo_NES_Classic_Edition_defconfig +OCEANIC 5205 5INMFD BOARD +M: Jagan Teki +S: Maintained +F: configs/oceanic_5205_5inmfd_defconfig + OLIMEX A20-SOM204 BOARD M: Stefan Mavrodiev S: Maintained diff --git a/configs/oceanic_5205_5inmfd_defconfig b/configs/oceanic_5205_5inmfd_defconfig new file mode 100644 index 0000000000..34fe6f5273 --- /dev/null +++ b/configs/oceanic_5205_5inmfd_defconfig @@ -0,0 +1,20 @@ +CONFIG_ARM=y +CONFIG_ARCH_SUNXI=y +CONFIG_SPL=y +CONFIG_MACH_SUN50I=y +CONFIG_RESERVE_ALLWINNER_BOOT0_HEADER=y +CONFIG_SUNXI_DRAM_LPDDR3_STOCK=y +CONFIG_DRAM_CLK=552 +CONFIG_DRAM_ZQ=3881949 +CONFIG_MMC0_CD_PIN="" +CONFIG_SPL_SPI_SUNXI=y +CONFIG_NR_DRAM_BANKS=1 +# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set +# CONFIG_CMD_FLASH is not set +# CONFIG_SPL_DOS_PARTITION is not set +# CONFIG_SPL_EFI_PARTITION is not set +CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-oceanic-5205-5inmfd" +CONFIG_SUN8I_EMAC=y +CONFIG_USB_EHCI_HCD=y +CONFIG_USB_OHCI_HCD=y +CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y