From patchwork Tue Jul 16 13:37:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Gherzan X-Patchwork-Id: 1132769 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gherzan.ro Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=gherzan.ro header.i=@gherzan.ro header.b="jjd9kcRZ"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45p1k46bnCz9sN4 for ; Tue, 16 Jul 2019 23:40:28 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 64001C21F04; Tue, 16 Jul 2019 13:39:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id CEFB7C21EC2; Tue, 16 Jul 2019 13:38:56 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id F3E6EC21E47; Tue, 16 Jul 2019 13:38:09 +0000 (UTC) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by lists.denx.de (Postfix) with ESMTPS id DE3CAC21E34 for ; Tue, 16 Jul 2019 13:38:08 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id n9so21066487wru.0 for ; Tue, 16 Jul 2019 06:38:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gherzan.ro; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4dSnta7towNF0TBdPBH6ZtbMTCj39HPFGnzeib9WkLs=; b=jjd9kcRZvf2XeZWrMS/A26dJfZx/uHeEr0Q6RfTZiCrbYrJu+0aIlWBuo5D9zb+tQ7 0Wcat4y70HFcfj6l5w7NiqS7m5pTGa1y8JlEQ6rkgVLP4qvWmf4JqFX42xEgZ5sUyHEo WvqDzzrgfyXM6TlTK2bEvYs/ay5kldlMShurTEJYKrQeFDnBqI2GcKNAKs3lk0KHQmU0 Z/2cw0DooLpc7twKcQAx9gGV80tBrjLqkgwocKpKr2AwSWYz35t8fDkt/GfwWYV76ZZA g2fRlIyAaBJR58a2GX5hWzN7/3/jqopnGY/r0gV8WbWsSrcq1Mb9/QnvDhm5QsClMkrl wlJA== 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:mime-version :content-transfer-encoding; bh=4dSnta7towNF0TBdPBH6ZtbMTCj39HPFGnzeib9WkLs=; b=IX06h8mvuFCOzHTjO4ifJJKamIC13atcYbGkV7++StsjBLi88R9Shh1j/vABBaJit9 ufDjkGlboUJlVUuEZ8jp0k+5jDfFC06rKkeEBKOLVVNXXIY5hxlO2f62I3pnpaju2ZLf QaTyoHtn++SScoYatQcx+mk7YLkv2yO0zuk6UlUEgACc34cR5KGLeFD6wNfuxIfI4hKz PYye8VsJJxZiBSMuDLM4+Sv/Fb/06E1UxCb5SLbxeXG44yut9CHY6WTnNUM/mNg7NnFH j7ojjXH9GLivlSVhLou0fXGEMUzQDfe6l0VWv+opE/fAwGPqMGGFlHH12gks4EIwWyyV 2CjQ== X-Gm-Message-State: APjAAAUJUMKgBSc0OIRnwnvckZU9nvF77HeQ5jn5Uk2KNGOlUzFeLGzb 7enda2+qKW9oMtHhdFwAI4o6r8gM X-Google-Smtp-Source: APXvYqwjtNKcTYYRwqCczg1wwZqfICNuKs5gQ8DAzqfMgWJod+4PlVD1VXSxKWFmy85MycbJt3pFqg== X-Received: by 2002:adf:c803:: with SMTP id d3mr12745337wrh.130.1563284288011; Tue, 16 Jul 2019 06:38:08 -0700 (PDT) Received: from localhost.localdomain ([212.36.34.46]) by smtp.gmail.com with ESMTPSA id e5sm21450292wro.41.2019.07.16.06.38.06 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 16 Jul 2019 06:38:07 -0700 (PDT) From: andrei@gherzan.ro To: u-boot@lists.denx.de Date: Tue, 16 Jul 2019 14:37:47 +0100 Message-Id: <20190716133803.1174-1-andrei@gherzan.ro> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 16 Jul 2019 13:38:53 +0000 Cc: Andrei Gherzan Subject: [U-Boot] [PATCH 00/16] Raspberry Pi 32/64 support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" From: Andrei Gherzan This PR consolidates the work we've done to support the new Raspberry Pi 4 board. It also includes commits from https://github.com/mbgg/u-boot.git (credits to Matthias Brugger). Andrei Gherzan (13): dts: Create a dtsi for BCM2835/6/7 specific configuration dts: Add initial support for bcm2838 arm: mach-bcm283x: Define configs for RaspberryPi 4 arm: mach-bcm283x: Define mbox address for BCM2838 rpi: Add rpi_model entry for RaspberryPi 4 dt-bindings: Define BCM2838_CLOCK_EMMC2 needed for RaspberryPi 4 arm: bcm283x: Include definition for additional emmc clock arm: bcm283x: Define device base addresses for bcm2835 config: rpi4: Add defconfig for rpi4-32 dts: bcm2838-rpi-4-b: Use the emmc2 interface for sdhci rpi: Add memory map for bcm2838 configs: rpi4: Remove DWC2 and USB_ETHER configs dts: bcm2838-rpi-4-b: Use the emmc2/2811 compatible string for SDHCI Fabian Vogt (2): bcm2835 video: Bail out early if querying video information fails bcm283x mbox: Correctly wait for space to send Matthias Brugger (1): mmc: bcm2835_sdhci: Add support for bcm2711 device arch/arm/dts/Makefile | 4 +- arch/arm/dts/bcm2835-common.dtsi | 53 +++++ arch/arm/dts/bcm2835.dtsi | 1 + arch/arm/dts/bcm2836.dtsi | 1 + arch/arm/dts/bcm2837.dtsi | 1 + arch/arm/dts/bcm2838-rpi-4-b.dts | 52 +++++ arch/arm/dts/bcm2838.dtsi | 237 +++++++++++++++++++++ arch/arm/dts/bcm283x.dtsi | 45 +--- arch/arm/mach-bcm283x/Kconfig | 35 +++ arch/arm/mach-bcm283x/include/mach/mbox.h | 13 +- arch/arm/mach-bcm283x/include/mach/sdhci.h | 4 + arch/arm/mach-bcm283x/include/mach/timer.h | 4 + arch/arm/mach-bcm283x/include/mach/wdog.h | 4 + arch/arm/mach-bcm283x/mbox.c | 6 +- board/raspberrypi/rpi/rpi.c | 32 ++- configs/rpi_4_32b_defconfig | 40 ++++ configs/rpi_4_defconfig | 3 - drivers/mmc/bcm2835_sdhci.c | 12 +- drivers/video/bcm2835.c | 4 +- include/dt-bindings/clock/bcm2835.h | 2 + 20 files changed, 494 insertions(+), 59 deletions(-) create mode 100644 arch/arm/dts/bcm2835-common.dtsi create mode 100644 arch/arm/dts/bcm2838-rpi-4-b.dts create mode 100644 arch/arm/dts/bcm2838.dtsi create mode 100644 configs/rpi_4_32b_defconfig