Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2403670ioo; Sat, 28 May 2022 12:32:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxod4yvf3h/RlhBeTsTw+y4JDLYmxOLa0UfuKjwIewyc6Ymg47/u6yNxLsDUVNec4WOnyKx X-Received: by 2002:a63:8048:0:b0:3fb:d725:977b with SMTP id j69-20020a638048000000b003fbd725977bmr3427864pgd.579.1653766334584; Sat, 28 May 2022 12:32:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653766334; cv=none; d=google.com; s=arc-20160816; b=M7k3KgV4cDQ0+bR9HxIaHXgRhrTxf+Qre9CadwVZgd7eVgz/hAovQk4okjI7+PMJAu P0S031E1j7C4b4fXA2XNSO5qgd84XpBt3s1xLmhSHVhWBPDzmI9dodj4GiqYw4xiTk7R pHdIrUYYn7fGHeUYZxUazOe2uOqYWCZNOX8Y0NQGrh4ZgMaVAjBCcVVHvkxLCpwCbKnP DBDFs9bTBqT/XG5o91m8WPo655WPn4DtFkhWYBzIMLJ/izLeUGchsVcKZOGECOCwDJkK QH4QSVbo4JPlePsO52Lbpb5AxuJaz441IqbKWaGvghooIl5G6NztGv0btyEckU90CUF7 2+2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:thread-index :content-language:content-transfer-encoding:mime-version:message-id :date:subject:in-reply-to:to:from:dkim-signature:dkim-filter; bh=kTMSku+wRHw3/iaNA0Ocg3i0O4FTebz0XJKPrB/YrEE=; b=JXGr0QAcHgLG/3MixuG7h4on9UZVzVQszGO4r8zLNycwHUZsNSrAmHrw+b0f2qpXcU z6v7Biof7emI1WTXM3h9Fif6e1YpvABaoPs66iv8i867e3QNh3tMWYq5DyNdhw/MLdeR ORfWxzrTevk1L4fo+pP9mcaLK22Y2LpAv7QAWOe6YTjNtZZ8PTggno0qgGaaTtHU50b0 XSPOr0H33baimCID1Ot9Om9iKhLC3xiQoQ0y4727OTkCnX9rFhMEuLq9256o2SswgWhq F1/CD6MwrEUkIOCucvDMJxYHFPN3dmrnJQttAcLnhsoUz7Nl3qO3af3V+Eyfxk4f6KiY jxpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=JVnotfeu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k9-20020a635609000000b003db8a4f29e5si10383510pgb.264.2022.05.28.12.32.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 12:32:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=JVnotfeu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F185A57B37; Sat, 28 May 2022 11:59:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233060AbiE0EWj (ORCPT + 99 others); Fri, 27 May 2022 00:22:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229981AbiE0EWg (ORCPT ); Fri, 27 May 2022 00:22:36 -0400 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DD9F76289 for ; Thu, 26 May 2022 21:22:33 -0700 (PDT) Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220527042227epoutp046b4a506fe5119b42038348938861b026~y234P1yVJ0839908399epoutp04K for ; Fri, 27 May 2022 04:22:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220527042227epoutp046b4a506fe5119b42038348938861b026~y234P1yVJ0839908399epoutp04K DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1653625347; bh=kTMSku+wRHw3/iaNA0Ocg3i0O4FTebz0XJKPrB/YrEE=; h=From:To:In-Reply-To:Subject:Date:References:From; b=JVnotfeurfDbol1v9+08KEZm2XfWkRKBP62Yyph1WB2hTwifQhRaeqZZfmWDgS+ux ObjO1hkGPIbRsRVXv1Huaot29kaw8yA65qzznRFY7DW8UTRPLD2fG4sump1Y+Jenub VVNP/Z2CYeCNkSqBAb26M2PqdcDPunv1pKDpvSCs= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20220527042227epcas2p1289fcf7446d6ff65cff00daf9b1e9f5b~y233t_xM81349313493epcas2p1P; Fri, 27 May 2022 04:22:27 +0000 (GMT) Received: from epsmges2p1.samsung.com (unknown [182.195.36.88]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4L8WqM6YNFz4x9Q3; Fri, 27 May 2022 04:22:23 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 3B.69.10069.DF150926; Fri, 27 May 2022 13:22:21 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20220527042221epcas2p48eba371da8b9a5b940efd852e36c6f3a~y23yKRP2i2554025540epcas2p4T; Fri, 27 May 2022 04:22:21 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220527042221epsmtrp150b905b9660238b9eaf864baaf0e6e1b~y23yJJKmu3019630196epsmtrp1N; Fri, 27 May 2022 04:22:21 +0000 (GMT) X-AuditID: b6c32a45-a8fff70000002755-70-629051fda327 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id F9.9F.11276.CF150926; Fri, 27 May 2022 13:22:20 +0900 (KST) Received: from KORCO082417 (unknown [10.229.8.121]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220527042220epsmtip1dab27ca6a53a2f6ab90bfc88d7d30890~y23x5QWgq3031830318epsmtip1W; Fri, 27 May 2022 04:22:20 +0000 (GMT) From: "Chanho Park" To: "'Krzysztof Kozlowski'" , "'Rob Herring'" , "'Krzysztof Kozlowski'" , "'Alim Akhtar'" , "'Tomasz Figa'" , "'Sylwester Nawrocki'" , "'Linus Walleij'" , , , , , In-Reply-To: <20220526143707.767490-2-krzysztof.kozlowski@linaro.org> Subject: RE: [PATCH 1/7] ARM: dts: s3c2410: use local header for pinctrl register values Date: Fri, 27 May 2022 13:22:20 +0900 Message-ID: <012d01d87181$5b9e23c0$12da6b40$@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Content-Language: ko Thread-Index: AQJyxhdZ1KlViaDZ4SOc3qllW0JPVwEeqvFKAv0c9XOr3JeZYA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrCJsWRmVeSWpSXmKPExsWy7bCmue7fwAlJBn3/tC0ezNvGZjH/yDlW i74XD5kt9r7eym4x5c9yJotNj6+xWmye/4fR4vKuOWwWM87vY7Jo3XuE3eLwm3ZWi1W7/jA6 8HjsnHWX3WPTqk42jzvX9r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+WDlViKMxINtZiLihMBLThv fCcDAAA= X-CMS-MailID: 20220527042221epcas2p48eba371da8b9a5b940efd852e36c6f3a X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220526143736epcas2p27f8a54ddcb91aa4a66adc287af0491c3 References: <20220526143707.767490-1-krzysztof.kozlowski@linaro.org> <20220526143707.767490-2-krzysztof.kozlowski@linaro.org> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Subject: [PATCH 1/7] ARM: dts: s3c2410: use local header for pinctrl > register values > > The DTS uses hardware register values directly in pin controller pin > configuration. These are not some IDs or other abstraction layer but raw > numbers used in the registers. > > These numbers were previously put in the bindings header to avoid code > duplication and to provide some context meaning (name), but they do not > fit the purpose of bindings. It is also quite confusing to use constants > prefixed with Exynos for other SoC, because there is actually nothing here > in common, except the actual value. > > Store the constants in a header next to DTS and use them instead of > bindings. > > Signed-off-by: Krzysztof Kozlowski > --- > arch/arm/boot/dts/s3c2410-pinctrl.h | 19 +++++++++++++ > arch/arm/boot/dts/s3c2416-pinctrl.dtsi | 38 +++++++++++++------------- > 2 files changed, 38 insertions(+), 19 deletions(-) create mode 100644 > arch/arm/boot/dts/s3c2410-pinctrl.h > > diff --git a/arch/arm/boot/dts/s3c2410-pinctrl.h > b/arch/arm/boot/dts/s3c2410-pinctrl.h > new file mode 100644 > index 000000000000..71cb0ac815b3 > --- /dev/null > +++ b/arch/arm/boot/dts/s3c2410-pinctrl.h > @@ -0,0 +1,19 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * Samsung's Exynos pinctrl bindings "Exynos" -> "s3c2410" Best Regards, Chanho Park > + * > + * Copyright (c) 2016 Samsung Electronics Co., Ltd. > + * http://www.samsung.com > + * Copyright (c) 2022 Linaro Ltd > + * Author: Krzysztof Kozlowski */ > + > +#ifndef __DTS_ARM_SAMSUNG_S3C2410_PINCTRL_H__ > +#define __DTS_ARM_SAMSUNG_S3C2410_PINCTRL_H__ > + > +#define S3C2410_PIN_FUNC_INPUT 0 > +#define S3C2410_PIN_FUNC_OUTPUT 1 > +#define S3C2410_PIN_FUNC_2 2 > +#define S3C2410_PIN_FUNC_3 3 > + > +#endif /* __DTS_ARM_SAMSUNG_S3C2410_PINCTRL_H__ */ > diff --git a/arch/arm/boot/dts/s3c2416-pinctrl.dtsi > b/arch/arm/boot/dts/s3c2416-pinctrl.dtsi > index 20a7d72827c2..3268366bd8bc 100644 > --- a/arch/arm/boot/dts/s3c2416-pinctrl.dtsi > +++ b/arch/arm/boot/dts/s3c2416-pinctrl.dtsi > @@ -5,7 +5,7 @@ > * Copyright (c) 2013 Heiko Stuebner > */ > > -#include > +#include "s3c2410-pinctrl.h" > > &pinctrl_0 { > /* > @@ -82,91 +82,91 @@ gpm: gpm-gpio-bank { > > uart0_data: uart0-data-pins { > samsung,pins = "gph-0", "gph-1"; > - samsung,pin-function = ; > + samsung,pin-function = ; > }; > > uart0_fctl: uart0-fctl-pins { > samsung,pins = "gph-8", "gph-9"; > - samsung,pin-function = ; > + samsung,pin-function = ; > }; > > uart1_data: uart1-data-pins { > samsung,pins = "gph-2", "gph-3"; > - samsung,pin-function = ; > + samsung,pin-function = ; > }; > > uart1_fctl: uart1-fctl-pins { > samsung,pins = "gph-10", "gph-11"; > - samsung,pin-function = ; > + samsung,pin-function = ; > }; > > uart2_data: uart2-data-pins { > samsung,pins = "gph-4", "gph-5"; > - samsung,pin-function = ; > + samsung,pin-function = ; > }; > > uart2_fctl: uart2-fctl-pins { > samsung,pins = "gph-6", "gph-7"; > - samsung,pin-function = ; > + samsung,pin-function = ; > }; > > uart3_data: uart3-data-pins { > samsung,pins = "gph-6", "gph-7"; > - samsung,pin-function = ; > + samsung,pin-function = ; > }; > > extuart_clk: extuart-clk-pins { > samsung,pins = "gph-12"; > - samsung,pin-function = ; > + samsung,pin-function = ; > }; > > i2c0_bus: i2c0-bus-pins { > samsung,pins = "gpe-14", "gpe-15"; > - samsung,pin-function = ; > + samsung,pin-function = ; > }; > > spi0_bus: spi0-bus-pins { > samsung,pins = "gpe-11", "gpe-12", "gpe-13"; > - samsung,pin-function = ; > + samsung,pin-function = ; > }; > > sd0_clk: sd0-clk-pins { > samsung,pins = "gpe-5"; > - samsung,pin-function = ; > + samsung,pin-function = ; > }; > > sd0_cmd: sd0-cmd-pins { > samsung,pins = "gpe-6"; > - samsung,pin-function = ; > + samsung,pin-function = ; > }; > > sd0_bus1: sd0-bus1-pins { > samsung,pins = "gpe-7"; > - samsung,pin-function = ; > + samsung,pin-function = ; > }; > > sd0_bus4: sd0-bus4-pins { > samsung,pins = "gpe-8", "gpe-9", "gpe-10"; > - samsung,pin-function = ; > + samsung,pin-function = ; > }; > > sd1_cmd: sd1-cmd-pins { > samsung,pins = "gpl-8"; > - samsung,pin-function = ; > + samsung,pin-function = ; > }; > > sd1_clk: sd1-clk-pins { > samsung,pins = "gpl-9"; > - samsung,pin-function = ; > + samsung,pin-function = ; > }; > > sd1_bus1: sd1-bus1-pins { > samsung,pins = "gpl-0"; > - samsung,pin-function = ; > + samsung,pin-function = ; > }; > > sd1_bus4: sd1-bus4-pins { > samsung,pins = "gpl-1", "gpl-2", "gpl-3"; > - samsung,pin-function = ; > + samsung,pin-function = ; > }; > }; > -- > 2.34.1