From patchwork Fri Jul 10 08:52:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rayagonda Kokatanur X-Patchwork-Id: 1326562 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=85.214.62.61; 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=MElIEN+D; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4B36J12FXHz9sRK for ; Fri, 10 Jul 2020 18:52:49 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D3FE881EFC; Fri, 10 Jul 2020 10:52:42 +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="MElIEN+D"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3AC7081EFC; Fri, 10 Jul 2020 10:52:41 +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-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) (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 D872481D71 for ; Fri, 10 Jul 2020 10:52:37 +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-pl1-x643.google.com with SMTP id k5so1967535plk.13 for ; Fri, 10 Jul 2020 01:52:37 -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=qbrAqR2yn1rqnYWR3o7VIbjhCR/46+xNC5eOrxMPBgo=; b=MElIEN+Dfp1ZpyZWanW53QFaTRQX5lvKSviOlPmF8ZBKguHi43L+YSqrN7p8AYmxqN Xix/rEfDxD9gtescRD9Q7Q0egd+mLFiO7YXuEsNZ86Wo30/QwaHt9nmc33LeQ/7aNTN4 g2bQyMlK3n/tcG0IuIR0jEhG3YlITu4IJ9GDY= 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=qbrAqR2yn1rqnYWR3o7VIbjhCR/46+xNC5eOrxMPBgo=; b=S3T0Rq4osqu7/c0waPewcrR3E4QB5m8ik5pO8fCLYgGMKNXMQ4iXCwN1S19OFAq0v8 PQKsOCDn80F2L+0Q1Z4nx3whgl9nwtqij1j8RizlyC9EFetwO1gCrLrcuAzDffIvyb+6 fXIE0lBrFYCOR8eROS3V1sjtmUXFs78F0/UksgydI+z6BNLi6UQr7M9Or7W4sDrxdTEm tPlEYte5YHy3jg2q6qqF4mBnyips2GwAGjFXVY9UoqYBQGK9Ch7vwf1SQzTHGTzC6eoR ukO35i/8993UmFqYO7Is/5H/mnTXO/Qt3L7arwn/aAs9eQ2co5rNXINmMCXzz542JiVu squg== X-Gm-Message-State: AOAM531Youi+j5jryUCLhsfNk6fcKqwEde9OwAYp4JQTDAdoCGLktjgb f5ysTaYBsAAobNT+dCvCTPw2X34yorHU3Ymdx4caygRSCPuLcQoroU0uLJ3hFpfCP6dGMKKWojy F7rimjcdVa24P2Q6D6KxrN9Xts281zaiK4iZa7XSh5D45ISC4JmtNiiTHMU3hskuHT8ijmJ1Fz9 rkMXQ= X-Google-Smtp-Source: ABdhPJy5Qnt/tKisClRyaP6RWHwJO7ek1FfWO27xdLjEFNFtp1sGMlB7NJgKopI4A8XPV2CLTyuVWw== X-Received: by 2002:a17:902:b610:: with SMTP id b16mr19634159pls.234.1594371155184; Fri, 10 Jul 2020 01:52:35 -0700 (PDT) Received: from rayagonda.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id k26sm5145914pgi.16.2020.07.10.01.52.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2020 01:52:34 -0700 (PDT) From: Rayagonda Kokatanur To: u-boot@lists.denx.de, Simon Glass , Marek Vasut , Bharat Gooty , Peter Tyser , Thomas Fitzsimmons Cc: Rayagonda Kokatanur Subject: [PATCH v4 00/15] add initial support for broadcom NS3 soc Date: Fri, 10 Jul 2020 14:22:05 +0530 Message-Id: <20200710085220.32730-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 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 | 214 +++++ 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, 1457 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