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: 20491 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp535300dyb; Fri, 16 Feb 2024 06:07:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWpA2Zi3yX/eSQSpw4riLzRM3xceGLtOstam0XN4RRqH1JB9Z9aTA9bnoHzL6knTgAzhWB4k2Uj4RvlK1FVhIVz1NPpUQ== X-Google-Smtp-Source: AGHT+IH+jNyagApx7OKMclI0CdGDF7Wr1NFylD/77pyS7yH93/0NLzcJcy6Ub7KnFVRUcJTnQSPK X-Received: by 2002:a17:903:41c2:b0:1db:a336:1534 with SMTP id u2-20020a17090341c200b001dba3361534mr2752147ple.59.1708092479297; Fri, 16 Feb 2024 06:07:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708092479; cv=pass; d=google.com; s=arc-20160816; b=vTHdUCUpzKqU1xkeqF0uSu93v75wngPdoj9CQBB9Qq3GrsqU5XVxu69Cw+Z1MsH2Ps Y7TaEVdvJu3Pn7g/yjASpLAx3SptH9WZ2BbTXZlqVwSzuVXDmSKB3PQEHibgmsr1Y/oG Up/GF7VzZA9XbCxMlD/+f329mnqsxpWJuwYAwCyCl7zmzT3SB3xHq0swrr4OumkbDxqH GO2QrmlqPZjbz43myqbgGYKhqGBAtVty2aPCn3bnDC4+Qrl/KN3x78jT22hkOGDXsPFo N6kf72gWVgAgJ2OhumtS13IOwCVhQMfpwj1he2/Fk1ulc/jR7Mjn4zyINXtbh/Fu/sAd CbWw== 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=bFFOnkuhdy25mEzIkoji6xOLVUrxNj5AoQeuBe9eLH4=; fh=yfSZKiR9yIeZXmnjmAuvHlTIuZ0XAUgrrQGBfwtZtL4=; b=fyw8c711vRm1zx1m/KYfe+LWc6b1V34aFidlG/TEYwYZmrju3xZTfQh4pWCuNGDFhF 8Na5k8HO+VcgN7JyvbmILrAK7xuhdMPodgz8YJAKbASnvyNcy6G9S1Rbhvb4dKBE/s/H MpO5eIsxQL+q3XgeweD3ramWl22FA8ZqXmECtcuBLom90yjWUl0HY4vWUGGZ6JOR6jrN 8xUji548quplmbfnDg1sRqjt5JX9whajPtZxgjmjmd0hq2OEV5nRdZ3XbmB/Y5A7x3Aq FpQekFc41ix5N6xhuRHCVZRY1iTPJ3wGIY9qZqbsZK7H1rVHt43+aquNXDtuyM7VQV8Z Qejg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PNrOYDpG; 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-68696-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68696-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z3-20020a1709028f8300b001db5933016bsi2997998plo.188.2024.02.16.06.07.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 06:07:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68696-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PNrOYDpG; 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-68696-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68696-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C17FC284F13 for ; Fri, 16 Feb 2024 14:05:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 69B2412C817; Fri, 16 Feb 2024 14:05:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="PNrOYDpG" Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 40DBE12C550 for ; Fri, 16 Feb 2024 14:04:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708092297; cv=none; b=ECIgLVNlsxW1IgFFi74R/qm6UPllDnWS8ifQ8sm0jEY0Ctlh53DO4FTP/+w7YAgaaf9xhbyu40lNAFVo6teo9NuXpB7wctSMOgRyShdEPbS5DpLtnzn0AFjQ3Ilh7oKyliKAvNAZTOJzaN5lSr4n3ux+3Cl7ENAA93aSupUO6is= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708092297; c=relaxed/simple; bh=uMXzwh5LI98M06E5LlPIWoA0Gxr0PUNOn3He28YGDe8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KSUk1kdTNYsuRkCG97Y47gnS4Ocq2jpRbewfkCCe7OELr7UWcYnRCnUuIHhl95zrd7y0jPwqb6uitgaADCXC5h+P0wX7Vp8fZsngu8Oqm+GEcjjFqLB+ji4yqpkEWdGSKwH0SzpHvFYclBqSBokFfoXuN4aac7CkDrLhZjRyOBs= 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=PNrOYDpG; arc=none smtp.client-ip=209.85.167.42 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-lf1-f42.google.com with SMTP id 2adb3069b0e04-5129c8e651fso160970e87.3 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=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=bFFOnkuhdy25mEzIkoji6xOLVUrxNj5AoQeuBe9eLH4=; b=PNrOYDpG9YuORqGKV8MCfkdCgr0wHJG+cWbFuo/IFiTyvhxJINZtqWGXr7/AEYpk0p ogGagbVAEw+HjOTIIfrxCebfPAt+JCh98ifRLD/u+mgz+wA4REZVeG0ZbMj0fomLM29l Z96NhC0rx2ooW9mGVL9AxN66stolSrvgXtmc8+OLvYIkdGqgCIfSctXpmhiCrY8pUzY4 04XGwjvQKdD4wkKdR4DIZYaPOqJr7vnE8Lztkx1LkAzp8vH3xHWzF8rZtNxJOeFTmzsx ZMzNnBywEgsl552FuHY1cxD5+2M9XVSocilCCZGZljq93aveMw6MaPGxK2QIaegKNbd/ LDtA== 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=vImDtXYZQ0XXwBdobs1jJ5RaVJJ802LTUz+SJBf0oPnfGFHCmBISHyYt7HgqDAkB7V CQBfvTZyBxeSihPrxNvJDqC4v7/0yQWeD1N8ZlQUQxiYeIDKD/EcDk+5l+5otFk9Ay0d li+9gWNYChER5zCCncoT9bWA36e0vrTsIxZTQE42cLCqlGdqPnLaptyGLxDR+HUDmZO0 CwgR3Wq6v4j8VWDWIxuS8KAZlijv8F885jRBvZFTfAqxJoHxKwuRFoQXp6NJ7zBdVLdz wyWlX1bV1k/y5f3UzJyaNYdNb13g4hVAEAlZp0Sv0jpskBzInQuM3HKfhsH/T36ClOWA mXhQ== X-Forwarded-Encrypted: i=1; AJvYcCVwzfL0eEZ4plRRr6wD0FG4IzmVupXIifgZirNlCP/IwEwjIEem2Ua8+wBCpWCwCmZ8C4Pt3GKPhCy3dmaLCMX3V8l4dbVC+XbQYklG X-Gm-Message-State: AOJu0Yyqw7ij0lZP2VHlFldLQRLoW4ZruFstVh+tkCLRUJEn/NX2fz5Q sNEcGMtwVHb78M5zl7XsA0Z//eg2lCOGyZPAZ36NET7dW9onGo+A0XGzy048utQ= 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791064779721943243 X-GMAIL-MSGID: 1791064779721943243 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(+)