From patchwork Wed Nov 15 09:56:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaewon Kim X-Patchwork-Id: 744280 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 C7AF3C154 for ; Wed, 15 Nov 2023 09:59:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="VTQvtkhI" Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64C511AD for ; Wed, 15 Nov 2023 01:59:04 -0800 (PST) Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20231115095858epoutp025621896cc42957d310802d52239e3c2f~Xw3-QaBZ90279502795epoutp02E for ; Wed, 15 Nov 2023 09:58:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20231115095858epoutp025621896cc42957d310802d52239e3c2f~Xw3-QaBZ90279502795epoutp02E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1700042338; bh=t5IrulBEYs/pAFYmxibKmCqgtb1DKb9WLtc5ml9R97Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VTQvtkhIzzFuRkcH1y7RGB6SnNKrAHeYT2J9IFLzs8X8Tbe6CFKnjPmjzEfmjBGAY nUvkvVGqzUnPHFNSif92Zn5+eCO9584Qi4Uko46NIFbSwWIfRZsz6uwoNQmKH/h9fW fQ/IeWL5QQm7Bn6l6sRVk6Nv/o9vsOz8bh2SOUcc= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20231115095857epcas2p465687eaa11fd45b71f5552e2697d14ac~Xw3_2QNBg0464704647epcas2p41; Wed, 15 Nov 2023 09:58:57 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.36.68]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4SVdss0Kblz4x9Q6; Wed, 15 Nov 2023 09:58:57 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id B7.0D.09622.06694556; Wed, 15 Nov 2023 18:58:56 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p1.samsung.com (KnoxPortal) with ESMTPA id 20231115095856epcas2p189ef50d3e97656a92df6fef64414690c~Xw395_vIO0734707347epcas2p1R; Wed, 15 Nov 2023 09:58:56 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20231115095856epsmtrp27a1fbbf4c2addad9c7a808eea63526ce~Xw394kGge2585825858epsmtrp2s; Wed, 15 Nov 2023 09:58:56 +0000 (GMT) X-AuditID: b6c32a46-5d04aa8000002596-b7-6554966063cc Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 07.F6.08755.06694556; Wed, 15 Nov 2023 18:58:56 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.55]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20231115095856epsmtip232c3ccc608c345f749a2f8215284d513~Xw39cuzZe2498624986epsmtip2g; Wed, 15 Nov 2023 09:58:56 +0000 (GMT) From: Jaewon Kim To: Krzysztof Kozlowski , Alim Akhtar , Rob Herring , Conor Dooley , Tomasz Figa , Sylwester Nawrocki , Linus Walleij , Thierry Reding , Uwe Kleine-K?nig , Greg Kroah-Hartman , Jiri Slaby Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-pwm@vger.kernel.org, linux-serial@vger.kernel.org, Jaewon Kim Subject: [PATCH v2 12/12] arm64: dts: exynos: add minimal support for exynosautov920 sadk board Date: Wed, 15 Nov 2023 18:56:08 +0900 Message-ID: <20231115095609.39883-13-jaewon02.kim@samsung.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231115095609.39883-1-jaewon02.kim@samsung.com> Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrAJsWRmVeSWpSXmKPExsWy7bCmmW7CtJBUg2vXrS0ezNvGZrFm7zkm i/lHzrFaNC9ez2axo+EIq8W7uTIWe19vZbeY8mc5k8Wmx9dYLTbP/8NocXnXHDaLu3dXMVrM OL+PyeLM4l52i9a9R9gtDr9pZ7X4uWsei8WqXUB1tydOZnQQ9tg56y67x6ZVnWwed67tYfPY P3cNu8fmJfUe/X8NPPq2rGL0+LxJLoAjKtsmIzUxJbVIITUvOT8lMy/dVsk7ON453tTMwFDX 0NLCXEkhLzE31VbJxSdA1y0zB+gdJYWyxJxSoFBAYnGxkr6dTVF+aUmqQkZ+cYmtUmpBSk6B eYFecWJucWleul5eaomVoYGBkSlQYUJ2xpv3zYwFN8UrXnY8ZWtgnC/cxcjJISFgInF98yGm LkYuDiGBHYwSTy+fZoRwPjFK7Hh8Fsr5xiixoL8VqIwDrKXpmTtIt5DAXkaJ3c1eEDUfGSU2 /bjMApJgE9CW+L5+MSuILSJwn1nidVs1SBGzQDuTxLxvL1lABgkLJEq0nQ4AqWERUJXYcf8a E4jNK2An8enfGxaI8+Ql9iz6DraXEyjeel4LokRQ4uTMJ2AlzEAlzVtnM0OU3+CQuDXJDMJ2 kWjZsYYdwhaWeHV8C5QtJfH53V42CDtbon36H1YIu0Li4obZUHFjiVnP2hlB1jILaEqs36UP 8b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qAqseP+NSYQm1fA TuLTvzcsEAvkJfYs+s4EUs4JFG89rwUSFhKwlWjd/YMZolxQ4uTMJywQ0+UlmrfOZp7AKDAL SWoWktQCRqZVjJKpBcW56bnFhgWGeanlesWJucWleel6yfm5mxjBMaaluYNx+6oPeocYmTgY DzFKcDArifCay4WkCvGmJFZWpRblxxeV5qQWH2KU5mBREucVf9GbIiSQnliSmp2aWpBaBJNl 4uCUamCq3eBy5bJfmnhma/SDOUdY+jjOTpWyWs13U2/VxONr7b4zbZkv33dBqNXqfb2w4c01 nX//bl1z9u1K8/szKz88WJ2RGScWNnOPZlPZ4x3c2RM+VC7+//sDA7PO3xqWvc4sARv26p0o FmJtYNl6O+zPad7Xteor728v/jFrdUu7yJe7bTc/1XzW27amRFnr5QTmx+8v8ogkdlntftLv xHJo0fs2mfX1inXyQdcmLc27pOgfO61d8ZnZzXeNq+LEGJKvlW7ODHu5cePfZYYL/9axJa4K 1krPP3Q4ePX35R35v1Q27p5m8+uYr4SX84GrsuYLeZeUdJd9O3JwZqrYnuRde5fN3bRgroTR 27VLj7CIXlZiKc5INNRiLipOBADm9AgPIAMAAA== X-CMS-MailID: 20231115095856epcas2p189ef50d3e97656a92df6fef64414690c X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20231115095856epcas2p189ef50d3e97656a92df6fef64414690c References: <20231115095609.39883-1-jaewon02.kim@samsung.com> ExynosAutov920 SADK is ExynosAutov920 SoC based SADK(Samsung Automotive Development Kit) board. It has 16GB(8GB + 8GB) LPDDR5 RAM and 256GB (128GB + 128GB) UFS. This is minimal support board device-tree. * Serial console * GPIO Key * PWM FAN Signed-off-by: Jaewon Kim --- arch/arm64/boot/dts/exynos/Makefile | 3 +- .../boot/dts/exynos/exynosautov920-sadk.dts | 88 +++++++++++++++++++ 2 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/exynos/exynosautov920-sadk.dts diff --git a/arch/arm64/boot/dts/exynos/Makefile b/arch/arm64/boot/dts/exynos/Makefile index 6e4ba69268e5..da06e1a9456c 100644 --- a/arch/arm64/boot/dts/exynos/Makefile +++ b/arch/arm64/boot/dts/exynos/Makefile @@ -5,4 +5,5 @@ dtb-$(CONFIG_ARCH_EXYNOS) += \ exynos7-espresso.dtb \ exynos7885-jackpotlte.dtb \ exynos850-e850-96.dtb \ - exynosautov9-sadk.dtb + exynosautov9-sadk.dtb \ + exynosautov920-sadk.dtb diff --git a/arch/arm64/boot/dts/exynos/exynosautov920-sadk.dts b/arch/arm64/boot/dts/exynos/exynosautov920-sadk.dts new file mode 100644 index 000000000000..e250b5594b58 --- /dev/null +++ b/arch/arm64/boot/dts/exynos/exynosautov920-sadk.dts @@ -0,0 +1,88 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Samsung's ExynosAutov920 SADK board device tree source + * + * Copyright (c) 2023 Samsung Electronics Co., Ltd. + * + */ + +/dts-v1/; +#include "exynosautov920.dtsi" +#include "exynos-pinctrl.h" +#include +#include + +/ { + model = "Samsung ExynosAutov920 SADK board"; + compatible = "samsung,exynosautov920-sadk", "samsung,exynosautov920"; + + #address-cells = <2>; + #size-cells = <2>; + + aliases { + serial0 = &serial_0; + }; + + chosen { + stdout-path = &serial_0; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x0 0x80000000 0x0 0x70000000>, + <0x8 0x80000000 0x1 0xfba00000>, + <0xa 0x00000000 0x2 0x00000000>; + }; + + gpio-keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&key_wakeup &key_back>; + + key-wakeup { + label = "KEY_WAKEUP"; + linux,code = ; + gpios = <&gpa0 0 GPIO_ACTIVE_LOW>; + wakeup-source; + }; + + key-back { + label = "KEY_BACK"; + linux,code = ; + gpios = <&gpp6 3 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&pinctrl_alive { + key_wakeup: key-wakeup-pins { + samsung,pins = "gpa0-0"; + samsung,pin-function = ; + }; +}; + +&pinctrl_peric1 { + key_back: key-back-pins { + samsung,pins = "gpp6-3"; + samsung,pin-function = ; + }; +}; + +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm_tout0>; + status = "okay"; +}; + +&serial_0 { + status = "okay"; +}; + +&usi_0 { + samsung,clkreq-on; /* needed for UART mode */ + status = "okay"; +}; + +&xtcxo { + clock-frequency = <38400000>; +};