From mboxrd@z Thu Jan 1 00:00:00 1970 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 36CBFC61DBE for ; Tue, 25 Aug 2026 17:18:47 +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=XOEmjFJTpywSf9wYmSqb8tkFGDh536UkVACF0wS6vhw=; b=gROjm/mGqqpB+s lYUtS13RZT2pL65vrZuMXh4mmb//LHUa90KLU8YfjKLH6r1Nv3SIe2jKoXAZd9T+FQi8rSWHTEN1o Fj3tLC/ThqDIV2W3BcI6LivJEIjOxJ9eWg3n0Gqwo2f93zkRghd1BrQSrSGpjatujCK6gMLvGyIkm mjppiGLrW2do52PQKvTwfkGsog7kyzP/saXqwilHcBgMPuG8jZ0+3hwj/5aLyXangHJ7T7kRsXRgu RLTkko9DnFcxI+HIar0guu1fGPstDj1CA27s+28mic2RqxAbHF6i5gKGi1fjH8omrY0Y6gd3PVFPP pKEapV1RRqjU3kv3cmJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wyunN-00000001BTl-1wnW; Tue, 25 Aug 2026 17:18:45 +0000 Received: from mx0a-0002e601.pphosted.com ([148.163.150.75]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wyunK-00000001BSY-2tTa for linux-mtd@lists.infradead.org; Tue, 25 Aug 2026 17:18:43 +0000 Received: from pps.filterd (m0380145.ppops.net [127.0.0.1]) by m0380145.ppops.net (8.18.1.11/8.18.1.11) with ESMTP id 67PEUwos1882698; Tue, 25 Aug 2026 12:18:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= proofpoint-05-2026; bh=CfcZ3asnTmwrkxDLnD+kXTLBg64BDPwemZSrihZFQ lA=; b=JRwJyI+0C8mh+j8fDIWViFFNnmdb0Cl0/RXQtrDQW7bFK2AJyFhiuTfgV gu3JA22+yUigXPxfp1yXJoxu7UYY0ntrI3my8kWWjXCAnPkc6QOvpgeoitTPfygx ugMF3JJvUrbwgnESWUdniP5v9s3nKL0iB1QZrXOAsYoOzj771WH5DRcKsvCcPr/4 5NQU6aVOb/eVKvhLNEYX5uMstg2Qn+MK/faeMkv2om5RoIx+c6n5bgsxO2yMkLib qOq0PlhwMPC2T4f3jectofw6wWjVwDz5vB2gHwWKSNhVmPJhAnhUdcBh4t30z3MI UtkFgZcxUARbVD3nc05tXKNvmPhiQ== Received: from bn1pr04cu002.outbound.protection.outlook.com (mail-eastus2azon11010058.outbound.protection.outlook.com [52.101.56.58]) by m0380145.ppops.net (PPS) with ESMTPS id 4g8xga5g7n-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 25 Aug 2026 12:18:36 -0500 (CDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tcf7sVBSk8RZkNIPX//nzZHEa7u+4rQ2Peh4qKG3d8PniE1C9ZGCqIDvM1O6OMGg8jyznFfEh6hN67+/nkkjJhl8u76N/OKfzSVNNENA5cxDUAKC4O5U8rzWYnNqWbgXcEIZyodUS0QfCL01XQ6hqw333J5dykX4Jk2vR4qeK+5CkMtpzAPfeGRgVAR/b0TghFNApmWe6gPHXFNGwOXRPwLx2I4lb/dXGqp2zV4AxGgSLJWx7hvv/dOTPmy67zDNMouYApbr95LGqO4jgu7CaatTV3Oz6y/PDUeqNSGEzUikuvAwia8Vphi4kQzcs/4uvAKEf7ORIIsMz86mSWM5Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CfcZ3asnTmwrkxDLnD+kXTLBg64BDPwemZSrihZFQlA=; b=bvN6KvW6RW02wP6WUAdxeQxQm3/SmGQf36GB162Nyr7Bra7b/MEC9fZeIkS7ugd4+1p3N0qgCKPONAJsa6drmTSXLT1CqdmeIxxnG6i0dgOU/fUfnSQwNCkVpsczlh8mL0IO3/9VjKQsfC5Jwc9RXi2t9beZrLacXy1Bq2WPm143nCk+86n8pTBTfmj9J9RR4Pf6CUzS6T8EHDJuULbGEnjuh3a8WZr0Nrt6xi9sISF8O+3pdlJtSCGVgiRQzw7qxtImaDxqhfaAYkZnDx6QHkfWQCM+WsTiUbWAW49kFo3KgwFXNG7BxFkUWiVFhNBTirwmt132FPn3tZY/dE7NBA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 198.47.21.194) smtp.rcpttodomain=oss.qualcomm.com smtp.mailfrom=ti.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=ti.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CfcZ3asnTmwrkxDLnD+kXTLBg64BDPwemZSrihZFQlA=; b=H3ONwIHVZcCQFxff7lnBNWSeFC5lJa/LoIbCyuR7u0afA8XGstbRQUfLREDXyEGOXmOB72Ljzsi2cc7s77LSvdJu26TWmTGmuD4tLDILcF9ZUxYoOqkiFffB9Os3MWEawIwQuWUXK0PCV6pog2NptdmzWKKV3p2z24XAU/CcTFY= Received: from SJ0PR13CA0110.namprd13.prod.outlook.com (2603:10b6:a03:2c5::25) by SJ1PR10MB5930.namprd10.prod.outlook.com (2603:10b6:a03:48b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.339.12; Tue, 25 Aug 2026 17:18:32 +0000 Received: from MWH0EPF000C6190.namprd02.prod.outlook.com (2603:10b6:a03:2c5:cafe::8c) by SJ0PR13CA0110.outlook.office365.com (2603:10b6:a03:2c5::25) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.360.6 via Frontend Transport; Tue, 25 Aug 2026 17:18:32 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 198.47.21.194) smtp.mailfrom=ti.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=ti.com; Received-SPF: Pass (protection.outlook.com: domain of ti.com designates 198.47.21.194 as permitted sender) receiver=protection.outlook.com; client-ip=198.47.21.194; helo=flwvzet200.ext.ti.com; pr=C Received: from flwvzet200.ext.ti.com (198.47.21.194) by MWH0EPF000C6190.mail.protection.outlook.com (10.167.249.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.3 via Frontend Transport; Tue, 25 Aug 2026 17:18:31 +0000 Received: from DFLE211.ent.ti.com (10.64.6.69) by flwvzet200.ext.ti.com (10.248.192.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.45; Tue, 25 Aug 2026 12:17:59 -0500 Received: from DFLE212.ent.ti.com (10.64.6.70) by DFLE211.ent.ti.com (10.64.6.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.45; Tue, 25 Aug 2026 12:17:58 -0500 Received: from lelvem-mr06.itg.ti.com (10.180.75.8) by DFLE212.ent.ti.com (10.64.6.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.45 via Frontend Transport; Tue, 25 Aug 2026 12:17:58 -0500 Received: from santhoshkumark.dhcp.ti.com (santhoshkumark.dhcp.ti.com [10.24.52.55]) by lelvem-mr06.itg.ti.com (8.18.1/8.18.1) with ESMTP id 67PHHf3R1436664; Tue, 25 Aug 2026 12:17:53 -0500 From: Santhosh Kumar K To: , , , , , , , , , CC: , , , , , , , , , Krzysztof Kozlowski Subject: [PATCH v9 02/18] spi: dt-bindings: add spi-phy-pattern-partition property Date: Tue, 25 Aug 2026 22:47:21 +0530 Message-ID: <20260825171737.776052-3-s-k6@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260825171737.776052-1-s-k6@ti.com> References: <20260825171737.776052-1-s-k6@ti.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWH0EPF000C6190:EE_|SJ1PR10MB5930:EE_ X-MS-Office365-Filtering-Correlation-Id: bb208be5-8e00-44c0-1cd5-08df02cce2e2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|82310400026|1800799024|36860700016|7416014|23010399003|10067099003|56012099006|3023799007|18002099003|22082099003|921020; X-Microsoft-Antispam-Message-Info: /1DemQgJqtpvlHvBVguUWFdIgxmM2bJirTurfBrRFXqp28hN74NRsW0dj0Ah8hwUh+S8C8ple33qpVVEd2RiyKplkgI3Cxip7vtGaVu15FFhEhQ4PwFNMdi14CwRq/SrJulPpuCVRYXYSswbJLnbUFxYO+G6U/0IGemLtI+mNlSK0s/6rFxcuu4b5rdSm+XrF+D9AoHdlgyPtPvEC0bL92Vz/Jwvjf4sNPA5ecZ1JasSKUu7dHRmBzHE6MqwRCHCcCCYU0hdsdr8w+CVtv2JVsFcy0WvAuNzr6iYA9k9z9bzQ6DKAPixwRKRIGqtLyYuHzNtdp1q8qt9H30CRp1ODqEfRkRSR2J2uNW6m35mEicboSyGSk+hvoOMUgz4M7i9I1y1tqqk3xrj6bfVyqaLetAf4ZXG5ammlULmYJOOsc0wdbz0rGJzMJfLtyGjbasfE5Rg5CLVGk4VS7X3+Mbc4uiGDTJSh3mVpY7c24DYy5GNppHoj6J3FFVCpmSFRn1CIgTIfBfWFHj7c5eeGQeNGnUfm1oqo+X3V9INsMnst4s7FlHDNE40sWuS87kSwTE65cFiiJrw3sBkUGKOR9wZ6aJ/ExUkStwoPr06/VE0+tGi4j9YIBEjgaqCW9BLxXesQ7pH4sSclTmYhWOi6x9TxIFf3vLjVbYNOLom8Fr+OvIScYpsP/GROouO4/v2GYEMEKTnsOVVYGpT3i12TUR/fy3gcQNXdbadWMD3AAKH+Mu1NOruiwPeUptPi4AkOezX X-Forefront-Antispam-Report: CIP:198.47.21.194;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:flwvzet200.ext.ti.com;PTR:ErrorRetry;CAT:NONE;SFS:(13230040)(376014)(82310400026)(1800799024)(36860700016)(7416014)(23010399003)(10067099003)(56012099006)(3023799007)(18002099003)(22082099003)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: x4kb73Q9toMcx9EFwo9/SZGrfx72A9MdMzfXpnfRUIvkGFfgYlD0HjrlRSgo7lEKOQYjk+jyy+C8CmBOafaaAnR7GNoLlStOjLSmmEq/tLcxHPIDhNZEC+W7SawE1owTgE/+HC+W2fSPkaL2rl8JV+WIPEQF0t9Jr2HGG7NlgtRG7xIiUoXX5CIuTnjiNc09feHMqJXf2IWV+hqma107zMLY/GhGlwOHQIlR9CFDTwfVRxIbfem7JRO1heacjYk7E94voOtEMKjqVBeMXyTjY4sGO08s1J0E5zzuGs6tcKCMiIMCnWWRxZN40DO8+ZAycYyB+9H7r11XWrbNAdiFGljq6dOg6d+q0o5RF0qLiGrGcbVJEFMejbbqzZBxVlv8nukhowTNDZ+/CRp+dIvsNGZMQIvc02uhYbNTOgctLysDfja15fiAOflfq9Ky7BLH X-Exchange-RoutingPolicyChecked: Ej8jOIUwgHlFMaknX5YOldIXjtJPjUZVWZbh4EWV6zPMzcfye3QZE7DYxQtHD6E3JD/SiZyOrZDK+Fpm9NLBZtltxv7wjJPpsh3HqfWSduL4Y0M45h1crY9FB4ybi+L41ivuQPDr4d6u0EIYjHZ5OS25+GAIB7sLUMbyIHZz2PXlqZMBYhJ0BVT1XZ8pgd+DfR5GRTES/eaOCAgmvFyN/dYB733S4pA5WFmojwqAIMYkAYMjyRahu1mUj2Ui/MX9t1JOAHdtAkvu3jF3Hhx6ggMphpBGeicQtzPLzyDj3+9s0j4MAQeXFX4X1jvhQMwA+tx4/BVKRYLas7Qmlcm/Xw== X-OriginatorOrg: ti.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2026 17:18:31.1694 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bb208be5-8e00-44c0-1cd5-08df02cce2e2 X-MS-Exchange-CrossTenant-Id: e5b49634-450b-4709-8abb-1e2b19b982b7 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=e5b49634-450b-4709-8abb-1e2b19b982b7;Ip=[198.47.21.194];Helo=[flwvzet200.ext.ti.com] X-MS-Exchange-CrossTenant-AuthSource: MWH0EPF000C6190.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR10MB5930 X-Authority-Analysis: v=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Q== X-Proofpoint-GUID: jhgcRm7vw1-TDjJ3ZdRRIrf7azbL20w4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-08-25_04,2026-08-24_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 impostorscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 phishscore=0 adultscore=0 clxscore=1015 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2608250147 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260825_101842_735399_468B1028 X-CRM114-Status: GOOD ( 12.54 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org Add spi-phy-pattern-partition, a per-device phandle property on the flash sub-node that allows the DT author to directly reference the partition holding the SPI PHY tuning pattern. Used to locate the pattern data during PHY tuning when the device cannot load the pattern dynamically. PHY tuning works by reading a known data pattern from the device repeatedly while sweeping controller delay parameters until the capture window is stable. For SPI NAND, the driver loads the pattern into the page cache once using write-to-cache opcodes, then reads it during the sweep. SPI NOR devices have no equivalent opcode, so the pattern must be pre-programmed in a dedicated flash partition. One partition per device is required to keep the procedure unambiguous when multiple devices share a bus. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Santhosh Kumar K --- .../devicetree/bindings/spi/cdns,qspi-nor.yaml | 17 +++++++++++++++++ .../bindings/spi/spi-peripheral-props.yaml | 7 +++++++ 2 files changed, 24 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml index 891f578b5ac4..277dedcd4246 100644 --- a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml +++ b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml @@ -209,5 +209,22 @@ examples: cdns,tsd2d-ns = <60>; cdns,tchsh-ns = <60>; cdns,tslch-ns = <60>; + spi-phy-pattern-partition = <&phy_pattern>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "data"; + reg = <0x0 0x3fc0000>; + }; + + phy_pattern: partition@3fc0000 { + label = "phy-pattern"; + reg = <0x3fc0000 0x40000>; + }; + }; }; }; diff --git a/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml b/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml index 84976fd3ee1b..cc01b643fe9b 100644 --- a/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml +++ b/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml @@ -123,6 +123,13 @@ properties: description: Delay, in microseconds, after a write transfer. + spi-phy-pattern-partition: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the flash partition holding the pre-programmed SPI PHY tuning + pattern. Used when the device cannot load the pattern dynamically during + PHY tuning. + stacked-memories: description: Several SPI memories can be wired in stacked mode. This basically means that either a device features several chip -- 2.34.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/