From patchwork Mon Jan 15 18:27:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guenter Roeck X-Patchwork-Id: 13520062 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F2EABC4707C for ; Mon, 15 Jan 2024 18:29:12 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rPRh0-0007Kr-St; Mon, 15 Jan 2024 13:28:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rPRgp-0007KL-UT; Mon, 15 Jan 2024 13:28:05 -0500 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rPRgn-0007U8-Vk; Mon, 15 Jan 2024 13:28:03 -0500 Received: by mail-pj1-x1031.google.com with SMTP id 98e67ed59e1d1-28e703fd835so47674a91.1; Mon, 15 Jan 2024 10:28:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705343280; x=1705948080; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=rlspaFi+NeGcIROaNLyHbGyy0VCFeJHW9E4/5Rm5W+U=; b=ErZnQX5bc1OA6xVtziEqM76epaS6OEc/iid8wfi+qbGG/S5+PYOARMzOPB54PfV82Y yxL6J7+hElimlJdciDpPi8K2C8yXQz3qJpjWp5SByXVSDb0A+JhVLQjj1ddOQmm1tSvW GZFA9+mfja6LdQ877Ul7FCVDjPgLsmTC7zq7d+nzwAC6GPEsSG1sBS7PoAg1WKjtXHOR ZTpNU55I6GwNJRG9Al6pPdwlSO7qKeSObXgs+jyijPP816GuqpN4Bp3uddITUNpjn9Zx 9M9AKb2y/NPbE9qX1LzAn94RCRTB7G7KZ/gz7Mxll6m5kqN9YtjZVHnX5VMyR8kvisF7 6MtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705343280; x=1705948080; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rlspaFi+NeGcIROaNLyHbGyy0VCFeJHW9E4/5Rm5W+U=; b=JiqnpTTfbxIxN1x6iGcGj9qrF8YJAl0fgdoTgMYHJsgwMaVFqFMyCbpsbdsTD+q+1A 17BKm18B5vF6gUewOvoiSzD9RqQ04MD22KOK10emdF2Jg0/WjQRGy1c1i/Wh8fBB4Mkn 6NVDG3yW4ZPdxn5lUadGHmt8ZfI4mpn9k3p2s+XgeGFaXfC0d5dspzDYUJrJsR8wzkJI u86BKQptYpQWonIFQaSGBorhDrf6eGpyPrOf02ijBLbs/HDTBy37oYYiOM92gxFyz7D5 tXl9EuWdeng+gjBc1apnorNjx8M8QN6yDqL2yQd7eqpYrtxSXGLPMLjGVAPwpVYwUtmy DtPg== X-Gm-Message-State: AOJu0YzP//Ipm7aQxb9jZNKmVRteFQeqtJwhVv37azYmGDC1Y4yZqfV+ ajpK/kWpQycxgKf7ffed7D0= X-Google-Smtp-Source: AGHT+IElobDIAZuUBst3VzD8aIqVpVi9wFpPTWu4R+ml92U6vJckyVzcAx0KXso1ddtANJw/gQfwtQ== X-Received: by 2002:a17:90b:1894:b0:28c:825e:2cf4 with SMTP id mn20-20020a17090b189400b0028c825e2cf4mr4153060pjb.41.1705343280037; Mon, 15 Jan 2024 10:28:00 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id sb15-20020a17090b50cf00b0028adcc0f2c4sm10162200pjb.18.2024.01.15.10.27.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 10:27:59 -0800 (PST) From: Guenter Roeck To: Peter Maydell Cc: Paolo Bonzini , Beniamino Galvani , Strahinja Jankovic , qemu-devel@nongnu.org, qemu-arm@nongnu.org, Guenter Roeck Subject: [PATCH v2 0/3] hw/arm: Add support for USB, SATA, and watchdog to Allwinner R40 Date: Mon, 15 Jan 2024 10:27:54 -0800 Message-Id: <20240115182757.1095012-1-linux@roeck-us.net> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=groeck7@gmail.com; helo=mail-pj1-x1031.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Add support for - USB 2.0 EHCI/OHCI - SATA/AHCI - Watchdog to Allwinner R40. The hardware is quite similar to Allwinner A10 and H3, so the code is derived from the implementations for those SOCs. Tested with bpim2u emulation by instantiating EHCI and OHCI keyboards, by booting from USB, by booting from ATA/SATA drive, and by manually testing watchdog operation. v2: - The USB Controllers are part of the chipset, so instantiate them unconditionally - Add Reviewed-by: tag to patch 2/3 ---------------------------------------------------------------- Guenter Roeck (3): hw/arm: Add EHCI/OHCI controllers to Allwinner R40 and Bananapi board hw/arm: Add AHCI/SATA controller to Allwinner R40 and Bananapi board hw/arm: Add watchdog timer to Allwinner H40 and Bananapi board docs/system/arm/bananapi_m2u.rst | 5 +-- hw/arm/Kconfig | 4 +++ hw/arm/allwinner-r40.c | 67 ++++++++++++++++++++++++++++++++++++++-- include/hw/arm/allwinner-r40.h | 15 +++++++++ 4 files changed, 86 insertions(+), 5 deletions(-)