From patchwork Fri Feb 16 14:04:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13560054 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 A6394C48260 for ; Fri, 16 Feb 2024 14:05:09 +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=hbf1GDMd+VdAFjEWXTpgqtWb+YDrVnO7AsjnX9TbDwU=; b=j/kf70Oo16tie2 1QLoV2k42q5uSqDMAakLys+RGJfOEModghU0w1woYT4J1ALEWb6yjabShPzOVy/LMuro9xguxf7iT lSHxxOdRXD2X+2ErjeffdLX1Jk6Igy0LyMhq9CS6ScYdXafSSpV+6oaFPhaG+ZxskPKaKUlO8k6FL iL4WCdN0FOCdm6Kuq46Td7jzn6YWYhTS9cF9rlkSG1qbRHgWlYR/uk+2oWiuQp7mubqwNBR3cgFt4 BlNEaY9wsV2WPt4bN/ahHSCYqw3nH8/VH8rH/SL2dZvStZChl4OcEaP8FiHcwA3g9BLWkMwH52Lks uZ4y/s3zUqYeqRJ0fo8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1raypm-00000002WvI-1IqE; Fri, 16 Feb 2024 14:04:58 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1raypj-00000002WtL-1LEd for linux-arm-kernel@lists.infradead.org; Fri, 16 Feb 2024 14:04:56 +0000 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-511831801f3so2125545e87.2 for ; Fri, 16 Feb 2024 06:04:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708092293; x=1708697093; 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=bFFOnkuhdy25mEzIkoji6xOLVUrxNj5AoQeuBe9eLH4=; b=BABhfaZjo6q4YMWcCn7eV6rMFNZsGqZCcOC3IuPZHasxFwDveyJtS90bSD4X94DzET +LJcc4e6lVr0VDmgkt1CEuRFdsFND3pVwV9DOgI+tTtGFmNxeoIBkH0OozPSqGw564Jw BF/rvR1hZLDfB8TWvAhA6niQ0QrBB0FFZLxyoHgVWan5stQY5VCxByjA1ZyJwOO9P+hk BSFSvEVLzUFQcOYVZ2PlaR05H6vxIs5kwrvSjbJx7rdkbcsodi2JrabVzWxAjA77MtKR 3uDKPUA5w/NgusYQALZl0YuVWOEyLYsymwBLGFUNpfwwyqUEgbzBNeeLnK+IoJeELpyg 3McA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708092293; x=1708697093; 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=bFFOnkuhdy25mEzIkoji6xOLVUrxNj5AoQeuBe9eLH4=; b=pIZKfdDMSB5X6mlSEMFYtk6aMKIN/MxQa4RR1HxvAaseKF/F7y1Dt/VRDU2JQCB85s dJAtCf/k5d1SpKPYzfEFsc277X6fPjg+h8127q/dGmEsf/XGrhrqjTRlyxDpBwYtzrTC N+P79IutzUuCgFvMUawSBM4OH71gddSSQ0sgHXWY8NANu6UktrXPxWdizuuRMZCHA7MG IGObtGYlObMhEqyoDKWyRqEQWX1TmQYVs2r0YflikATOKArHrx519AOgCo4Hu8X3ABxs 6NDT5kxuIM9DSk/Z9CJTVZR+ZoYCi11C2p2Af5X1EVABzDsNpA3mVYbJa18r//rPSKlr /Rcw== X-Forwarded-Encrypted: i=1; AJvYcCW9EH7inJQXcaYITc/EF8YvsNY9I0y9jCO2Y9kWZy7bs4+Hjkt/Ackyk8+tdSo/2PTmV+39LIbHHHv/IU8TC9UpcTL3b/MDNUYMm+B5weObv6QlSTk= X-Gm-Message-State: AOJu0Yz/WtFHY8BuSXvTCmn9GL7Iw6+fl80x+MzcypBklDD6d3q+FoOc p+Gx7tVKhfKEgwOSzi53UPC/89cxovOsiAyUEyr9MSI9hFzxEIxp5HWGbgW7vUY= X-Google-Smtp-Source: AGHT+IE+1C4hULCImLj3jDWXQQ09a49vFqD6OoQ+yregE7p2ail5vYnmur2AvfavYdCsKkS65YKc/g== X-Received: by 2002:ac2:5585:0:b0:511:8581:4352 with SMTP id v5-20020ac25585000000b0051185814352mr3468228lfg.34.1708092293128; Fri, 16 Feb 2024 06:04:53 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 06:04:52 -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 0/7] ARM: dts: samsung: specify the SPI FIFO depth Date: Fri, 16 Feb 2024 14:04:42 +0000 Message-ID: <20240216140449.2564625-1-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240216_060455_381755_60B5FEDE X-CRM114-Status: GOOD ( 11.83 ) 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 Bindings patch sent but not yet integrated: https://lore.kernel.org/linux-spi/20240216070555.2483977-2-tudor.ambarus@linaro.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. Update all the device trees that have instances of the SPI IP with different FIFO depths. For the SoCs where all the SPI instances have the same FIFO depth (like gs101 and exynos850), the FIFO depth is inferred from the compatible. Similar SoCs shall do the same. v2: - use "fifo-depth" property (instead of "samsung,spi-fifosize") - update commit messages - reorder patches. Last is using common sense for determining the FIFO depth. The nodes are not enabled in any device tree, thus upstream will be fine even if comon sense fails. I guess we can update the device tree later on if needed. Or we can just drop the last patch. v1: https://lore.kernel.org/linux-spi/20240125151630.753318-1-tudor.ambarus@linaro.org/ Tudor Ambarus (7): ARM: dts: samsung: exynos3250: specify the SPI FIFO depth ARM: dts: samsung: exynos4: specify the SPI FIFO depth ARM: dts: samsung: exynos5250: specify the SPI FIFO depth ARM: dts: samsung: exynos5420: specify the SPI FIFO depth ARM: dts: samsung: exynos5433: specify the SPI FIFO depth ARM: dts: samsung: exynosautov9: specify the SPI FIFO depth ARM: dts: samsung: s5pv210: specify the SPI FIFO depth arch/arm/boot/dts/samsung/exynos3250.dtsi | 2 ++ arch/arm/boot/dts/samsung/exynos4.dtsi | 3 +++ arch/arm/boot/dts/samsung/exynos5250.dtsi | 3 +++ arch/arm/boot/dts/samsung/exynos5420.dtsi | 3 +++ arch/arm/boot/dts/samsung/s5pv210.dtsi | 2 ++ arch/arm64/boot/dts/exynos/exynos5433.dtsi | 5 +++++ arch/arm64/boot/dts/exynos/exynosautov9.dtsi | 12 ++++++++++++ 7 files changed, 30 insertions(+)