From patchwork Tue Aug 2 03:58:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Joy Zou X-Patchwork-Id: 12934221 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 A2CE2C19F2B for ; Tue, 2 Aug 2022 04:00:07 +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:In-Reply-To:References: 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=gBRwePRrj086DvE961x8uCvqHZ5243mBCw7H+vNpxCs=; b=ez7GGE41OKEo4Y vqWE+ojkWsbVswhiQPumb4iJOal7IyRhlbxXgupbdmzpxhyfHffuOgKgFG2Ix9ucF+MsmI31HzBui FlkXJIPEA2oE60huUEWNI28gr89p2sGMKRVOSz1tPU2nnJpsQqwn5j541lvF7DGWM07C5I1ZzOMHz Ng0Yu0VU5XCaORk6Z29dpxVBmiJlHxwaHL+3StkPnutWaFqapxhd6sVrTpmBqM6FdkOBWlNxKBmOG 1Y4kMDs7P+65AlK+agkW/e8LSUoUcQihcShpp/f0g0PFDvU0ZIykAuTBZa+1hgGTEXrfluMzTf2a4 ndeWT/OBse9uIT9y8cuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oIj2s-00AAK8-Gr; Tue, 02 Aug 2022 03:58:16 +0000 Received: from mail-db8eur05on2074.outbound.protection.outlook.com ([40.107.20.74] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oIj2n-00AAFl-8R for linux-arm-kernel@lists.infradead.org; Tue, 02 Aug 2022 03:58:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e4uDRFy08cqnrTHXszfMt5nI3Eb1dz3jgbJobvpiOtqnCN4Q51NAMQJ2PmqH6nd9vPqly8N/2Ghv/YrZoHx86GfsEh4OX22qUnGsn+hcnYAe707mwPKQGc8RIV9wzy7ZZJ+VRvrgubnYWXUHUmKiup27Kf27CfjkHunUflFeOvczCkWuydKPJYd/O6G5HJHyZXJbe49V2SDvesApGZuEpyKbfRhpYsWlcTfJcJx7MpVWpeF3mKzn2dXHLq0nxKR8SHKB04zn6w1giGreJ8dZQvxSZr06kCIYGdHMxbk4tJ382pddqS/OHEb5QuGltotwwcFzucrFgkGNHYyQ8tjShA== 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=BdssSPeRC31YzRKU7ZAeKX6rKONLoGWfto8fNFZPSnQ=; b=BOoXj6oPG9L1oCggdhtDHTCP61S7k6dGEBlyKJ5HDtSwDK3r/SVotj0tecKiz3qy9oRPfzW3aEUe2dxCZhUXwbIifCRhM5nuJl0p31B8gjS+cUVDm4A5EVH11rxheLQQGSIGFaSohipHRCp7GBsn/whn7H7uB4e/cwXwYw8r3+mmGCnOQeXqiaK0UXUM5sDn6S1lF4ojxHJh9a3uq8gw6a/k0QF/1WPvtpXhZHwxICmD7bfRiiboWdAbTPfNtK1fytX11luyevfjRFyY4cY8REi1pj+c9aME/mXhadH83iHoubCGx5JLaMHH37QiAOTrwNrggIdDC9PhMEXHMXbPHg== 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=BdssSPeRC31YzRKU7ZAeKX6rKONLoGWfto8fNFZPSnQ=; b=kE3aNyWplDmR9ZDcdb2jl2oebzQvwww3UT01HHnt2wMVHoce6pf7TcLNgPgX2I0NDRp/7QE0ZY3k4QhU1FZ5YKzeZ7SdgC9ERUBmevv+cSCz+mohvYGXsRotZcLviRjXGjRL+syA44hfPruRhMVMlsAXmZ6pmdzTamC61EYDb14= Received: from AM6PR04MB5925.eurprd04.prod.outlook.com (2603:10a6:20b:ab::19) by DBAPR04MB7334.eurprd04.prod.outlook.com (2603:10a6:10:1aa::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5482.16; Tue, 2 Aug 2022 03:58:02 +0000 Received: from AM6PR04MB5925.eurprd04.prod.outlook.com ([fe80::a88e:aa50:65d9:6206]) by AM6PR04MB5925.eurprd04.prod.outlook.com ([fe80::a88e:aa50:65d9:6206%3]) with mapi id 15.20.5482.016; Tue, 2 Aug 2022 03:58:02 +0000 From: Joy Zou To: "vkoul@kernel.org" CC: "S.J. Wang" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , dl-linux-imx , "dmaengine@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: FW: [PATCH V2 1/2] bindings: fsl-imx-sdma: Document 'HDMI Audio' transfer Thread-Topic: [PATCH V2 1/2] bindings: fsl-imx-sdma: Document 'HDMI Audio' transfer Thread-Index: AQHYb0Sbzg3yRatDsU+sUlyHgY6zya2baFlw Date: Tue, 2 Aug 2022 03:58:02 +0000 Message-ID: References: <20220524080337.1322240-1-joy.zou@nxp.com> In-Reply-To: <20220524080337.1322240-1-joy.zou@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5baaeada-075a-43b9-a625-08da743b326e x-ms-traffictypediagnostic: DBAPR04MB7334:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ccqrWy1qmIBaaMJqf6BhUp81QzsU4EzdJHjUAwVtSIo0bfVesyICEU+jEE9Pdd8hwuJp8m1X4OHTJFW/attFSc7LQWNFw/2T1dMmb0Y5u9oMRUsrbQOEAl4bw/j6gVRo/mxa5UAqcHMurnoyQ2T/cITeg7ECbOmrwoJJlEoK+HRHbv+6b0waQ38MuSFfNwMGv3Hs24pR+5RJKTk1hmvoQ4v2kWkuw8BbH7xLVn2Xat6wIXqAbbWpRMBd9qZ3kNIG5L8ebdTn/xXQ++pCEBYUAgsNl6hXbVftiHMF+c2w4Z8BsnMsMiHtSsGcQOT1be2m/oryOojG819+EVMGSqMxat7OnzJ+0QEn7hr5Px52BPYrIydxC18mtycHTpCJWeinqYO/6INMfbvefAw8xsyNqKw0ObUa1aX744FYQqxGBsDM1TswYzbKCzdcQ9l3+7OarRYtDPR0cJq12ac/v69zWLPyDdpZMUlmYUVx/EtKjF+tsu6SpgPT/8pqgoAqFSyJBG3bRfIelzkpNl2yJ8f1IobgNiSK9fovb1tiFq8ztFh6WB781DYmTg2DWpjwz7mmpo6NPDjjkqVPg4W56L399LgeAE8xNXENI6jsf+ISxNZqjFoCfMo4tjpkL7/TOcSgvwDCpFK57eNSoVB6iHTKp9IPHEQDa7gRCjaCtWTaUQgqUI8n8QxE06whH8KUrlxCYjASjgtIz7AegNhG4bZfrOF3/fajjhUaBqL+pVbkvFSuR8IeVZJWqnz63n2RPr9nTumdb8Wml2DJFH/hnMYAALBpHTpJH7TDR4f/WZ/KYRlT5llRXzSpWuTxY5qWUp1qom6lD8sfrpjIHdOoN3xyMGDpDD3XJsy2SSmHlwKhhOMmMoqG5tFyjnCPrz7fMw/d x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB5925.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(396003)(346002)(39860400002)(376002)(366004)(136003)(86362001)(38070700005)(38100700002)(122000001)(8676002)(66446008)(64756008)(66556008)(66476007)(4326008)(76116006)(66946007)(6916009)(54906003)(316002)(5660300002)(52536014)(44832011)(7416002)(2906002)(8936002)(53546011)(6506007)(26005)(9686003)(186003)(83380400001)(71200400001)(41300700001)(7696005)(478600001)(55016003)(966005)(33656002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?eucgb2312_cn?b?eklFSE9ydDJDT0tjeVdQRHU5?= =?eucgb2312_cn?b?UWE1MTlEV0RJUE9jaDNEL0VVWkRHNitZZXVHeWVtOUxPclc4bXpsdlNXWXgybCs4?= =?eucgb2312_cn?b?RXJsTlNYZVN5WG1tVk9BZmdPR1diZDZNcDgwakpzMzFNZEo3V1cxMEMvUkNVWmRM?= =?eucgb2312_cn?b?a2l2dlFxZmYvUmlyaXVBbExzOFNoUHM4dUd4WEh3TzRNancza04wSjFIb2o4REVq?= =?eucgb2312_cn?b?SExLZmRQVFYvamhVdXplaXhGaVlnL0p4d09ZOEs0aDZwSm9aUEQrMnF5ckNnZFEv?= =?eucgb2312_cn?b?dis0QkJD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GUxeXB1dDU0eUh3aW5BWldYUmtBTjdCbHhYZVhRdUtXd25GSERxcHhj?= =?eucgb2312_cn?b?Tk9VdUlkQU9rWkpuZ3hTWWYyRVpLUS93VHIwaUdGeTdKNDJBbDMra2g4NDdHN0R6?= =?eucgb2312_cn?b?ZVM2MWpxdWNLOUpxajlVb0hMV29lVzBhaz0=?= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB5925.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5baaeada-075a-43b9-a625-08da743b326e X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Aug 2022 03:58:02.3882 (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: 9iOlICAc1YVFXJoaeEZ2jUV02Jo8uKEOjhpZQztuOMhzwB1Evn6TFEDT5iJWnEOy X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7334 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220801_205809_776070_D04BEAC5 X-CRM114-Status: GOOD ( 16.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Gentle ping... BR Joy Zou -----Original Message----- From: Joy Zou Sent: 2022年5月24日 16:02 To: vkoul@kernel.org Cc: S.J. Wang ; robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org; shawnguo@kernel.org; s.hauer@pengutronix.de; kernel@pengutronix.de; festevam@gmail.com; dl-linux-imx ; dmaengine@vger.kernel.org; devicetree@vger.kernel.org; linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org Subject: [PATCH V2 1/2] bindings: fsl-imx-sdma: Document 'HDMI Audio' transfer Add HDMI Audio transfer type. convert the sdma bindings txt into yaml in v2. Signed-off-by: Joy Zou --- Changes since v1: convert the sdma bindings txt into yaml in v2. --- .../devicetree/bindings/dma/fsl-imx-sdma.yaml | 135 ++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/fsl-imx-sdma.yaml diff --git a/Documentation/devicetree/bindings/dma/fsl-imx-sdma.yaml b/Documentation/devicetree/bindings/dma/fsl-imx-sdma.yaml new file mode 100644 index 000000000000..5b4f7a09a395 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/fsl-imx-sdma.yaml @@ -0,0 +1,135 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause %YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/fsl-imx-sdma.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale Smart Direct Memory Access (SDMA) Controller for i.MX + +maintainers: + - Vinod Koul + +allOf: + - $ref: "dma-controller.yaml#" + +# Everything else is described in the common file + +properties: + compatible: + items: + - enum: + - fsl,imx25-sdma + - fsl,imx31-sdma + - fsl,imx31-to1-sdma + - fsl,imx31-to2-sdma + - fsl,imx35-to1-sdma + - fsl,imx35-to2-sdma + - fsl,imx51-sdma + - fsl,imx53-sdma + - fsl,imx6q-sdma + - fsl,imx7d-sdma + - fsl,imx6sx-sdma + - fsl,imx6ul-sdma + - fsl,imx8mm-sdma + - fsl,imx8mn-sdma + - fsl,imx8mp-sdma + - enum: + - fsl,imx35-sdma + - fsl,imx8mq-sdma + + reg: + description: Should contain SDMA registers location and length + + interrupts: + description: Should contain SDMA interrupt + + fsl,sdma-ram-script-name: + $ref: /schemas/types.yaml#/definitions/string + description: Should contain the full path of SDMA RAM scripts firmware. + + "#dma-cells": + const: 3 + description: | + The first cell: request/event ID + + The second cell: peripheral types ID + enum: + - MCU domain SSI: 0 + - Shared SSI: 1 + - MMC: 2 + - SDHC: 3 + - MCU domain UART: 4 + - Shared UART: 5 + - FIRI: 6 + - MCU domain CSPI: 7 + - Shared CSPI: 8 + - SIM: 9 + - ATA: 10 + - CCM: 11 + - External peripheral: 12 + - Memory Stick Host Controller: 13 + - Shared Memory Stick Host Controller: 14 + - DSP: 15 + - Memory: 16 + - FIFO type Memory: 17 + - SPDIF: 18 + - IPU Memory: 19 + - ASRC: 20 + - ESAI: 21 + - SSI Dual FIFO: 22 + description: needs firmware more than ver 2 + - Shared ASRC: 23 + - SAI: 24 + - HDMI Audio: 25 + + The third cell: transfer priority ID + enum: + - High: 0 + - Medium: 1 + - Low: 2 + + gpr: + description: The phandle to the General Purpose Register (GPR) node + + fsl,sdma-event-remap: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: | + Register bits of sdma event remap, the format is . + - reg: the GPR register offset + - shift: the bit position inside the GPR register + - val: the value of the bit (0 or 1) + +required: + - compatible + - reg + - interrupts + - fsl,sdma-ram-script-name + - "#dma-cells" + +unevaluatedProperties: false + +examples: + - | + sdma: dma-controller@83fb0000 { + compatible = "fsl,imx51-sdma", "fsl,imx35-sdma"; + reg = <0x83fb0000 0x4000>; + interrupts = <6>; + #dma-cells = <3>; + fsl,sdma-ram-script-name = "sdma-imx51.bin"; + }; + +#DMA clients connected to the i.MX SDMA controller must use the format +#described in the dma-controller.yaml file. + - | + ssi2: ssi@70014000 { + compatible = "fsl,imx51-ssi", "fsl,imx21-ssi"; + reg = <0x70014000 0x4000>; + interrupts = <30>; + clocks = <&clks 49>; + dmas = <&sdma 24 1 0>, + <&sdma 25 1 0>; + dma-names = "rx", "tx"; + fsl,fifo-depth = <15>; + }; + +... -- 2.25.1