From patchwork Thu Jan 25 15:16:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 766255 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 42B9A1C6AF for ; Thu, 25 Jan 2024 15:16:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706195803; cv=none; b=g63+EuuqOGVsf6zJ++DmmctgPpp/z89uFE+WoaGywjiJdjFvaKZ9USTgrhEPNtTzaySkbL/GfRPnJ4mxGEvRjRHZbb+T5ydZ8mRUe68n55qeuwqCqJxS79OTvhIzvXIfI4yIiogacgIhk6tl7EW3RVV38zHLBksCDlIZut7xJgc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706195803; c=relaxed/simple; bh=4BxrtBPH2UllVjdx17u9FU/VESUsZNydVxtjXqe+9sA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Hc7J7j1nIzZ+TqHa+EU+LWxNxX5IFMx9IxQCsf28Ov+uXQtCXJGLT9+Oy2h9+wHTWzzuRMJLP0ZZPso2OCeUi4lq/ryK6cYmGQt76Pf1JeeIe5RtLXGVTv4kUKp+xtnKq3OSEM/oWz112xB+y98vC7PlExHp8LxXXESBy/FrlK0= 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=Iw501bHG; arc=none smtp.client-ip=209.85.221.45 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Iw501bHG" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-3394446205dso2465931f8f.1 for ; Thu, 25 Jan 2024 07:16:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706195799; x=1706800599; 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=qQoIeZ794qaGVa7O+x2w9XHa6gq/yapDW4Z31do6ZCo=; b=Iw501bHGTfzYMCwqniNCE+J9+6PVIIFgfKJ4FPVfbZNJqJIIiljY2GVh2aZ2tSdISc QAJMqdKVKCfO9vuyKXY1kx3+N318yUy6sHVS/CNCjN+3pjjhQASIhXoQKOy5G2a3oj+N cwKKAiIBU3oJK9eH60KgaSN6htc/aprAzogOL8JiETYIYiZ+RswZWiRyRZg+X2u+JA+c 5bAqpzMs2vrLAZkQOr3KcaJyFEmlJpSB9AFvTBh5lNcd1kK4bKBYa9JLICIOuyi1idgq gGoGNR1uYRtIVVVbRhKi7Diy0AhZpW3XlCnS3+C/ZlyjqCrX/fJ7AmHUi992UBvtBSss /ZDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706195799; x=1706800599; 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=qQoIeZ794qaGVa7O+x2w9XHa6gq/yapDW4Z31do6ZCo=; b=KV6Mzw6eQiQcfYlyjsUb4pzb4yXUmg/EW2QW7DlmnYO6+/MQdktNEGoKe1H9KSTeer Oxu1AQk+oQNr5mphdiV88lHoWNiXfkGf7dCleXBrEZHwM38WJKUGORckX40FO6w+ltZw i2KlTXKoI2KGKUmuEKSXFlW293fPoZGVZhPpmy94aLB0zTnNM12nNf5MksqdQSjMK6TC W5AOl67uLbmr41eCa7J+Qqhn5sDQRtlD3LbNclS+AfL5ksMHreuRxfJZsi7CjB7o+e8H 1BFwN0rxVCVZjcqCj3n2d8RjIJZvnSinuPW46PUEsEp4mxDXwwD2UNDxRkqo+JDX5qpm 34Cw== X-Gm-Message-State: AOJu0YwWnIALZPyY5fEwOxUAJJ+cg6cmQqolmHNzwL4VUoLp+Tx/uae7 bqyoQOMWQWuWV1EEVI8REf90o0GTIbJrUBhYhH6P9FzZdFoPBP/Ub5ZpFSL4Ot8= X-Google-Smtp-Source: AGHT+IHP8rPbXmySZmV4hTwPoeW+IcSMERM2waGJhBWSvZn39MNoFHAqNGw/HYgSokHmRAreNlQqww== X-Received: by 2002:adf:e9d2:0:b0:337:bba4:6bdd with SMTP id l18-20020adfe9d2000000b00337bba46bddmr664866wrn.54.1706195799478; Thu, 25 Jan 2024 07:16:39 -0800 (PST) Received: from ta2.c.googlers.com.com (88.140.78.34.bc.googleusercontent.com. [34.78.140.88]) by smtp.gmail.com with ESMTPSA id q17-20020adfcb91000000b00337d3465997sm3184656wrh.38.2024.01.25.07.16.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 07:16:38 -0800 (PST) From: Tudor Ambarus To: krzysztof.kozlowski+dt@linaro.org, broonie@kernel.org Cc: robh+dt@kernel.org, conor+dt@kernel.org, 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, linux-spi@vger.kernel.org, andre.draszik@linaro.org, peter.griffin@linaro.org, semen.protsenko@linaro.org, kernel-team@android.com, willmcvicker@google.com, Tudor Ambarus Subject: [PATCH 0/7] ARM: dts: samsung: specify the SPI fifosize Date: Thu, 25 Jan 2024 15:16:23 +0000 Message-ID: <20240125151630.753318-1-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi, The "samsung,spi-fifosize" was introduced in the following patch set: https://lore.kernel.org/linux-arm-kernel/20240125145007.748295-1-tudor.ambarus@linaro.org/T/#t I expect Mark will provide an immutable tag for the bindings so that it can be merged into the samsung tree. We'll avoid this way using the property into the device trees without having it defined into the bindings. These patches close the circle and break the dependency between the SPI of_alias ID and the SPI driver. The SPI of_alias ID was used as an index into the fifo_lvl_mask to determine the FIFO depth of the SPI node. Changing the alias ID into the device tree would make the driver choose a wrong FIFO size configuration, if not accessing past the fifo_lvl_mask array boundaries. Not specifying an SPI alias would make the driver fail to probe, which was wrong too. Thus I updated the driver and I provided alternatives to either infer the FIFO size from the compatible, where the SoC uses the same FIFO size for all the instances of the IP, or by using the "samsung,spi-fifosize" dt property, where the SoC uses different FIFO sizes for the instances of the IP. This patch set takes care of the second case and adds "samsung,spi-fifosize" for all the SoCs that need it. Cheers, ta Tudor Ambarus (7): ARM: dts: samsung: s5pv210: specify the SPI fifosize ARM: dts: samsung: exynos3250: specify the SPI fifosize ARM: dts: samsung: exynos4: specify the SPI fifosize ARM: dts: samsung: exynos5250: specify the SPI fifosize ARM: dts: samsung: exynos5450: specify the SPI fifosize ARM: dts: samsung: exynos5433: specify the SPI fifosize ARM: dts: samsung: exynosautov9: specify the SPI fifosize 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(+)