From patchwork Thu Jan 25 01:35:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 13529791 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 A136FC47422 for ; Thu, 25 Jan 2024 01:36:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=hi7S0iHXKvghr4aAf4wcadGQOW1YeVbZrKJRZjOSDEo=; b=yNtC7pI0Qw9azu HsH21znIlmP4ByfsI8u7VXu5qcmYk7KF+Vyad1N/I26euhLHGNOeDDNaSxO9EW28vWp6wBosGkFQf kmIAaRK7CT8Kf7/fGkpr5kod+K2XulTAEmIEIpF/qoVhbmTWbhB1Mu9/ab1C4blBxp7s5uJovI2in tFB/Oq6u0BiNP7KXD+SYush62+pgb3ywnWzzh4RGF+yv2nLefVQAXoxLt+lM5aV1Ru9RQAlyA1p/M qf7PyClphugyXwpQUsmOAs+WjGKWgyArjTXHeWUbKT/ti4AWV2ki/3LO6Uet9mByAcHP7FGeWS+AS 6Ui53nHF482x5B3YTAyw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rSoec-005our-1V; Thu, 25 Jan 2024 01:35:42 +0000 Received: from mail-oa1-x2c.google.com ([2001:4860:4864:20::2c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rSoeZ-005otl-01 for linux-arm-kernel@lists.infradead.org; Thu, 25 Jan 2024 01:35:40 +0000 Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-2046b2cd2d3so4511913fac.0 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=lists.infradead.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=HmLJ4pjyxdxj96G+WjcniojFXKE5BFfbsLmykOqOvqO1iX4h/P3ucKbKOPGVmazHm2 6dHDiSkM2DbEeqJgEV9/vxJ6jbroS+cF+KVUBVYIsBJA4VuAgTIyp18N3XndOVVlwOy0 Y3vRWBpZtXXEZnn0vxrtpi+7xNHBnWZb64jEcirh0/xUPy88Z6Fj3Za3CMlc7fHSuIRk WaX4C8epqopOT9doEQmnA2rwz3V+kfFkbIFZseeHnhZCzvUIEBLcK2vNI4pw3OarnKQg ZjMqQstyWJBDZyXLcX9D0aHpEZl9zzpe7cKgq+Ygcg/dFLXdmZbRriZploki2Ox7AqfI MKgg== 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=CKRztUD9aJtivkb/AGc33X4RmZ/yEhFLI+/mcOC3X6ltvy3v1XGkoLCaAPYG+0Zk64 nqEsrgiLSwNdAUlAEXpAIFEPUqoNUuGM1M9T9acqpssnl567FAK9Gzu8iNAS6V7XvBqP qTusFzrQJirtayQILtmRJ9YYmHllAHviYgjjTu8G9jCvnC7wgx40q1IwgNbVC2Q5VNNQ MvGr4+aCmrijcNwSmfM7orIF+pj19BqZZnIbKz8x6a/8UGEgmD42+6/TBKknYouaW9yJ ganhoHJXbixFCKyh/fSci9YQFYheeC8FLOwoCVEq0QmumjY2A+Ry9JJuUCuMhlBIq3l0 DQww== X-Gm-Message-State: AOJu0Yw3WhEfYp3wb+iJ9rfIBCg/uD5u5w+u2HEU5vEgn6VKNn7lNmZa Zt/BQEnl3b1Eu0M3X0EKMHWZ00DVmWNw5hO9/P5p46bcldWkWvlLk230uR03EPI= X-Google-Smtp-Source: AGHT+IF9XQTNJJ/f8xT4W68lLb3MvI4ACc9ioQKWxUFT2QjM9BvvZGNao/6NUeDg1g/nqtz/28pKUA== 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 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240124_173539_109898_51C8E879 X-CRM114-Status: GOOD ( 12.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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(+)