From patchwork Mon Jan 29 22:18:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rayhan Faizel X-Patchwork-Id: 1892519 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=PMoi221o; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=patchwork.ozlabs.org) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TP2nj3Sy8z23g2 for ; Tue, 30 Jan 2024 09:21:12 +1100 (AEDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUZyn-00014O-94; Mon, 29 Jan 2024 17:19:49 -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 1rUZyk-00013o-6D; Mon, 29 Jan 2024 17:19:46 -0500 Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rUZyi-0000iN-O7; Mon, 29 Jan 2024 17:19:45 -0500 Received: by mail-oi1-x22e.google.com with SMTP id 5614622812f47-3be8308b3d3so361290b6e.1; Mon, 29 Jan 2024 14:19:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706566783; x=1707171583; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nzn8IIaY+k14r5GGSiVU99mZ7IVSK6EhpOMu+lBWQow=; b=PMoi221osJsrbvJWsdo4qKWO/wJ8dQzF217LdEyyDc9SsQGgQuXbH8sab7h0e6fLba s4T4Bb4urSthhx/Sp/v9VApEZVtBh5454JMOOEGlIrFphoRpxFiimR4U6xJY87gWedaT mXQ98jS53Cfg/bFgaZrJptKIZJTI8kExeLaIRGR+Xm0zq6TFzqpfLR5e1wlC/9oFb2Yj +dy9tzuvP/1YFW2PIgZqRZrT4wzivyjb43B7ekxC+IRIOsQj9g5nRtKck6HRqKw0tMH4 Rs6cvwVMGKdjp/RCf3VKvwFoEnXnOJP2AJKE6STT4kXW5wpe9x7+euXVzQRj8h9PXkGQ QzMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706566783; x=1707171583; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nzn8IIaY+k14r5GGSiVU99mZ7IVSK6EhpOMu+lBWQow=; b=KGs8w3FZvOFXaJfuDOCfXv/wJniGQHhlOJMSgnytgC9LJkVw8IXCGUmct0sNhA3S3B bR1LPc+B8SkvLZSQWZs4UPbzSKx1HVeUEPNgDDJA2elB5AZlmSrlqVGLq1iYnxuuRxXw UagrMjrs8QdPux4MCBsFXKE4CVMyKooguK56tgbmAdncS8xOc6mWNVwyFWiEpEN07i4H ndt7HEFluidE1fx5I+mVQ3wVvDjfyukyiX+ciy+8ZzbB0IOc5S4qRDM0XqC5XrKoHXpu qyDQJpBwQeyMcAhH098APdpGpqwTf9/fEC44ykFLdP4EOnrayhxPOsw1gMhzIoZc3W4C Tm0Q== X-Gm-Message-State: AOJu0Yzij0Nv76gbPyXkDsfdxHcXIGUd6jeBU47MIrv4d9Zg7/Ws5uy/ rgMWViJSQWiWB4++TZBCBhn2wuartAvGS31wUgGtiZ241afUZY5r2a2/nvW6zG+uaw== X-Google-Smtp-Source: AGHT+IHLvzYP1YH3842mBfHQGS1cJiz7h1VclYetUu4LV9ZVvJ1mEm0eTouTVsKqQBR3DPc8WmyVKA== X-Received: by 2002:aca:2407:0:b0:3bd:9aed:90c3 with SMTP id n7-20020aca2407000000b003bd9aed90c3mr5744298oic.58.1706566766649; Mon, 29 Jan 2024 14:19:26 -0800 (PST) Received: from localhost.localdomain ([49.47.195.100]) by smtp.gmail.com with ESMTPSA id r19-20020aa78453000000b006ddc1ae04eesm6353084pfn.192.2024.01.29.14.19.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 14:19:26 -0800 (PST) From: Rayhan Faizel To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, philmd@linaro.org, alistair@alistair23.me, pbonzini@redhat.com, qemu-arm@nongnu.org, Rayhan Faizel Subject: [PATCH v4 0/2] Add BCM2835-SPI0 to BCM2835 Date: Tue, 30 Jan 2024 03:48:06 +0530 Message-Id: <20240129221807.2983148-1-rayhan.faizel@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::22e; envelope-from=rayhan.faizel@gmail.com; helo=mail-oi1-x22e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This patch series implements the SPI controller for BCM2835 boards. [Changes in v4] - End Kconfig file in hw/ssi with new line. - Fix accidental deletion of code in bcm2835_peripherals.c - Fix stray whitespace change in documentation [Changes in v3] - Forgot to CC maintainers and mailing list in cover letter. [Changes in v2] - Forgot to CC maintainers and mailing in the patch series. - Sign off cover letter. Signed-off-by: Rayhan Faizel Rayhan Faizel (2): hw/ssi: Implement BCM2835 SPI Controller hw/arm: Connect SPI Controller to BCM2835 docs/system/arm/raspi.rst | 2 +- hw/arm/Kconfig | 1 + hw/arm/bcm2835_peripherals.c | 16 +- hw/ssi/Kconfig | 4 + hw/ssi/bcm2835_spi.c | 288 +++++++++++++++++++++++++++ hw/ssi/meson.build | 1 + include/hw/arm/bcm2835_peripherals.h | 3 +- include/hw/ssi/bcm2835_spi.h | 81 ++++++++ 8 files changed, 393 insertions(+), 3 deletions(-) create mode 100644 hw/ssi/bcm2835_spi.c create mode 100644 include/hw/ssi/bcm2835_spi.h