Message ID | 20210903145340.225511-1-daniel.baluta@oss.nxp.com |
---|---|
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:8629:0:0:0:0:0 with SMTP id e38csp1069654jai; Fri, 3 Sep 2021 07:54:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrRvsuYXwg7Ug/dUoF/UPnd9m2umaFucez3Mq6jDE2hfHm9GRHFEGZPFmHlh2OH2jO4u97 X-Received: by 2002:a02:2a88:: with SMTP id w130mr2964877jaw.60.1630680840031; Fri, 03 Sep 2021 07:54:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1630680840; cv=pass; d=google.com; s=arc-20160816; b=rJrOD9Toe7HFFwfZMmwrlBtDpxg1tVDTR1K5QO3NxlyZJd3binxw9RqXvyIK427utI UUJ20/3zPTan3FIU2gJ3xpfxiB+b9hmriEiUIAwOwxSb6iG0KeZzg8nxgZQL4lm8t2tG 5lLAGa8RUoUJ2jffYPECUbZUj3xXN2k6jh+iyFo7N9wJ8tnGNzvuHFguSyzJk27V/gpN +TWyB5kuVqdxNjHAtfWibZmamWfSyw1CwSrnzBPjawwwc6PxvLsc9UXv89iZiJXtOWjA Fshxa/1aKFgFRNm/wbys4M/A3O5PMDW/Fzxbn1TOzwMKk/INxS0KJ5h0hzyJg6fRIbRk 3tSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=0f/eM0GlHrnhSOZsZ7O3ATduEUuVK/z2HeHTpl9IJtg=; b=axAamUKftf7D9bEXl6B2X6+NnuucdG9OxP1sLvzD1WhO9bVKd5u8JyccaDbG4//a+5 b+YZoWx6SvT1YltzjcbbvkVFTwTHaeRQ9aFPmgwF6LhCsWq9+nX5yxrrOyT19TcFaVLM aM/NYGSxeE1XQowU5qy9FrYZZvFMo1hNt+szIyM6lLonDNA0+mBfRmRGPMHqAB3XlAWM EMxWtt5xLE5TyxzjRYYfIeR5MsdYDq3iFP3IGyOJ20uBaXAJKpZIILhBaTl62OhboASY 35dm9dg8N2rGz/TQL2v6+Gk5r5KnxhYbtTEeFez9+yvYi1ysBSvsPO6eap6ZdGU6s2L2 /Z7w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=FKuJH9Rh; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: <devicetree-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t10si6226716ilu.150.2021.09.03.07.53.59; Fri, 03 Sep 2021 07:53:59 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=FKuJH9Rh; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349531AbhICOy7 (ORCPT <rfc822;naresh.kamboju@linaro.org> + 6 others); Fri, 3 Sep 2021 10:54:59 -0400 Received: from mail-eopbgr150081.outbound.protection.outlook.com ([40.107.15.81]:11191 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1349058AbhICOy6 (ORCPT <rfc822;devicetree@vger.kernel.org>); Fri, 3 Sep 2021 10:54:58 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AYjVdqFeeN0D1aNeO7NQ0hYvuXW8y3vAzpKGbdxy5df3iGMxpExGYQ+kbz7o90iD78v7V4neUuSYpBrpKecdXhl1ZqA82t1XNW9+vxyxm52lx/vulYoP28UMUDDniTgX4ibl8aj60MbeGy2gIzF283nDuMLzyzsMGlQZpgfzuXHAbaCwYuSBlID6zrh1MDb2ZzJeDfR4+dP7BOQ3Lgi4LGqP41mVS8OCBRydUQTmeYJCz0I5/zdjPA+QNiRME0FT9BRCC9ueydhbD5oRA3Aej9XfHsORbd15VyKOC8/5KbPbFe2w4LNPnFIwm92m+dVRg3QjcL+9+eZ9q8dFj5kKfg== 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; bh=0f/eM0GlHrnhSOZsZ7O3ATduEUuVK/z2HeHTpl9IJtg=; b=DhZHG3uGUPPbVWspObnVm1XRhLIywK5C13RJjgnF9XADfTR5VuB9Wp1dvfjAZ+HYp0KOrxMlIrpqWvn/aDQvHBLMdOZqzaFxTqQaxtaqVeiGQgtQ+66q9SGTrDS/vJWVJaySvrdEV9htcXO7jqRsbpIkatstU8Wa3J642FeD9gzztSTUIQccrYGT6/Tljyo5DoOU43Up5UGRdy6v9QgOBghBmtp4bM3UCwIUw3uW+JFay9Jco8rJpl7D/VF2ydk8EgZNtgB29UJI4zfgmZa0J4GgqWeyBiEYxNAJeaLqW1WL9wXU/T7Qmgzwp+CEBuz7dOZWiv0SZVX+TKF2Kx6o2Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0f/eM0GlHrnhSOZsZ7O3ATduEUuVK/z2HeHTpl9IJtg=; b=FKuJH9RhVvVXKKwbg0Hs/Z4JChSFQsYOnZbQgNR+ncbzZRbyojswP/MR5kfgIJGDFvF35ETkyOTRTfMFqYWTYvXBmdQn6uy2VjM+kWxsvqeSAeSE+T4smtsvk2miX05GeNJ5KSHypY9iQU1tXa03EYz9g4KvClnsdiMd3SlEc0g= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR04MB5151.eurprd04.prod.outlook.com (2603:10a6:803:61::28) by VI1PR0401MB2654.eurprd04.prod.outlook.com (2603:10a6:800:58::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.21; Fri, 3 Sep 2021 14:53:54 +0000 Received: from VI1PR04MB5151.eurprd04.prod.outlook.com ([fe80::499b:ba92:db2e:3f28]) by VI1PR04MB5151.eurprd04.prod.outlook.com ([fe80::499b:ba92:db2e:3f28%7]) with mapi id 15.20.4457.026; Fri, 3 Sep 2021 14:53:54 +0000 From: Daniel Baluta <daniel.baluta@oss.nxp.com> To: broonie@kernel.org, pierre-louis.bossart@linux.intel.com, lgirdwood@gmail.com, robh+dt@kernel.org, ranjani.sridharan@linux.intel.com, kai.vehmanen@linux.intel.com Cc: devicetree@vger.kernel.org, shawnguo@kernel.org, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, peter.ujfalusi@linux.intel.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, s-anna@ti.com, Daniel Baluta <daniel.baluta@nxp.com> Subject: [PATCH v2 0/2] Add code to manage DSP related clocks Date: Fri, 3 Sep 2021 17:53:38 +0300 Message-Id: <20210903145340.225511-1-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.27.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: VI1PR07CA0200.eurprd07.prod.outlook.com (2603:10a6:802:3f::24) To VI1PR04MB5151.eurprd04.prod.outlook.com (2603:10a6:803:61::28) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (2a02:2f08:5708:8600:fd8d:b9e7:97b5:dd4a) by VI1PR07CA0200.eurprd07.prod.outlook.com (2603:10a6:802:3f::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.4 via Frontend Transport; Fri, 3 Sep 2021 14:53:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 17477f74-f74f-4758-faac-08d96eeaa60b X-MS-TrafficTypeDiagnostic: VI1PR0401MB2654: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <VI1PR0401MB2654DB235A75232E2F3CDDEAB8CF9@VI1PR0401MB2654.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fuNroluqZJkW5IGmpuRNKiUeRuS4/HtzUViVA0CfPAFv2zVNdDomwHyw6LPgFEbedy7GepQsx63ha886K0Nn1sex5STDLDtEcNmLwroDwHu1IIEDxqSXZAnKHp2w/wS1mwItl9fsBCpFRxxNNELxq+pR/PRf77hi/Pp0Z0DOmL41tYyecNzhkBKKHWWAgnYHhQUixxJdJRmgxFgJ5MghUaTWccgvhmh2xXlH2Lc4IF8yY/c+sLsnO/k9RpqYo+IRPHeRDs+k0O0YpZelD3KTcOu2Ov4quBoBlFqjqLlMIybmjJdx0/FTf/YLW+pss+BXkIkiD0Z91k4V1OwoDBZV0tUWGXs6Rxo13VhWmmZRR3xAyNr6VHj7Z5u5lVDizg4j6D3Zx5RhZJVAcf+23KTz4ejhC149lKLkc5tnPi5KKqEZlM9gWABsWnlW/iv1SuEFPri+LFRvd0Ntyr6R8okpUpeTGu0iXrqaE0sAJFvZbhNCyT9uvhIkTglDNJx3dIaMWs6U1o2sDANlkcZ7t4EoU/ieEcYpAhUdButZ2uIrrVybRNpX6fkpLq7mvUXs8SK1BCYEVM9J4zjrCX4jfnooTNYBSIrvf76uVYqEYIku/XCB+ddBOmyR5BONkgNWAqGDSrS9TMAUXtugnX+Nr0YPVg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB5151.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(186003)(38100700002)(66946007)(44832011)(52116002)(6506007)(86362001)(8676002)(6666004)(5660300002)(316002)(2906002)(66556008)(4326008)(6512007)(6486002)(66476007)(508600001)(2616005)(1076003)(83380400001)(8936002)(7416002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: O2DLZdHmEcKktAKlLYOIIBDHIhb1etlpTIySIJ7ZU9mFsjSNhKrA5y53UoK2mMclAo6ueoElIZ59xKK3uhX+9IMu6De54K3QqPllcM1U9ZEmhYE70rg/h6QksHDCTYdFT5tahbaY2lcNCjPLfRRbti2soXGRGf8BkkVLOuV4CR7USzDRNypHSfa8ZA76TLNQvBNGEyZ1/io3OHg63tFenIFY7E4TUsKf0gbnUAlvpNvYHNLbJeQkWrksaheWrI6Kwj4xHoxw7Taed3zYpZ370RIxXwpFKy1KUIwAhjnVZDnzeufLEixPTw56YJ+ze4JGbQd7i2PIymifF/j30YuPOITPU+W5jvtszNenk+s2g+f1GDuC+jdHJ/hocs69blY/zs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758-faac-08d96eeaa60b X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5151.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Sep 2021 14:53:54.0049 (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: LyqCkz8DUqYf5EQW1spJb1dLQXDc9aWb5FSAqhZLO6oMR1K4sIFT2tiJXXw01TJK7DzpdQyH0HV2h6x3ugIHLw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2654 Precedence: bulk List-ID: <devicetree.vger.kernel.org> X-Mailing-List: devicetree@vger.kernel.org |
Series |
Add code to manage DSP related clocks
|
expand
|
From: Daniel Baluta <daniel.baluta@nxp.com> This code is based on top of SOF topic/sof-dev branch and we want to have a review with ALSA and Device Tree communities then it will be merged to SOF tree and then merged into ALSA tree. DSP node on the Linux kernel side must also take care of enabling DAI/DMA related clocks. By design we choose to manage DAI/DMA clocks from the kernel side because of the architecture of some i.MX8 boards. Clocks are handled by a special M4 core which runs a special firmware called SCFW (System Controler firmware). This communicates with A cores running Linux via a special Messaging Unit and implements a custom API which is already implemented by the Linux kernel i.MX clocks implementation. Note that these clocks are optional. We can use the DSP without them. Changes since v1: - used clk bulk API as suggested by mark Daniel Baluta (2): ASoC: SOF: imx: Add code to manage DSP related clocks dt-bindings: dsp: fsl: Add DSP optional clocks documentation .../devicetree/bindings/dsp/fsl,dsp.yaml | 33 ++++++++++++++ sound/soc/sof/imx/imx-common.c | 44 +++++++++++++++++++ sound/soc/sof/imx/imx-common.h | 13 ++++++ sound/soc/sof/imx/imx8.c | 37 ++++++++++++++++ sound/soc/sof/imx/imx8m.c | 34 ++++++++++++++ 5 files changed, 161 insertions(+) -- 2.27.0