From nobody Sat Nov 23 05:41:51 2024 Received: from mx1.sberdevices.ru (mx2.sberdevices.ru [45.89.224.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA1621925BC; Thu, 14 Nov 2024 15:49:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.89.224.132 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731599357; cv=none; b=GbOBukO9ZNhe5FSJJ1BbiV1sgECJV2sRFEV2FRYDbvjP1RkGvnYIQEQfjFAf4zwwaQpFw3ryh5w2n+rgaHop3Mgvk3dxCsIm9Httkwf7x6y7pluRQd750hSOL68LDco+M0I8S4ylzEmbZFj3SMi1XNyAuA6Ge2r6hzPUoUZ2P+I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731599357; c=relaxed/simple; bh=k9Fjh6nKhR/LXIu2gDZm8HK7jTe/WP4RPBktTJSXu9c=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=V5TtId1cunAL8oQ7wI/6+sTqcaYJyrM63iB3dZR21ji+Nno93BX6ryFu5cS3Ja21nCee9L6vn7QtnU7uRlg6PIk7jtSseuiaJzQaGiuqsILmXOkFhNnm8HZd3kEH8lNue+IxIHREOxAhP4es8rauo9OYUqqgZax6n68AP6OVJzk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=salutedevices.com; spf=pass smtp.mailfrom=sberdevices.ru; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b=WD3Mahzc; arc=none smtp.client-ip=45.89.224.132 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=salutedevices.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sberdevices.ru Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b="WD3Mahzc" Received: from p-infra-ksmg-sc-msk02.sberdevices.ru (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id 0E31712000A; Thu, 14 Nov 2024 18:49:03 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru 0E31712000A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1731599343; bh=qM9Fa6j7iLyDJagEepX2fMrbFgJRqnxUlLpPco5Ibyg=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=WD3MahzcwaBz3OYQAnsrzKdAPLA+gPEGNloqfF7/e7mw5bya0JLEDaPs3TXsstYsu rjFX7Ws4Ff0hB+RYiIhMm1E74NgP1QPO62RtHaNWviorIELu3/LFEqzdQzbMLeIw2o IhUjS8V5M4OeFA5GAEzGzcwFdjgqEng5tEvafBK+6vpl4jfLYAvpqZujjE7uDuopXd gZGHnoWBRZwed01m/wwtlHNl20IGtV/vgi1HqMqkN3ahaqGtPw+BYX0uMZ2UWQiTZh MXZGeamBCxVmG3FLKFaYAzKEp3tRPIZWy/v8peRBT9rFKx+iodOld5Qpi2d6y+k5eU 0LbQ+hH/4lGxg== Received: from smtp.sberdevices.ru (p-i-exch-sc-m01.sberdevices.ru [172.16.192.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sberdevices.ru (Postfix) with ESMTPS; Thu, 14 Nov 2024 18:49:02 +0300 (MSK) From: Jan Dakinevich To: Jan Dakinevich , Christian Hewitt , Conor Dooley , , Jerome Brunet , "Kevin Hilman" , Krzysztof Kozlowski , , , , Martin Blumenstingl , Neil Armstrong , Rob Herring , Xianwei Zhao Subject: [PATCH v2 2/2] arch/arm64: dts: ac200: introduce initial support of the board Date: Thu, 14 Nov 2024 18:48:56 +0300 Message-ID: <20241114154856.3353691-3-jan.dakinevich@salutedevices.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241114154856.3353691-1-jan.dakinevich@salutedevices.com> References: <20241114154856.3353691-1-jan.dakinevich@salutedevices.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: p-i-exch-a-m1.sberdevices.ru (172.24.196.116) To p-i-exch-a-m1.sberdevices.ru (172.24.196.116) X-KSMG-Rule-ID: 10 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Lua-Profiles: 189183 [Nov 14 2024] X-KSMG-AntiSpam-Version: 6.1.1.7 X-KSMG-AntiSpam-Envelope-From: YVDakinevich@sberdevices.ru X-KSMG-AntiSpam-Rate: 0 X-KSMG-AntiSpam-Status: not_detected X-KSMG-AntiSpam-Method: none X-KSMG-AntiSpam-Auth: dkim=none X-KSMG-AntiSpam-Info: LuaCore: 41 0.3.41 623e98d5198769c015c72f45fabbb9f77bdb702b, {Tracking_smtp_not_equal_from}, smtp.sberdevices.ru:7.1.1,5.0.1;salutedevices.com:7.1.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;sberdevices.ru:7.1.1,5.0.1;127.0.0.199:7.1.2, {Tracking_smtp_domain_mismatch}, {Tracking_smtp_domain_2level_mismatch}, {Tracking_sender_alignment_int}, {Tracking_white_helo}, FromAlignment: n X-MS-Exchange-Organization-SCL: -1 X-KSMG-AntiSpam-Interceptor-Info: scan successful X-KSMG-AntiPhishing: Clean X-KSMG-LinksScanning: Clean X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.0.1.6960, bases: 2024/11/14 14:31:00 #26861614 X-KSMG-AntiVirus-Status: Clean, skipped Content-Type: text/plain; charset="utf-8" AC200 is Amlogic's reference board based on S905D3 SoC. The board has support for USB, Ethernet, HDMI, WiFi, eMMC, micro SD, AV output, analog audio. Signed-off-by: Jan Dakinevich --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../boot/dts/amlogic/meson-sm1-ac200.dts | 109 ++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-sm1-ac200.dts diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/aml= ogic/Makefile index 2fbda8419c65..6f559ce67f86 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -81,6 +81,7 @@ dtb-$(CONFIG_ARCH_MESON) +=3D meson-gxm-wetek-core2.dtb dtb-$(CONFIG_ARCH_MESON) +=3D meson-s4-s805x2-aq222.dtb dtb-$(CONFIG_ARCH_MESON) +=3D meson-sm1-a95xf3-air-gbit.dtb dtb-$(CONFIG_ARCH_MESON) +=3D meson-sm1-a95xf3-air.dtb +dtb-$(CONFIG_ARCH_MESON) +=3D meson-sm1-ac200.dtb dtb-$(CONFIG_ARCH_MESON) +=3D meson-sm1-bananapi-m2-pro.dtb dtb-$(CONFIG_ARCH_MESON) +=3D meson-sm1-bananapi-m5.dtb dtb-$(CONFIG_ARCH_MESON) +=3D meson-sm1-h96-max.dtb diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-ac200.dts b/arch/arm64/b= oot/dts/amlogic/meson-sm1-ac200.dts new file mode 100644 index 000000000000..f87b393f56c2 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-ac200.dts @@ -0,0 +1,109 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2024, SaluteDevices. All Rights Reserved. + */ + +/dts-v1/; + +#include "meson-sm1-ac2xx.dtsi" +#include + +/ { + compatible =3D "amlogic,ac200", "amlogic,sm1"; + model =3D "Amlogic AC200"; + + memory@0 { + device_type =3D "memory"; + reg =3D <0x0 0x0 0x0 0x80000000>; /* 2 GiB */ + }; + + sound { + compatible =3D "amlogic,axg-sound-card"; + model =3D "AC200"; + audio-aux-devs =3D <&tdmout_b>; + audio-routing =3D "TDMOUT_B IN 0", "FRDDR_A OUT 1", + "TDMOUT_B IN 1", "FRDDR_B OUT 1", + "TDMOUT_B IN 2", "FRDDR_C OUT 1", + "TDM_B Playback", "TDMOUT_B OUT"; + + clocks =3D <&clkc CLKID_MPLL2>, + <&clkc CLKID_MPLL0>, + <&clkc CLKID_MPLL1>; + + assigned-clocks =3D <&clkc CLKID_MPLL2>, + <&clkc CLKID_MPLL0>, + <&clkc CLKID_MPLL1>; + assigned-clock-parents =3D <0>, <0>, <0>; + assigned-clock-rates =3D <294912000>, + <270950400>, + <393216000>; + + dai-link-0 { + sound-dai =3D <&frddr_a>; + }; + + dai-link-1 { + sound-dai =3D <&frddr_b>; + }; + + dai-link-2 { + sound-dai =3D <&frddr_c>; + }; + + /* 8ch hdmi interface */ + dai-link-3 { + sound-dai =3D <&tdmif_b>; + dai-format =3D "i2s"; + dai-tdm-slot-tx-mask-0 =3D <1 1>; + dai-tdm-slot-tx-mask-1 =3D <1 1>; + dai-tdm-slot-tx-mask-2 =3D <1 1>; + dai-tdm-slot-tx-mask-3 =3D <1 1>; + mclk-fs =3D <256>; + + codec { + sound-dai =3D <&tohdmitx TOHDMITX_I2S_IN_B>; + }; + }; + + /* hdmi glue */ + dai-link-4 { + sound-dai =3D <&tohdmitx TOHDMITX_I2S_OUT>; + + codec { + sound-dai =3D <&hdmi_tx>; + }; + }; + }; +}; + +&clkc_audio { + status =3D "okay"; +}; + +&arb { + status =3D "okay"; +}; + +&frddr_a { + status =3D "okay"; +}; + +&frddr_b { + status =3D "okay"; +}; + +&frddr_c { + status =3D "okay"; +}; + +&tdmif_b { + status =3D "okay"; +}; + +&tdmout_b { + status =3D "okay"; +}; + +&tohdmitx { + status =3D "okay"; +}; --=20 2.34.1