From patchwork Thu Jun 20 16:58: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: 807481 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2072.outbound.protection.outlook.com [40.107.21.72]) (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 6353B1B375E; Thu, 20 Jun 2024 16:58:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.72 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718902734; cv=fail; b=hZ7xw5vBmJ859TJMoPSWbZ2s+sOkrF03rjyf7kkUoeoLz9EKX+t/fpPoEwzHulTL97TaKPt6JnBEmFLbPDgYngx7mr/E0sLsBaBhI+pHb454Fq7Rttv0mJw6TVcwDZPZ8vPOOp1/MnY2/EfHkKS7nUD2ARy3EyQPpy7D2SCfn3E= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718902734; c=relaxed/simple; bh=QsjGmRBe6isd4NPtgtiOMFM5TkXJLSWFrQRMWL/qk/s=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=Gr3CrhpLNuecmH+SHT1J6OZZfbMpA6pB4uUBk5QT7oaOAirXkWffqzL+ZQwITneNmQdzUVJMcpIJ3iSR5bwFUK1Y09b9B6iBRIHA5X1KcRiWohbjaO0XtFVPOOYcVdn64yREEamBh+ciD1biP0XWaiExNKVrKRkxxS3kJCdQCwg= 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=kWBd4v7x; arc=fail smtp.client-ip=40.107.21.72 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="kWBd4v7x" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GzFnORejs1HtumYY/8/68l+SRgCdM71juhIfQckfcpW+R+Z+5RqDJmayC/aSsYQ/2gi8praqdE4zCHz/SQHcRbAUw11DnUHm+Q9XRRczlJ+KdUljnu/xSzELsL18sQ7xJGjGjU2+v2ieZu+pd/ztXYu/W3mlL4W4dGnmetFzklBoYBjW51yjIBOuakTT7vJbVOnLhlm6JiMMYgGJ+B4FzFCaPyFF/xm7re5FtT0wLYRJPCqceX7s0rSfpX6o14IYSqJT3bLlgn6NupN2yeWFkS7QU6y9nAXJTa75eqsrG2ZAZT8p06BQ7CU2Q5n/Y4O1UfseEmc3H8fz8Qz0LuYFLw== 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=rfi6841dLc0N19JZvmLTvWBynlZ4iFxSksnhA+v2g5Q=; b=XliX8cz0LraFFlZZfsKZiXHlM4E3/LhGOopp5pOuy+oJ7PpS7zm4mhV0bhzdO2Usi50xpnmAuadKckjyjIwGSW93fteWT8pPCeFETXV3+lISrbeqEOJOIDcBCus83w1Co2KGWM+YzhDaNe1MF/lgC+6Y/tQ9vyFsYsByHQj6C56+wn/0fIoJ+zlkhMK4yPAzA9yAq0yMI6WfQw0chQ74hiZwY59JsZoKwvkxUpAdoDrL11i2JXalzg4uY2mWnHOrzCQezfFn5iKMyLLAjBmRCflafeqECTsmimuiwF47qPpb9nnGoixIJsDO2L2PKhm0Ee0hS8EQkOgm0Y6LYKQHaw== 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=rfi6841dLc0N19JZvmLTvWBynlZ4iFxSksnhA+v2g5Q=; b=kWBd4v7x56INprz4Llu+lznSaednw4TrgbVcjkk/wauhlx/4pDFyq1AAxr9kbUJGJiwWAI3rpUMst/L5Dzw7cR/tInYfIR0JkwYlPxlxM9abWEwbGPtMKPT4Egwr7N0/XX09oxafJCntgxKhSe4cdXp664EtMPYG0guax38HEJ4= 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 PA4PR04MB7632.eurprd04.prod.outlook.com (2603:10a6:102:e8::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.19; Thu, 20 Jun 2024 16:58:50 +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; Thu, 20 Jun 2024 16:58:50 +0000 From: Frank Li Date: Thu, 20 Jun 2024 12:58:28 -0400 Subject: [PATCH v3 2/3] spi: dt-bindings: fsl-dspi: Convert to yaml format Message-Id: <20240620-ls_qspi-v3-2-1a2afcf417e4@nxp.com> References: <20240620-ls_qspi-v3-0-1a2afcf417e4@nxp.com> In-Reply-To: <20240620-ls_qspi-v3-0-1a2afcf417e4@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 X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1718902721; l=8467; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=QsjGmRBe6isd4NPtgtiOMFM5TkXJLSWFrQRMWL/qk/s=; b=wefTUT3wsjt5h9qPM7/PMetUmoYW+pdvFuqtXEkALcOzN/fmEfj9SEJWxBTIFaRnJG4p2v9WW MFCLOAakmYtBufAflYraHV7zSnejQZl/eUGEVjIhoOE+SGUVdT7RIld X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BY3PR04CA0029.namprd04.prod.outlook.com (2603:10b6:a03:217::34) 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_|PA4PR04MB7632:EE_ X-MS-Office365-Filtering-Correlation-Id: 56f3131d-630c-4ad0-cbbc-08dc914a4219 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230037|1800799021|7416011|366013|52116011|376011|38350700011; X-Microsoft-Antispam-Message-Info: =?utf-8?q?yB9Ekp6vdUvt2S9JJZeX8G7qKe1iWdE?= =?utf-8?q?lZbWBXAg3ff8ubrg3PFO2KYGr4S2QptSuU6T0Km2UYp7INMgK34wLUXsfgLx+N6u/?= =?utf-8?q?vqZnynoUwz5fnh8eKcVU7mRuCCWTcA6CyEWjunjBQIZKvKg1i7zf88iUsNJLO7miZ?= =?utf-8?q?oNuZMje4s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QXsmGcLKhdVBVsvylkPBkJrMB8AUiL3RUqNCr9NKu3K9cZkVPUU?= =?utf-8?q?eUvOLsCWs/vp+kAiwLWgWya/qMVfFWVe4Q2WxVTjJQ09/hgyZuqoIv30G8kQ29oaw?= =?utf-8?q?2n3yX3ABnONuWcevMCsf23y3MpQ4Uf1+V9yjqatQg+toDArgqjH0mQpCxfTZxNvf5?= =?utf-8?q?Eh/Bf1tAFnrzucyVB1+WePG3PBDRtKFqyYidK+6p1wU4loMovyZoMz13QanATYtOk?= =?utf-8?q?QPDT8x+CWAH06?= 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)(1800799021)(7416011)(366013)(52116011)(376011)(38350700011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?nnx1IIPzyAUjYaHLP8nYl/q9xSea?= =?utf-8?q?/zi/VEj+Odkn5eaDuzlBazPFoFgnCVz+Nyny9QeXP9MQQjtNcpU9LC8BMNmOEhAUm?= =?utf-8?q?Z4jP7R0Xm44kaSTNLGk9vLHhY1OHEfB/Ysm4MWSPnJyQv3Lf9hIiFI5kfSuyzQwCX?= =?utf-8?q?8W74iWMTL2aN6mBpzPdSjbudXEEizhiELyF33yPL+JzYGm1OVZ/pxLXrqJuGb65yy?= =?utf-8?q?uhuIFlMSRndWZZj0coTUjGBnQgAiAr+6XfWEpnQAWJ1HGVauXszAfbSXWyLkmuKBi?= =?utf-8?q?P1x9wFMYo36YR5X2ZzbwfwFSnBzdNR04pyU0mlDtiNQBAkoCPKTzLF9U3UttW7zGn?= =?utf-8?q?qe/3LJkbdNomMw9SeOYCe43HI3k06Q3FyEDvdAYQAtrSP0C+Nn7MIH6NB1JdZC3qQ?= =?utf-8?q?s6U+xDN8HkbxtV2ddH+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lbIqhaM70duN4Ll1kTw9JLkWQ1Wwz2Z33IFT9R1MJ?= =?utf-8?q?ROe0rhMGOy/qzcJvzyC+bPpeRbY1a+kd64qsGF2r2nV5mWQ3Rhjxa/uvK1FCgTdh6?= =?utf-8?q?3czEsy+MzHVF5EOx0gh3MTezexvWicgi6kqhw0xkqI5u95sKyT9TvjzY9yYjMbidn?= =?utf-8?q?LK8KubLlnQQh509dtNxzr7cu/pXu3mGOO9IgN7M2Kgr8Qf/aKoB0l8aOGX5jXzoW6?= =?utf-8?q?V7vitwoc7enn?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 56f3131d-630c-4ad0-cbbc-08dc914a4219 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2024 16:58:50.3391 (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: ho/ijmAtWMSktDqHmaNDisqjzEW9blU9Oidpj+6AlXqN/wKi2Qwsln3IRTvo4ObbQoaPchx02gpkcaCUtwlmKg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7632 Convert dt-binding spi-fsl-dspi.txt to yaml format. Addtional 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. - Remove 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,spi-dspi-peripheral-props.yaml Signed-off-by: Frank Li --- Use part of Vladimir Oltean's work at https://lore.kernel.org/linux-spi/20221111224651.577729-1-vladimir.oltean@nxp.com/ --- .../devicetree/bindings/spi/fsl,dspi.yaml | 115 +++++++++++++++++++++ .../spi/fsl,spi-dspi-peripheral-props.yaml | 28 +++++ .../devicetree/bindings/spi/spi-fsl-dspi.txt | 65 ------------ .../bindings/spi/spi-peripheral-props.yaml | 1 + 4 files changed, 144 insertions(+), 65 deletions(-) diff --git a/Documentation/devicetree/bindings/spi/fsl,dspi.yaml b/Documentation/devicetree/bindings/spi/fsl,dspi.yaml new file mode 100644 index 0000000000000..924ba19aea017 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/fsl,dspi.yaml @@ -0,0 +1,115 @@ +# 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 + + pinctrl-0: true + + pinctrl-names: + items: + - const: default + + spi-num-chipselects: + $ref: /schemas/types.yaml#/definitions/uint32 + description: the number of the chipselect signals. + + big-endian: + $ref: /schemas/types.yaml#/definitions/flag + description: + If present the dspi device's registers are implemented + in big endian mode. + + bus-num: + $ref: /schemas/types.yaml#/definitions/uint32 + description: the slave chip chipselect signal number. + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + - pinctrl-0 + - pinctrl-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/fsl,spi-dspi-peripheral-props.yaml b/Documentation/devicetree/bindings/spi/fsl,spi-dspi-peripheral-props.yaml new file mode 100644 index 0000000000000..ea9c7c52c1883 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/fsl,spi-dspi-peripheral-props.yaml @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/fsl,spi-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: + 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: + 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/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..fcc39a04a8b7a 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,spi-dspi-peripheral-props.yaml# - $ref: samsung,spi-peripheral-props.yaml# - $ref: nvidia,tegra210-quad-peripheral-props.yaml#