From patchwork Wed Jul 15 17:18:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rayagonda Kokatanur X-Patchwork-Id: 1329704 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=broadcom.com header.i=@broadcom.com header.a=rsa-sha256 header.s=google header.b=P7kJwrTF; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4B6PJY3HbPz9sTM for ; Thu, 16 Jul 2020 03:19:39 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3A358819EA; Wed, 15 Jul 2020 19:19:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=broadcom.com header.i=@broadcom.com header.b="P7kJwrTF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E7F548006D; Wed, 15 Jul 2020 19:19:26 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) (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 0B65B8006D for ; Wed, 15 Jul 2020 19:19:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=rayagonda.kokatanur@broadcom.com Received: by mail-wr1-x442.google.com with SMTP id b6so3487097wrs.11 for ; Wed, 15 Jul 2020 10:19:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=0Irmq1bXACoWFbacFQdI5PxJGm0JfmAdX89wugsD3n4=; b=P7kJwrTFf3N+TnJ9/X4xF+Fh4TsoFGoDyki6i5iLYNgwGsJYVhi5HyC/UM6RoOip0c LWaWU9Vdemx/qcR3vkFn6Ms7y2gJLW4pTL6lunq/ryrR/+SCW9HYbnBzl8NMdjUUdFht dlVcprSFIiOFBZfXuX0jn2DxpC/zclcY44BEw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=0Irmq1bXACoWFbacFQdI5PxJGm0JfmAdX89wugsD3n4=; b=MVK5PEZc5kjESOegb6JT1vjWen7Let5cTiZjRNeUopbrfhlnccxpr87NLm45IGz6G3 7lGUe5PFp/ftnOPbitwOSPqVT3i6TYKfnT5u/duP/HDUM77kY1tCw0poGWVSWjeBoOFH ED/Tr5XMwedYqTCkzQ2ne94WopU4uH+Wx8Gg5cmBWoZvILx6YZZ7a8gl+xfGJcnWHPrs TuQXg9oAeawEMm9wcRB8HWjrqCewtPn/otXuMCGgo5DSZPVfuhDLbmHKw4kv5gDW5+BU h8+kRVyi05x9Lth59JBBMX4jXL4Zmjs2yDClfGEYlU6F0PmTkQrNReQLCKX4x326sD5Z I3xg== X-Gm-Message-State: AOAM531yv4RllAbPHTIYcWjTW5Nk4R7szLcHutfiagVgq9md2mvb4q1s u7y1Sb4enWwAuqt47u6fMG43tn9o3rZsoenO0z+0JGzYCn4FXkmzSUX0XWs/84NmGi9vOGqQMUO Xo9FGZJ/ov35td1cL5j0PZInGBE4RJ8fuUAfkN8x6KBXblk+YC5BTmamFTYKqf5m9YFUCOM4iWz R6BdA= X-Google-Smtp-Source: ABdhPJzZfTPI9vibdejp/jvDjnBpWf6SF8QsoYKwoxvh1WOEbVuuE+oKSsIju603S3PxJhrKNiP22Q== X-Received: by 2002:adf:f14e:: with SMTP id y14mr375354wro.151.1594833562759; Wed, 15 Jul 2020 10:19:22 -0700 (PDT) Received: from rayagonda.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id y6sm4328870wrr.74.2020.07.15.10.19.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 10:19:21 -0700 (PDT) From: Rayagonda Kokatanur To: u-boot@lists.denx.de, Simon Glass , Marek Vasut , Bharat Gooty , Thomas Fitzsimmons Cc: Rayagonda Kokatanur Subject: [PATCH v5 00/15] add initial support for broadcom NS3 soc Date: Wed, 15 Jul 2020 22:48:54 +0530 Message-Id: <20200715171909.25868-1-rayagonda.kokatanur@broadcom.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean This patch series adds initial support for Broadcom Northstar 3 SoC. NS3 is a octo-core 64-bit ARMv8 Cortex-A72 processors targeting a broad range of networking applications. Changes from v4: -Address review comments from Simon, Move hash defines at top of file and add comment, Correct spelling mistakes. -Address self review comments, Correction u-boot to U-Boot. Changes from v3: -Address review comments from Simon, Update commit message ie corrections, expand acronyms etc, Use lower-case hex number, Correct spelling mistakes, Use a struct instead of ad-hoc pointer reading, Use error code and return errro upon failure, Check for return value, Move the documentation to /doc instead of in header file, Update new file doc/README.bcmns3 Use dt and a UCLASS_IRQ to get gic details instead of passing as arguments to function gic_lpi_tables_init(), -Address review comments from Peter Tyser, Fix accidental changes Changes from v2: -Address review comments from Simon, Remove clock dt file inorder to maintain same dt file between uboot and linux. -Address self review comments, Rearrange the headers. Update MAINTAINERS file with dt file change. Changes from v1: -Address review comments from Marek Vasut, Split the series into samller and logical series like core, driver. -Address review comments from Simon Glass, Update MAINTAINERS file. Abhishek Shah (1): board: ns3: add api to save boot parameters passed from BL31 Bharat Gooty (2): include/configs: ns3: add env variables for Linux boot include/configs: ns3: add support for flashing images Bharat Kumar Reddy Gooty (1): board: ns3: limit U-boot relocation within 16MB memory Rayagonda Kokatanur (11): board: ns3: add support for Broadcom Northstar 3 arm: cpu: armv8: add L3 memory flush support configs: ns3: enable clock subsystem dt-bindings: memory: ns3: add memory definitions board: ns3: default reset type to L3 board: ns3: program GIC LPI tables configs: ns3: enable GIC_V3 ITS dt-bindings: memory: ns3: add ddr memory definition board: ns3: define ddr memory layout doc: add README doc for bcmns3 platform MAINTAINERS: update maintainers for broadcom ns3 platform MAINTAINERS | 15 + arch/arm/Kconfig | 10 + arch/arm/cpu/armv8/Makefile | 1 + arch/arm/cpu/armv8/bcmns3/Makefile | 5 + arch/arm/cpu/armv8/bcmns3/lowlevel.S | 98 +++ arch/arm/dts/Makefile | 2 + arch/arm/dts/ns3-board.dts | 47 ++ arch/arm/dts/ns3.dtsi | 34 + arch/arm/include/asm/arch-bcmns3/bl33_info.h | 26 + board/broadcom/bcmns3/Kconfig | 15 + board/broadcom/bcmns3/Makefile | 5 + board/broadcom/bcmns3/ns3.c | 217 +++++ configs/bcm_ns3_defconfig | 25 + doc/README.bcmns3 | 74 ++ include/configs/bcm_ns3.h | 823 +++++++++++++++++++ include/dt-bindings/memory/bcm-ns3-mc.h | 63 ++ 16 files changed, 1460 insertions(+) create mode 100644 arch/arm/cpu/armv8/bcmns3/Makefile create mode 100644 arch/arm/cpu/armv8/bcmns3/lowlevel.S create mode 100644 arch/arm/dts/ns3-board.dts create mode 100644 arch/arm/dts/ns3.dtsi create mode 100644 arch/arm/include/asm/arch-bcmns3/bl33_info.h create mode 100644 board/broadcom/bcmns3/Kconfig create mode 100644 board/broadcom/bcmns3/Makefile create mode 100644 board/broadcom/bcmns3/ns3.c create mode 100644 configs/bcm_ns3_defconfig create mode 100644 doc/README.bcmns3 create mode 100644 include/configs/bcm_ns3.h create mode 100644 include/dt-bindings/memory/bcm-ns3-mc.h