Message ID | 20210902123216.787025-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 e38csp32357jai; Thu, 2 Sep 2021 05:33:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwftjBCr7JwtQ8H9i5BwCIx7bUkEHR3s7yZnI5n43/TcTTC85K9PO27/UE5uTCI/osE25eR X-Received: by 2002:a05:6402:2925:: with SMTP id ee37mr3389126edb.264.1630585967653; Thu, 02 Sep 2021 05:32:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1630585967; cv=pass; d=google.com; s=arc-20160816; b=nsniOo6Mz0cf1kKAnJisw4B3mlWxJdJlZxZxhUNW39Z1rSWdQHLC/iCHSUc6hS5wTk gIzjP5tH2cgUlnvb/sHZdDSR6RHbtjgJrYzDaqK7oDdAyvN7E6/8IhvQlaKqFwHe4TTK 63QgPfee2n46fSPLMx9mB7BSH6iugESahj5RKRNbkSfqmHG1c4Ww/GKIEMxAPYbDruqF MXOJdUDgtddyE8m+uKNjLc8kudK+pb43yISopb/GRUUOWo75gMkDZcu2B31bxlTJhgct 34W4qKxkEDjTNfHdp2LJNmv4V0coqQgXW5ZIMYbuz4VFtfbRcHULeN9JXNUfumk8w7aS Y/kw== 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=QdA7Vnoi7i5bjf+52yRjv58QRfFaAeOuSE1hEvQDVPU=; b=cfXkp7kv0b0znBICP4wWd/ojdg2TacfaoI+nRB5RLZO3MZ8Bhyo/n/t/ubzlk5eID9 0hAv3INWrlSwQpTytf3PO2/GOvCQCH/kCq51Z46bTXb1zVZnLW51kTg4Zmu5YKFFjlmJ dCd2NBOfvAyU5cDqz0DSNpgZRsDxEz8Y9CiKAIQ4MjAAFmtPbso3rxfy1BmW+XsdR5kb HxwrhVfuAKmpo/SJ1cuu4w+Hxg4dfWDJeX8AOzaltkSlVVzFegXf4Q1k/A9qdffG3LJU cJGufFw1ChKV4425Tgd5n84Ga1slo5ww72PThTrGPfZYtpbxdk5htn17EQ6tdAFCu1F7 aAaA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=KhIoE1n+; 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 jz21si1682493ejb.539.2021.09.02.05.32.46; Thu, 02 Sep 2021 05:32:47 -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=KhIoE1n+; 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 S242954AbhIBMdo (ORCPT <rfc822;naresh.kamboju@linaro.org> + 6 others); Thu, 2 Sep 2021 08:33:44 -0400 Received: from mail-eopbgr80088.outbound.protection.outlook.com ([40.107.8.88]:13189 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234094AbhIBMdk (ORCPT <rfc822;devicetree@vger.kernel.org>); Thu, 2 Sep 2021 08:33:40 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jhP7GLMYfWMqaELGGwjRFz5qvbjkH+lxYxhnYXRvE34XV//jHYZPoyFFA04WNZLY2xQTJN9VM4sdBqeaSp7Oa11/mqzjMhhKsWMXQdA8DUm5AsfsGPsjU10ZpAexVYC8TF8n8imBLw4RM5/CJO0/n6aJFe6Wi2TTt27P9LUs31Sz6+QOFo++tbuREXswHC+WKLIS/AXKgqVXsbt4357iDW4ntJ1jJyn6OC4oqBbUHyamxGDtjXG/pXMyc+7wDzvCUfb1pgkPeIYB7WBTKUgYulmy0esR3YNkUCKDqhu9zE9q5umD0wBSSPQJzeiuomH6bAQ+f1TZwvGCTD6DPDCMtw== 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=QdA7Vnoi7i5bjf+52yRjv58QRfFaAeOuSE1hEvQDVPU=; b=RYfN5KeJMtTo5Vg/aDPojD+J7rcfNdNOT3IlshF306cSn7IGPV1efVPtKQ9cNtV+Gb0sjAPBxpLgC2eIiNe+kHm7QZYNnAd5msXV9htUad2Sxiir/a2j+KgbiI0Py8oSw/w2IiyWKLtsajNpZuxsPsylWcI5XHSAFMFjzW3Gl5hTl9ovzGxS0g4NpcqGFSfiN45+wSK88CJOzTgdZhCyCI996B1NATH0HofOALKam/73saFrWnvGc3vTyUK1Hrb66QGjZ2cXlG3i9DA2i0Wr9HQNAh/puepF4Jf86QuPngakkcCXDHpZZRGjy7Qg5AXwR+5itTImVBT2RvkB9AR+dg== 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=QdA7Vnoi7i5bjf+52yRjv58QRfFaAeOuSE1hEvQDVPU=; b=KhIoE1n+4DPsf8L5MpCdsSdMYsdaYVak8TQXuQmjk2VMCV0QEg5vNRTSzspNgtpsSTjJMJun2Y/nfcg9X1pmMgvR4OoquHe8HB8CIRj+Mu7m/Db1gWXnFPH+HXCjCC/fJJqkAE8m1Vvsag8ROR54E29B2GFHCw2ugr0HrlrYC88= 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 VI1PR04MB7053.eurprd04.prod.outlook.com (2603:10a6:800:12f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.20; Thu, 2 Sep 2021 12:32:39 +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; Thu, 2 Sep 2021 12:32:39 +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, devicetree@vger.kernel.org Cc: ranjani.sridharan@linux.intel.com, kai.vehmanen@linux.intel.com, 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 0/2] Add code to manage DSP related clocks Date: Thu, 2 Sep 2021 15:32:14 +0300 Message-Id: <20210902123216.787025-1-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.27.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: AM4PR0902CA0011.eurprd09.prod.outlook.com (2603:10a6:200:9b::21) 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:3b00:218a:73cd:7fff) by AM4PR0902CA0011.eurprd09.prod.outlook.com (2603:10a6:200:9b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.19 via Frontend Transport; Thu, 2 Sep 2021 12:32:37 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 19044b08-8a72-4891-8a09-08d96e0dc040 X-MS-TrafficTypeDiagnostic: VI1PR04MB7053: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <VI1PR04MB705356A71A159208566B8C3EB8CE9@VI1PR04MB7053.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 28UiYjGtTapgHCpHg/dfqF08YNi+srFmuldHV5Si1j7kKAkrIeW/3bhqGVqEYzsAPDpaiEUpUPfJjECfr0pbA7qn/QF/mXG3/hYrwybW7aFL5KAI1kEViYmB6grbHdy+1maz0lJR2UCmAfYIRqJ6pJGJKPJJpP0R+kHrApcXzgpZZh7O/5loZW4bEZoOyHLq7lVkdn0oY2v49KOwjZFeHB4CiwT0Tg02MqXCIMZkbN+YY4IRZVU1tUQhjHErSA4+lJ1c5RNMEXAmgAFV/cdM+2ZX5XJz84OcCmakAnDRQIa+hUoDCvzRrv9DAo5nu/8bxCcziwBTXaN3KUup6h/qPGJLMp7Psde6EU/gx0JxxbdOJxSAz/4KPmnwfy84tRgeIBSWqgCeDNRpyhSVY5k68rDNnwf3/DEAD7tjeIVGzyKQJydv2kKCtLQ1wNIzCO5do06hmpyOiHaMB/sGEkrrTmwzceoktt07lwfzqomc++ZuhS6nreNHWpHlmw1htQ6Ea2PWNL50QXf2n+T+vFCe6RlZPj9Fk+CR6cVI153GSkP3BfzmTg5fOEvgF6nCzVOiV6M2N2c6Pln3p5UDDIreqUMv83NRF+gENQP1dBtr9YsLykiF9rgSA8dSjOdpxNqg3zelT7WPc0ezdqUG+s96nmK/yZ3KIjr/ehSwqPccbPjfpm82WLzC8Tm2Kn7FlGakQX7aNXba7VQRYk/Z8kLCv2Tmfkt0l7X6mmK8jXsOCmA= 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)(376002)(346002)(366004)(136003)(396003)(39860400002)(966005)(44832011)(478600001)(6506007)(66476007)(66556008)(66946007)(5660300002)(2616005)(8936002)(4326008)(38100700002)(8676002)(6512007)(7416002)(1076003)(6486002)(6666004)(86362001)(83380400001)(2906002)(52116002)(186003)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Gb4yKJjHfJBGC34TFpGUmQQe4WeljL+DhppWckQksLFrEC6WK5Qk1C1hrV6O4zSKH4lRXOrVbmLgI4cROPBmZyaf7dCLfkv7TEJRqKlI/SPoD3vNsRRaw6DNQ9pZkh6g0F94Jn5vI5iQ0VBXwDP4qd3X/VBo9/xsG7sL2u9hLGz5Ds0nuUxVFYvcOimW7sB6rPyIL2S3EqzRmpuGVO6+ltFhVLRjxpYwXLGGhQhvUJ5fIUHq1Gbaz5Hhgc3pU7f4KDK7iYu9fLxvt8AaZ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R86/riZ0MQox17pVY98DbtyKhpBsFeQJYgdZLxZakyVmEsZeZX X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 19044b08-8a72-4891-8a09-08d96e0dc040 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5151.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Sep 2021 12:32:39.1989 (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: 28mlF3rLS+5I2Aha6Yd9dy/toVYeEQkMBdO3tFkSD4mMFDCnTkj4bBqipL7r1qb8wYerksGkgPjlSipSL4Bc8g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB7053 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> 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. First patch was already sent to review on SOF Github: https://github.com/thesofproject/linux/pull/3131 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 | 77 +++++++++++++++++++ sound/soc/sof/imx/imx-common.h | 16 ++++ sound/soc/sof/imx/imx8.c | 32 ++++++++ sound/soc/sof/imx/imx8m.c | 33 ++++++++ 5 files changed, 191 insertions(+) -- 2.27.0