From patchwork Tue Feb 22 17:50:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12755764 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EF8EAC433F5 for ; Tue, 22 Feb 2022 17:51:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WAnxNddNcKFlQtP7oXq4yUFgFQmnYwZeaPX3v3aPiS0=; b=guK/doLOYLRWYS eLcXLo8vZOFV/YwGSX9Ynjqn6J4psAJfK3DbCdm2KVBWXQBIXXDBSgtBLw1pTcmN5PQ8dHsJwgMkL GbF1Hq6invfk6LhaOeFThk8wtlkLMsbmwu4lY2sqqrvktFTl6wsM2ITH1COwKNqQt4t5hbAndKEWD xdBg+qpn4XkWJ1ilQU4QAl4DJao3gRToUSMai31/aH6/8pr4IuayXF/mFAByg8mdC+O1kOaqX/DKa mIKxPdKkjAZSPUII16SoFrVwu64KtT1zUxYOX5OjXl8JYh9wpa6PAyeThAw8BFATBDgJXDsWTcXvn wOG6+Yb6ejyb28i++OiA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMZJ7-00B46x-FL; Tue, 22 Feb 2022 17:50:37 +0000 Received: from mail-db8eur05on20602.outbound.protection.outlook.com ([2a01:111:f400:7e1a::602] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMZIt-00B43V-JH; Tue, 22 Feb 2022 17:50:25 +0000 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> 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: qAY7kH1hIll19+8r0zWniJ6L7UsQB+7i6sRMvuwf4k5VpxQbbsq9LnYSBxVJ/+OLXP2GB1w2vfsLoImFb6W8EQ+TtBtJ/gtOMbAsfUc/1VRWUWFAxL3ePs7BqyxJA2jyqBw24NKkG30IITl9N6WuJd9Qoy0BS5p1MCHg65sSWX6W58nU0GaV6yzBSnORK+vUXy+RdUvYZiLtEUsLVX+6hkHrb20Fe8K2MW+A96v7lrbxGNeapCqoOlAlBW02uARRxPeNjEL5X3pIiunIbxFBSndENNG2KKHb7INIHob/e9/uzNfPG6Kxtb1WhbMmdM1Ci3+xDo0Qm1J2X1lrTMP3X79snbj88bUryQ9MjVWSpPlHVGOazhR5BW34u50vyoHwQ6TYC0qrt8dOfW5Y00NSYJUnDp+1Pmo/xmzxH9/v2oDl18OP92jvNRIoa97AeCIS6TuT42j6zcntC5b21hVa6cPuiL/37l7tF0DY5dqaX3glzXbCQL3UKq4uQxdDjyH5iOb2ye45l1oxxsFMaWkb3sEDgXAtbFw5ZZyLv1V1cYz0Es9pfBMVDfsUvrMPTg/Y4BAJy0YfXHWcidR/1pknJHndENLHbJOTZV/O4FfQCasGbEdDYTKLhzoLqa1JC5MTc+F6u/xZra9zT3E23q672IJTNvAoG6RkH37vL04UsWE3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PmGObJyvyvIHs= 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220222_095023_661594_F9055E13 X-CRM114-Status: GOOD ( 10.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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";