Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1476921rdb; Wed, 24 Jan 2024 17:35:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IHwO04UTjJX+z4wDIE9dRaNM98mhi8wn4WcR0R3QMGgo1xzw8gyzIIRHX52Cezun7Zn+/Wv X-Received: by 2002:a17:906:b09a:b0:a31:7ba1:ea88 with SMTP id x26-20020a170906b09a00b00a317ba1ea88mr46437ejy.130.1706146558249; Wed, 24 Jan 2024 17:35:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706146558; cv=pass; d=google.com; s=arc-20160816; b=YllOKohXRqJ+Fr1Rc7UFcCMCwk7hYgStwD4klPHdMCZWo+dbcpwK30nLQl0R4khL+z SoJ3+auw3F/M9e+Nclfxj7XJMZPSVQXHtFJB+xZ6c+t66i9xEFrHsbfgc4C0qNAVJPyK FcFoWPmYrrJjWk76aFWM8cJwubRRl/B4wD5pgYmQJi3nBh0KaJ8/ljRvwLgUNbKA3CAx feAkEqMs3jw5lq+cflaBNHiGMWVjxRLRIk4hDV62pwBAGEyY7GIvDx5wjahzsRDLrUdV oA7ZHaaAbSu7rDwWbSH919C7x7O7mv6LV4hpADNNEL+QlzerXjyXsPYHjn9xO+S2V4H6 p/eA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=g5NL15WLk6NkJypOkLe+mhvC699JlR9mZPB9t6UM0NU=; fh=vGXOfQrixa/dN9yyLeU+a1Q60iEKrI2eg0PAqzWXRIE=; b=eJTU2oyxVs8ZMj3m/Cb0TgoTnqYnFB5dv2LwEwC7iAaKhU4IOzPWcmIniOLcyDLGFD R0+98ssxQBJeWjYq4eTiViH2O+8xdnV9lVcGocfadYuOrE8S0D2o40E56hZV3+Dxsu9T OdHGDdDDyKUrL7q4Ccii9kLawVwgnTWqzY1rypE99XFn4eYJ7UkplHV/RLr9ihepR4Xh BEOV0Ed623YYX0z+IXhQTh4omZWMBjBv1oQetuoGhQ7aKBUkSNSITWHTjaWeN1JYtKng xQ8icP6nDTI+A91bJNIGxiRLcbLsPVfSfBCFfg5SIpDqKHMk7FLSrg/LJkcBtrQP0DgI jicA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZlF9QuT0; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-37856-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37856-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id l11-20020a1709060e0b00b00a2cc69ffb7dsi418182eji.980.2024.01.24.17.35.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 17:35:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37856-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZlF9QuT0; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-37856-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37856-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 05E331F22D49 for ; Thu, 25 Jan 2024 01:35:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DEB2867C79; Thu, 25 Jan 2024 01:35:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ZlF9QuT0" Received: from mail-oa1-f45.google.com (mail-oa1-f45.google.com [209.85.160.45]) (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 6A082EA9 for ; Thu, 25 Jan 2024 01:35:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706146540; cv=none; b=Vp+fOk9tk6JHl739mT64F7MAsSrljOAbBacMUhcUZywPUodxQ6Dh/aHi7VUSGA2Syqg0wqgUdjzbx66kZiY3M/RZ0H3beOECdlSQo+wucmaR8nGatjerm+ubhSyNfG4UvWZHSpmP/Eya53aTKQ5CElbK93nj+16AF8jEWOdfAIg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706146540; c=relaxed/simple; bh=ImPV6ylvDLNKhmYcU5bvYmZGFnnlYjliM2xywtcdAl4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=WSltNNmlo2x7/AVGgTBVNt9qr77Y3yOVjYRM8aLMS8JZuci8sq+IPjmqqwn4tZamUlTP9UjsHlblibL6qAM2PCrMaIBajWCU0g4IivAJHcKL38SCb+3kJA2O1Jf3RaijT/dM/tMpDxmSGFm5gObYCDGchn7dZxH5PvEVBT+uCXw= 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=ZlF9QuT0; arc=none smtp.client-ip=209.85.160.45 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 Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-214ca209184so214982fac.1 for ; Wed, 24 Jan 2024 17:35:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706146537; x=1706751337; 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=ZlF9QuT0jqYVCjLdwbvTfu3DWRrw/QMxuJDkLkLrIf9w2yM4ZCaOGOc6pWYsCdCnrP ZMvInpleH2CQEFqN1vJH25EDdoCzkD7VdWZtCucBY2+0OUWXOu3RuXfUnNq8+dWD2H6y uNcZiMMNIDEIchRWjqEw1zRNZTtvDqgm3NUA4KbDqWX3Do5pLNLGl1yKoPR4AD4c42m6 SmXjIJ2uay1TpxgeJLusxwzyCRgiZBWU9VIFdGD1IkwN8P7kUo/9bNvCOnUkuXEwCxo5 2Jvvv+EuMT1RbDPN1Jzn22PyWPYYG4y4pxl5efmyDWb9E02wcOy6eMQysMDOQZ5TesRm vv6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706146537; x=1706751337; 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=qVSEkuz2QKCHGhloxYtKIFWYK23ANX1oO2CSOLqn3hoEV8KRespRD8RQj+5J/pgD7n AdzMgx3QWQ5zOBU8SjTMKIDQZxcD3H1EK20WE60z1Mg69oSYNSsMySDAwrBYJmDO+37C Y7+Y0ve/TTW5FHbemjMR5oeqIdIZV4Ts4kr0mRyNeSo/dW3oz/RH2MIA925XLs4/xaKx 8eikY4zz/JUOMYwR3ldETJjYLuWQLbueTdbIK5cr5Os729G4XSf87Pvnd/8oOIjLx5ot bl6zB72aLdQyDVCAGnXuJ2L3dZq5k9pbpcIaDfIgnN4aHaEuQDK1i0I3RQLryJxQJrze +ZRg== X-Gm-Message-State: AOJu0Yxhqz0DyNZYCkyqPhZ7OpxBlyMBYvxykx/6tRHr6q5NZew26PwD idE/eK2U2nsx5KWPHdalAox+6eJCda2Olj9hPGYjNO78qxdGwpY/Ak9FwYhz3V4= X-Received: by 2002:a05:6871:782a:b0:214:88e7:ba98 with SMTP id oy42-20020a056871782a00b0021488e7ba98mr202211oac.107.1706146537573; Wed, 24 Jan 2024 17:35:37 -0800 (PST) Received: from localhost ([136.62.192.75]) by smtp.gmail.com with ESMTPSA id n25-20020a0568080a1900b003bbcaf2f27fsm2817304oij.27.2024.01.24.17.35.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 17:35:37 -0800 (PST) From: Sam Protsenko To: Krzysztof Kozlowski , Andi Shyti , Mark Brown , Rob Herring , Conor Dooley Cc: Tudor Ambarus , Alim Akhtar , Sylwester Nawrocki , Tomasz Figa , Chanwoo Choi , linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@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:34 -0600 Message-Id: <20240125013536.30887-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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(+) -- 2.39.2