From nobody Thu Nov 14 16:43:38 2024 Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (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 6F83F197A7E for ; Thu, 5 Sep 2024 09:07:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725527277; cv=none; b=DcLeR7TEK0U5KJcroMlfIWO6fcC84LCicYFpSLunmOycVGw/A/1SJiW6y1IUMRLIqsNUj86ky/jMMDnuTvthPnLXI0G6kGyD60vvRueKylckkz1LS7KxvKQ1aPCfl8z+BRa4CEl3AKIR8RFgAGtQBmgSV0aRb338XWsqT1bMJMM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725527277; c=relaxed/simple; bh=FIwNsi2/7C6h+hTUlPdOVAIygtslJZRWw1saG4r7H9A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=b2/l8ztzPtekkZr6hQ5pr85mCECiUKT8YXPQ16bmNFaogPQPp+hQyrAz5HM/JnTQQG7TNntkkJ8ZYj9KTI3cU7jjgnA+MAyV8c5DXH6BMSgob4E6cP9d2SlraJRIiK3CUa9ywFNK8+G0GR3YFowoHAIMHe/6/Uns0B1cJAhcaB0= 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=JWdWG1R7; arc=none smtp.client-ip=209.85.167.44 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 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="JWdWG1R7" Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-533521cd1c3so621746e87.1 for ; Thu, 05 Sep 2024 02:07:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1725527274; x=1726132074; 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=amEp3d9dA2kLes/bKsPMBk46Liy76YOCyltVKKQIsdk=; b=JWdWG1R7C2PI4Ro6Buec2nQblB/dITRmQjkLol55L99I/BRPHDAVHmCDl2hZI9w+6/ y/wnVvObb87DqdKV7aWBjNghjqwzl8+wF2pytTp23KV3Pr87K/OzrQ0mQ65Kled4akfe P2tCHoaiz8zm0C3em4nDpi7R+BkUq5gu7CRxoJ4P4gsUe/zREScaFJwMl9G3+FoQ9x3g nfFp9XgNX1ozgx1tROoNPOSBCTwsliZvISSPVSTog0HxtnOctLj4FAL+L5d5ixiO1qGu WIam/SlAJVtD5bnon7YcMgX7r2gNfpmiohPWmHaP8d4XoivqWnZIaR/IPn+aojRlT4o+ EUzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725527274; x=1726132074; 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=amEp3d9dA2kLes/bKsPMBk46Liy76YOCyltVKKQIsdk=; b=C218jowgkeH3MW6Di3avL9TUr12IzSB2aF1cKnXquCep96YcceFF84ht3upNoWdE8W K9WcKOncNCXoRJGDtfog6Qq5q0/7Wh8cPMAH5g/ER/aUe1S9TzldeWsaT5wdb3SXFkYm qfHEYz+mPQNVsb1slfmgDlYVlXtfRkSsuP4dlMcWl6cSaSDdnKCfr6Ws5FFD9HN3v2Pv VaNfZ0rsdFwIkVfNvOz+V+gZGekJpAFRdKrprTJNYFMA5t7WbIDRTh6qX4BfXZNlC+UB SfWobhTa+CcICygnImIbmVBPxz+p9JwFB+C4oYoDQv6qf75BgQGHRjGATx1KgLlcP8zO MelA== X-Gm-Message-State: AOJu0YwopNRFIaw0i99dup496gm3iOwcnnqrO2r86xTGcQcRXpavO3Br N+J9NXaioi6Kl2Rl+ASrRxSKiAar+2QRDXJLswBk2yIWHNacnF63Qi52fymzNcg= X-Google-Smtp-Source: AGHT+IEXxv3v/7gChECZyOGuQolflyMIMwnjLiTaBnwFPxxgLEbat0KiTCUHf92EE0SVtscCFlRltg== X-Received: by 2002:a05:6512:1593:b0:536:53e3:feae with SMTP id 2adb3069b0e04-53653e400aamr788908e87.11.1725527259850; Thu, 05 Sep 2024 02:07:39 -0700 (PDT) Received: from [127.0.1.1] (88-127-185-239.subs.proxad.net. [88.127.185.239]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-535406e5549sm2554188e87.0.2024.09.05.02.07.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2024 02:07:39 -0700 (PDT) From: Alexandre Mergnat Date: Thu, 05 Sep 2024 11:07:02 +0200 Subject: [PATCH v8 5/5] 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: quoted-printable Message-Id: <20240226-audio-i350-v8-5-e80a57d026ce@baylibre.com> References: <20240226-audio-i350-v8-0-e80a57d026ce@baylibre.com> In-Reply-To: <20240226-audio-i350-v8-0-e80a57d026ce@baylibre.com> To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Matthias Brugger , AngeloGioacchino Del Regno , Catalin Marinas , Will Deacon , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, Alexandre Mergnat X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3691; i=amergnat@baylibre.com; h=from:subject:message-id; bh=FIwNsi2/7C6h+hTUlPdOVAIygtslJZRWw1saG4r7H9A=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBm2XTORpSVxJ3WbTSdgdCVCYCnTzKrNLC1U02Hx9yO uJ38TEmJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZtl0zgAKCRArRkmdfjHURdtGD/ 9QPgfVxIgAgeB4+Wq1OA6v2H1AeKw1PS2HUIJjwj/wYkXZehlBvs+xePlZPiQN4/TRR/CVjAhWCkoF zf51VPxBZ/lp90Dlugv+8vp32PrpJfmS9WD6aB2RYg5jbnUbOWEa8KsDi47EXIP4Y27TFLQvFzTY0Y h12/eeBEo2b8MyIt3ILEv+HCALp5gKledvonGxIt+6fmZETN6LrhyW0SPp2Bq5hvO2TvoDUz18ZfG9 2KPqWUU8fwjIYzJF+Jg/23G/lZwab/DXH7rXBMbq6dP4GW7gFNd9tyMrButbSQc2FqKiFuzJoaZw53 MV92eRMwEItx4bC3iF2lNyOO0vvYyuNIfQM2+RFZ1X9kS+pKt8YsX7bnFmFn8YBibxBomvFh3EP0PK BpDDxSwd8W8SjrqfTqwpZh/97bbv0GzRXLTGPKvthkIenQraunMIjpU6Vx8WRODrliBlqdANnw7xT+ YLvteJ2EOAkVtcJIAnOis3y7NhfCDtnngmHCksnkzcnywYKKjPJdOx0lzfL/o8w7OsSwT1vYlP8MUo xeDkui005HYUMjGbc+pT9IujVhpu555SYHNYKx+w1A4RISxic4hSUcmu7p+/3MNpBGt1H6LjmZCAqH 2ux5hGjZYZBJcaBojKfPHEMr3myzjvFPFynmx2GmmKXusBFk9GzAOOCndFrw== 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. Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 86 +++++++++++++++++++++++++= ++++ 1 file changed, 86 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/= dts/mediatek/mt8365-evk.dts index 4211a992dd9d..7d90112a7e27 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=C3=A4nzer + * Alexandre Mergnat */ =20 /dts-v1/; @@ -86,6 +87,28 @@ optee_reserved: optee@43200000 { reg =3D <0 0x43200000 0 0x00c00000>; }; }; + + sound: sound { + compatible =3D "mediatek,mt8365-mt6357"; + pinctrl-names =3D "default", + "dmic", + "miso_off", + "miso_on", + "mosi_off", + "mosi_on"; + pinctrl-0 =3D <&aud_default_pins>; + pinctrl-1 =3D <&aud_dmic_pins>; + pinctrl-2 =3D <&aud_miso_off_pins>; + pinctrl-3 =3D <&aud_miso_on_pins>; + pinctrl-4 =3D <&aud_mosi_off_pins>; + pinctrl-5 =3D <&aud_mosi_on_pins>; + mediatek,platform =3D <&afe>; + }; +}; + +&afe { + mediatek,dmic-mode =3D <1>; + status =3D "okay"; }; =20 &cpu0 { @@ -178,9 +201,72 @@ &mt6357_pmic { interrupts-extended =3D <&pio 145 IRQ_TYPE_LEVEL_HIGH>; interrupt-controller; #interrupt-cells =3D <2>; + mediatek,micbias0-microvolt =3D <1900000>; + mediatek,micbias1-microvolt =3D <1700000>; }; =20 &pio { + aud_default_pins: audiodefault-pins { + clk-dat-pins { + pinmux =3D , + , + , + ; + }; + }; + + aud_dmic_pins: audiodmic-pins { + clk-dat-pins { + pinmux =3D , + , + ; + }; + }; + + aud_miso_off_pins: misooff-pins { + clk-dat-pins { + pinmux =3D , + , + , + ; + input-enable; + bias-pull-down; + drive-strength =3D <2>; + }; + }; + + aud_miso_on_pins: misoon-pins { + clk-dat-pins { + pinmux =3D , + , + , + ; + drive-strength =3D <6>; + }; + }; + + aud_mosi_off_pins: mosioff-pins { + clk-dat-pins { + pinmux =3D , + , + , + ; + input-enable; + bias-pull-down; + drive-strength =3D <2>; + }; + }; + + aud_mosi_on_pins: mosion-pins { + clk-dat-pins { + pinmux =3D , + , + , + ; + drive-strength =3D <6>; + }; + }; + ethernet_pins: ethernet-pins { phy_reset_pins { pinmux =3D ; --=20 2.25.1