Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp849311ioo; Thu, 26 May 2022 16:55:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzB1m4VTBlLu4AE74Vv0srFoTr+TwESI+Myglq/Bq7HTCojvhUyzGgn3XehSJ5pnf1Qz3TA X-Received: by 2002:a17:907:d26:b0:6ff:1670:47a1 with SMTP id gn38-20020a1709070d2600b006ff167047a1mr8881123ejc.362.1653609333092; Thu, 26 May 2022 16:55:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653609333; cv=none; d=google.com; s=arc-20160816; b=lMNISfmgGIFb09537lv/Yf2jpFUkLMaauOC6ihLFcp99mB3RMHSFViFt006DaKOPSy dB8/gVL/Rb5fhINxLD4WsvZZQgEbUqYbPOYw8Mm4dbxbTEfgyaQhek2hCZHnqvIJcDNY 6OqUmEbQ3tgCPPchjliEj7aouOn8aimh4vrHvO1ye/RaJaPSFYj7VuHj4M3UhqEDL/Hq ZdVvW2SqUlPXLKyrilUKXwaQI3lPdoxh93nDcQzuL1vY+6HKgMht5VemX+F7RMuGENnn +N4aj/M0VD8TL2+//TZlppXEGwtAHgCNcqvC2EYDr11fbu9i7Fq3/HM3llTevSvStBoJ +n+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=NW/L2mpONxggciw8AsbAzWz7p7bM7K4sMkOMScTEkGQ=; b=WfhCgAFxpJJ9dfpJWBtXWpKApjxNUUONZRvuwvB+J6SBiXubRRIxqt7Wg+rF1FpNlo FkkPVijQYm7IHhpAWesmZ4yJUlgKMuMbzkqw3CjKL4/B+yKxROtYfmcHBhN+5HxHfci4 hIjERHCji6fJBA/0kcBOzLYvI6ghISyBFg0WKccfEMUYoUIKychM5XgOcWEQXzffnsYr ufnhYiGc5hjvH1cy7PUlT62nlWRpOz/IvnoFyWGRXoUXNb4M0Ziw5KmjRF1jrY2RuMIQ 86voU4KwmJ9aGg/B+Cmu2Loa9ihDc2nbYHJ01og/fJDLATIJDwF4H9bUttSdji8S6BEa V/kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="aVnw/qEX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho16-20020a1709070e9000b006fef0597a5asi2932183ejc.1008.2022.05.26.16.55.07; Thu, 26 May 2022 16:55:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="aVnw/qEX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346689AbiEZOhZ (ORCPT + 99 others); Thu, 26 May 2022 10:37:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239955AbiEZOhX (ORCPT ); Thu, 26 May 2022 10:37:23 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30C75CC156 for ; Thu, 26 May 2022 07:37:22 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id g20so2057084edj.10 for ; Thu, 26 May 2022 07:37:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NW/L2mpONxggciw8AsbAzWz7p7bM7K4sMkOMScTEkGQ=; b=aVnw/qEXKRYEjrP4Ca8IrQYX54A5B1qs1ZR9okmbKSDwrIp8pAbgY+7dkTGkiTxggX 8SSEgGrpq2T1mbz3XYbd3kj3u8FnEN9UAKISRxVnZP/qFqMYFznZPaZdfDefUp8qGk01 8AgqXCU3+cMR2t1T+WuccCFyIVF/Etm+iF7AQ8Ttodb9FEDjMNhtlt7YY1E0PeN4fZ2F E4qKFDdQQRTV0H8Vgcw0JWQlQbQ285vfbnqISZS2UumkpPLGE0K7GiHx8TSczb68R2Xt Gf5QLjUcZx6m+FgNNwcPyNvlWdHC9To7SrdNvMQoZk4laQ7SPW5ziI3NA1UoIlnXmHAK 1hjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NW/L2mpONxggciw8AsbAzWz7p7bM7K4sMkOMScTEkGQ=; b=IAiwa3H3Ja+rlRSXuoDjX1MdKhnbjrJP+D9bs3S/lv7M9vCAi1ZGRzbaSnhliC4hWG c4hnIK8PCe4rONA884d+YpgqDh9sHsN1OVblgV/xUZX5roVaCyCyJ+xLnVsgVx36XOQ6 OCNtxtvREfQ0vd1f3Xqt+uCbzjDI4xf0mou2pR+spkRJcRpg7s6xBMRUCr/dmGge8zcC uQcLvPyuMhCZucBKmgtzBAeU9o/rf5SqqSRPDQFOu/rs3y5iv1HHtk8ERpn3upIRhQHI 44JELpJpo0gzDdGsTJrC67vg0zQ5dZYrMfE7Xq59CvGz0BrOseM+5DgdnFvUNwgCJ7KA ke2w== X-Gm-Message-State: AOAM531hlBSwYdlmMw/iF85T0SxP8K68b6Oo380VxFWHTpIgNqiri+wm Mg5QyJeFa65oJcdGe55icXRofQ== X-Received: by 2002:a05:6402:27cc:b0:42a:64da:64c8 with SMTP id c12-20020a05640227cc00b0042a64da64c8mr27535879ede.196.1653575840758; Thu, 26 May 2022 07:37:20 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id f27-20020a50a6db000000b0042be2dfa8bdsm267962edc.81.2022.05.26.07.37.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 May 2022 07:37:19 -0700 (PDT) From: Krzysztof Kozlowski To: Rob Herring , Krzysztof Kozlowski , Alim Akhtar , Tomasz Figa , Sylwester Nawrocki , Linus Walleij , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 0/7] pinctrl/arm: dt-bindings: deprecate header with register constants Date: Thu, 26 May 2022 16:37:00 +0200 Message-Id: <20220526143707.767490-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 Hi, The Samsung pin controller drivers were always expecting DTS to use raw register values for pin configuration (e.g. pull up/down, drive strength). DTS had these values hard-coded all over, so at some point we decided for convenience to move them to dt-bindings header. Less code duplication, some meaning added to raw number, etc. However these constants do not fit the purpose of bindings. They do not provide any abstraction, any hardware and driver independent ID. With minor exceptions, the Linux drivers actually do not use the bindings header at all. Because of this "dt-bindings ID" approach, these constants were re-used between chips, e.g. Exynos ones in S5PV210. These does not make much sense because the values between Exynos and S5PV210 (or S3C24xx) are not related. If it was an abstraction ID, this would be fine. But it's not. Clean this up by: 1. Moving the constants to DTS-local headers. 2. Deprecating the bindings header. Tested by comparing DTBs (dtx_diff, fdtdump). Best regards, Krzysztof Krzysztof Kozlowski (7): ARM: dts: s3c2410: use local header for pinctrl register values ARM: dts: s3c64xx: use local header for pinctrl register values ARM: dts: s5pv210: use local header for pinctrl register values ARM: dts: exynos: use local header for pinctrl register values arm64: dts: exynos: use local header for pinctrl register values arm64: dts: fsd: use local header for pinctrl register values dt-bindings: pinctrl: deprecate header with register constants arch/arm/boot/dts/exynos-pinctrl.h | 55 ++ arch/arm/boot/dts/exynos3250-pinctrl.dtsi | 2 +- arch/arm/boot/dts/exynos4210-pinctrl.dtsi | 2 +- arch/arm/boot/dts/exynos4412-midas.dtsi | 3 +- arch/arm/boot/dts/exynos4412-p4note.dtsi | 2 +- arch/arm/boot/dts/exynos4412-pinctrl.dtsi | 2 +- arch/arm/boot/dts/exynos5250-pinctrl.dtsi | 2 +- arch/arm/boot/dts/exynos5260-pinctrl.dtsi | 2 +- arch/arm/boot/dts/exynos5410-pinctrl.dtsi | 2 +- arch/arm/boot/dts/exynos5420-pinctrl.dtsi | 2 +- arch/arm/boot/dts/s3c2410-pinctrl.h | 19 + arch/arm/boot/dts/s3c2416-pinctrl.dtsi | 38 +- arch/arm/boot/dts/s3c64xx-pinctrl.dtsi | 178 +++---- arch/arm/boot/dts/s3c64xx-pinctrl.h | 27 + arch/arm/boot/dts/s5pv210-aquila.dts | 4 +- arch/arm/boot/dts/s5pv210-aries.dtsi | 134 ++--- arch/arm/boot/dts/s5pv210-fascinate4g.dts | 22 +- arch/arm/boot/dts/s5pv210-galaxys.dts | 34 +- arch/arm/boot/dts/s5pv210-pinctrl.dtsi | 480 +++++++++--------- arch/arm/boot/dts/s5pv210-pinctrl.h | 39 ++ arch/arm64/boot/dts/exynos/exynos-pinctrl.h | 79 +++ .../boot/dts/exynos/exynos5433-pinctrl.dtsi | 2 +- .../boot/dts/exynos/exynos7-espresso.dts | 6 +- .../boot/dts/exynos/exynos7-pinctrl.dtsi | 72 +-- .../boot/dts/exynos/exynos7885-pinctrl.dtsi | 2 +- .../boot/dts/exynos/exynos850-pinctrl.dtsi | 2 +- .../boot/dts/exynos/exynosautov9-pinctrl.dtsi | 2 +- arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi | 92 ++-- arch/arm64/boot/dts/tesla/fsd-pinctrl.h | 33 ++ drivers/pinctrl/samsung/pinctrl-exynos.c | 6 +- drivers/pinctrl/samsung/pinctrl-exynos.h | 3 + drivers/pinctrl/samsung/pinctrl-samsung.c | 4 +- drivers/pinctrl/samsung/pinctrl-samsung.h | 8 + include/dt-bindings/pinctrl/samsung.h | 3 + 34 files changed, 813 insertions(+), 550 deletions(-) create mode 100644 arch/arm/boot/dts/exynos-pinctrl.h create mode 100644 arch/arm/boot/dts/s3c2410-pinctrl.h create mode 100644 arch/arm/boot/dts/s3c64xx-pinctrl.h create mode 100644 arch/arm/boot/dts/s5pv210-pinctrl.h create mode 100644 arch/arm64/boot/dts/exynos/exynos-pinctrl.h create mode 100644 arch/arm64/boot/dts/tesla/fsd-pinctrl.h -- 2.34.1