From patchwork Sun Jun 5 16:05:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 578923 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0987CCA48C for ; Sun, 5 Jun 2022 16:05:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351098AbiFEQFm (ORCPT ); Sun, 5 Jun 2022 12:05:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351077AbiFEQFj (ORCPT ); Sun, 5 Jun 2022 12:05:39 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BC664DF67 for ; Sun, 5 Jun 2022 09:05:36 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id m20so24672180ejj.10 for ; Sun, 05 Jun 2022 09:05:36 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=UnEy8V6gE2d73YKWzCoW+lrNzkfCzBornaZdJIUsn5E=; b=h54vGCuf3s+A0WXKEjiezuYcYr+FXOViaAKSe3vpyle6501XMhcOzwFUgBrgrBGBqb ToLxit6RzDkwbX0zo5cnu74DseWJjpLY2YcpOkdTYyq+lOAmsFfZ1D0oxCts9As3DeRT wREjZpDjVbtTlXs/9BD/HJBJGAOxiUJ1M/I8BlMlpF/1siVYKvxGVdQP3FB2O6VpVa8A 5g3WnU+7cD4KaKjK0NyoSjOAzJvIzkLqvmedNJJl6kZFzrrOh3SozFseFMaRKce12qrX fbBzVd89F5xMVloY0VohIk0zpRp0lWyKzsv7p2L48cFm8PRcmWz4mwB+syzPx3/IlhKr 9Ohw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=UnEy8V6gE2d73YKWzCoW+lrNzkfCzBornaZdJIUsn5E=; b=Wvk8VAagFWoIv1/D7cdB0AErXVvkixquyf3JnYv9Ybz1L+RDa/9sMjFnyn3/+BG1j1 tubsfYTV916d1VxG+vFMrQzHdU//z/UcERQV1tApz1Hi+/+djubWEm7HcB+JRI3SNnit yDQOmKu23mf5ZXj0Rv5MspuMrhAxr3UFIfqPHnwxfwU+acCuSDnV9HmzzQz1s3uXMAcd FM9asBv1N3qtY1NsBYp/+SHXfXdXPAHeK7IAHmcNmTsVnP1Tk2VZ53X0Z8HGe+PTZvMT OOUnbzFowie740BE3WrH4J4OUMW1OGup1rFKFViQ0SGK157eztkCfjDcNd6Il/UmcT0E 4XRw== X-Gm-Message-State: AOAM5332tpmRhiYjOUbyBVawfjtT0OXn8nMfh3nHMeUi1XpLEGVBUTJ1 wEh2UtRszly0K++6rVRIosYbsg== X-Google-Smtp-Source: ABdhPJySBYFwVYmEJKD+EOusGlyb+c6/Fify1F32ILKzFx8KeU09tbhoLpC+yspCW/dCCme1S5Pa+w== X-Received: by 2002:a17:907:6e88:b0:707:ea6b:5e15 with SMTP id sh8-20020a1709076e8800b00707ea6b5e15mr17481798ejc.57.1654445134865; Sun, 05 Jun 2022 09:05:34 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id x18-20020a170906805200b0070b7875aa6asm3969963ejw.166.2022.06.05.09.05.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 09:05:34 -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 , Chanho Park , Linus Walleij Subject: [PATCH v3 8/8] dt-bindings: pinctrl: samsung: deprecate header with register constants Date: Sun, 5 Jun 2022 18:05:08 +0200 Message-Id: <20220605160508.134075-9-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220605160508.134075-1-krzysztof.kozlowski@linaro.org> References: <20220605160508.134075-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org For convenience (less code duplication, some meaning added to raw number), the pin controller pin configuration register values were defined in the bindings header. These are not some IDs or other abstraction layer but raw numbers used in the registers 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. All of the constants were moved already to headers local to DTS (residing in DTS directory) and to Samsung pinctrl driver (where applicable), so remove any references to the bindings header and add a warning tha tit is deprecated. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Chanho Park Reviewed-by: Linus Walleij --- include/dt-bindings/pinctrl/samsung.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/dt-bindings/pinctrl/samsung.h b/include/dt-bindings/pinctrl/samsung.h index 950970634dfe..d1da5ff68d0c 100644 --- a/include/dt-bindings/pinctrl/samsung.h +++ b/include/dt-bindings/pinctrl/samsung.h @@ -10,6 +10,13 @@ #ifndef __DT_BINDINGS_PINCTRL_SAMSUNG_H__ #define __DT_BINDINGS_PINCTRL_SAMSUNG_H__ +/* + * These bindings are deprecated, because they do not match the actual + * concept of bindings but rather contain pure register values. + * Instead include the header in the DTS source directory. + */ +#warning "These bindings are deprecated. Instead use the header in the DTS source directory." + #define EXYNOS_PIN_PULL_NONE 0 #define EXYNOS_PIN_PULL_DOWN 1 #define EXYNOS_PIN_PULL_UP 3