Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp638797lqs; Fri, 14 Jun 2024 00:34:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0AZZlS8bRrW7hWKI5fQACFsz6oXLUjeaFaK3lO+c8CI/hbFW7ShuDsRfFOKP9zRQPE70tinN6Dhw7/+bADmJbvU6tmMqabBEDLlU3vQ== X-Google-Smtp-Source: AGHT+IHyINOJ8NwRhdI9ei7iv8rjo8e34RQ9nGXeFoosVZEZDpR6nwyQsOrGpifPhMEWgI6eaQfU X-Received: by 2002:a0c:ec86:0:b0:6b0:82cc:5e76 with SMTP id 6a1803df08f44-6b2afdb7cc5mr22934746d6.62.1718350495791; Fri, 14 Jun 2024 00:34:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718350495; cv=pass; d=google.com; s=arc-20160816; b=yVzBryZ5oxgsxuTEq4XqY5CIh7kFa5pq5wdR7aKl6R1rnDNU21qd1Ou8cEdPwuCnZp yVaiTh0aNkdNnK2soG1UGAyTz40tzheyOKDus0XjLNSq+/5gyj2FPLKNHo1e/FDKkJaJ VB6kykPApeMdYu8OqcMcyoHmiVt43eSoAsN86bNRLVSUfYwcfkflPPDN4CEHrD0zokjU DrACsODaEFIecVvFJ+stjYTplI8nLTS4fzFHw/KimBvDGtZg2x5W/REaHOWFrRvRTNy7 /OpAwcYD4NkjgJ+osmBeRRSri0W3hJXTKKEtqv1r/+19P0l4f57e1biATHeDa/ZHSTD7 04RQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=Qj6N1XCYi9OkzD42tPPAcjKt9khuBDH5NgwwQe/Q8Ps=; fh=ZX3iFOwZBlI6XPKwa8kDdHVF3SH79InVVe5owzhOk08=; b=0RIY/9ulL0aotIr+ZwjS0sfpV7dgdWcxK5gumpa8J/YnY+EuGH54un7w+eSVKHJbbN mM5Y/VHyspHdIKaPidDBmOyU4Y0VEuE66VCbdSN493gduDPwL9JTFDK/jlqSwP7/I9n+ LuaSmMNJf8VPNRpwBXRRAps/CBTq9ws7WAE06i5YL1A2rqt/flkdmqIElMe6jSPFb0Yj ixLlvNyiFkX9/bqobnER6mdYaRxHNWmc3HVmcTvLnCu2DLsAxJlzJXEhgjbHjX/S/yhf Ou5uMQeFbUKsjPB8Q4Cfry75vp50/1HkVgBeovfx7m9rJsfXUwuO8ZhBp9V265Rp1Fzc YxLQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=mQl5bbZO; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-214464-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214464-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6b2a5b85ad7si32303256d6.550.2024.06.14.00.34.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 00:34:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214464-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=mQl5bbZO; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-214464-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214464-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 0BEE81C250D7 for ; Fri, 14 Jun 2024 07:34:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C1FE19004A; Fri, 14 Jun 2024 07:28:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="mQl5bbZO" Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 99C1218FC64 for ; Fri, 14 Jun 2024 07:28:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718350110; cv=none; b=H7r7caMViX6GUOE/H8cLDmstRCCTqnA5q1cihei/vNNP7JkJCyrRXYL+Lzl5j11jFnNkyFprHPgEGbyELqPxWXawPqzImaF7Chez9fQCdv++0b9ErYmeGsQjouQfvs4/GGstOIJZ73HTCbhEjySXH1ihOVUTRhaEDa0smDMQE1A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718350110; c=relaxed/simple; bh=UuxD5pLm61p5B/k8KPZWLUQ0/L/5Kc/UQPpFC3tu7EE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jnx2zUnp6aSzqKWgqmMI5ETXvbzKR68mkOb4tl8J8ugxWGudMAzMU34mlwrrwGHCuK1jPuIK2FBpe1v2WFK/pm6FbPdZzH+MRrnO8uoj6EjdqCN5tf7sudfr9xz/9k0cBZz0ZvpvvUtlM9VuHRvqawczlmdbfwxPThhkMw4TCrQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=mQl5bbZO; arc=none smtp.client-ip=209.85.221.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-35f1a7386d5so1812987f8f.3 for ; Fri, 14 Jun 2024 00:28:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1718350106; x=1718954906; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Qj6N1XCYi9OkzD42tPPAcjKt9khuBDH5NgwwQe/Q8Ps=; b=mQl5bbZO34iLrka0mjb7+2gVgRJsPWm53WRHCZgaNMcKm33JsVSAklJVBS23GVAvjI lKPntEr2WjDZtJuYMiG17k9cm3d7i8vIC+xkRuDAni7Lu8/nHB/jCR++6F2TVWAQZgjo G4Qvwy7zNxtPLkxNkwUI303hWxLog5dy9LcEAuMZV1RF17mV57/ReTxTz4ODKca1YLAN 6O2RkNkqvugJzBgzgkznbbrw3WXFJ86vvvo6wMLzEIZ9duyOng2tad24kbMqOqI7D/KD 6OKYt/VW8dpxgopxU9O2Q+3ToN2DV1YAI7LLzHzYNvvipZStWm90L8SraArAh5exbjaa seww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718350106; x=1718954906; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Qj6N1XCYi9OkzD42tPPAcjKt9khuBDH5NgwwQe/Q8Ps=; b=HuuLXgF8UupP5ioJIrjRIBVAGrp45qQ4D7Nf4EFKYtlGNT9mUnBEZM8GngFOkkUfCz OTUU0elKi6AauQaLaBa3JtHBid3+O7/Z2o3ULVrk/bRnwOd6ZFNm+Nwd/a5gOaBl+Kh0 V5+YbXFMNMEmVL5zNdjInRG3aRcrHiDZseRsIAmgaZAnCIXh2lX/E+jYO2NykN91snk9 nXeLwEJxMzpGrMohMLRLw/sVnVqlrWlLh8bKyh2hyjv00ctDLYmxTgUzhwVEjz+ZjgoR AaUPdN8fvo+gnG229fl1+5VbuUJLauWl6hCZ9/M/M4OERxXi0Holif/rumHvrJzrdaFK cn2Q== X-Forwarded-Encrypted: i=1; AJvYcCVqwyYInqe5ELLZDPtucOT6a4vIKde1LPjsNXnlX6UFNdjrtrMxGG0vw8HA5CQ3zG7OHt97gPP2mgtbjAn/4UpY1Cg3DGOI0gRXed/g X-Gm-Message-State: AOJu0YyYpkcLaX8NLRC4M4OF0s77OUpGgDQED/jGbMORSE7TqgAlGFZl MbN1xfoyz9GkfOIX8kuSI6xIL6RYlcyvL+0nPBuZ+5U4UVZbvTqhlQJHixB3O8o= X-Received: by 2002:a5d:458a:0:b0:360:861f:b7d1 with SMTP id ffacd0b85a97d-360861fb8cdmr69680f8f.65.1718350105904; Fri, 14 Jun 2024 00:28:25 -0700 (PDT) Received: from [127.0.1.1] ([93.5.22.158]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-36075104b2esm3535773f8f.101.2024.06.14.00.28.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 00:28:25 -0700 (PDT) From: Alexandre Mergnat Date: Fri, 14 Jun 2024 09:27:59 +0200 Subject: [PATCH RESEND v5 16/16] arm64: dts: mediatek: add audio support for mt8365-evk Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240226-audio-i350-v5-16-54827318b453@baylibre.com> References: <20240226-audio-i350-v5-0-54827318b453@baylibre.com> In-Reply-To: <20240226-audio-i350-v5-0-54827318b453@baylibre.com> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Lee Jones , Flora Fu , Jaroslav Kysela , Takashi Iwai , Sumit Semwal , =?utf-8?q?Christian_K=C3=B6nig?= , Catalin Marinas , Will Deacon , Rob Herring , Krzysztof Kozlowski Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, Alexandre Mergnat X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3674; i=amergnat@baylibre.com; h=from:subject:message-id; bh=UuxD5pLm61p5B/k8KPZWLUQ0/L/5Kc/UQPpFC3tu7EE=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBma/EAEfODnnPkRsdd11u7PQ8F+DYOn/214x3OG4/P dgywbJeJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZmvxAAAKCRArRkmdfjHURSTgD/ 9WpD0NJGEfi+cnsDUMbr7XRL72nxkXLtxsW9HyxixY20WGfs40QUu6OB4Goz91wTndbMDaiyjhTh38 cKt48+pCpGFd5DA1RE8R94l4xxAbStT1gJtN+VLDzvnbz/ASZgZt/pSW7LlF7ce5fb5lBcvLLnlJ8J VN8A+/iTg3LdDcp5+vI1NhrbxNrg1L6mAnc7fJiExDcWumNzbH+kjPhHlXOiZezbPWOgH0QmzU29gp XaSA9B9egE0nhUpkrSR5lb68O/fFrtqYnErY1Uogmy3Gp11zRBoPl06rC+yvdNOewYxr8cVlYqF5z6 O8KSlYwinzzBqLsx31eVUzHwH1+T+QarOiwfAyM1/BAGhjlfrXnPGaRB/3VeMliPQtoM90B34Y12ZA C/ErsI0t/LDJDE7MP2DpXmKI5GsDo+lwan+94XdGGf2U3/jgh8Ba5CIx5/vUCfNMJ3C/gw+HTw2Dov purJinwm0+7HsrG4Ky/LA2qFhaEHRNrmUcBAjUefjoeVzVT+J3ReRLJc2fzZRsKeENH6YN6QEW3VAA peArTUI2/QRsG6m4CATcXqZ1vBzS4KpkbmAxkRn87lBsT43rsUROWDZS28P58FEzmWXtAJC6V95x00 zGSB718brYCPeugLXWEZmYITE6GCAOQ3mDwRcFLZHUfdCbbYf9biZPuyrcxg== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 Add the sound node which is linked to the MT8365 SoC AFE and the MT6357 audio codec. Update the file header. Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 89 +++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts index 50cbaefa1a99..1d5457f9a4c2 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts +++ b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts @@ -4,6 +4,7 @@ * Authors: * Fabien Parent * Bernhard Rosenkränzer + * Alexandre Mergnat */ /dts-v1/; @@ -86,6 +87,28 @@ optee_reserved: optee@43200000 { reg = <0 0x43200000 0 0x00c00000>; }; }; + + sound: sound { + compatible = "mediatek,mt8365-mt6357"; + pinctrl-names = "default", + "dmic", + "miso_off", + "miso_on", + "mosi_off", + "mosi_on"; + pinctrl-0 = <&aud_default_pins>; + pinctrl-1 = <&aud_dmic_pins>; + pinctrl-2 = <&aud_miso_off_pins>; + pinctrl-3 = <&aud_miso_on_pins>; + pinctrl-4 = <&aud_mosi_off_pins>; + pinctrl-5 = <&aud_mosi_on_pins>; + mediatek,platform = <&afe>; + }; +}; + +&afe { + mediatek,dmic-mode = <1>; + status = "okay"; }; &cpu0 { @@ -178,9 +201,75 @@ &mt6357_pmic { interrupts-extended = <&pio 145 IRQ_TYPE_LEVEL_HIGH>; interrupt-controller; #interrupt-cells = <2>; + vaud28-supply = <&mt6357_vaud28_reg>; + audio-codec { + mediatek,micbias0-microvolt = <1900000>; + mediatek,micbias1-microvolt = <1700000>; + }; }; &pio { + aud_default_pins: audiodefault-pins { + pins { + pinmux = , + , + , + ; + }; + }; + + aud_dmic_pins: audiodmic-pins { + pins { + pinmux = , + , + ; + }; + }; + + aud_miso_off_pins: misooff-pins { + pins { + pinmux = , + , + , + ; + input-enable; + bias-pull-down; + drive-strength = ; + }; + }; + + aud_miso_on_pins: misoon-pins { + pins { + pinmux = , + , + , + ; + drive-strength = ; + }; + }; + + aud_mosi_off_pins: mosioff-pins { + pins { + pinmux = , + , + , + ; + input-enable; + bias-pull-down; + drive-strength = ; + }; + }; + + aud_mosi_on_pins: mosion-pins { + pins { + pinmux = , + , + , + ; + drive-strength = ; + }; + }; + ethernet_pins: ethernet-pins { phy_reset_pins { pinmux = ; -- 2.25.1