From patchwork Tue Apr 28 10:00:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1129 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8E5E33F077 for ; Tue, 28 Apr 2020 12:00:55 +0200 (CEST) Received: by mail-pl1-f200.google.com with SMTP id x3sf16921839plm.9 for ; Tue, 28 Apr 2020 03:00:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1588068054; cv=pass; d=google.com; s=arc-20160816; b=TqRIS3rFeg5geCVCzfQUmikBfLa2olzULazeaGkF9+L3lW2QVELytCa9r3IWCN1Ta/ rZ9JNokqff846H9yxDWJvtFY8lOckgt9gPCmlkwOTDaYGE4/+E4ZjjdqMjK2hg9DeXUf d4Mals7O+hZjpD03UMuE4uVGlLuHjGT0eHpid2rJSnfcp4YvUdscWpuXPalM+6EHCk2M CI/EMSgiVdFwntmV74tQg4jp2ZFhbkKXEKlJpd0AucUYvUNCaUxCq/UruROBIFO32qkw 9fnAZpCam8Bsw35E1/MZby3Ac8VtciFVnI+/ILffWyIRGP2BhbVq9mkHbmcwvKRwuv61 IzCQ== 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:references:in-reply-to:message-id:date :subject:cc:to:from:mime-version:dkim-signature; bh=YA4PGdhaGvgeJKO8r7oixqMW7JywhikL2a0xnLhtOSc=; b=R0tnubg/hrOoIs47CarDPfIv/wgN5trLi/TslZOsVYwRx93LVK+2FCMjjZBIUe8EQg bmRGsTzon9pDHNG9PlgEftDp7N1qQ927mgerJRM1YTfW5V+CZISAOf5wzw/Cmdja4hdW Hm5pJ7Ln+k63wXJc2fs0+tE25yB6IUle1kZGFwmcu4B9wJilC1361j96/mfipbULHlrT rWoC0/jdHeDx0Nood5YMVyvY1FakyFfKE1QbxZR1QnibbXOkjCDEhG5+Q8dNPqbSKQ6t tHnKxcoYUv++8yxRg9r1nJNHDak66yCNJN544YC6/XbifcExCWnl4Tno8JVdQ5Pdredo snYw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=oeLCXjtI; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=YA4PGdhaGvgeJKO8r7oixqMW7JywhikL2a0xnLhtOSc=; b=BDKPIXQU7Fu6hnMRxhWenjeK3LmhNtZdtBeACXBSdjZyTrxuW1BGAwAOkJmigr2Eje kuKpbK/rMiUT1tGEyqvJWLzT3x+nfIr/HscxvhMXekHM5AGO7zOhlyBjaKrcAYmmiTCJ jo289QKbELnAItLV4i8qwsKjAv2EV0cq7Fqb0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :in-reply-to:references: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=YA4PGdhaGvgeJKO8r7oixqMW7JywhikL2a0xnLhtOSc=; b=A0nuroM9jQyp+PDIKhofxNDXiw8JyXYB6TJG5aIabqhlbs5lsN+qDOnNLoeuiUaIhu ut3KfviWXPte8ALN6y9MnhErE5bzoGEx7l+XsjHzGCxWZlfjBI2fsDauICaDv86qhITc hD4Zqp774kEVOEDkYrxzGuilAR3zsEX4kyLpd9DPOM3arF44BHJPSDZC1Qu8GIho8pfa TISkvqGoxWCKhAYULWBP6N6JNtVRDsxZCcLQGumcF7Y/JGhFioMD7RWdraZYY1M1zlMy U6NIrC0ZyNjEIa1nbEuU0lcz836hl/NGbFGRu2HZ+WG0I1FSfSpnTVX7OdTQXENQdKPK RAdw== X-Gm-Message-State: AGi0PuYbglfrpLXdwnBjE+6u/HY736bTLoKHhEeFpD3/Hn0DCbkPFonC Js3bFHFvmWCu6e7/MCs8CCyeecky X-Google-Smtp-Source: APiQypL//W9xienI4zkmve27Ws/kSSOmyoRFVYyPHH2jnzX/1W7oYmCKbhvHRqFboUKdrgeW7N0dQg== X-Received: by 2002:a17:90a:23a3:: with SMTP id g32mr4218796pje.78.1588068054352; Tue, 28 Apr 2020 03:00:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:224f:: with SMTP id c73ls4106415pje.3.canary-gmail; Tue, 28 Apr 2020 03:00:54 -0700 (PDT) X-Received: by 2002:a17:90a:1f4b:: with SMTP id y11mr4159510pjy.136.1588068053908; Tue, 28 Apr 2020 03:00:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588068053; cv=none; d=google.com; s=arc-20160816; b=pVEiwzUIZDCld7tR/JVxaSC+zcidBsbK6RduyNgyqVssdHU1DFebOJzquP62vT7ak6 zdbiJVGhWW7jxnWcP2ajIXfx8W00B/Pe4TQMAWa4/e/b+WeY0+kzH+WBE+nKH9c+Fa3M DtCDcfHqZEb7VfM0zjFY0QVMPq4iuIfWGm4tZpr9iWfsEQj9XdJrjLrd70JGzIgT7GA4 /RDV/fvTegF9G8ZIk/IJwJPjynenxnIu90tcTNd3inS30+bu/AQQymUzwk88QR7Ff0O6 S6op8lf6641/wr0I/6lqlNRs9YzpiXpmDuBxjSBPqmv8LXOnvzeNKvqXnioVaykUJuFe p+PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LmEATzXo84nsgbWcnoVrVjm3PW9lqScSfgwFAmOpw4g=; b=stStPwnjGVIAGCyEFuhzd+v/gQQLDdJqyacE5jbD9k90mUb3O6XuGRHcItmmiREBb3 RE1AkSxfpPVpDfN+2h8z/cJggBIx802u86nryKuI8qTbO7pVrisB+eoWRHlAJFysppNR 2EnILGNq7dimaVrbPLve3K0u615RuVNTaVjb7DGq6aDXDjbx+DfK3LSqcgy8ZLKuQium 6+yX4joNRMYsXhSZ6m/dfucdA7C9KqL/VyIWPF1zHd6uDGGyIC2xBKgqgNPn06JaOGVO nsarMkWIwqgTXRQqE0qf1UfuEGdfak6ea82esdIuyo8svEv/cwmypWcZR6RizAfz+3il s14w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=oeLCXjtI; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id d123sor22582919pga.84.2020.04.28.03.00.53 for (Google Transport Security); Tue, 28 Apr 2020 03:00:53 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a65:5509:: with SMTP id f9mr27989733pgr.70.1588068053571; Tue, 28 Apr 2020 03:00:53 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:f9c1:1c6a:49dc:267d]) by smtp.gmail.com with ESMTPSA id j32sm12676379pgb.55.2020.04.28.03.00.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Apr 2020 03:00:52 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 6/6] rk3399: Add ROC-RK3399-PC Mezzanine board Date: Tue, 28 Apr 2020 15:30:19 +0530 Message-Id: <20200428100019.19155-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200428100019.19155-1-jagan@amarulasolutions.com> References: <20200428100019.19155-1-jagan@amarulasolutions.com> X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=oeLCXjtI; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" 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: , From: Suniel Mahesh Add Firefly ROC-RK3399-PC Mezzanine board which is an extension board on top of roc-rk3399-pc. Will drop the separate defconfig file, once we support the board detection at runtime. Signed-off-by: Suniel Mahesh Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v2: - include rk3399-roc-pc-u-boot.dtsi .../dts/rk3399-roc-pc-mezzanine-u-boot.dtsi | 6 ++ board/firefly/roc-pc-rk3399/MAINTAINERS | 2 + configs/roc-pc-mezzanine-rk3399_defconfig | 67 +++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 arch/arm/dts/rk3399-roc-pc-mezzanine-u-boot.dtsi create mode 100644 configs/roc-pc-mezzanine-rk3399_defconfig diff --git a/arch/arm/dts/rk3399-roc-pc-mezzanine-u-boot.dtsi b/arch/arm/dts/rk3399-roc-pc-mezzanine-u-boot.dtsi new file mode 100644 index 0000000000..f50c18dd3d --- /dev/null +++ b/arch/arm/dts/rk3399-roc-pc-mezzanine-u-boot.dtsi @@ -0,0 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (c) 2020 Amarula Solutions(India) + */ + +#include "rk3399-roc-pc-u-boot.dtsi" diff --git a/board/firefly/roc-pc-rk3399/MAINTAINERS b/board/firefly/roc-pc-rk3399/MAINTAINERS index 7564dd252d..68a5b757d1 100644 --- a/board/firefly/roc-pc-rk3399/MAINTAINERS +++ b/board/firefly/roc-pc-rk3399/MAINTAINERS @@ -1,6 +1,8 @@ ROC-RK3399-PC M: Levin Du +M: Suniel Mahesh S: Maintained F: board/firefly/roc-pc-rk3399 F: include/configs/roc-pc-rk3399.h F: configs/roc-pc-rk3399_defconfig +F: configs/roc-pc-mezzanine-rk3399_defconfig diff --git a/configs/roc-pc-mezzanine-rk3399_defconfig b/configs/roc-pc-mezzanine-rk3399_defconfig new file mode 100644 index 0000000000..5a694edc03 --- /dev/null +++ b/configs/roc-pc-mezzanine-rk3399_defconfig @@ -0,0 +1,67 @@ +CONFIG_ARM=y +CONFIG_ARCH_ROCKCHIP=y +CONFIG_SYS_TEXT_BASE=0x00200000 +CONFIG_ENV_OFFSET=0x3F8000 +CONFIG_ROCKCHIP_RK3399=y +CONFIG_TARGET_ROC_PC_RK3399=y +CONFIG_NR_DRAM_BANKS=1 +CONFIG_DEBUG_UART_BASE=0xFF1A0000 +CONFIG_DEBUG_UART_CLOCK=24000000 +CONFIG_DEBUG_UART=y +CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-roc-pc-mezzanine.dtb" +CONFIG_DISPLAY_BOARDINFO_LATE=y +# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set +CONFIG_SPL_STACK_R=y +CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x10000 +CONFIG_TPL=y +CONFIG_TPL_GPIO_SUPPORT=y +CONFIG_CMD_BOOTZ=y +CONFIG_CMD_GPT=y +CONFIG_CMD_MMC=y +CONFIG_CMD_USB=y +# CONFIG_CMD_SETEXPR is not set +CONFIG_CMD_TIME=y +CONFIG_SPL_OF_CONTROL=y +CONFIG_DEFAULT_DEVICE_TREE="rk3399-roc-pc-mezzanine" +CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" +CONFIG_ENV_IS_IN_MMC=y +CONFIG_SYS_RELOC_GD_ENV_ADDR=y +CONFIG_ROCKCHIP_GPIO=y +CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_MMC_DW=y +CONFIG_MMC_DW_ROCKCHIP=y +CONFIG_MMC_SDHCI=y +CONFIG_MMC_SDHCI_ROCKCHIP=y +CONFIG_SPI_FLASH_WINBOND=y +CONFIG_DM_ETH=y +CONFIG_ETH_DESIGNWARE=y +CONFIG_GMAC_ROCKCHIP=y +CONFIG_PMIC_RK8XX=y +CONFIG_REGULATOR_PWM=y +CONFIG_REGULATOR_RK8XX=y +CONFIG_PWM_ROCKCHIP=y +CONFIG_RAM_RK3399_LPDDR4=y +CONFIG_BAUDRATE=1500000 +CONFIG_DEBUG_UART_SHIFT=2 +CONFIG_ROCKCHIP_SPI=y +CONFIG_SYSRESET=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y +CONFIG_USB_EHCI_HCD=y +CONFIG_USB_EHCI_GENERIC=y +CONFIG_USB_HOST_ETHER=y +CONFIG_USB_ETHER_ASIX=y +CONFIG_USB_ETHER_ASIX88179=y +CONFIG_USB_ETHER_MCS7830=y +CONFIG_USB_ETHER_RTL8152=y +CONFIG_USB_ETHER_SMSC95XX=y +CONFIG_USB_KEYBOARD=y +CONFIG_SPL_TINY_MEMSET=y +CONFIG_ERRNO_STR=y +CONFIG_DM_VIDEO=y +CONFIG_VIDEO_BPP16=y +CONFIG_VIDEO_BPP32=y +CONFIG_DISPLAY=y +CONFIG_VIDEO_ROCKCHIP=y +CONFIG_DISPLAY_ROCKCHIP_HDMI=y