Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2847518rwe; Mon, 29 Aug 2022 00:58:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR71Wi4DyvEWKcYeSr08/JTj/pa0D9Y7yoyaSVtEPa8I2BviVqoDNRC7BjBgwx0PVVYzHHEC X-Received: by 2002:a05:6402:176c:b0:448:3920:14d3 with SMTP id da12-20020a056402176c00b00448392014d3mr6348063edb.299.1661759895010; Mon, 29 Aug 2022 00:58:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1661759895; cv=pass; d=google.com; s=arc-20160816; b=obcH+smivoru9AfDd8VxNq2GQRUs/sGZHFbx6UC0ZJpRl/+dINT2aJLJ1BD62WehUD llKwLuRnbcDykuRRpc1c69PPkIXqYOJlDY38I7iwh8NLpAX1X6Fo3N3xh8DgpcqFBgfN vaRvoAmRuDsINGFiAv4z7TU9DAFcCXY+Umst6W0l/7aYbKLmDosz1uYRDJeQLvNEVrKs NQSvG3yrrohCxRSh+PorCXShi979eEm9JkllU1okQ50Thowg6wGa212T2rv2W4U6d2Az IXcGDikwELXEp39wAa+L/gTJ9I79MdK5SUcciOSS1sqOXULkp7aRzrV+AFuyuDMObrS3 9XBw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=h/uhp+ejqiSCUTv6XvJqDLN5rybCPPKud1opQ3+Huqk=; b=hFOya8mVp8m1bB35FE/zDWI84WAy+jDD3CcTkw3LK6/g3ckT/fU1MAgenVi0ztipl5 Lb0dCS45ynxHAYclHFgQG3Lybc5K2sFRNdyoGt8zx8C+woMh7yxeq9tltBuhDqVPEGu0 tTNsby2KvRpM/pRi2cGIHBVVSxl+0TyXekRA56oRRZhspQhe6IW3+X2JvvlEHiWap4cB R4F7ctiAirXXX4VFL4lLH20Tmj1GzWrWICHxerJ0jTqxjAIIgtUAxmc+8Q6yZIzCfGEJ 81IoSUB65WtDQy9WWY21kZcc3kFCO0nba5cS2Y8Ny+T18txWtaZo7hSHbMbBlfuIzFlN 5gNQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=cJmKJG7O; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b12-20020a056402278c00b0044603506bddsi7357325ede.137.2022.08.29.00.57.49; Mon, 29 Aug 2022 00:58:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=cJmKJG7O; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229791AbiH2H4U (ORCPT + 99 others); Mon, 29 Aug 2022 03:56:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229747AbiH2H4G (ORCPT ); Mon, 29 Aug 2022 03:56:06 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2058.outbound.protection.outlook.com [40.107.21.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE4AE11819; Mon, 29 Aug 2022 00:56:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iu0ZVGk+Au+mnimVo3UewfPuNxPHWw0WP98AHr+NLizbdj0KaxHBcz5mNEhN/xnDl+oYcGtFxIraOT3fD42sD5hO/Me8Fpla6DMuNA0UTUuTlsVZ0i/ATAhY7IBehrAzjhfBt6Ykvu+NOnMiTtLsW5wO83gW91UX3HBFwET3aT54+V5/moNLkFyjb7JCGgAgUOyqJWV707Lsdd9tDYmyLblKdijcCAFpweJ/YKROYfpnnwQA0Iw6THWGF9mIIBY0BAfkk9jf+KOax918gcUXAjNCAC7exW9wDwC0zozTRCkgqqtdEOeaeMG1vq9x1YyFMsFLv8QINtFVfONG4Mb05g== 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=h/uhp+ejqiSCUTv6XvJqDLN5rybCPPKud1opQ3+Huqk=; b=WTNYTV8omxEwLV1qFWsIh0RBEiCPX9TlyYxX+nwqf7LV9NZJclST1KUoK6nLoifq+srmIWQyWSZXtDGRFE5NvFVJejaeXSannhuacNToAyUoy+dRXlnOFb/r/iFIOe6qi7R3YXUJNwpkXoE892iAsK1kSrnTpunlxRmP7DPlmmE3Pw/L1y6yHAMz5bRSl9DbBR6Hv9gpLfLSa/8gpNuA0yR3F5HTTU4ZOGpPUI/2R1yTk9rJ1oEemJq+uMmC//Jwg6KpejY9zZsZWicA82X23GxppXwkQUuqaGukJJKUA3ANP/gE6dShbA+FBzfDITrC0la+917QM5KATRJ3YqFREA== 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=h/uhp+ejqiSCUTv6XvJqDLN5rybCPPKud1opQ3+Huqk=; b=cJmKJG7OI8iw5vIqHfYPDYm3MKy0uFXRUvUZx084PO0r4H+FViaQ4ZTX8vWbg9lrm8uDQkhDcWyWedN4seyLsyLw5kA/qCO4gPwqoH1V+caVcrdKQ8mIxB+i7UMo8tuMFzxdtVgX0qkFscYxEd6neOvgCeYzWfwJL8ECrtIvuLU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB4222.eurprd04.prod.outlook.com (2603:10a6:803:46::19) by PR3PR04MB7482.eurprd04.prod.outlook.com (2603:10a6:102:8f::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.21; Mon, 29 Aug 2022 07:55:58 +0000 Received: from VI1PR04MB4222.eurprd04.prod.outlook.com ([fe80::3139:70b4:6648:bd32]) by VI1PR04MB4222.eurprd04.prod.outlook.com ([fe80::3139:70b4:6648:bd32%4]) with mapi id 15.20.5566.021; Mon, 29 Aug 2022 07:55:58 +0000 From: Chancel Liu To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, shengjiu.wang@nxp.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, linuxppc-dev@lists.ozlabs.org Cc: Chancel Liu Subject: [PATCH 1/5] ASoC: dt-bindings: fsl_rpmsg: Add a property to assign platform driver name Date: Mon, 29 Aug 2022 15:51:40 +0800 Message-Id: <20220829075144.2405000-2-chancel.liu@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220829075144.2405000-1-chancel.liu@nxp.com> References: <20220829075144.2405000-1-chancel.liu@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR06CA0012.apcprd06.prod.outlook.com (2603:1096:4:186::13) To VI1PR04MB4222.eurprd04.prod.outlook.com (2603:10a6:803:46::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 720768d7-02f5-4f6e-f135-08da8993e852 X-MS-TrafficTypeDiagnostic: PR3PR04MB7482:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5yyjbXe9a92Y88qWN7oTFJUa26iG/lrvBXmFTqqeTYSsN9BXhiJ80D0D95AXoSEvnFm9CiTXQb6oCL91EmTAKDG3Hk9WRktaOfsmMQGhqkWhiGWSor6O7IrQmRLXy2xDd1Y/qqHhqqb6rWPEVNa47kxCZBZSu8Hf7dPXkiX3wHxEcv+FYzdTD/g8Qjhn1jFXQeAwtwWP1rHTu4WWpAsW/ABAgkejnMaM10+n2aO97y1+CxY3AC+wG+hFFtfpSv72VrVZBBtTn5XlKK2YZ08stJoqJtlWUINa/1g0swBOS2kh1jFPRR8S2/PgekQ7FcmLOWfrKXkAXlMSyaXfs5r+beQdgE0t9UCOR6L5wt2AD8MlHin/uSCqu/1pL86XAHl4CeH+8UdtRdou9HpSmUTVoKpwGzxol9+j4Zf6h+O+OdZm/Ye5SL8Pnf7gVzk+kJ8PgRi5EegakCQi6Ny7PTSEigmJ1ZK9pa+T4qr6RP84PoNvyDwNdmSTd9KUxJFSZMBCQRwEJwpqM/hbRlMM1XQlE8vT7kZXwMrdd6tL/COWxWRM0+O3Wm+ii3DfeHKogUEL2pDldZN02HlzHr1+OA3uNfn67YbzFhvueCO3mhya92vGxx5wIVkgOw2j7maSbRfcX77ds5PziUCp134ToMPV0AKWvj/BRGOiBxrKRVMe9eeBcfTeeSg9n8zQgQzWOm5/q/ruEY57bYgp4N1qTwCKKLd+qAfxmcrk6weO5eb+N/LVvgJ5FrHi9C3OZcncbeh41Tnm7ONmMjOaldX2eAXijnjANm4sbjLTRKxsQDsUR1o= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB4222.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(376002)(346002)(366004)(39860400002)(136003)(396003)(7416002)(5660300002)(8936002)(41300700001)(186003)(6506007)(2616005)(6512007)(86362001)(1076003)(6666004)(44832011)(52116002)(2906002)(26005)(38350700002)(316002)(36756003)(66476007)(83380400001)(478600001)(38100700002)(921005)(4326008)(6486002)(66556008)(8676002)(66946007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?1YQA757UJ5Lp+71cInY34JB+iOIxz8UApDHGpHsOzsCwqRjF/1YVK58yxihX?= =?us-ascii?Q?Q3AoFxNY1PypYgSpR+JNcwDA6onfP4l06VdmC7xu07Wj3tPLs/v9hM6UPtf8?= =?us-ascii?Q?9/CWmx0ryzwsLcEGg0wXc0TecMnstJLoOrNqHq4x780UdGjWajzryy6p+kbg?= =?us-ascii?Q?YltThpN1/0zD5LsiRQZ9Wvg5up6dJvOWHkWZiFMRl5puS3bN1y1RmtDYOWtW?= =?us-ascii?Q?s77vEVDlQxpRoEdxaS7lLsl0ZUJk5ktnk1yNpbLEHEYavmo7+iRnD7kSorIj?= =?us-ascii?Q?dZM7Byu1RF+EyBgKJY+I3gDF3NQfRPpcYcY8RCckAprh25qns3Sdu6bZxbWs?= =?us-ascii?Q?j0LEwfhWcP9f+qKoJDvzL918gu6JNbciJNQ/+CI1HDN3rMaF1fiGv7xWJ1m2?= =?us-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RtwlVvs6LD?= =?us-ascii?Q?vW/7GSY3IQgp0lCC90XrNsS7R6aLMKxfH68XNfljwQ7oFByvKzsMsV7jTNAI?= =?us-ascii?Q?PFMenVw0KwoqUYnELk9+H0DeKi/VF1nxx8Hx7V+jp0rPn5OE4t+s98Zlt+GO?= =?us-ascii?Q?myJ8KlH/3zRECulHX8cMicMIT+0U3dZMeAkgAU2+xqqTi2PwRFLu82Nm/pI0?= =?us-ascii?Q?blc7dWrsyEIqSmfqwCnVrfTsX295D649heQ25S0CfXOdAJuavP4eIjThPrt8?= =?us-ascii?Q?vWgNPko9Mr7LnfRHvUGPVAiWmGClifekn5X+a2WI?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 720768d7-02f5-4f6e-f135-08da8993e852 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4222.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2022 07:55:57.9012 (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: P5pCZTQhJtXtbfbnqFcBDzYNXJuDh6GcgEtbkuN+tEnWkt6jqBlVLk1w2PjDExkyPZuNr/f3/2LnMR5mD/DYzg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7482 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a string property to assign ASoC platform driver name. It also represents the rpmsg channel this sound card sits on. This property can be omitted if there is only one sound card and it sits on "rpmsg-audio-channel". Signed-off-by: Chancel Liu --- .../devicetree/bindings/sound/fsl,rpmsg.yaml | 34 +++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml b/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml index d370c98a62c7..35e3cb9f768b 100644 --- a/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml +++ b/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml @@ -11,8 +11,11 @@ maintainers: description: | fsl_rpmsg is a virtual audio device. Mapping to real hardware devices - are SAI, DMA controlled by Cortex M core. What we see from Linux - side is a device which provides audio service by rpmsg channel. + are SAI, MICFIL, DMA controlled by Cortex M core. What we see from + Linux side is a device which provides audio service by rpmsg channel. + We can create different sound cards which access different hardwares + such as SAI, MICFIL, .etc through building rpmsg channels between + Cortex-A and Cortex-M. properties: compatible: @@ -85,6 +88,14 @@ properties: This is a boolean property. If present, the receiving function will be enabled. + fsl,platform: + $ref: /schemas/types.yaml#/definitions/string + description: | + A string property to assign ASoC platform driver name. It also + represents the rpmsg channel this sound card sits on. This property + can be omitted if there is only one sound card and it sits on + "rpmsg-audio-channel". + required: - compatible - model @@ -107,3 +118,22 @@ examples: <&clk IMX8MN_AUDIO_PLL2_OUT>; clock-names = "ipg", "mclk", "dma", "pll8k", "pll11k"; }; + + - | + #include + + rpmsg_micfil: rpmsg_micfil { + compatible = "fsl,imx8mm-rpmsg-audio"; + model = "micfil-audio"; + fsl,platform = "rpmsg-micfil-channel"; + fsl,enable-lpa; + fsl,rpmsg-in; + clocks = <&clk IMX8MM_CLK_PDM_IPG>, + <&clk IMX8MM_CLK_PDM_ROOT>, + <&clk IMX8MM_CLK_SDMA3_ROOT>, + <&clk IMX8MM_AUDIO_PLL1_OUT>, + <&clk IMX8MM_AUDIO_PLL2_OUT>; + clock-names = "ipg", "mclk", "dma", "pll8k", "pll11k"; + }; + +... -- 2.25.1