From patchwork Thu Jul 13 15:17:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 120008 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp1930471vqm; Thu, 13 Jul 2023 09:12:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlElVWKVFUiWlxpsSqxZ1Vpq/DdzSKF8s0PHzNCGUnvGp2r7trt9jfbUIBKmdWGrXOPNNPyN X-Received: by 2002:a05:6a20:9152:b0:12e:6e0f:535 with SMTP id x18-20020a056a20915200b0012e6e0f0535mr1617711pzc.34.1689264728261; Thu, 13 Jul 2023 09:12:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689264728; cv=none; d=google.com; s=arc-20160816; b=Zmj1esWjoBkm29/Q4GUGapGOZ/eKbeiC2AJuOkzaRanSfBwlrjpiMvk2vtxXtYr4kT pxc7uWxRwo4m9L9KYKRnVwIY+bIb5J1G1iydUd40xWaqz9Vj65/dgmWMMlDPgX0YeBDW 9kOylnaFD9RinmDpxAkX5AST/snanFVAt2YcfXlU6SAEAX4q3/cUx0d9hL4Du1sJ2Fm9 EDYnIeFYqJZpzxRlJtkoqVqn3z7BOoZPcF27dRH72KpofUKhDd5W+ztd9heNADCUQj5/ BkBSslju9I3ybSb7MZM73kuaJirTu5gkN/C3iwdzzncfjU2b9uJxdeHq4xqWb/LTf0qU sK5g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FLFw9Mu2Zx4IZrKWachypLONgs6nYIa6QVFe1GPvIHM=; fh=Xa0gFcZSQLjGSEAoczg25TQZrwZwOkgqcWcJspcjCfs=; b=fg7a+wIA3hjmE7Ye5jj5+8YiTpEkmQnroTVEpIFerLDg4VbVtV1jzlxd2Fj7Hn/pcQ IzZsgC1d7MKKdTiNVfcrSntOG1AuBXl/FRHe+S9Cq7upWPzQRphcwM8d9SjoXy7lmySI F+hxMf0JMbKRv8+sGH4R2Ax6KPGEhaROB8rcJsr9PDP7X7mDrHpZ8VD4k/B7t27aVb8n aLZyaSRhIKMjzLkWhyAoFNoixJ4705N+xaPZcaKnByuHZ3XcEDzf1hMS5niaSGIXfQkg mZBgb9Vbzfk8uH+9f5heztY7NKaA4HlamCQdHv2WhEJqm1lyXwr0fnL8EPj2ou6XdWB9 lqdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=eUfHgq2a; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a10-20020a056a001d0a00b0066e96a581c3si222825pfx.5.2023.07.13.09.11.53; Thu, 13 Jul 2023 09:12:08 -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=@ti.com header.s=ti-com-17Q1 header.b=eUfHgq2a; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231559AbjGMPSz (ORCPT + 99 others); Thu, 13 Jul 2023 11:18:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234069AbjGMPR4 (ORCPT ); Thu, 13 Jul 2023 11:17:56 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDCB52736; Thu, 13 Jul 2023 08:17:32 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36DFHFAC049319; Thu, 13 Jul 2023 10:17:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1689261435; bh=FLFw9Mu2Zx4IZrKWachypLONgs6nYIa6QVFe1GPvIHM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=eUfHgq2af9CZPEDOjzoZB4Vz9hT+N7ZCniYSMcgLY7DYlJblrCRnaVr9TMqHPmswY +TwW3a0pzCL+ubgoxOx+ZogEExWv6CsVbnmys60KwvuSnoRMZQOngSY2Qnvem3bNkZ V7hYABwfN0i/MX8MhH9+IzxwEQ4YQR9pqaOUXDSI= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36DFHEEg028241 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 13 Jul 2023 10:17:15 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 13 Jul 2023 10:17:13 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 13 Jul 2023 10:17:13 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36DFHCEB021441; Thu, 13 Jul 2023 10:17:13 -0500 From: Jayesh Choudhary To: , , , , , , , CC: , , , , Subject: [PATCH 2/2] dt-bindings: ti-serdes-mux: Deprecate header with constants Date: Thu, 13 Jul 2023 20:47:07 +0530 Message-ID: <20230713151707.8109-3-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230713151707.8109-1-j-choudhary@ti.com> References: <20230713151707.8109-1-j-choudhary@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771322451752301629 X-GMAIL-MSGID: 1771322451752301629 The constants to define the idle state of SERDES MUX were defined in bindings header. They are used only in DTS and driver uses the dt property to set the idle state making it unsuitable for bindings. The constants are moved to header next to DTS ("arch/arm64/boot/dts/ti/") and all the references to bindings header are removed. So add a warning to mark this bindings header as deprecated. Signed-off-by: Jayesh Choudhary Reviewed-by: Krzysztof Kozlowski --- include/dt-bindings/mux/ti-serdes.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/dt-bindings/mux/ti-serdes.h b/include/dt-bindings/mux/ti-serdes.h index 669ca2d6abce..b0b1091aad6d 100644 --- a/include/dt-bindings/mux/ti-serdes.h +++ b/include/dt-bindings/mux/ti-serdes.h @@ -6,6 +6,14 @@ #ifndef _DT_BINDINGS_MUX_TI_SERDES #define _DT_BINDINGS_MUX_TI_SERDES +/* + * These bindings are deprecated, because they do not match the actual + * concept of bindings but rather contain pure constants values used only + * in DTS board files. + * Instead include the header in the DTS source directory. + */ +#warning "These bindings are deprecated. Instead, use the header in the DTS source directory." + /* J721E */ #define J721E_SERDES0_LANE0_QSGMII_LANE1 0x0