From patchwork Mon Jun 24 18:55:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 807206 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2047.outbound.protection.outlook.com [40.107.103.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9D2E1A00F9; Mon, 24 Jun 2024 18:56:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.103.47 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719255366; cv=fail; b=ptCU9CrWZDDSaW2XlsnyeTDtrCrp2yHmT+TVt7hAaKNzn7EJifwUX/nazWP3N1DSvYk/Eq+L8drifJlVFjjig1gmpE7qS1Kn4gI8n9Dv1dgiexuU3360gv7Msjkd/CyMyWjyj1fcehsJS1ly/uyLKKm8viXN8RKiusPVYitORl0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719255366; c=relaxed/simple; bh=G/DRGrVocyvETq+rGdmcTSv8wITZDgGEQQ67/lp1qLk=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=tZr4D5ehXIi61bIMVnTxi55h+L9DNzDMd08sJuLRLC0m1/uMy+LaFxHbWSTln+TR1CHh7OrpYO0xEOUYcybTikPgv+n+srYLV70KMBr6KOWugsTnLOLAFwMH7D36ZpQOhXVcT+kP1nt803rrv7QbS2MSKheiqq5sg29M5dLqlHk= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=Z+SYxvxH; arc=fail smtp.client-ip=40.107.103.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="Z+SYxvxH" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hYTb/gOfOIt+vnd2wd5gJ06RQPPPJMb1fjdFNmC28miVfwItDQw+LmXsiLztL33mt1KxPcUgrZsaWDigqJm0DT1nC/gx2rnm++tRgp9uUd//NN5kGJB1C0wHLyk7LOBlQdxkBEXN2B7yTER4SoRzNAu/+cG6Q0uVZmAhZk9iwKPUZK26GHGwVNPNYZzcYmg5iIBVwVFXSLbcm9QOIeRu+jr4tES2P7Ff7A9Jqdlsq/oSgUHglPNNKSepbRE5md/PUFJqtSiKG6Dwe3ZRsXuRSgGSSOYdElZhw5WKhhh7jlyNmkLQQ6Pwi7UxNgoR5QjnWv9+TjabN4tfmBvMz14giA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=afuQfaQ3NwhlzpZWwGE4ZN3x9AZmumDll6moPhPmMUs=; b=CC29RlurcLGJ9XYxyxC46GPP5mAwDR79rCql3v6S4rDWpaaMQ/8mJIjufrw78H8WdUI9EoZaVHc7m8Al+FiYJuvXVUHhzBmZwQltWUF/VdC7OSD1oXyqmENRsgAjaBcD5VwC2CXlYyv0luEoIjiw13uSzxt7SwFbEmyvhnF0Odc4K/6UD5LObTKy7EMwrPZCYUjJxafVQZxALXnon1Cu5um6ExYNhzbh77oiaR/Bgom8CkBGrBItN01jmHn/HIzcKS34lKMIyIuFuTWDSC3cUqlL9qkcD0do+qqB4yNeIwvo4D2/COJJL1Bl0HWMFV0mM10epA1vGoyK7ziUACf//g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=afuQfaQ3NwhlzpZWwGE4ZN3x9AZmumDll6moPhPmMUs=; b=Z+SYxvxH8Vkbf51S/Fugq/utNsdGwUuap/75qkQd3CIPRnkI8yQW053lU8WhBVDDc0xM7I170/L6NHQP89Ao6FdKg6B+ALPEOCQEUJaM4c4tfPjhX7YR8Eh7PnMWF6YUsvur7oPLOVkn2jCWUQ678N/hf8IDm35AWiFSS8QymtA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by VI0PR04MB10138.eurprd04.prod.outlook.com (2603:10a6:800:242::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.27; Mon, 24 Jun 2024 18:56:00 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%2]) with mapi id 15.20.7698.020; Mon, 24 Jun 2024 18:56:00 +0000 From: Frank Li Date: Mon, 24 Jun 2024 14:55:28 -0400 Subject: [PATCH v4 2/3] spi: dt-bindings: fsl-dspi: Convert to yaml format Message-Id: <20240624-ls_qspi-v4-2-3d1c6f5005bf@nxp.com> References: <20240624-ls_qspi-v4-0-3d1c6f5005bf@nxp.com> In-Reply-To: <20240624-ls_qspi-v4-0-3d1c6f5005bf@nxp.com> To: Vladimir Oltean , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, Frank Li , Kuldeep Singh , Vladimir Oltean X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1719255350; l=9546; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=G/DRGrVocyvETq+rGdmcTSv8wITZDgGEQQ67/lp1qLk=; b=l+4vQcvmorXujEmS8KIG8itUk7LoAXYMTAdUrTKUM+mE/SQrSe5Kz03TS9nXlSGVgzWJSqI/L hOGjJ5F2UBkCXkkAHmHSGzpmhJS9Sfa/XCoCEuZ44YbSUA8i1cJ3A/H X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR03CA0014.namprd03.prod.outlook.com (2603:10b6:a02:a8::27) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|VI0PR04MB10138:EE_ X-MS-Office365-Filtering-Correlation-Id: 1d37e1f3-99fd-4866-0213-08dc947f4a05 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230037|376011|7416011|1800799021|52116011|366013|38350700011; X-Microsoft-Antispam-Message-Info: =?utf-8?q?o3EmoaH+CSL3BdCNXFaeUNGSL/V4Lvg?= =?utf-8?q?5O3ddHNS8XnD1NdjnEXM1sTPdNKYMadMNp8azC9O2NYMp5dA+ogP3ipw6Bvg+KcID?= =?utf-8?q?fqzXZjVrK60GbYv6ZCYJ78u9aWHLzwpTHO9elAJyqLXF9Ujc8P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UiHUAu+RdKqmro9e8fxZ0?= =?utf-8?q?InJSflE7TuHfX7PIPTyX0aTmr+KkwXnGojUiGKb8owdIuoNtKhE5xiUcZwZNf8+Z/?= =?utf-8?q?FHuS9uqsx/cFgHOGc6cc3/bbeeTKrTdThcdzHk2LuGYMqkzKoTGErQOpSeZsOEpDG?= =?utf-8?q?MiFab3/bU2MbjGltbciiJ8vpGceWVORQjWFAEIoYEvbOVdCmj2ueqggFp4Q8FnRFX?= =?utf-8?q?XCQ8FT1v+twF+FFf0UHE1UgWkr81qlg98nTx0vrF3QEIyux2JwcNzIV/dL9I9NCJ0?= =?utf-8?q?71uEZMNgV2lyT?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB9642.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230037)(376011)(7416011)(1800799021)(52116011)(366013)(38350700011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?JhndHOWw9lT00QrzCwTwbfmkCDr4?= =?utf-8?q?5FT291QF7xr8uN42tqiS91+Z4E+EXSz1oHicDVQk/lUunYJPomW9iql7T3XmvShPi?= =?utf-8?q?Rx2xZ46A5ObRaGijclynhXmaxgWgABTOX/3E+8M80G4ApF1Os4W50YBgNJIXuUUQq?= =?utf-8?q?zXiPpirs6OqsuD6jqwHeJgRf2ly3igfrIqvALCQR7RrdB1LY3Hn+Y6j7bfwJFoN8d?= =?utf-8?q?inDh4z1VvPwdhp76Jd3EQlbnCzyED7DeX5ecSKtRmjNbFHpOiOJYKVEKsgH80O22I?= =?utf-8?q?WA2u6FLeamWwsLSFm8HP1Lqy68tm2e4fNB1fWX4mpDJ46h5WCWMzO7Mlc3c5GugWl?= =?utf-8?q?PEpz6/c4m2pslO5l9Pj3QIHgbikYKDchIOGjy1mWenCD0f20Q5IjbkJGU85BKj1E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f-8?q?2BFqdh/cx+NAcU4r94RP0el16Uz+a45tZF2EzeKSuEATO7AHwQMdIFsxCcfHRF6yc?= =?utf-8?q?hV8bgvCA24C0iYYrrZpUPthZpb67oTlZmN0/PamKxE1O2HqTMFFXRPKALreT+Bzzi?= =?utf-8?q?Rd3Yc34NvO/gcwcj1lWJWFa6CAGfO4VMJ7dJGhrwHH1sd8KJ+uj75XClcZWeuTFGZ?= =?utf-8?q?cadH3k4BAOjaA/9q4l1wezSTcHgqeF+h+yqxX3C/XfgMs2rMjVpyIecP34V+aiGW1?= =?utf-8?q?Ez+iiYwOstER?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1d37e1f3-99fd-4866-0213-08dc947f4a05 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jun 2024 18:56:00.4195 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: v9JpOe4Qndu9j7ZEWD2N/D2rtsijP9/+EnNtxYDH16/5rP9MxvC1cB65n6Zflsm4qXG5di7fpTJ2GX8rfL54lA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10138 Convert dt-binding spi-fsl-dspi.txt to yaml format. Use part Vladimir Oltean's work at of https://lore.kernel.org/linux-spi/20221111224651.577729-1-vladimir.oltean@nxp.com/ Additional changes during convert: - compatible string "fsl,ls1028a-dspi" can be followed by fsl,ls1021a-v1.0-dspi. - Change "dspi0@4002c000" to "spi@4002c000" in example. - Reorder properties in example. - Use GIC include in example. - Deprecated fsl,spi-cs-sck-delay and fsl,spi-sck-cs-delay by use common SPI property. - Use compatible string 'jedec,spi-nor' in example. - Split peripheral part to fsl,dspi-peripheral-props.yaml. - Remove 'interrupts' and 'pinctrl' from required list. - Update 'bus-num' description. - Update 'spi-num-chipselects' description by add "cs-gpios don't count against this number". - Remove 'big-endian' description. Co-developed-by: Kuldeep Singh Signed-off-by: Kuldeep Singh Co-developed-by: Vladimir Oltean Signed-off-by: Vladimir Oltean Signed-off-by: Frank Li Reviewed-by: Vladimir Oltean --- Change from v3 to v4 - Add Co-developed-by and Signed-off-by from Kuldeep and Vladimir - Remove 'interrupts' and 'pinctrl' from required list - Update 'bus-num' descripton. - Update 'spi-num-chipselects' description by add "cs-gpios don't count against this number". - Remove 'big-endian' description. --- .../bindings/spi/fsl,dspi-peripheral-props.yaml | 30 ++++++ .../devicetree/bindings/spi/fsl,dspi.yaml | 103 +++++++++++++++++++++ .../devicetree/bindings/spi/spi-fsl-dspi.txt | 65 ------------- .../bindings/spi/spi-peripheral-props.yaml | 1 + MAINTAINERS | 2 +- 5 files changed, 135 insertions(+), 66 deletions(-) diff --git a/Documentation/devicetree/bindings/spi/fsl,dspi-peripheral-props.yaml b/Documentation/devicetree/bindings/spi/fsl,dspi-peripheral-props.yaml new file mode 100644 index 0000000000000..9b62b75e17a7f --- /dev/null +++ b/Documentation/devicetree/bindings/spi/fsl,dspi-peripheral-props.yaml @@ -0,0 +1,30 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/fsl,dspi-peripheral-props.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Peripheral-specific properties for Freescale DSPI controller + +maintainers: + - Vladimir Oltean + +description: + See spi-peripheral-props.yaml for more info. + +properties: + fsl,spi-cs-sck-delay: + deprecated: true + description: + Delay in nanoseconds between activating chip select and the start of + clock signal, at the start of a transfer. + $ref: /schemas/types.yaml#/definitions/uint32 + + fsl,spi-sck-cs-delay: + deprecated: true + description: + Delay in nanoseconds between stopping the clock signal and + deactivating chip select, at the end of a transfer. + $ref: /schemas/types.yaml#/definitions/uint32 + +additionalProperties: true diff --git a/Documentation/devicetree/bindings/spi/fsl,dspi.yaml b/Documentation/devicetree/bindings/spi/fsl,dspi.yaml new file mode 100644 index 0000000000000..bd28335a6ac86 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/fsl,dspi.yaml @@ -0,0 +1,103 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/fsl,dspi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ARM Freescale DSPI controller + +maintainers: + - Frank Li + +properties: + compatible: + oneOf: + - enum: + - fsl,vf610-dspi + - fsl,ls1021a-v1.0-dspi + - fsl,ls1012a-dspi + - fsl,ls1028a-dspi + - fsl,ls1043a-dspi + - fsl,ls1046a-dspi + - fsl,ls1088a-dspi + - fsl,ls2080a-dspi + - fsl,ls2085a-dspi + - fsl,lx2160a-dspi + - items: + - enum: + - fsl,ls1012a-dspi + - fsl,ls1028a-dspi + - fsl,ls1043a-dspi + - fsl,ls1046a-dspi + - fsl,ls1088a-dspi + - const: fsl,ls1021a-v1.0-dspi + - items: + - const: fsl,ls2080a-dspi + - const: fsl,ls2085a-dspi + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: dspi + + spi-num-chipselects: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + The number of the chip native chipselect signals. + cs-gpios don't count against this number. + + big-endian: true + + bus-num: + $ref: /schemas/types.yaml#/definitions/uint32 + description: SoC-specific identifier for the SPI controller. + +required: + - compatible + - reg + - clocks + - clock-names + - spi-num-chipselects + +allOf: + - $ref: spi-controller.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + #include + + spi@4002c000 { + compatible = "fsl,vf610-dspi"; + reg = <0x4002c000 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&clks VF610_CLK_DSPI0>; + clock-names = "dspi"; + spi-num-chipselects = <5>; + bus-num = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_dspi0_1>; + big-endian; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <16000000>; + spi-cpol; + spi-cpha; + spi-cs-setup-delay-ns = <100>; + spi-cs-hold-delay-ns = <50>; + }; + }; diff --git a/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt b/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt deleted file mode 100644 index 30a79da9c039d..0000000000000 --- a/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt +++ /dev/null @@ -1,65 +0,0 @@ -ARM Freescale DSPI controller - -Required properties: -- compatible : must be one of: - "fsl,vf610-dspi", - "fsl,ls1021a-v1.0-dspi", - "fsl,ls1012a-dspi" (optionally followed by "fsl,ls1021a-v1.0-dspi"), - "fsl,ls1028a-dspi", - "fsl,ls1043a-dspi" (optionally followed by "fsl,ls1021a-v1.0-dspi"), - "fsl,ls1046a-dspi" (optionally followed by "fsl,ls1021a-v1.0-dspi"), - "fsl,ls1088a-dspi" (optionally followed by "fsl,ls1021a-v1.0-dspi"), - "fsl,ls2080a-dspi" (optionally followed by "fsl,ls2085a-dspi"), - "fsl,ls2085a-dspi", - "fsl,lx2160a-dspi", -- reg : Offset and length of the register set for the device -- interrupts : Should contain SPI controller interrupt -- clocks: from common clock binding: handle to dspi clock. -- clock-names: from common clock binding: Shall be "dspi". -- pinctrl-0: pin control group to be used for this controller. -- pinctrl-names: must contain a "default" entry. -- spi-num-chipselects : the number of the chipselect signals. - -Optional property: -- big-endian: If present the dspi device's registers are implemented - in big endian mode. -- bus-num : the slave chip chipselect signal number. - -Optional SPI slave node properties: -- fsl,spi-cs-sck-delay: a delay in nanoseconds between activating chip - select and the start of clock signal, at the start of a transfer. -- fsl,spi-sck-cs-delay: a delay in nanoseconds between stopping the clock - signal and deactivating chip select, at the end of a transfer. - -Example: - -dspi0@4002c000 { - #address-cells = <1>; - #size-cells = <0>; - compatible = "fsl,vf610-dspi"; - reg = <0x4002c000 0x1000>; - interrupts = <0 67 0x04>; - clocks = <&clks VF610_CLK_DSPI0>; - clock-names = "dspi"; - spi-num-chipselects = <5>; - bus-num = <0>; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_dspi0_1>; - big-endian; - - sflash: at26df081a@0 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "atmel,at26df081a"; - spi-max-frequency = <16000000>; - spi-cpol; - spi-cpha; - reg = <0>; - linux,modalias = "m25p80"; - modal = "at26df081a"; - fsl,spi-cs-sck-delay = <100>; - fsl,spi-sck-cs-delay = <50>; - }; -}; - - diff --git a/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml b/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml index 15938f81fdce2..0bb443b8decda 100644 --- a/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml +++ b/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml @@ -122,6 +122,7 @@ properties: allOf: - $ref: arm,pl022-peripheral-props.yaml# - $ref: cdns,qspi-nor-peripheral-props.yaml# + - $ref: fsl,dspi-peripheral-props.yaml# - $ref: samsung,spi-peripheral-props.yaml# - $ref: nvidia,tegra210-quad-peripheral-props.yaml# diff --git a/MAINTAINERS b/MAINTAINERS index e04f583780c5f..25e485fad9ae8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8748,7 +8748,7 @@ FREESCALE DSPI DRIVER M: Vladimir Oltean L: linux-spi@vger.kernel.org S: Maintained -F: Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt +F: Documentation/devicetree/bindings/spi/fsl,dspi*.yaml F: drivers/spi/spi-fsl-dspi.c F: include/linux/spi/spi-fsl-dspi.h