Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8EC49C07E96 for ; Tue, 6 Jul 2021 14:22:34 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AFA4E61AC0 for ; Tue, 6 Jul 2021 14:22:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AFA4E61AC0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 68F9882C79; Tue, 6 Jul 2021 16:22:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="U8EUdMgY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 34B7082C68; Tue, 6 Jul 2021 16:22:29 +0200 (CEST) Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (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 9D41882BE0 for ; Tue, 6 Jul 2021 16:22:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=daniel.schwierzeck@gmail.com Received: by mail-wm1-x334.google.com with SMTP id t14-20020a05600c198eb029020c8aac53d4so4986419wmq.1 for ; Tue, 06 Jul 2021 07:22:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=khHePAzcdvHM5u1urDPm0uWxhqzHqwiKBYF08r6tDIo=; b=U8EUdMgYEECilPR+oo/mzUQ/1eeLF5H/ovDDQXEv2U9FgnXYiD6VfWTVZQ+shDx4/f rbU2OZz7cF/VG4fuPfMeXJpyo293N98aBh6/gQJ/dA795DUxy/QdIeFwHzSdwg+35OZN ctjYMXZ/2m17wsIxS/GsGZ86eTsr69G85Z5KOOXgH2+0ZuPxP/SGLDk41YdLaOHNwYM5 JM3zefv5IA5IP/lTizVMrVFTOfHJe1gzDdNH8pksPuBInecpGeH6yY8PvKPbcjud9Jjg 1UHhMdtVMU0+aDokecH2g6tdBcyMGRRlvmdxW//iocMQJKnt1m5J4KOhNj8NkA8EhU+z SVAg== 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=khHePAzcdvHM5u1urDPm0uWxhqzHqwiKBYF08r6tDIo=; b=G15dbz7JpKnzK3DuoFNQe9iQCLSFOYTvsSm68rsnEVLSdMxvvvp2pSWxdqsNI5LNTk jcVz6xMd1HyV+qyE3O1gbDbEA1gPDzCz1XaACbb+ms2XKoG8aoad5chpioiPjNDxAEC7 0wyFQoA8nd5o95a5vK8UsvnQzFV560p6F9isjVmCSnCQ4LfPz5iaTB42svkRIx5gWBkr TZLgkG6LbFbjztuGb+6nytf7zUuH7E4vrWWRgt0/3Lj8CAtfzu1p4cr+/Tmnw7VAuivk ue8neRRM+6yjD+THh4z44LbwyscKOLlw0wUDw6Wsc1TyTqxjv9jmRZmnqIIfLiPu/rw7 hXQA== X-Gm-Message-State: AOAM532T/eoSQAuJkm0Fgi7N8cRCW4M7DZCMEJhXwqciNMy7JMYi2LG7 Sq4q7QvFpaMplMBJ5bQf9h5rbui5how= X-Google-Smtp-Source: ABdhPJx+wAhsipb0OgW3bK5tgFBF3lVeP3u6rfy+6oR2r3rFF2yLM55Hl21m0FGC0YaimzBhSR4qXA== X-Received: by 2002:a7b:cb92:: with SMTP id m18mr20578954wmi.170.1625581346179; Tue, 06 Jul 2021 07:22:26 -0700 (PDT) Received: from workstation.lan.schwierd.dedyn.io (i5E860781.versanet.de. [94.134.7.129]) by smtp.gmail.com with ESMTPSA id t9sm16880571wrq.92.2021.07.06.07.22.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jul 2021 07:22:25 -0700 (PDT) From: Daniel Schwierzeck To: u-boot@lists.denx.de Cc: Simon Glass , Stefan Roese , Tom Rini , Daniel Schwierzeck Subject: [PATCH 0/6] Convert MIPS Malta boards to PCI DM Date: Tue, 6 Jul 2021 16:22:16 +0200 Message-Id: <20210706142222.497569-1-daniel.schwierzeck@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.103.2 at phobos.denx.de X-Virus-Status: Clean This series converts the PCI host controller drivers used by MIPS Malta and the board-specific PCI setup code to PCI driver model. Because the AMD PCNET driver is already converted to ETH driver model, simply enable CONFIG_DM_ETH as well. A patch in PCI uclass core is currently required for MIPS wanting to use PCI DM (except Octeon MIPS64) due to CONFIG_SYS_SDRAM_BASE being used as a virtual address on all MIPS boards. The series for now is only tested with Qemu and the GT64120 PCI controller. The Malta Qemu tests are already covered by U-Boot CI Support for the MSC01 controller is prepared. The used PCI controller depends on the plugged core card (Qemu emulates the CoreLV card with GT64120). Dynamic selection of the according PCI DT nodes via CONFIG_OF_BOARD_FIXUP is prepared but not yet enabled. This requires fixing of the call order of fix_fdt() in board_init_f, otherwise the passed-in rw_fdt_blob pointer will point to a read-only NOR flash address. I'll send a separate RFC patch for this. I'll send a cleanup series for removing non-DM code after the merge windows has closed and the PCI DM conversion deadline has been enforced. Daniel Schwierzeck (6): dm: pci: add option to map virtual system memory base address pci: gt64120: convert to driver model pci: msc01: convert to driver model MIPS: malta: add DT bindings for PCI host controller MIPS: malta: add support for PCI driver model MIPS: malta: enable PCI driver model arch/mips/Kconfig | 4 ++ arch/mips/dts/mti,malta.dts | 28 +++++++++++++ board/imgtec/malta/malta.c | 84 ++++++++++++++++++++++++++++++++++++- drivers/pci/Kconfig | 13 ++++++ drivers/pci/pci-uclass.c | 9 ++-- drivers/pci/pci_gt64120.c | 72 ++++++++++++++++++++++++++++++- drivers/pci/pci_msc01.c | 70 ++++++++++++++++++++++++++++++- 7 files changed, 274 insertions(+), 6 deletions(-) -- 2.32.0