X-Received: by 2002:a17:90a:ff03:b0:1bc:64f4:64e7 with SMTP id ce3-20020a17090aff0300b001bc64f464e7mr5718167pjb.57.1645558904914; Tue, 22 Feb 2022 11:41:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1645558904; cv=pass; d=google.com; s=arc-20160816; b=iEbtQ8wzNPD2OyRtMp4LDnzn2XH/vbeK/5iJJwyWMqVc4xQffaxPw3nYWKcMre2V2X KoqBv+56gnxUQh7l4xGvdAbSJhHgY1uh+BpjmjpSsmeDTifVOCespRwLxEVV043T5j2k BKyTp0l0auVIvqgK/O4rkwBva42U5K126KuvuB1gPJXno9llBkUtbzyqMp1vbU3CaLV1 UvLwpR34sHC/NZWh3gB/63v/x7gAibUjQKt6hvrULSmnoDW51khI4txccerdTsTuDo4W takrEmLszWrZlqxslVGjJdzYEKrX0NFf1j42+JBRvr8C6NVcd3JFdJV8oV9/t3MsvDL2 MevA== 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=Xa9a50z8axd5ANlexAiN4AyVjouQNh4aYAjqck44Htw=; b=XqtdlZzXiEn2Ns7x6bKMufTnMaFh7Z5djrsIFFcYtCEwkn1feRfSl7iwmi0Q2FB6CZ XATK3dSHD6DxrEUWP4fWRFHDT7LeBWYFBhJjbOXfj+ZD4mlo1WluDlTk19mGB4cvyJMv xZ8N7/78j11M3l2pVGHhZQ5rp980jcPKN7nZmxCp0ylCaRmo5R+aNOMPBvvjwPtwiFqa 7jZxrGoW/bEPPt5CV6OqHi6RvzGa88/FKkU+3AjlpotKl7BjcnZxXXzWgxxfY+JHb21h doljIPBNXCvgrAgD/eOX3dC1BH2WjJgmI20E1TnRv1DOxH0s+ZaJShKpPhVdRH4BQjpe wmIg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=x545O4++; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 132si14094828pfw.321.2022.02.22.11.41.28; Tue, 22 Feb 2022 11:41:44 -0800 (PST) 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=@wolfvision.net header.s=selector2 header.b=x545O4++; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234609AbiBVRuv (ORCPT + 99 others); Tue, 22 Feb 2022 12:50:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234140AbiBVRuq (ORCPT ); Tue, 22 Feb 2022 12:50:46 -0500 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2041.outbound.protection.outlook.com [40.107.20.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F8E3162022; Tue, 22 Feb 2022 09:50:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZSEsOeu/pi4PTh1PW/OuoPHGk3IojBOE6kjpWW1tDsgiKgQWs8tWW//zZw1A90rDusJyhbVrVItTLeGh8IR4YmeREhpX1a8AiHjvr46GXeTLQwvqGDnd5FqaQDdfALvC30nvb0VA0RuDqnA2JJSMMvmi0ePsvr4sFWZHGgfoR9JK2WJg2eo8IJJEgr5P71EfNYS0csvpbIAypwKn/UfRIt3eTNSCGYWwOq3iYqW+jATUaC6fCq0fjaYUBm87tF9sddPLTlaqADfXAOrcGaD0pQSlM/9xrtbSFqrxU5ywWPk2AZHKOHBRHUQlJAOfZmMMunwHg89+Ea0M2PKX/suuYA== 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=Xa9a50z8axd5ANlexAiN4AyVjouQNh4aYAjqck44Htw=; b=NMvXmYI+BPHHwkkwhlnr/D43pb0iLBe3q7Fgt/wqJf3PJQHv8sKoVnbvFf3f759X5QkzmN8YgAZXVl7AcaC5/UD19h7jsV/2Xy0S1hiFuuM0JrADXBCs97fLLBS85Ab1tSKywSHYyYLKrFKW3zF2DnITIiHFcbgGPmUwKISGoI3zR2yW66pNy+HulUOP5PXyNqwkM8ko5IT0THSYa6bJGt0uhfgSZP2OqfJKewJU0GvWpT6RzZ6MDtKUuyr0QrGa6ixSnVetz4qFXjQUCjkF0/d507qOlzT8mEptZbEQNSMkkbFo5hSgAy8kTKnCkkQVdlV6h1b2Y3Ww2yEBrJFKaw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Xa9a50z8axd5ANlexAiN4AyVjouQNh4aYAjqck44Htw=; b=x545O4++S6fknLVNTJS86bnfAKuVDfU9sWHGbyvYS8EgrQ+/dxuL4pq2im2fSuZtQig3C/wErqLwmxvNhkifOugHLmmOoB8bcrhFovpJLYemzoazgbj4wRPM7GHRC09q/ESIidHjidyMzsCBMVEvgQJCgtvKyWF50+B2ITw04IA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) by DU0PR08MB7485.eurprd08.prod.outlook.com (2603:10a6:10:355::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.16; Tue, 22 Feb 2022 17:50:16 +0000 Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::f9ee:a333:b115:5049]) by HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::f9ee:a333:b115:5049%4]) with mapi id 15.20.4995.027; Tue, 22 Feb 2022 17:50:16 +0000 From: Michael Riesch To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Rob Herring , Heiko Stuebner , Michael Riesch , Liang Chen , frank-w@public-files.de Subject: [PATCH 2/2] arm64: dts: rockchip: enable rk809 audio codec on the rk3568 evb1 Date: Tue, 22 Feb 2022 18:50:04 +0100 Message-Id: <20220222175004.1308990-2-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220222175004.1308990-1-michael.riesch@wolfvision.net> References: <20220222175004.1308990-1-michael.riesch@wolfvision.net> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: ZR0P278CA0108.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::23) To HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6e7507cd-f939-46a3-c163-08d9f62bc8f9 X-MS-TrafficTypeDiagnostic: DU0PR08MB7485:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: E3WWnb+u2tJe1ASPwBSrb4n4hP0JfyLDosgFN55keb21MqU34f3UzQvbnm2SJeD2iY5DhxKlN8CscP0GeaRj0REyvPmO7tnbNypa5jFtzlwMcwtJj9zfuqMjq+r1w29ATa40DZS530FZQGNY2iZCHggzTvq8/edBlsQZGRlRy8KCVJI2wBL2oARxv8bdYJxPxnRxP2ZcIP2Z8aHTq5pgRF/UKx0e+kZvGkwIebjJHrssErzRg5k6yHIzPDR6KL+6dmAzCf8X/UwYoXSn6fqEiG3nGlOGduijCqWelJxm4Aq4RYa4PrWUPrNGxIUIaVVD5MzQfVVtHU9C661QskYE8+VRNCA73s3nYoBc+xpNnpp/9llv4YM9H6uhW8l3fUlq6lpZtAIUqGu9QgtYcBHDdfR2cgBuZMlYU50gPjqcs62qVhfuoevyItS25qJgwLWWsrU0PoQBNlIfctp757Azz5M1F3c4++TUPlDm7OsmUtjLN9Bsa16r8CKcdEKee+ZJEHau9fiMw2e9nAl2S2wnJABZz8fp1e17qzrl1mfe3seofuLleIVnih7EAYFL6ulgTZoo1VrEf9SlAg8op/7S52hfF70dnTJ0sMIBFGjngFisvgr+XLYarSTRbqD2j7ehTVjT+/OLh0yh5YY2rvODgQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:HE1PR0802MB2426.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(346002)(39830400003)(376002)(396003)(366004)(136003)(186003)(8676002)(4326008)(54906003)(6506007)(2906002)(2616005)(316002)(38100700002)(5660300002)(6512007)(66476007)(1076003)(66556008)(66946007)(44832011)(6486002)(6666004)(83380400001)(8936002)(36756003)(508600001)(52116002)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?qAY7kH1hIll19+8r0zWniJ6L7UsQB+7i6sRMvuwf4k5VpxQbbsq9LnYSBxVJ?= =?us-ascii?Q?/+OLXP2GB1w2vfsLoImFb6W8EQ+TtBtJ/gtOMbAsfUc/1VRWUWFAxL3ePs7B?= =?us-ascii?Q?qyxJA2jyqBw24NKkG30IITl9N6WuJd9Qoy0BS5p1MCHg65sSWX6W58nU0GaV?= =?us-ascii?Q?6yzBSnORK+vUXy+RdUvYZiLtEUsLVX+6hkHrb20Fe8K2MW+A96v7lrbxGNea?= =?us-ascii?Q?pCqoOlAlBW02uARRxPeNjEL5X3pIiunIbxFBSndENNG2KKHb7INIHob/e9/u?= =?us-ascii?Q?zNfPG6Kxtb1WhbMmdM1Ci3+xDo0Qm1J2X1lrTMP3X79snbj88bUryQ9MjVWS?= =?us-ascii?Q?pPlHVGOazhR5BW34u50vyoHwQ6TYC0qrt8dOfW5Y00NSYJUnDp+1Pmo/xmzx?= =?us-ascii?Q?H9/v2oDl18OP92jvNRIoa97AeCIS6TuT42j6zcntC5b21hVa6cPuiL/37l7t?= =?us-ascii?Q?F0DY5dqaX3glzXbCQL3UKq4uQxdDjyH5iOb2ye45l1oxxsFMaWkb3sEDgXAt?= =?us-ascii?Q?bFw5ZZyLv1V1cYz0Es9pfBMVDfsUvrMPTg/Y4BAJy0YfXHWcidR/1pknJHnd?= =?us-ascii?Q?ENLHbJOTZV/O4FfQCasGbEdDYTKLhzoLqa1JC5MTc+F6u/xZra9zT3E23q67?= =?us-ascii?Q?2IJTNvAoG6RkH37vL04UsWE3WS0xwmL4zuuwZhQJUXiKi1/HPXGry4gL4dft?= =?us-ascii?Q?AFDUiESabFi9LkwoA8qm7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?= =?us-ascii?Q?HMbx7AFQucsUcbMjNsFqCV62nJcJ+JG8kwylkKFXnt5I7zfq9fs1XaPPL8dF?= =?us-ascii?Q?JpehqVKPe4OITxSULKNGdhIdKlvSOR3TYcbM4H7bdCC3aV2SHUOlv4lm2s9R?= =?us-ascii?Q?ehWnrD8tOq1n34kmdXPmGObJyvyvIHs=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 6e7507cd-f939-46a3-c163-08d9f62bc8f9 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0802MB2426.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2022 17:50:16.7192 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QBwDCwdIZWB2TEkY33OzkM/MSxxHn7mirlmn0yDcybEkZ3+OoUwoZneylFLpYegoOlBaEeAOWmUVrZ/ct/3BtHcihiEVQzcUFkk0YbOAPdI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB7485 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 Enable the Rockchip RK809 audio codec on the Rockchip RK3568 EVB1. This requires the VCCIO_ACODEC voltage regulator to be set to always on. Signed-off-by: Michael Riesch --- .../boot/dts/rockchip/rk3568-evb1-v10.dts | 31 ++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts index aaf7b4bed24b..1ed92531e626 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts @@ -45,6 +45,20 @@ led_work: led-work { }; }; + rk809-sound { + compatible = "simple-audio-card"; + simple-audio-card,format = "i2s"; + simple-audio-card,name = "Analog RK809"; + simple-audio-card,mclk-fs = <256>; + + simple-audio-card,cpu { + sound-dai = <&i2s1_8ch>; + }; + simple-audio-card,codec { + sound-dai = <&rk809>; + }; + }; + vcc3v3_sys: vcc3v3-sys { compatible = "regulator-fixed"; regulator-name = "vcc3v3_sys"; @@ -165,10 +179,15 @@ rk809: pmic@20 { reg = <0x20>; interrupt-parent = <&gpio0>; interrupts = ; + assigned-clocks = <&cru I2S1_MCLKOUT_TX>; + assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>; #clock-cells = <1>; + clock-names = "mclk"; + clocks = <&cru I2S1_MCLKOUT_TX>; pinctrl-names = "default"; - pinctrl-0 = <&pmic_int>; + pinctrl-0 = <&pmic_int>, <&i2s1m0_mclk>; rockchip,system-power-controller; + #sound-dai-cells = <0>; vcc1-supply = <&vcc3v3_sys>; vcc2-supply = <&vcc3v3_sys>; vcc3-supply = <&vcc3v3_sys>; @@ -282,6 +301,7 @@ regulator-state-mem { vccio_acodec: LDO_REG4 { regulator-name = "vccio_acodec"; + regulator-always-on; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; @@ -366,6 +386,10 @@ regulator-state-mem { }; }; }; + + codec { + mic-in-differential; + }; }; }; @@ -386,6 +410,11 @@ touchscreen0: goodix@14 { }; }; +&i2s1_8ch { + rockchip,trcm-sync-tx-only; + status = "okay"; +}; + &mdio0 { rgmii_phy0: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; -- 2.30.2