From patchwork Thu Jan 25 01:35:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 13529796 Received: from mail-oo1-f43.google.com (mail-oo1-f43.google.com [209.85.161.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37748F511 for ; Thu, 25 Jan 2024 01:35:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706146546; cv=none; b=j16x+Koaimidpq9q6EIGRKKhwXOhbPNP7bzBdZQCSjBLeEinztKvM7wjqqYbG2RRhYBKA+r+iDsuu7V9eSZzrM5Balxbzw7iBfXGhc3Xpxnm7S00nd6WO+WNY8MODkQkgObO8Jkr3lsoMl9A8Zg2a6gDf7Wj+67wgAq7HUDxWak= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706146546; c=relaxed/simple; bh=ImPV6ylvDLNKhmYcU5bvYmZGFnnlYjliM2xywtcdAl4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=qjidhgET+98/TMauRlbaKyJPiaZLiRzbXkFet1fVhhjnNBoQIXYulK1Cm2lIu/O0dYMqUhHHxYHcKzTQ1hDWayr6Fx4Z8bozMAq/qTgUIi5fm4eMjSv0S6JrOCuC/gtoTLvqDBtIzMYOaaMzlmg4CmzcpMSWsvkXzi+frCBVpfQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=DB2ayWhs; arc=none smtp.client-ip=209.85.161.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DB2ayWhs" Received: by mail-oo1-f43.google.com with SMTP id 006d021491bc7-5961a2726aaso3144440eaf.0 for ; Wed, 24 Jan 2024 17:35:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706146544; x=1706751344; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=g5NL15WLk6NkJypOkLe+mhvC699JlR9mZPB9t6UM0NU=; b=DB2ayWhsszzj86YWy8nzDWV1nuMWf/jFivvx4iGPKNxiwWG9zLUeQ3L7FFyfIsIh9I WN0YELLjoWX4VzvoAW6YVzJIlhRA57nfFRMQMDtw+7sSlr72LC5we7ma98Vszd6vu+M/ HDO0oCxrwoo1/skkk5wKumbzSTEYBUAEarhkF3O/fDRtwDKIfLc/vtySOI4q6stEli/x DZCwBoK+BNLHf6tUDscEEbzR1PjhmlryCRB4j/diF3y7Eh8r5rN1Wdl78+CK/8y9X6rU fhPpxpd2NwyQOlZmW9/gDorxBV6OYIB0EFUFclS9r9PRLbRt4VKBIvuujjOp8vy1UX/S OcMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706146544; x=1706751344; 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=g5NL15WLk6NkJypOkLe+mhvC699JlR9mZPB9t6UM0NU=; b=N+YlBH+v1JTJlfJOxVoRpY9mQMQfuf7rqmXeirNxiw0qzfeRbKmnC5IdK1BTYIZCVm i4jiLbU8sGTEX92rEpS3sUl6Jf2E30RSt1dgc626uLcja+ZGNTnBvdzKfvh89nnKkoCU yg0Hmg+hcgdpZD++j0d14VEQpMrqeX9Mc3odsjCrCCqkTbBTJrnvgCbWNdegC7fCCGBb ErbaY1N54bgfM4vSWYXEfavz5vuHecoM/OZG6mhVehb66ZfyGI7dc0lxdRCMgcS6yyVt rnzlBwV//Ft76XK62CRNjqQSL0Uk8granY6P0hFwc3W8vvwTFyrE+WJQawwURGvMLZSQ 9VUg== X-Gm-Message-State: AOJu0Yzgs/3t62z8d+7/5u4FGzA8ZrMoR92vFUDpWRJzmflw+V99t0el gNlGlVvVMZlDKYJ01Ky4ZpwitEpkIeCJgb6JBi1Dyl9RHT7ngNc+/BYs4yNH30c= X-Google-Smtp-Source: AGHT+IHS4UMF831ciy4ADYrkN6MN8XRIU/+ABp6RXg/kfJImSRaWpJ4d9LHHjwWd5W66OdxMWqPoXg== X-Received: by 2002:a4a:b106:0:b0:599:c981:61f6 with SMTP id a6-20020a4ab106000000b00599c98161f6mr304994ooo.4.1706146544311; Wed, 24 Jan 2024 17:35:44 -0800 (PST) Received: from localhost ([136.62.192.75]) by smtp.gmail.com with ESMTPSA id v11-20020a056820100b00b00599bcaaaf23sm222838oor.8.2024.01.24.17.35.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 17:35:43 -0800 (PST) From: Sam Protsenko To: Krzysztof Kozlowski , Rob Herring , Conor Dooley Cc: Tudor Ambarus , Alim Akhtar , Sylwester Nawrocki , Tomasz Figa , Chanwoo Choi , linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 0/2] spi: samsung: Add Exynos850 support Date: Wed, 24 Jan 2024 19:35:41 -0600 Message-Id: <20240125013543.31067-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Enable SPI support for Exynos850 SoC in spi-s3c64xx driver, and add the corresponding bindings. It was tested using `spidev_test' tool in all possible modes: - Polling mode: xfer_size <= 32 - IRQ mode: 64 >= xfer_size >= 32 - DMA mode: xfer_size > 64 with 200 kHz ... 49.9 MHz SPI frequencies. The next 3 approaches were used: 1. Software loopback ('-l' option for `spidev_test' tool) 2. Hardware loopback (by connecting MISO line to MOSI) 3. By communicating with ATMega found on Sensors Mezzanine board [1], programmed to act as an SPI slave device and all the transactions were additionally checked on my Logic Analyzer to make sure the SCK frequencies were actually correct. This series is supposed to go via SPI tree. All other related SPI changes are independent from this series and will go via Krzysztof's tree. Changes in v2: - Collected R-b tags - Split the initial submission [1] by 2 patch series - Changed bindings patch title to "spi: dt-bindings: ..." [1] https://www.96boards.org/product/sensors-mezzanine/ [2] https://lore.kernel.org/all/20240120012948.8836-1-semen.protsenko@linaro.org/ Sam Protsenko (2): spi: dt-bindings: samsung: Add Exynos850 SPI spi: s3c64xx: Add Exynos850 support .../devicetree/bindings/spi/samsung,spi.yaml | 1 + drivers/spi/spi-s3c64xx.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+)