From patchwork Mon Mar 6 23:48:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13162542 X-Patchwork-Delegate: geert@linux-m68k.org 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0763C64EC4 for ; Mon, 6 Mar 2023 23:49:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229534AbjCFXtD (ORCPT ); Mon, 6 Mar 2023 18:49:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjCFXtC (ORCPT ); Mon, 6 Mar 2023 18:49:02 -0500 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2101.outbound.protection.outlook.com [40.107.113.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0635932E74 for ; Mon, 6 Mar 2023 15:49:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gbZcQWD8UlhYL03EgPg6oqffPhYWMxyg4koI+PtdNicRskgFxYcCbIF3HIr8tCRYzGec5mmfu00XcQ4iLCp5K+AhCz1WpYXy5Jr91I/RLfQETV2Fdx21cRHe3+rN3kjUUu6msl8HiB8uzFuzd+OHoNQfRPofyBjrBDfT4NGv+K+2bxSLycES/j2hE8a0yl2vAYoQDHkXoF1z5OtT0sOqk7P8YiDiVg87MGsIm47t5bScmClTt+mPncbry1MnGalmHjbW3rZ7lABZcp1n97BrrdMQF9L+WXuXQZJMcYwIAFFc5YENkw0KAUJGQ4/5j0AYzYObkIpiizSTQMz5VFGhjQ== 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=d+fDU7/EaR7N3A0xymsRLyn2/DD9zlRRWGJx4chxAlM=; b=Kk76z+RZI23SL8WO8wOfXEuXnf8adnDUQGIgR4WBsIwe6PqZm03nq2dQxHa1IJ/bWqIz4X0avc4NxT/EZdvG7ME7B+gpAY2jGQQpQKDRDieRot0+F0RKO1nFZAcXYBBAJCCADYKPkigEIry+yWu9Hr/7CcnL4SHMbWNVIu1GrQlhw/CEYCH2Q39I9ejGq6KrW+e8I1Ck6Z3XGyb62Q3qyq4EBs5eeBzpYlaq75Fc6UxPxBCF7jEeVSIr8kc0LBXc9hq1gk0ob6bSB0J8e+GnUsmwykvkTZbPVtqIPQbickZfro+0xD2i7lAGCvX+Hr4SedQanOHJ/F+1EJ4OR1o9/w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=d+fDU7/EaR7N3A0xymsRLyn2/DD9zlRRWGJx4chxAlM=; b=SLFgBx+7XVBWlvOOEEOaa/wWkUQUY1j1TmIpdJ/inqjoZlJBKNFLJJs2fY3JE7ebS8Db4N9VUkBHYAtx4h9gh2eDUdcwDo56eGhhmx7tDPAVXLqXMjuSxfnPFeQVkytRxv8JbkEDU3LBWqSOE6bWYBOn7M6wNmN3GRYhusF5FJc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) by TYCPR01MB11433.jpnprd01.prod.outlook.com (2603:1096:400:37e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.28; Mon, 6 Mar 2023 23:48:58 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::e03e:1938:695b:f472]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::e03e:1938:695b:f472%8]) with mapi id 15.20.6156.028; Mon, 6 Mar 2023 23:48:58 +0000 Message-ID: <87pm9ll9ue.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 1/4] arm64: dts: renesas: r8a779g0: R-Car Sound support User-Agent: Wanderlust/2.15.9 Emacs/26.3 Mule/6.0 To: Geert Uytterhoeven Cc: Linux-Renesas In-Reply-To: <87r0u1l9vc.wl-kuninori.morimoto.gx@renesas.com> References: <87r0u1l9vc.wl-kuninori.morimoto.gx@renesas.com> Date: Mon, 6 Mar 2023 23:48:58 +0000 X-ClientProxiedBy: TYCPR01CA0045.jpnprd01.prod.outlook.com (2603:1096:405:1::33) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|TYCPR01MB11433:EE_ X-MS-Office365-Filtering-Correlation-Id: 825f434d-2aa7-4cde-1a90-08db1e9d5ae4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jIt2Sn7+2HaOi+UZjwAoo09V2uVU8UfNlIY4R4lt3bpgncnxri4nfPJd9sZ3ljqMn+MwG2P5L2u1C9tkjnlyDjdhodmVSWFVlqOdVdnwabElGxP4qvR6QPgtoixwbinobBv9cW+TnN4xseWiuAiH3JBddeZzzTNnjeO9yKzC1tJUCiOIcq2qkOhIH6B+cW48g9DjYbUMHCzzRUMBnzc57s5ZEwYoHLJRYPFdG3+caiVqGNM6jiS20W1ELOokH0+y7ceVlsD2QjkUjoi3pXv49QfMl9VWnmp9ILyQyXH5OFgxB2bMvXOl3rXDd0DiI6rXO1TgziV/Kf4f8Mt80oIHa/bsoVADBywK+SMeg+Ct/giMzM1W+ekG0hqaJ9OAYQLwLnSVDGHIYR9MdOL3Vi6vH1BUWu4pGiE7wsUH4FOdIGnRkIjUvyKvOBSgG///hODJvxZK/0HHvvecdgPqPJrJK1nGPqUPBoPoAZ1U67ZLTMTSy5Zw9FMRuLD8he7AIn4wZHNYw09Hs89/YIOXJotvFKUhV0EsKMUL9mTmslt34mJ91Qb7ALizDO2qrvxWenuk+oLVTj3+CxTtTfqZaE4o2ukwC5APYytpx4RONXd20A5hjwZl1EqozU0Lia3CP1skuTaEB8mhrPM8OE9MSIxSGg/NiB+y90Y4fTR1Yuoo+w1p+/TvyRdK3MF+pb1yNgIERjs5hxgQViBC5+9GLMnqaQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OS3PR01MB8426.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(39860400002)(366004)(376002)(396003)(136003)(346002)(451199018)(36756003)(83380400001)(6512007)(6506007)(41300700001)(186003)(52116002)(26005)(6486002)(2616005)(5660300002)(8936002)(66946007)(86362001)(4326008)(8676002)(2906002)(66556008)(66476007)(316002)(38350700002)(38100700002)(478600001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 93Wt3aZ36YthpXyi2LnJgc7KYyzZnlPlzosZ5DTMJgWff7azwzwePBOBXMi4nyDoTPamm8L4Xd0PobQad0ef76oam0aMLhPV/WAdPyuiorjQHvI1GUFZdcpMXcWosuIn9SOxQ8mgdhSUtdIlzvGjAg3vQJ6VmzqGuP8GXTNkZKqJ89M2v338+29Nxort/SkIr0EIqBZuGvcIiH/6uek7d38Mq2YtGQNcaNRsh/yroj4yndtrPXHDGyxRppdc3WtITnIlEBYYw6GSczgpPztBbt/06uaoGcbfVCIdTl3CD/mKTedMJTRziWnqWcBr3T4DVTkIozDdesS+ZzarYYMXG8Sf8IratuMFZ+UDrSbf5a0YKO6TsC0Iy/NdlhdeWSKEKShAfLeVJrYk/eIAUMSFROkB5nKjbYtW9toFtyFW2cl0pOELdAAOxZex571wLQSZ4N2vbvliGHfG/WgsgQVh4JQUWUTf8a61OkyN3vKnM7hLXwWiysEg5dO55mUHehVWAs161EG7rfdFXOydYGQvxQGqU4FrgdpjeLzu/8kaXnjjZFDUcG4UZUzRcHfrDNFTYf11VClkEk1yjaqB144+hZDBAh4aJ9WcLJU+OcYisfRk/rj5Lg7iq2kT0lyfhMsfuBYSmZ6oH/qFbMS8FzWbY1u/oSttf13h0M7y5E4e4E95QfRV7F0mirf8EBARXEYkYaL8MHA738mQvPbzA9s8prdPVCWT+8HV5GNquXjR8jFd496Rfb8dS1T4R8XMc9V7mPL+ttfp2hs9Nf/VWA5HAsyCysHqNagK9tcW2fpckCMBXmcf86JCmPzZHhpn6kpBe55nanZgM0oHXCTROmktBcI2dWMBN8lioAisqrJDInqVnTJV46kDWjFUcsgtxjCnaVthavNAURG6HkvxM3B4w2sMl9IVnWojn9kInyb1BvsV1auRx76B1l+hrLi3RdYItSiLNWvzWZ/YJZfzNwLZ8B8PEmGH6+tHdGbSUvPz0Aq6R1bnHeZX3r48SP3qBKx8ZgqPjAUne+rNqYrj4NM4bpleOwpti9w+qNr3PCgqZ5fhfuNkEkyoCqI7XqMMo2czc1C2aPvMvaG8GG7SYCJ7Pk8vTHslD0g5alySD1FN6C0D4kITUhpewi9HvTGUJUn2aJBdy2VUqpHvw4j3uWLJP14bWahbirXWHXLqm0falCQi/lM88Uo5Ar14Ie+8EE14BWSvX+IENM74iDIYrEfuMjRJqz/Ia1oR7KdpEdkb6KXaRy9HSXPfDSTYWIHuLW2GaxmUlfdQxiMuckYNbhI6NdIvwy/TBAf1jGW65ijCTFFYwCs8Ui+3qeXvr0SDc9BfX7+Flp+aEQjx3rYhgg8XyYm7WMtBBGidALbpDTlGqLTiiXzyKTHdc6IdMMPZobk0tSzVs2CabI/+KnChHuXRu9l3KCEqSeMqDQTgTiGVvTpTj24kQhk938beLHatjZBUgZ3l2R/lgIvmcg3KiwGYSYQev7tvpbg13Bn5MAV442tBL7aPiatwD/Sb6rbm0oGzbq8XY1NVXJupLCLLDJ5zg+VhZDFtrEc2n9UuhS7L2ND7HAyi5+lSQzpd4B+bHTO98qaIGtIt5KyHwigQzz9WNZl7Fxht5ljZAJFUFYgJwZE= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 825f434d-2aa7-4cde-1a90-08db1e9d5ae4 X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Mar 2023 23:48:58.7591 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9q4Ttpw+aVdGEAG1Y7Qopc3xg+3pnXREC8A6WnoC4lUUUQuvMb7DqfZCbhFl5FnHwK4hAhCplPUogsPK3oxrXvjJqGEa0DDpZZWSWTU3EkmonCrEo7M8CAfzqYjoNeUY X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11433 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org This patch adds Sound support for R-Car V4H. Signed-off-by: Linh Phung Signed-off-by: Kuninori Morimoto Reviewed-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/r8a779g0.dtsi | 78 +++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a779g0.dtsi b/arch/arm64/boot/dts/renesas/r8a779g0.dtsi index f782a18c8dd3..30a3b5f65d08 100644 --- a/arch/arm64/boot/dts/renesas/r8a779g0.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a779g0.dtsi @@ -185,6 +185,15 @@ scif_clk: scif { clock-frequency = <0>; }; + /* + * The clock from AUDIO_CLKIN pin are configured as 0 Hz fixed frequency + */ + audio_clkin: audio_clkin { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <0>; + }; + soc: soc { compatible = "simple-bus"; interrupt-parent = <&gic>; @@ -1685,6 +1694,75 @@ dmac1: dma-controller@e7351000 { dma-channels = <16>; }; + rcar_sound: sound@ec5a0000 { + /* + * #sound-dai-cells is required + * + * Single DAI : #sound-dai-cells = <0>; <&rcar_sound>; + * Multi DAI : #sound-dai-cells = <1>; <&rcar_sound N>; + */ + /* + * #clock-cells is required + * + * clkout : #clock-cells = <0>; <&rcar_sound>; + * audio_clkout0/1/2/3 : #clock-cells = <1>; <&rcar_sound N>; + */ + compatible = "renesas,rcar_sound-r8a779g0", "renesas,rcar_sound-gen4"; + reg = <0 0xec5a0000 0 0x020>, /* ADG */ + <0 0xec540000 0 0x1000>, /* SSIU */ + <0 0xec541000 0 0x050>, /* SSI */ + <0 0xec400000 0 0x40000>; /* SDMC */ + reg-names = "adg", "ssiu", "ssi", "sdmc"; + + clocks = <&cpg CPG_MOD 2926>, <&cpg CPG_MOD 2927>, <&audio_clkin>; + clock-names = "ssiu.0", "ssi.0", "clkin"; + power-domains = <&sysc R8A779G0_PD_ALWAYS_ON>; + resets = <&cpg 2926>, <&cpg 2927>; + reset-names = "ssiu.0", "ssi.0"; + status = "disabled"; + + rcar_sound,ssiu { + ssiu00: ssiu-0 { + dmas = <&dmac0 0x6e>, <&dmac0 0x6f>; + dma-names = "tx", "rx"; + }; + ssiu01: ssiu-1 { + dmas = <&dmac0 0x6c>, <&dmac0 0x6d>; + dma-names = "tx", "rx"; + }; + ssiu02: ssiu-2 { + dmas = <&dmac0 0x6a>, <&dmac0 0x6b>; + dma-names = "tx", "rx"; + }; + ssiu03: ssiu-3 { + dmas = <&dmac0 0x68>, <&dmac0 0x69>; + dma-names = "tx", "rx"; + }; + ssiu04: ssiu-4 { + dmas = <&dmac0 0x66>, <&dmac0 0x67>; + dma-names = "tx", "rx"; + }; + ssiu05: ssiu-5 { + dmas = <&dmac0 0x64>, <&dmac0 0x65>; + dma-names = "tx", "rx"; + }; + ssiu06: ssiu-6 { + dmas = <&dmac0 0x62>, <&dmac0 0x63>; + dma-names = "tx", "rx"; + }; + ssiu07: ssiu-7 { + dmas = <&dmac0 0x60>, <&dmac0 0x61>; + dma-names = "tx", "rx"; + }; + }; + + rcar_sound,ssi { + ssi0: ssi-0 { + interrupts = ; + }; + }; + }; + mmc0: mmc@ee140000 { compatible = "renesas,sdhi-r8a779g0", "renesas,rcar-gen4-sdhi"; From patchwork Mon Mar 6 23:49:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13162543 X-Patchwork-Delegate: geert@linux-m68k.org 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82219C64EC4 for ; Mon, 6 Mar 2023 23:49:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229585AbjCFXts (ORCPT ); Mon, 6 Mar 2023 18:49:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229746AbjCFXtp (ORCPT ); Mon, 6 Mar 2023 18:49:45 -0500 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2104.outbound.protection.outlook.com [40.107.113.104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D5BE34F40 for ; Mon, 6 Mar 2023 15:49:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E9wu6JF6TxsceRqaJaK3L+2bSKsZvNmhl2BOOx6fAFVbbAQMmQE1tEZE/jfeuOcp1vJb9ULMv8cYFdlqB+mxQ4ncE9dymq7onaWBqPSWPZPgTQ5cDavLpYgcrboGspKTxqaMXHkVPhbwGyegAoSxqR+MzUEUzxClI/QHwi9vtBlpZhkusDCxLRqgkHi1zVwHnzyBoshgAMKj80fEEkzNbp1opwWI5za8aLAtCWSoj0rXHmQ9YOfxf6oW+YpU51ic7sFSkkzwhBVmJZv0fO+JrT9bz7UmRmqEOfiu8lCdGgQ0lXSi1fnqVBFhq6LaH0jsidiSpLz3MgmxG5G256kRfw== 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=nqKIyMWlxuJyuXt2Je84uA4KY2xs9pBUmcZ7l4d900o=; b=V4R6kxibdeBY7laRC9uiBMUEpzmh+0aRzI9EXVhjqWMFkH3YkDowcgZFMFiQWELWkBFrDQ4Q/nvGrQBdbwEnm8PhFR3rpdh4D5om5dcjNtQl/OeUfhU9655D7djl+OwOr2DB/jwZt+ajCI4Mr8FnO8sEtYFaHfPPEtgtSX1B47j7Yrx2uyEiDiiIHCrR8a0uiY7Ubhh6Inu6uGfCLcXrOqGcbFI9z9wr+s7RyeDlBi/Z2m2Jld+ILW3B5KWdW4eecyheLsJUEY0JXuEWFUCcKEXZ+RQQ5k10tgWa55LyaJ8tuFthNaKvhEdw5zXF+cUVW5SMt5arNHOmaLWFI1GS9g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nqKIyMWlxuJyuXt2Je84uA4KY2xs9pBUmcZ7l4d900o=; b=k5zlUaT0ZLn6kWForg9wOXMs1kWogic3hHlcn6+eiRVPMtoyHKCVjPg8xkjdgkphEYGk2878LMzJ6M/6/GWg3SRp3B4xOPddw8pNNZo9V/iEKQYPK17i47wTQhK3ydIgLDx/ZnKbub+2Qp6Uf2w5ePux4GvWlkBqhdxw89r/LWU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) by TYWPR01MB11980.jpnprd01.prod.outlook.com (2603:1096:400:3fb::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.29; Mon, 6 Mar 2023 23:49:41 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::e03e:1938:695b:f472]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::e03e:1938:695b:f472%8]) with mapi id 15.20.6156.028; Mon, 6 Mar 2023 23:49:41 +0000 Message-ID: <87o7p5l9t7.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 2/4] arm64: dts: renesas: r8a779g0: whitehawk: Add R-Car Sound support User-Agent: Wanderlust/2.15.9 Emacs/26.3 Mule/6.0 To: Geert Uytterhoeven Cc: Linux-Renesas In-Reply-To: <87r0u1l9vc.wl-kuninori.morimoto.gx@renesas.com> References: <87r0u1l9vc.wl-kuninori.morimoto.gx@renesas.com> Date: Mon, 6 Mar 2023 23:49:40 +0000 X-ClientProxiedBy: TYAPR01CA0109.jpnprd01.prod.outlook.com (2603:1096:404:2a::25) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|TYWPR01MB11980:EE_ X-MS-Office365-Filtering-Correlation-Id: 0110c397-89e3-41fa-4c07-08db1e9d741c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SVVySU0+N5emSkK1s05zmIb879hUBLtVHGynjn00V6AwmwG7JtPxFrN0Nllxj4XrysHxL0WTQxY/X3rXjMQR+dYoUtJFEvb3g/Y4Dna8O72FXlwEFzSJ/QGAfPhBYgwLfmI5XkvUFv1q2wLAZoLioJRqXpBNpVCCpVq/rdRU/YKKKgPhPKVlZC2+/ZqFpyDrTz5qBfNKuWXbDwdI/2GA5MwG9okJb0wrNzm6iMQOV8KnwRlU4WC+j5CTghD1tVpoGeIgx/kdQZnuP/Owy9LUhyWHPKxC570NtqdG73AzLNTBTk0zkSbudveyCK8FaYxt3RftLEcAKc12VktLE6Kzva+jlA9RxKvqqxf1MOm0Mk6Ma2FIXm62DTRBRWfcWDzOOUZV84AqpX/hnNMMu95QtbzSRUO28IeDw6ZvAUTXpMQ75TQV+UnII2xdFKmANUGfWh+o7VSAt1ubF7mSUBWPrA/fIQGFvujA7X5jHq6TD1cgDOoNbtuu4Fc3T1oKIZjNyNEcL+f1F0ZEL/d5gAIaGH1EwuX4WmkiJrYTsEJwg6qEmTDAgm96hjMj1G9YH+otkWsoDnd1fuJ6em1t/GytJqzLLCVRdprmOxydxFnyV1C/d97qdiLbZbAqD3ax/vsYAsve3W70zJddnmCgLRiV7QYGaMGEuqQYWCHKoEDbcmReG/x6O8tuD/4mm+0fK0Jy X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OS3PR01MB8426.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(376002)(346002)(366004)(39860400002)(396003)(136003)(451199018)(36756003)(6512007)(6506007)(966005)(6486002)(2616005)(186003)(26005)(52116002)(316002)(41300700001)(66476007)(66556008)(66946007)(8676002)(4326008)(2906002)(8936002)(5660300002)(478600001)(38350700002)(38100700002)(86362001)(83380400001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: l2qAm/cONf8Pjo4A3OCvhev7ADh/RMQj5qaaFTXd1r73Cg4UIH6ciDNzciC/TdOUA+1xFR5Sfdt2L8GLLUZoacSmrgehe9svPUI9QbjC1s7H0s68esPCFu2dYVv+/x1QwPBJEegLXPZnEcm+6XLdZHxiIns+JMOxep9+KdJFaFznBnd7QAO6TVSN9UcfeWeJpBswFaoRAETueCzfRuPRmaBoWTYYKrGSlaNABmbiJjHKXbGBWR0RUDa2p0n5CuJDlfqtrCM1FHFM1mvCLOQADMLKq4wGff9mNJU5vVh277j73lZibGzgkgZPghYPAiWFAiXe1D0ygkWiOtkV+Sib3xWS6EYeAZqweCj24RoxJPSEX0RkypfHX/tmyUaDlMkxwpVYeZd70J3ZTNevZucW/JulvM6rEYj2BVU+EU7KZpx6M8tLqdBevPmuGpaI1ErNjo3ZuD0EWezW/cRsBycq2Ms0rntn5O9tYszCbFYAKokpF2pQccLpDYtvNzho4WRBAW0OwxjCDle9DgRuEKBhjD/Ib7snJGNQY6UlvbHkrgZCk76aymcu6k2znBAJmQjxlAM1bV/S3gvasltET6CwAc2mLjnM3yyYb99PF2Fl7/YxxSO3Zwkgr0xBUKuOinbxvfvV18IYhbqbUj9Oqh7hUGSLjvDXH4HCgwwzQnIigKelIrPcfKr54bv9kHSh1d/xOfLvEwTywmuVjC5Eydnt5Sj5ncW2E+1UmLR88kRQNXBfecZf55tV2mr4GmAvl86wZAzmPC65bzvosUO2/YhSqwB7A5NGBBUli4Akb6By2W7io7cNcd2JiMuHaVEchYFSiKSgHJL3dVPh+pCgKuTIsTtLNAOGaZp8GEZ6EAXNfJEcFTUODlqLbisVP5wd27538uuB0WYEVSc/12tVDIggdlV4VKyd8cIIE0Wyajpj4U8VyQmJjJ2frHuRlaujCerU12OqRPNjma3aJ8u05LpyNmfpo7bCOGmI+ebQjg/h2SS/3p3AnUMcxWb93gVrTqejCfOv32Uc+UTP/FBGe2wEKPufruWRtbebIPo2PqHZJFe/qQIS3TYOVD5K/F4N6tcR9v55HqCUeLgN067i8c7jTqPcbMfuIP4HZwey7D7dAJcFCt8HrmFvplKMdIBvHJ1vRcNg3oHSOXI08SFZdmTUlWUq7UCLAlLEtecX0hF0TFoetB2Zxsy2BVrz6jvP0G12cvFiGKmij1ieouZ/mGLRsbQjv5zQnfwhq7BPDBeMZs0yC0CZbZaEh2xGWlCpDFIo0Sf7IqqNOACDVYlgcDkn4zPwsiLvCFcgT2tYCOSrHq1rdYJCYTOyN492ta3nX4vCpUJahsPOxRhs9HA4BzFJzH/apVOS529PeHRka3xNs2gx2xMbT7tgygCpKp8pjFmiXNMH/S3Mp8bDrFDa/B86R7A3n26qF6I9b4Upejg7GIM1rGpNF8KCs0csonHInm/bqnz6fAhyHIu8sqsGeYC5OpaNRtRwy+JoxwnBp60gtJSuEx0KtggKI/eryqbKPj4xFxipfKPQwt4I8ptdllbsw1CuDUGNYiPE4RY0oFcrmVKvKJt0EFe1Yc1efrRUu/uIKRUy9XIuF7puyPh8UvkbRti4+BlzxLu9grGdGXk2EXM= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0110c397-89e3-41fa-4c07-08db1e9d741c X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Mar 2023 23:49:41.0861 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: CL9+5NMF3ewd9BArOPj9XfYMZ6prvzwU4yGABYjaeW0Vdk25OGn8tE3pljzyVnpNKdDnEYvpZpJ2buOkfbfCseC4RRJEmA0qK+ySZIu/ZyHZflktdFZd9fvGKCiayIBK X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB11980 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org These adds R-Car Sound support for WhiteHawk board using ARD-AUDIO-DA7212 external audio board. It is using DT overlay. Signed-off-by: Linh Phung Signed-off-by: Kuninori Morimoto Reviewed-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/Makefile | 1 + .../r8a779g0-white-hawk-ard-audio-da7212.dtso | 187 ++++++++++++++++++ 2 files changed, 188 insertions(+) create mode 100644 arch/arm64/boot/dts/renesas/r8a779g0-white-hawk-ard-audio-da7212.dtso diff --git a/arch/arm64/boot/dts/renesas/Makefile b/arch/arm64/boot/dts/renesas/Makefile index 0699b51c1247..22c1d20224ef 100644 --- a/arch/arm64/boot/dts/renesas/Makefile +++ b/arch/arm64/boot/dts/renesas/Makefile @@ -67,6 +67,7 @@ dtb-$(CONFIG_ARCH_R8A779A0) += r8a779a0-falcon.dtb dtb-$(CONFIG_ARCH_R8A779F0) += r8a779f0-spider.dtb dtb-$(CONFIG_ARCH_R8A779G0) += r8a779g0-white-hawk.dtb +dtb-$(CONFIG_ARCH_R8A779G0) += r8a779g0-white-hawk-ard-audio-da7212.dtbo dtb-$(CONFIG_ARCH_R8A77951) += r8a779m1-salvator-xs.dtb dtb-$(CONFIG_ARCH_R8A77951) += r8a779m1-ulcb.dtb diff --git a/arch/arm64/boot/dts/renesas/r8a779g0-white-hawk-ard-audio-da7212.dtso b/arch/arm64/boot/dts/renesas/r8a779g0-white-hawk-ard-audio-da7212.dtso new file mode 100644 index 000000000000..9135d8e4ec0e --- /dev/null +++ b/arch/arm64/boot/dts/renesas/r8a779g0-white-hawk-ard-audio-da7212.dtso @@ -0,0 +1,187 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for the White Hawk boards with ARD-AUDIO-DA7212 Board + * + * You can find and buy "ARD-AUDIO-DA7212" at Digi-Key + * + * https://www.digikey.jp/en/products/detail/ARD-AUDIO-DA7212/1564-1021-ND/5456357 + * + * Copyright (C) 2022 Renesas Electronics Corp. + * + * + * [Connection] + * + * White Hawk ARD-AUDIO-DA7212 + * +----------------------------+ + * |CPU board | + * | | + * |CN40 (IO PIN HEADER) | + * | AUDIO_CLKIN_V pin1 |<--\ +---------------+ + * |(*) GP1_25/SL_SW2_V pin2 |<--/ |J2 | + * | AUDIO_CLKOUT_V pin5 |<----->| pin7 MCLK | + * | SSI_SCK_V pin9 |<----->| pin1 BCLK | + * | SSI_WS_V pin13 |<----->| pin3 WCLK | + * | SSI_SD_V pin15 |<----->| pin5 DATIN | (@) + * | | \-->| pin15 DATOUT | [CAPTURE] + * +----------------------------+ +---------------+ + * +----------------------------+ + * |Breakout board | + * | | +---------------+ + * |CN34 (I2C CN) | |J1 | + * | I2C0_SCL pin3 |<----->| pin20 SCL | + * | I2C0_SDA pin5 |<----->| pin18 SDA | + * | | +---------------+ + * | | +-----------------------+ + * |CN4 (Power) | |J7 | + * | 3v3 (v) pin9 |<----->| pin4 / pin8 3.3v | + * | GND (v) pin3 / pin4 |<----->| pin12 / pin14 GND | + * +----------------------------+ +-----------------------+ + * (*) GP1_25/SL_SW2_V is used as TPU + * (@) Connect to pin5 (DATIN = playback) or pin15 (DATOUT = capture) + * (v) These are just sample pins. You can find many 3v3 / GND pins on + * White Hawk board, not only CN4. You can use other pins for it. + * + * [How to enable] + * + * You need these configs + * + * CONFIG_PWM + * CONFIG_PWM_RENESAS_TPU + * CONFIG_COMMON_CLK_PWM + * CONFIG_SND_SOC_DA7213 + * + * [How to use] + * + * 44.1kHz groups sound is available in default. + * You need update audio_clkin settings to switch to 48kHz groups sound if you want + * see + * [(C) clock] + * + * You can use capture if you change the settings + * see + * [CAPTURE] + * + * You need to setup Headphone + * + * > amixer set "Headphone" 40% + * > amixer set "Headphone" on + * > amixer set "Mixout Left DAC Left" on + * > amixer set "Mixout Right DAC Right" on + */ + +/dts-v1/; +/plugin/; +#include + +&{/} { + sound_card: sound { + compatible = "audio-graph-card"; + label = "rcar-sound"; + + dais = <&rsnd_port0>; /* DA7212 Audio Codec */ + }; + + tpu_clk: tpu_clk { + compatible = "pwm-clock"; + #clock-cells = <0>; + + /* 44.1kHz groups [(C) clock] */ + clock-frequency = <11289600>; + pwms = <&tpu 0 88 0>; /* 1000000000 / 88 =~ 11289600 */ + + /* 48 kHz groups [(C) clock] */ +// clock-frequency = <12288000>; +// pwms = <&tpu 0 81 0>; /* 1000000000 / 81 =~ 12288000 */ + }; + +}; + +&pfc { + sound_pins: sound { + groups = "ssi_ctrl", "ssi_data"; + function = "ssi"; + }; + + sound_clk_pins: sound_clk { + groups = "audio_clkin", "audio_clkout"; + function = "audio_clk"; + }; + + tpu0_pins: tpu0 { + groups = "tpu_to0_a"; + function = "tpu"; + }; +}; + +&tpu { + pinctrl-0 = <&tpu0_pins>; + pinctrl-names = "default"; + + status = "okay"; +}; + +&i2c0 { + #address-cells = <1>; + #size-cells = <0>; + + codec@1a { + compatible = "dlg,da7212"; + + #sound-dai-cells = <0>; + reg = <0x1a>; + + clocks = <&rcar_sound>; + clock-names = "mclk"; + + dlg,micbias1-lvl = <2500>; + dlg,micbias2-lvl = <2500>; + dlg,dmic-data-sel = "lrise_rfall"; + dlg,dmic-samplephase = "between_clkedge"; + dlg,dmic-clkrate = <3000000>; + + VDDA-supply = <®_1p8v>; + VDDMIC-supply = <®_3p3v>; + VDDIO-supply = <®_3p3v>; + + port { + da7212_endpoint: endpoint { + remote-endpoint = <&rsnd_endpoint>; + }; + }; + }; +}; + +&rcar_sound { + pinctrl-0 = <&sound_clk_pins>, <&sound_pins>; + pinctrl-names = "default"; + + /* Single DAI */ + #sound-dai-cells = <0>; + + /* audio_clkout */ + #clock-cells = <0>; + clock-frequency = <5644800>; /* 44.1kHz groups [(C) clock] */ +// clock-frequency = <6144000>; /* 48 kHz groups [(C) clock] */ + + status = "okay"; + + /* update to */ + clocks = <&cpg CPG_MOD 2926>, <&cpg CPG_MOD 2927>, <&tpu_clk>; + + ports { + rsnd_port0: port { + rsnd_endpoint: endpoint { + remote-endpoint = <&da7212_endpoint>; + + dai-format = "i2s"; + bitclock-master = <&rsnd_endpoint>; + frame-master = <&rsnd_endpoint>; + + /* Please use exclusively to the 'capture' */ + playback = <&ssi0>; + /* [CAPTURE] */ + /* capture = <&ssi0>; */ + }; + }; + }; +}; From patchwork Mon Mar 6 23:49:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13162544 X-Patchwork-Delegate: geert@linux-m68k.org 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C5B9C64EC4 for ; Mon, 6 Mar 2023 23:49:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229732AbjCFXtx (ORCPT ); Mon, 6 Mar 2023 18:49:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjCFXtw (ORCPT ); Mon, 6 Mar 2023 18:49:52 -0500 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2118.outbound.protection.outlook.com [40.107.113.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BD7138005 for ; Mon, 6 Mar 2023 15:49:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C++nE5NACcjlUxzqZCjyl4FScGU5bgmu8eD1sFsHAb829HUaAoS311pJ7gXDFMvsWAfzkz63YknU0Xaza+i/34/xlyRyb8fdgXqp2AdpBoGwvdyePKYugfTfMVvmtLmr7atbRSfOtg9HlXP2BdJFVTOP2fjAZiCigmlqrGtNOwD1Q39fDQTOHKpsmoG7/zhwXsCIJMIWoKbDU0Jq+A3qYjd3+3W+2xoHxJ38JVld+ZR+jU9eli9N4j7H2w4Y53l/L8QqiZm1AfoMe99p98dOdq4nGmTMlA/liacoQKXk4/MHgCiIxHxpdpCAvbChlQY1E6aQkvKJdajK1jft06sRfw== 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=NDClAs1jGMrBWk6RaOt+rMelOnbYorNwMD0IPPcZR08=; b=GvO0LqMddepeYBfbYZyRjVu1Y5a4T3RRdXslnvj/N39BQAV2fIHM4OX1F8Au7h8KhptVH5NJgkNPHmClJDkKClzpXDR8cUaDmO5MKzGocP+kXdA2xFtTNL1pKlqDqkSnWsPIfCDmpau/smZO/XkxuEMk2FCThzMsOdRehv5HQFZgMNyEjvxiPXYzCMnb/JBXSMRdztmGzsefwLNfYVY4BG1Yq0ntjGgRV77wjZqltEYQIqU0DSZNpViD7x4pLyHtw9qpED0QOIdMmZmGDgNLWI/5Kh8jnHREIZmI6OHP514EOstZPzdMuFIcZIogu6x2I9VtP1LfUzmIcH1QPSfqFg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NDClAs1jGMrBWk6RaOt+rMelOnbYorNwMD0IPPcZR08=; b=FZxa4JhbW8Rw53thzCTIQ0WNQsx86/VIJ9eeLfPX/05M396yEbwrDxvAMkeWsc9ZtkTMeXU2jjV3zDCf9xnfUsQbrIKKsFevhCn3WbFNt9zVT6MUdRYhJYXYOyS5HoXxwe3PxzGzb145GpDGLlWgtGBhlAcg+DM2ihwB/oFtCXY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) by TYWPR01MB11980.jpnprd01.prod.outlook.com (2603:1096:400:3fb::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.29; Mon, 6 Mar 2023 23:49:49 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::e03e:1938:695b:f472]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::e03e:1938:695b:f472%8]) with mapi id 15.20.6156.028; Mon, 6 Mar 2023 23:49:49 +0000 Message-ID: <87mt4pl9sz.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 3/4] arm64: defconfig: Enable DA7213 Codec User-Agent: Wanderlust/2.15.9 Emacs/26.3 Mule/6.0 To: Geert Uytterhoeven Cc: Linux-Renesas In-Reply-To: <87r0u1l9vc.wl-kuninori.morimoto.gx@renesas.com> References: <87r0u1l9vc.wl-kuninori.morimoto.gx@renesas.com> Date: Mon, 6 Mar 2023 23:49:48 +0000 X-ClientProxiedBy: TYCPR01CA0122.jpnprd01.prod.outlook.com (2603:1096:400:26d::11) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|TYWPR01MB11980:EE_ X-MS-Office365-Filtering-Correlation-Id: 02aa0fa7-dc42-40a8-7eee-08db1e9d78dc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4wBMFmCIcXA/+mN3M8AZcCItYgn2fnJVVXAaGOjdcYXUIpBvkS6Feenl82uWKKMr+btSnNhE4qKC38ndGMfbDMjLNUt1WLgE7LGOu3aJFQSDWQMwXVBrqt16kpc2JAs0vjaCrh2FPljCahbDQ1Jrb49xe07Ms5k7C+vU5rYDt04nKVlXHdgFWM+0iPQHyM+zg8cmrdPnbR8+wbf9ywjdqDHXZI8H4tl+WhNZEWTeyaKaK5UJZ6ZNpJZy2VIXB/Y1C4hri+guGeOf0alJpf48v1nqIhIb3U6fwY/g872jGkQjxZFBPAu6/2JF87E2/KEDQFzWqgSTUth7ZCosAunMBvI/AgdDH5LTfdM1TpmQBMaRhKEy/WVpDJIiGVcQJlrK8WojELV3R5fp6XlqKw2kaBhJmJisJ1X4aYpvih5HmCuiPp1AVEvd7H5ikBEb5XeL+cYiMJXmVgkB4AwHizkwuLqvERWscaus3PgxT5IRbdG4jcBYiELcUhqWzP+L3D9xfeLwjVM9jJKU46Q9FbfewZzNR1WkYdfJAexHr5beqFWGe9bnlfQWgycBis5i4V93r0Ypw43QO0y3zDUeBKyiZMyvmV0/yR/VFZlFeYp6IIj43UhOSdRoggHa6oS3sg+64psyiNQOvAPffiAemasIaE4myjNPWVzC9jlNqrdOL46JCMIoreC+o4WoD2mrC3O0ryCe78bjTtFROnlr7NMCnw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OS3PR01MB8426.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(376002)(346002)(366004)(39860400002)(396003)(136003)(451199018)(36756003)(6512007)(6506007)(6486002)(2616005)(186003)(26005)(52116002)(316002)(41300700001)(66476007)(66556008)(66946007)(8676002)(4326008)(4744005)(2906002)(8936002)(5660300002)(478600001)(38350700002)(38100700002)(86362001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jZQqbQJ5tJ/dV1GPDWI8901o1Rn5bTmSoORxbao/oiFNWckb4SZ8ZfhNIiKMRnnxubBBlwvGsweCfnm9VvLc1xZH502SeOp3A9IRfQHDKNWQ79lEVyq5BYe1wQeHXvqm2kGdh0oDA6AnhFr9tLwLLasxmA6xqpyYTdMmK5xVIVlNWUIRY/lM9DqVfgktK2D/kR0ClTXCqxsnskLmM20oTaiM7AMfRslFXaPs7WDiTDKe990ascDkNL/XYU0y0XutN22yI15GlUBTsWynElyQhMGdCspUEocOA4G3KtYGrmO5UQxS83rPWs68yWr6Q2OF/keYMoTJN9TSyDdvz/r08xFHl2C/L8TLqVEg1OXinT0Uagwm/ksK3T9w/UGvlX8zgTzh/U48eY+k3IrrSmzC7HfrBJxlR7Mi0WbSyd1kKftDegyslk3o9uwydh6TcRKCMDyxSut+MKuCktQheU+7ntGznc9EV2D8SwrR/IiAkOn396UX4X/mKw2WspcQ9Lcj0p+zIeQ0JD1KvXRqRSVbbOMSPtGp2J5WmrtZZKg3uyBYHXBb/f+k8h+MYWlGPVPrXgmVNq3Q4EicvcUdhJMmJBm5lLa2nnLRkUFhaLUSudO2Ge96+kxU+APND5y3U7Gdd/zPunUGTsOe/eR2vQMrRc/tWWIu3hs6tL7uM3tDl2x+a6nEE4uCp+ypXIkKzIv9ppvxXvGZqIpRWEojCNYwQ5dyUZvrDM3jeWJ908aCOH64jHMOavwOXb2XJbn3KAMs/HVGjAh67ztmMslddLYRXUfEGOuCA9a00A6mWp+bWX40FJYN1vlmUR8/3CjkKB6FA/m25Va197KRhGnj6ozOORC9SatWUJsChZ3JpwUJFpqE4LRuLbq35Wq+3DQeD3dGMgZpx+aU89dvKm/UNVYaKxt4+sMBHUyxcSdaUZQS2sTzHkl3RqmRIWSR7nHsf08H3H1Nkio12cdbTTc5c2xmV0YQ7J6Yew/iUY9PguLIhLZlR+w3eaSGNgjfCRQTh4shw8qeRVXXhSemxmDlrIosyJCbk2W+WR1MFBvLaVV0cOp3Yzwqk0uovTokmf+LWvq0E6tr4xjgUOog1Lm3zG8qi/CoRUSM9dUwygNnSvmg4Zh6/1bHlpdvSmpxznGoBKbnCf1A4vFpelBB4dZc6+4l/KeKRX3Az7d3gqsSi7iJb17SElOe0odwpFw52/NAjT3aZJamqF7NmzdNrPLHMu32nRoQoS3RGtDe8fbITjknNCGVkVWUAezVvSWXoMR4DpQjS+50mpO9gSQA3A72vyPeBgrgxHf9/rGB/wUTOqpTxTJrYcnrzcwVbWTUR8J8m40ijwU04mOAcHZYK9+IcvM12qPRSRW0QosE9vdzgAEmBazzZwM2MgCR/AQk5lbc5bUnlNOOz/xxmQBn6nqFa890dpP6zeWD0xywjCoK17xcoURt7hGAPiAY5AjkV2Sm5mBTpx2XC17Ly0dgAqOuN5z0UUVYw2axNbLJqt9dQGjAIsPxKk8b/8/cnWJeCk+hpOTNZD2ZjMfwyVJBiglDVBYuDu8ukaLp7WudyT594i79o/iZLutcvTa3J34J4kpfVkD4Yyfj/M8iBHbgtR4TwPk4pLvKAyw3VN5jvhaR2BVTm44= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 02aa0fa7-dc42-40a8-7eee-08db1e9d78dc X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Mar 2023 23:49:49.0409 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: C5Do9MmZiJVI5fYUj6P1vOIPTYEUBsTymIcdXWcNchSmADUENLOi+U/CtoWu2DVkP63nuabKj4nrR7hpn1fwYEzJ3PPC/H104FK9IgZZ/WrDgl5hvLW/dN5cA3QA4qOd X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB11980 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org This patch enable DA7213 Codec for ARD-AUDIO-DA7212 support on R-Car V4H White Hawk Signed-off-by: Kuninori Morimoto Reviewed-by: Geert Uytterhoeven --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 7e0487bbdaa0..153d5a8a3c05 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -871,6 +871,7 @@ CONFIG_SND_SOC_TEGRA210_ADX=m CONFIG_SND_SOC_TEGRA210_MIXER=m CONFIG_SND_SOC_TEGRA_AUDIO_GRAPH_CARD=m CONFIG_SND_SOC_AK4613=m +CONFIG_SND_SOC_DA7213=m CONFIG_SND_SOC_ES7134=m CONFIG_SND_SOC_ES7241=m CONFIG_SND_SOC_GTM601=m From patchwork Mon Mar 6 23:49:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13162545 X-Patchwork-Delegate: geert@linux-m68k.org 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5CF6C64EC4 for ; Mon, 6 Mar 2023 23:49:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229619AbjCFXt7 (ORCPT ); Mon, 6 Mar 2023 18:49:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjCFXt6 (ORCPT ); Mon, 6 Mar 2023 18:49:58 -0500 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2137.outbound.protection.outlook.com [40.107.113.137]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1B9038005 for ; Mon, 6 Mar 2023 15:49:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LCbcTeBYbc+vOlfzm5nuSJwrO9qwIEMv9UsZKajaKSPYCUjJKKtUGbHhmO/Ibb0Y+WdRwB2apSS0fvYt8GgOchVns8Gs7giOG6gV05Ik4604rgzU04Gm+Bc3iwKmvI7dh1nCxiehl0pSbTOG8E5rMtaPrbftPeK3cnyxfHdDlgw1HEE6faZjN0FKE3+LbZfUQsTHFDrruQ+Q132vWIKItQYehSS3kzN9rmgP9aO1HA0++Typ6YwFjjAXppGRLxrB4vTKBeK83C8ucNdQ2Y/PRXadsBrjgc/3MTRX3icoEhIr7ZX4vJDq6Cq4VQWhtHuYkcIzq45cgy/kUZmCiL1pzg== 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=6t6a7N2rgAVYeBiJ9AcoBgIk/DjCvNnTHmLolr4r0mU=; b=OMBqTgNHRO0csiaRxw34/5HgHM7U5d4E5AhR1l/fr5hRbnFRHVLIwHTNoQKfYIlebYwPdBR7El4+frwCuzE1vrfwRUZrsu25kIS5eWiGkPy2Z4Hhe8ysc5LvFGLk/w4IsucWutrHR+Z3zEZuXJUDFTVcaEBsl2wbKzx1Vutx80PvRMP8welSWxAWUQm772KTW6doOv5esOvQjJNEpQ9/TwkwCGZMMn+/DJDdplLzyMAIqW9HmfjlZcw9/pgeXlUv019dXM3at97owzjwscJUaD8mHv676SCIYQeUTT6FDSbd0nz5XfWpWm8xFZtebmFY6wjKFfyxkIIftsd20bLk4Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6t6a7N2rgAVYeBiJ9AcoBgIk/DjCvNnTHmLolr4r0mU=; b=NeE04ReXCfLeCGAefMFqCzuza0W0/80OONhSjdzXZA+Xg3MNuJeOLckTmxhcLnTs4Wi/JNL7nIpbjcdNJ3uKUYdwALIK6yuvQdQllyA4Eqx2J8+hw/0GhRenug7PBLqorlMROsUrwbE0rBWPZiIwtwpNdOP0k9VGk0HNtuSfp+w= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) by TYWPR01MB11980.jpnprd01.prod.outlook.com (2603:1096:400:3fb::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.29; Mon, 6 Mar 2023 23:49:54 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::e03e:1938:695b:f472]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::e03e:1938:695b:f472%8]) with mapi id 15.20.6156.028; Mon, 6 Mar 2023 23:49:54 +0000 Message-ID: <87lek9l9st.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 4/4] arm64: renesas_defconfig: Enable DA7213/COMMON_CLK_PWM User-Agent: Wanderlust/2.15.9 Emacs/26.3 Mule/6.0 To: Geert Uytterhoeven Cc: Linux-Renesas In-Reply-To: <87r0u1l9vc.wl-kuninori.morimoto.gx@renesas.com> References: <87r0u1l9vc.wl-kuninori.morimoto.gx@renesas.com> Date: Mon, 6 Mar 2023 23:49:54 +0000 X-ClientProxiedBy: TY2PR04CA0002.apcprd04.prod.outlook.com (2603:1096:404:f6::14) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|TYWPR01MB11980:EE_ X-MS-Office365-Filtering-Correlation-Id: fad0f30d-1586-4931-fd6a-08db1e9d7c36 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GLn6hE7G4mPT7/u/1oawy669yyUSzVn/JuRijoysFsvEUG1utt3cnCiOWiB9emcpBY07uvZ05Q1mZJk7CneHZtYBuTMBcKEepW4QbhCNycLF0XDjXbcWWLptZWbznF6lnbgbKClrNM2+XerGhTmFQqcWtF1YSno5bYPOVFQlQOZG6Dn5YNPlL3fpXDFTsc9bdyDnHQhINaFxQpWfK6bU7PQFJtrVurtYJMEho7kk8HUJNHiwoq85qtorCxmjQ7lWwswnNacF2ovus58Njhz71c4yoWSjRdtBhawlovqYkB2Ykz09NKV9rgQn0/9pt3RZs5xSOh3mfxOv6Fr1wOxkk4RPGxqAnMvLj5WzO7KmaMolfruDP/n1t+aYd617SmmpI8Y29fsTgucrnvBXSbOTQiVDrKq6xgsUsz/3VLDgQmh/JZH3vrDptntQYjHNZhDEYfxlBDqwx3VhZRAPZ9wQFS93itc9FuqdvJeRqUR36qLYIUFtjtIpROdAzhTKrtm8g8CszvXp0RF0kXxDgl3S1dapoMhnuFBQ/8PPbbq/BsT/pO5chFZbotB35Ja0xleCIbt7Dz05ENz8R3I2AKivTG3ylIxSqRgxkpIBR/+xrNL5eB4inBj+qrTRKrUtlhrnweQ1rhAK7iNjmc80ovADvIq+Opx7R3sefVWHzlYqHgXlad1K3nJRttiKG/8arkFGH85zr8fpHNgMFGwAgYkOcg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OS3PR01MB8426.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(376002)(346002)(366004)(39860400002)(396003)(136003)(451199018)(36756003)(6512007)(6506007)(6486002)(2616005)(186003)(26005)(52116002)(316002)(41300700001)(66476007)(66556008)(66946007)(8676002)(4326008)(4744005)(2906002)(8936002)(5660300002)(478600001)(38350700002)(38100700002)(86362001)(83380400001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 5nF7UNK8IPIE2AgsAepZD7BoAtlYpakZXuXarOlffCDHfKJG2zJxXUj7l2NvMq38QpymPtxEt3p1lMWSiD6RBB7z9veFHuiqhWbxVIIj5YVYOE6RpeGPBfa0AnZeD3UQSQkkgC20Wn/pUsJjtFh3hwae4jB/CeVE5/lMXz6JdrnIe6qQBGY1pgKDkF8osXLPAEEEkXtnhhbteYHSVJTNUm+bdylZGAul1o0Ud6ZJ+XMy69VObwGdoe3Oo3TmtTqM2EP66ew9KmvO9P4y9mY6zV9zjQI+qfD0fUAdCeIqEox3plqOXi/xY3LmxqD2mugVwlBC8ibhSKFCu+NuPdfGvsTCrUZ9Kwyv9GJstEpXCeuxhsk5ucdCLy/69BWj+WBfP4V/qfueKSK2C77Q0LOhSA7r+Vnuk2VBF5+H2F2EKIUIID0YczDVq3vUpgeRWdFBA3x+Kza9Woziw1FMDFkP6sElTkttYzf3EdXTTbxYJiibBGoijlRfgP78EAMgwO3dX9s2P3ymCXkltRzCnRvlyCE3YLeoqkkdUz+/aT9K2snnooAV8xG2zF2BJmZ7KYAcy+OaFaOAl3r0AJZIiLpo/0EZeH36iRJ8bWZnfP6t7Ynwvfol0+SE2KNnRAuQOneHEYK8MSS4rg3GVOKjHvWfq6XKggOcicBfPAN/+kM0ajL8XVpTq8fIOWEmi5rDo+pH+m24YrfhEJYlPraBT7nMBr6Fyp0N9qqE0n4VWfV+HR9jrL027D4KuIDlUaaP2L8AFWeqxgX4ZZiSm3oMNfzBkjgMVMStgXXFc5CSesoC0qo1IVbN3XmYPyK17tUggOs3TqhhPYdLSS/Gu1qxSDzgSwOptHqSd6GIFGrBgUWvwu5KeRpW07PoZzoMMY2uCjBfDqXH8yK/3rew2E1aWeLoP6IHy/1nEoG5uZQ+myf1mnDaZhy8UIA4sfprYJTx0WcN8Bg7fZs+qbmJy3V5529x2+D4vFp6hz6AjlJ+M1PtQDMtk1v+/BmOVv8BkMuTtWV0UaRWSFWL2osVTfiajGNN7B47xXpdOdFWM+Dob16ecPFY3Z2WjMWk7IMCE2ycJXeVgYoV1pufJe2DqxSQiuY26SWdn4EmrgSbg9mtFJXUjr9OSD+wzfSDn8CrajSqAOAS9iZfYbd7xXgqD+eaNLYMIchwwn/9RFGE1nEaLvJOGr1fHtbbNpGvdiMll+oxoqB0aM2u6By3htbROSUHG/pWd4qF2iA6d1E/iBUFK52BNHiZN+yrsAYWshM1qdzUSdlnt3N1iRYlP+l3XXoHSbVzPQUukAUGz4xZ8O+6yxKGYJMVgr92cIre5lhDNUMq5YqCyseirxmOuLW5CGSZRGVr5r38TOVCK5YlelEak29hHsONIAKkuMW5x16nBbI3rtFTIdNe3ZCYWXwbCTQzGJ0zQYH/yEXTKBve3GxRka+AXA+2qY63/9B+LBKUpHyfUOBv8cC0KEe8pTHjfObE4WpXNbHupLDDcNb3SgyhETj1CL3TjCs5yXp+oJowmkG8qoX9NF4X5kFk0zf6QjaGBfqXPBKdUm4Jt21MeN6UsTZPUTSRsxCp1nEtTX0EH1YDdb8qn6ovPpTDuJ13WyVHghyxm6BM9QvlLkjhp7Fksc0r9lA= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: fad0f30d-1586-4931-fd6a-08db1e9d7c36 X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Mar 2023 23:49:54.6515 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: j7j7GKx/a+qa3vPgfq9vQ+L8urPqbh1RzJHb27xFbh6UFXL42hQtpRWOX2l5+xo5j4Br1OHq/wo8zo36WauQ1EQsHyhgYwLiGatsw9/cvURqeQk1XfRtez5wZQhHLtLp X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB11980 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org This patch enables DA7213 Codec and COMMON_CLK_PWM to enable ARD-AUDIO-DA7212 support on R-Car V4H White Hawk Signed-off-by: Kuninori Morimoto Reviewed-by: Geert Uytterhoeven --- arch/arm64/configs/renesas_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/renesas_defconfig b/arch/arm64/configs/renesas_defconfig index 906cca4eb3a8..30f8a962d4e2 100644 --- a/arch/arm64/configs/renesas_defconfig +++ b/arch/arm64/configs/renesas_defconfig @@ -290,6 +290,7 @@ CONFIG_SND_SOC=y CONFIG_SND_SOC_RCAR=y CONFIG_SND_SOC_RZ=y CONFIG_SND_SOC_AK4613=y +CONFIG_SND_SOC_DA7213=y CONFIG_SND_SOC_PCM3168A_I2C=y CONFIG_SND_SOC_WM8978=y CONFIG_SND_SIMPLE_CARD=y @@ -348,6 +349,7 @@ CONFIG_STAGING_MEDIA=y CONFIG_VIDEO_MAX96712=y CONFIG_CHROME_PLATFORMS=y CONFIG_COMMON_CLK_CS2000_CP=y +CONFIG_COMMON_CLK_PWM=y CONFIG_COMMON_CLK_VC5=y CONFIG_CLK_RCAR_USB2_CLOCK_SEL=y CONFIG_HWSPINLOCK=y