From patchwork Fri Feb 16 14:04:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13560059 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 AFF11C48260 for ; Fri, 16 Feb 2024 14:05:20 +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:References:In-Reply-To: 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: List-Owner; bh=+94jrssK9nRCNFGBLsprC9Dsj5oQLWZkM6dZfMlPo8o=; b=N/Z+ELqzLmsrAg PSIaB4r07B4G2Vm2JKLwzCLblnnDqAY+lojMFVU0dcksn9L7A6M4KJwtYc9ZzrRpg3/KI/OUTKi5R c805XkzzcUDw2iisnEyDeUp2QVenyG1+lgvpP86PLwGJA008KF0uBw5HvJADOeMXv8eivvwbFj6O0 24TQJOm1PzvouvQjJQHtNXNboovrDJV2SG4zFstyzf+XW2GLrcJmzkdEf94fUO/+r1cxlJQpn/ydC YotGJplobtJGGNcBsV+MUaLYkBWa3Gglaa8hZf+nIQib9QnCtmZgrBdCjFHMFsuF984IY7hM6lyA6 2bEwTVGvfzdjus3272Sg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1raypw-00000002X0g-0Xch; Fri, 16 Feb 2024 14:05:08 +0000 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1raypo-00000002WvO-1HIS for linux-arm-kernel@lists.infradead.org; Fri, 16 Feb 2024 14:05:01 +0000 Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2d0e520362cso21195811fa.2 for ; Fri, 16 Feb 2024 06:04:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708092298; x=1708697098; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=AJ7Tgql1DL0Frghi7Oag5F57dXBGRkIPbGxxgHm6Hxc=; b=acbbUwzWwjUeiM6wHVSBvbZq218hdpEAovv7iuXAFZ2GvMU+WLxRLaUDwwiOuWetX2 CpZKrpBK2uoMWRq2553Ea4pUdFuijdcBGCU6a/C2UI/W+H/8kQWN8yn97kbpUJuFnkng RjsYGbJ4eFCM11dDlJHPrkBtzeSysIvIksFdpx96Ihf/ub9JVp4XIzHCJpPWg2zGcKXQ URjneA46LCyDoyYEI15p/ESZZZ3RkTOg8/Zv8k8rHtX9EPRrLMSVwFQ7z7ZX5gqgIxiI mTYhdIZNJyqcIamgnx+6gLJiXQOZCQtO0DuHbdfaiOfzH76QLWMvwOjLE8hu8R7kQNas MDVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708092298; x=1708697098; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AJ7Tgql1DL0Frghi7Oag5F57dXBGRkIPbGxxgHm6Hxc=; b=W1lc2NmSlokwOsPy8SyLl1Rj/5n4GWOCBEpY9R2DlPcSK4REbSQGB+bq/Set9jd+fW ekHtLvzMD7fEHxHlLv4Al13ycDR8kq/wsrU7T+j9X6fUZY8ORhYzvxxBGvs+yhisIECV wfi2c9EMtQJ1Tg7v5xCICkTe6hsdFAaHAxB+Gyw6vCnafZ5uT9bJj4HXd1SL9xnNeDyA xEC8CH/n7s0vTAk3cyw87qxUTx1xePWZO1iZUpNvqDGqbINXh5YzbWtvmx1cQQwsEIzP oReOSHBLHg4ab5WEeu4RNsDyD+lzGzUoY5e36x3KubrfMSNIHwTTAudHizb1NfpLnMrE a7gA== X-Forwarded-Encrypted: i=1; AJvYcCUkp66Cf/xDAkkc8TeyhEh52iE5dGciFcfjuUr7RPgFAVnATH7IC4+qEASbaOmVbZ1+tuYoI1XBxvUkSqbOHQ1jbY2N1R2Twtw6OvVGAovmO77TvCA= X-Gm-Message-State: AOJu0YyWEl/gWLYKCWT0+GxI6ilBp0+kmKPTnX2+sVYTO9HR6k9nC5wl Gf20TV+K3uisFsLLUIUA6yAv1jdhzSlSz5nWT975Flsm14ngvJWApD95sNwgncw= X-Google-Smtp-Source: AGHT+IGa96Bfo9g5nXjjGLG0eTx75/Ggxg2VA+hGJqraejkAQYX30I75/4p3/e+XG2Q57P8TXVx7Bg== X-Received: by 2002:a2e:a686:0:b0:2cd:706a:8ec8 with SMTP id q6-20020a2ea686000000b002cd706a8ec8mr3392254lje.10.1708092298240; Fri, 16 Feb 2024 06:04:58 -0800 (PST) Received: from ta2.c.googlers.com.com (105.168.195.35.bc.googleusercontent.com. [35.195.168.105]) by smtp.gmail.com with ESMTPSA id az5-20020a05600c600500b0040e4733aecbsm2516628wmb.15.2024.02.16.06.04.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 06:04:57 -0800 (PST) From: Tudor Ambarus To: krzysztof.kozlowski+dt@linaro.org, robh@kernel.org, conor+dt@kernel.org Cc: alim.akhtar@samsung.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, broonie@kernel.org, andi.shyti@kernel.org, semen.protsenko@linaro.org, kernel-team@android.com, willmcvicker@google.com, andre.draszik@linaro.org, peter.griffin@linaro.org, Tudor Ambarus Subject: [PATCH v2 4/7] ARM: dts: samsung: exynos5420: specify the SPI FIFO depth Date: Fri, 16 Feb 2024 14:04:46 +0000 Message-ID: <20240216140449.2564625-5-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog In-Reply-To: <20240216140449.2564625-1-tudor.ambarus@linaro.org> References: <20240216140449.2564625-1-tudor.ambarus@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240216_060500_369833_EC34DB35 X-CRM114-Status: GOOD ( 10.43 ) 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 Up to now the SPI alias was used as an index into an array defined in the SPI driver to determine the SPI FIFO depth. Drop the dependency on the SPI alias and specify the SPI FIFO depth directly into the SPI node. exynos5420.dtsi defines the following aliases: spi0 = &spi_0; spi1 = &spi_1; spi2 = &spi_2; spi-s3c64xx.c driver defines the following fifo_lvl_mask for the "samsung,exynos4210-spi" compatible: .fifo_lvl_mask = { 0x1ff, 0x7F, 0x7F }, Thus spi0 was considered having a 256 byte FIFO depth, and spi1 and spi2 having 64 byte FIFO depth each. Update device tree with these FIFO depths. No functional change expected. Signed-off-by: Tudor Ambarus --- arch/arm/boot/dts/samsung/exynos5420.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/samsung/exynos5420.dtsi b/arch/arm/boot/dts/samsung/exynos5420.dtsi index 25ed90374679..196c6d04675a 100644 --- a/arch/arm/boot/dts/samsung/exynos5420.dtsi +++ b/arch/arm/boot/dts/samsung/exynos5420.dtsi @@ -658,6 +658,7 @@ spi_0: spi@12d20000 { pinctrl-0 = <&spi0_bus>; clocks = <&clock CLK_SPI0>, <&clock CLK_SCLK_SPI0>; clock-names = "spi", "spi_busclk0"; + fifo-depth = <256>; status = "disabled"; }; @@ -674,6 +675,7 @@ spi_1: spi@12d30000 { pinctrl-0 = <&spi1_bus>; clocks = <&clock CLK_SPI1>, <&clock CLK_SCLK_SPI1>; clock-names = "spi", "spi_busclk0"; + fifo-depth = <64>; status = "disabled"; }; @@ -690,6 +692,7 @@ spi_2: spi@12d40000 { pinctrl-0 = <&spi2_bus>; clocks = <&clock CLK_SPI2>, <&clock CLK_SCLK_SPI2>; clock-names = "spi", "spi_busclk0"; + fifo-depth = <64>; status = "disabled"; };