From patchwork Mon Jun 27 06:47:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Park X-Patchwork-Id: 12896269 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32FDCCCA489 for ; Mon, 27 Jun 2022 06:49:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232415AbiF0Gtr (ORCPT ); Mon, 27 Jun 2022 02:49:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232444AbiF0Gto (ORCPT ); Mon, 27 Jun 2022 02:49:44 -0400 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C665410B1 for ; Sun, 26 Jun 2022 23:49:38 -0700 (PDT) Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20220627064932epoutp027e2a38de87956882562768ed6c15997d~8Z4JtWxyF1747517475epoutp02T for ; Mon, 27 Jun 2022 06:49:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20220627064932epoutp027e2a38de87956882562768ed6c15997d~8Z4JtWxyF1747517475epoutp02T DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1656312572; bh=B/R4yfBkH5CP2rZdxW6UR9QRkk+o2aIAV9MsziGKGg8=; h=From:To:Cc:Subject:Date:References:From; b=XwAIfCLGmSlWIJfCdHPOluz+YWRSJlMdGI/DXOSSAm6r50ptR6tzKuYFDjKCeWoqI x/SPytKkMK8xBdlLRazthKPvI/N+9UgpR91DBot+rmZ4nd63H0ZIZQhWg/NjFx6UUR yo5TjdFjZtpx790RmHBwXm9iVu5HhfMOgdz14zDM= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20220627064932epcas2p3a76bdc88ffcf831db99bd02f08367846~8Z4JJU9Am2829428294epcas2p3E; Mon, 27 Jun 2022 06:49:32 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.36.97]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4LWdcq6f7tz4x9Pw; Mon, 27 Jun 2022 06:49:31 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id 4E.BB.09642.BF259B26; Mon, 27 Jun 2022 15:49:31 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p1.samsung.com (KnoxPortal) with ESMTPA id 20220627064931epcas2p1944df2c6c54339de17e32c7116837f52~8Z4IaWAsN1429114291epcas2p1g; Mon, 27 Jun 2022 06:49:31 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220627064931epsmtrp1079dfbc81ef4a57225adc6dc981cab2d~8Z4IZV1QD2249922499epsmtrp1U; Mon, 27 Jun 2022 06:49:31 +0000 (GMT) X-AuditID: b6c32a47-5f7ff700000025aa-63-62b952fbb723 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 9C.89.08905.BF259B26; Mon, 27 Jun 2022 15:49:31 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.51]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220627064931epsmtip2774248f36d5e497f19797450d3e64b35~8Z4IJ4nGz3088130881epsmtip2V; Mon, 27 Jun 2022 06:49:31 +0000 (GMT) From: Chanho Park To: Krzysztof Kozlowski , Andi Shyti , Mark Brown , Rob Herring , Krzysztof Kozlowski Cc: Alim Akhtar , devicetree@vger.kernel.org, linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chanho Park Subject: [PATCH 0/5] spi support for Exynos Auto v9 SoC Date: Mon, 27 Jun 2022 15:47:02 +0900 Message-Id: <20220627064707.138883-1-chanho61.park@samsung.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprKJsWRmVeSWpSXmKPExsWy7bCmqe7voJ1JBn3vTS0ezNvGZrH4x3Mm i6kPn7BZXN6vbTH/yDlWi74XD5kt9r7eym6x6fE1VosZ5/cxWTR+vMlu0br3CLsDt8f1JZ+Y PTat6mTzuHNtD5vH5iX1Hn1bVjF6fN4kF8AWlW2TkZqYklqkkJqXnJ+SmZduq+QdHO8cb2pm YKhraGlhrqSQl5ibaqvk4hOg65aZA3SdkkJZYk4pUCggsbhYSd/Opii/tCRVISO/uMRWKbUg JafAvECvODG3uDQvXS8vtcTK0MDAyBSoMCE74968m2wF2zgrHp7maGA8xd7FyMkhIWAi8WDy UkYQW0hgB6PEzp8+XYxcQPYnRonji9eyQTjfGCU6/89mg+no+jqRHSKxFyhxpJsJov0jo8S2 kw4gNpuArsSW568YQYpEBG4ySkw/28cE4jAL3GCU2DtjPdhCYQFziVP3roKNZRFQlWiZ8J8V xOYVsJdY+Pc4M8Q6eYkN83uZIeKCEidnPmEBsZmB4s1bZzODDJUQ+Mgu0XBjA1SDi8TCo7+h bhWWeHV8C9SnUhIv+9ug7GKJpbM+MUE0NzBKXN72C6rBWGLWs3ag6ziANmhKrN+lD2JKCChL HLkFtZdPouPwX3aIMK9ER5sQRKO6xIHt01kgbFmJ7jmfWSFKPCROHaqFhE+sRFf3D/YJjPKz kDwzC8kzsxDWLmBkXsUollpQnJueWmxUYAyP0+T83E2M4PSp5b6DccbbD3qHGJk4GA8xSnAw K4nwvr6+NUm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W5ed983Q+eTGc74oZ0wN1LvFTuhlSXEe3xjxkc3/67ubZBbs3f3G4d2Lth9uG 2zo4Foc4rz0V/8Wpfofhg/szj/Su10zJULzbp+bndcLQu9LomUWXs9S/97evSEUEBl7Yu1cs bYkxk7rotIfdGUqpjyQZnWZX6jkfne70yTV9QUfq4zab83OUPKqnz6s/lej/z2Hz5BYPqVOv V1daaR1x72wNCXAVqv9/2ofnVGdz1l+222JeF3uPaFrPZXxct+OozgmWR5qfG09XJeTmR17q 6JnwOnNfYrh19r1YDQENh5cLQ2R94rXVlTiTSzllrzrkqF0Pa9p1TECJpTgj0VCLuag4EQAp 6mHv2gIAAA== X-CMS-MailID: 20220627064931epcas2p1944df2c6c54339de17e32c7116837f52 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220627064931epcas2p1944df2c6c54339de17e32c7116837f52 References: Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Add to support Exynos Auto v9 SoC's spi. By supporting USI(Universal Serial Interface) mode, the SoC can support up to 12 spi ports. Thus, we need to increase MAX_SPI_PORTS from 6 to 12. The spi of the SoC can support loopback mode unlike previous exynos SoCs. To separate the feature, we need to add .has_loopback to the s3c64xx_spi_port_config. Furthermore, it uses 4 as the default internal clock divider. We also need to clk_div field of the structure. If the value is specified, the value will be used. Otherwise, "2" will be the default value of the divider. Device tree definitions of exynosautov9-spi will be added in separated patchset to include usi(i2c/uart/spi) nodes all together. Chanho Park (5): spi: spi-s3c64xx: increase MAX_SPI_PORTS to 12 spi: s3c64xx: support loopback mode spi: s3c64xx: support custom value of internal clock divider dt-bindings: samsung,spi: define exynosautov9 compatible spi: s3c64xx: add spi port configuration for Exynos Auto v9 SoC .../devicetree/bindings/spi/samsung,spi.yaml | 5 +- drivers/spi/spi-s3c64xx.c | 49 +++++++++++++++---- 2 files changed, 44 insertions(+), 10 deletions(-)