From patchwork Sat Apr 25 10:53: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: 1113 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D60B13F08E for ; Sat, 25 Apr 2020 12:53:55 +0200 (CEST) Received: by mail-pg1-f200.google.com with SMTP id x132sf6772264pgx.22 for ; Sat, 25 Apr 2020 03:53:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1587812034; cv=pass; d=google.com; s=arc-20160816; b=RlFuY4sJTzP0UFTO/OF0+K/EDnUZ444OIp083jKEztVKLCCc2lp3lBRw4lIsh5ODnw dFTeBk8lGlY1lldoA/Vth+lKxBimBcSrbZRUiDWtFfuK8uh2tXSzeW9KtLwAOtvMkBo1 XpEbmSuEllE6PpEBKdog5YNrOTu/YyTN58uHlniWa7rj1YHTm/EEJYe3JkgYPYafZfY+ O7+izXcGl9aLuKo6RaKjV1okjEaoK03Wo8ry3WzvEWNa0arAxhZimlV3uZhuY2o6kmZm hjz/e5dQa9n+uZPDkEik5IuTbn38YLf+tAISd0Bf9GRoUpPK7BtaOz6CICgNr6eLGjmf 14Mg== 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=5vV1wdS/g6HmuQKPKLyBgjLqDYwsTDLs/q7QCpokyFA=; b=JFIFKyo+RNkCvP0UYCqvQN8tKa0qoG6mJOuUVJDWhev9g2Yobm53N///IKbd+7M5gk zqI2ZiICq/DlBNjhvnwmkVlFBa+/UwW7OcqA3whiZLOlNv3XLJG7p4zRqVDOjgmm049q h3gIWghZePQ7enZFsRU465Y4ccKCuPeQaksGQeYvGtScY+d8ZaoJLAAfqfitVZAjPGtL sRxmZOdaWUkcAFQXW7gw5PrAzB9GrRm7CewyvYnvSbOH3J7REaynGRG3JJ1t3g8jRwNe E0t4IvRjk5AFa7cemcxIEuPiTSqdbc5BuLj1hjgw11JTJHlDkkOrWHeWCc0xxwTap4Du TsEw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=iW6xCMqn; 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=5vV1wdS/g6HmuQKPKLyBgjLqDYwsTDLs/q7QCpokyFA=; b=KxGXEDAgScMSrSSMj4eIRM6F65hnxD+nwitHbYfw84cE9c9AH4jhYwHvnFXlJ9dGO/ 9cDMYicGvT0On5Jrw84Zn+Hews23k9s4PN3PmSgbtE4O29euArTbiaZNSfPs7yujteyo ai9t8oenOWtuzl/LaWPS34wXgxZwkROWbHscI= 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=5vV1wdS/g6HmuQKPKLyBgjLqDYwsTDLs/q7QCpokyFA=; b=VcWvS5REsQeHJ6Qqp65+48SfCp2FAmlU1bZWoEvWWNO57HMb3bi0VGAkn1k2zKl80e 50ZGwBjpGE8uCudZwvIv60P/m0sU/tNr/Ofc2k3ZavFswSYIcFs6f0TgmwdkgYiIza+0 8vMvyHm2SC+P4IBemN5kpsE5JzJGnR0V3Z4nluc2fRur0GhM3aoAwF5/I6Tk89EsVuRU cNWVBkM63TZbIQ31dV4ddU5PF0imN8YU+/fJ5IWRLVeK472qRbMMS+15bXtC8AEhLRtZ TomqmmT1QlRCOSJLVaM0LBqFdB6guebbM1R7w4fekKefp6eVj2kD/mFXMgsYdleXFWrm ZfNQ== X-Gm-Message-State: AGi0PuZj765G4pji+o5r4d0uAH45KvIX1nXWRiauoK3I/F5CcFUn8mn8 hN4shRCrBx9GdQ0QbK0qXqgTMPBY X-Google-Smtp-Source: APiQypKgilWy/gukWkt/VZEhdOytsD7HGYDxNxz/6uLHBb2Q0qq+fjvyRvUDpuwUsTh/FTOqlqmDpA== X-Received: by 2002:a17:90a:f68d:: with SMTP id cl13mr12374905pjb.107.1587812034548; Sat, 25 Apr 2020 03:53:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:ca12:: with SMTP id x18ls10581895pjt.2.canary-gmail; Sat, 25 Apr 2020 03:53:54 -0700 (PDT) X-Received: by 2002:a17:90a:3343:: with SMTP id m61mr12592154pjb.112.1587812034071; Sat, 25 Apr 2020 03:53:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587812034; cv=none; d=google.com; s=arc-20160816; b=hntqM73CKELrc8r61pNpKbasOX8yz/1vIZjvLF1wYZpAaIMb7yE8qzH758NyxeB0MC WL0dsAeGqi0n+YNGERBi8G7vVClRs9MW8hUxlxG75CfTsRyNbK6yucUfaqf81PIWVfUx fMF0EmZpaUCpgBd5qzjrJGdPIsXPqQFUbzGwYFq4jeeGWmH4v1BTufOx4gDs3O69UJfB RqQSQSbKHjtasu8X/hFJ2hjTjMF6vvDO5Nn6iYghHbz05C+FNuMzv1pZHQL1p21chdkx pYn8a3uqmRV4hr0Mtzt+4DA1MIL4j5uzKGjNVSrLrE6sur/cM/pOfpv+3qc9VQBqMWHN ydeA== 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=2Su1eOUldiZGGpXxB3HFtfWCnRnwtVvnpwJ58xmQw+Y=; b=Gct9AK6dehTMMBM3g7/jtcqtnbY9O4z495ohWMXPmzgGs5EHBbDUUgYO2DEf7UpEvU ROfXbSQmFx37mFo4ccXVpoZG2XmcQcIV4MbHgrFN2MAxkd39RigTAiTUOBrnH1kypHB6 zzeUwZQkhyDFVkCzdhsMcTMiyCTblG5CAY/biGbNzs98e3R1nIcn6SftsMRiKu0KIloL 9PXlRavMGtsdLqv0NBxGFuhRGjqNCbzGmYq8s7sMYZVKIniyH0lEsXlbTDCY6GA4n6mv /VSr2KMxZUnLtUuSdThc5XRve9EoQeLRAlmi4EQIYgfy4KgBz/O2cclV2VE8fEhp73LM MDuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=iW6xCMqn; 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 h10sor11049148pgq.52.2020.04.25.03.53.54 for (Google Transport Security); Sat, 25 Apr 2020 03:53:54 -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:a63:2cd5:: with SMTP id s204mr13394373pgs.71.1587812033737; Sat, 25 Apr 2020 03:53:53 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:1d46:fa69:c34:93dc]) by smtp.gmail.com with ESMTPSA id u188sm7996303pfu.33.2020.04.25.03.53.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Apr 2020 03:53: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 6/6] rk3399: Add ROC-RK3399-PC Mezzanine board Date: Sat, 25 Apr 2020 16:23:19 +0530 Message-Id: <20200425105319.12009-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200425105319.12009-1-jagan@amarulasolutions.com> References: <20200425105319.12009-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=iW6xCMqn; 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 --- .../dts/rk3399-roc-pc-mezzanine-u-boot.dtsi | 26 +++++++ board/firefly/roc-pc-rk3399/MAINTAINERS | 2 + configs/roc-pc-mezzanine-rk3399_defconfig | 67 +++++++++++++++++++ 3 files changed, 95 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..29325da71f --- /dev/null +++ b/arch/arm/dts/rk3399-roc-pc-mezzanine-u-boot.dtsi @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019 Levin Du + */ + +#include "rk3399-u-boot.dtsi" +#include "rk3399-sdram-lpddr4-100.dtsi" + +/ { + aliases { + spi0 = &spi1; + }; + + chosen { + u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc; + }; + + config { + pcie-pwr-gpio = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>; + }; +}; + +&vdd_log { + regulator-min-microvolt = <430000>; + regulator-init-microvolt = <950000>; +}; 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