From patchwork Tue Jul 18 03:42:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaewon Kim X-Patchwork-Id: 13318228 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 399A5C001DF for ; Wed, 19 Jul 2023 05:32:25 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id: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=M1hJ1ApFuXbT5zBmSWxxvTAfj/jG18X27B7rPpx7F6k=; b=n8jNGoz5LIox8+ 0nBnSDKfvVKd1KBpOUhKYzuEPzcLfi8RfP4/ezFa4cozN6to/XcDv/ux3DDxFfcow6aDkTMVUvVxP sUkCFPyOfBlX0ez18hjZ5gFcX5EnRDd4nrBOzrCdF0EapTcqzWm3I0jvKAWUR89eka0AkkBI0gV6P Ej/uLTBqXv0ZUHDBnTmd1XX80KQiZRHo53RK90g+9VPcFP1uZBlwMYS+194BnD+FA7DtQFpMIt+yW rzMtfoSZZ4uCr7hTvsoTk1OcPmrgNL41S4MvSE3J+Dvs+AUqnwGxE/FoyshNm58OhxyH07jolaWWa kv+oe/f10HAOQrjS1Zyw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qLznE-005KOr-2u; Wed, 19 Jul 2023 05:32:08 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qLznB-005KNh-2T for linux-arm-kernel@bombadil.infradead.org; Wed, 19 Jul 2023 05:32:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=References:Content-Type:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version: Content-Transfer-Encoding:Content-ID:Content-Description; bh=tSxJqs0xAf2OaWmufD5SkySGQ2OZB+41Bzu1pYFCO/A=; b=YhluLaX3vo7+sFbn1HXhEoZtv9 vd1wNMcdcbTjXG7mk6ixtTM+Ov2cflwHrm4ufHYUm9uZ7rNRUsMRml+pGSz4kYvkMJ4SOzhu8GEQR qCBf5J7/NfgmGeHOpDiDthXFc7bOeXCvlnMG2c4336W4nLfMmZiA6/R91K7yVl31eTmPyowwvCNso DTdm+EFYzR8XOyTcl6/LmLAvWpByJmiiQbKJxmm4QaaF4hZ2UquyW33wbNOadrGYaSAFBlCVDcUXm HP5jnK0Wpzag5ZcZGXEKabjKHOE5vThsZgK1C19Fg7+Z9UlWA31nOJSjUa9n2eOhKLfyBgJaaMRKj uxTJ6dvQ==; Received: from mailout3.samsung.com ([203.254.224.33]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qLbgc-009xt9-2A for linux-arm-kernel@lists.infradead.org; Tue, 18 Jul 2023 03:47:53 +0000 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20230718034725epoutp036cf3c9e98ba8c60b146093a0336ce459~y2ZVgzLvA0121101211epoutp03H for ; Tue, 18 Jul 2023 03:47:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20230718034725epoutp036cf3c9e98ba8c60b146093a0336ce459~y2ZVgzLvA0121101211epoutp03H DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1689652045; bh=tSxJqs0xAf2OaWmufD5SkySGQ2OZB+41Bzu1pYFCO/A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mCuDX7kR0/o8m4QSWvWluh/iIWX95+4OaSh+yL4MyFA/ZI1b+ijsdBKL76Wiw2IpW L4lFv8CFIxjEmrK6laqQ6UO+d8Ev/JHhoI0M/EfLEz1th8NLV76A9J7kZdQP4NOgIw YXUP0ZXpEr2PTXbCL5VA5O93ahyyenTw8dLEaatU= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20230718034725epcas2p2f1d5bc519b331eba4b8411b25db56864~y2ZU-7INq0276202762epcas2p2s; Tue, 18 Jul 2023 03:47:25 +0000 (GMT) Received: from epsmgec2p1-new.samsung.com (unknown [182.195.36.101]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4R4lJX6kl3z4x9Q0; Tue, 18 Jul 2023 03:47:24 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmgec2p1-new.samsung.com (Symantec Messaging Gateway) with SMTP id DF.F1.29526.C4B06B46; Tue, 18 Jul 2023 12:47:24 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p3.samsung.com (KnoxPortal) with ESMTPA id 20230718034723epcas2p354fc5502d4ed212c7f748d2849e6b60a~y2ZTw1Z962503525035epcas2p3N; Tue, 18 Jul 2023 03:47:23 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230718034723epsmtrp14272200f11328471aa854323ef32883b~y2ZTwDb5y2910429104epsmtrp1T; Tue, 18 Jul 2023 03:47:23 +0000 (GMT) X-AuditID: b6c32a4d-853ff70000047356-d0-64b60b4c0c3b Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 1A.2E.30535.B4B06B46; Tue, 18 Jul 2023 12:47:23 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.55]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230718034723epsmtip139f202407c47967a4b07ef91488358e1~y2ZTjdTV32248222482epsmtip1p; Tue, 18 Jul 2023 03:47:23 +0000 (GMT) From: Jaewon Kim To: Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6n?= =?utf-8?q?ig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar Cc: linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Jaewon Kim Subject: [PATCH v5 2/2] arm64: dts: exynos: add pwm node for exynosautov9-sadk Date: Tue, 18 Jul 2023 12:42:01 +0900 Message-Id: <20230718034201.136800-3-jaewon02.kim@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230718034201.136800-1-jaewon02.kim@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrHKsWRmVeSWpSXmKPExsWy7bCmqa4P97YUgzkzTS0ezNvGZrFm7zkm i/lHzrFa7Gg4wmrR9+Ihs8Wmx9dYLS7vmsNmcffuKkaLGef3MVm07j3CbvFz1zwWi9sTJzM6 8HjsnHWX3WPTqk42jzvX9rB5bF5S79H/18Cjb8sqRo/Pm+QC2KOybTJSE1NSixRS85LzUzLz 0m2VvIPjneNNzQwMdQ0tLcyVFPISc1NtlVx8AnTdMnOA7lRSKEvMKQUKBSQWFyvp29kU5ZeW pCpk5BeX2CqlFqTkFJgX6BUn5haX5qXr5aWWWBkaGBiZAhUmZGdsaXrJUvCIu+LInpmMDYwP ObsYOTkkBEwk9s6cxtzFyMUhJLCHUeLIhb1sEM4nRokfKy6yglQJCXxjlLgzURqm4/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Cjb8sqRo/Pm+QC2KO4bFJSczLLUov07RK4MrY0 vWQpeMRdcWTPTMYGxoecXYycHBICJhLnD0xn7mLk4hAS2M0o8Xv/HlaIhIzE8md9bBC2sMT9 liOsEEXvGSUabn8FS7AJaEt8X78YLCEisJhJ4k33QzCHWeAio8SJP1fYQaqEBfwk2q5sAdrB wcEioCrxe5MxiMkrYCdxanoQxAJ5idUbDjCD2JwC9hITdu8B6xQCKvm49BvjBEa+BYwMqxgl UwuKc9Nziw0LjPJSy/WKE3OLS/PS9ZLzczcxggNXS2sH455VH/QOMTJxMB5ilOBgVhLh/b5q U4oQb0piZVVqUX58UWlOavEhRmkOFiVx3m+ve1OEBNITS1KzU1MLUotgskwcnFINTBO5C+8F TXJKDfjy+8bpQ3l31/efZWvdFnyyRPmbyvTU1za/vqS7VH36sMIo+YSym6+ig65P/Fa1NIMs xY93TF5fmststfaC4S/DR+9y03wn7L2WMePa/SXOtTuffPukuupsmKv42RyHJM+TNSxiS7cl dG6a2hY2i8voV9iTiqB7z+ddCyvoYVCz+/P9tOrNMuVui4qX55Y2tNRtCX8+LSWkwnRj0JfG 6M11b1k43j9jnXpBTCk6flLik0+zs911zrPbCdU9l5qy99yhXTZLH/w7PeGy65HHJ7JyuLS2 hzs11s37n8Ka5HvXwUde6p+buNq8ScbMEdnuzE3V15/8m+V/eXZtfnXQ4caYT7t/3VZiKc5I NNRiLipOBAC31DPfywIAAA== X-CMS-MailID: 20230718034723epcas2p354fc5502d4ed212c7f748d2849e6b60a X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230718034723epcas2p354fc5502d4ed212c7f748d2849e6b60a References: <20230718034201.136800-1-jaewon02.kim@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230718_044749_087493_D49693DD X-CRM114-Status: GOOD ( 15.24 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add pwm node to support fan on exynosautov9-sadk board. PWM channel 3 of ExynosAutov9 is connected to fan for SoC cooling in SADK board. Signed-off-by: Jaewon Kim --- arch/arm64/boot/dts/exynos/exynosautov9-sadk.dts | 6 ++++++ arch/arm64/boot/dts/exynos/exynosautov9.dtsi | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynosautov9-sadk.dts b/arch/arm64/boot/dts/exynos/exynosautov9-sadk.dts index 101f51bf565a..bc1815f6ada2 100644 --- a/arch/arm64/boot/dts/exynos/exynosautov9-sadk.dts +++ b/arch/arm64/boot/dts/exynos/exynosautov9-sadk.dts @@ -49,6 +49,12 @@ }; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm_tout3>; + status = "okay"; +}; + &serial_0 { pinctrl-0 = <&uart0_bus_dual>; status = "okay"; diff --git a/arch/arm64/boot/dts/exynos/exynosautov9.dtsi b/arch/arm64/boot/dts/exynos/exynosautov9.dtsi index d3c5cdeff47f..3b906f4db907 100644 --- a/arch/arm64/boot/dts/exynos/exynosautov9.dtsi +++ b/arch/arm64/boot/dts/exynos/exynosautov9.dtsi @@ -1560,6 +1560,16 @@ samsung,syscon-phandle = <&pmu_system_controller>; samsung,cluster-index = <1>; }; + + pwm: pwm@103f0000 { + compatible = "samsung,exynosautov9-pwm", + "samsung,exynos4210-pwm"; + reg = <0x103f0000 0x100>; + samsung,pwm-outputs = <0>, <1>, <2>, <3>; + #pwm-cells = <3>; + clocks = <&xtcxo>; + clock-names = "timers"; + }; }; };