From patchwork Wed Mar 16 09:54:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuldeep Singh X-Patchwork-Id: 1606071 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=Xr+0fdTs; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4KJQc95v8xz9sFs for ; Wed, 16 Mar 2022 20:54:49 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351151AbiCPJ4B (ORCPT ); Wed, 16 Mar 2022 05:56:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355039AbiCPJ4B (ORCPT ); Wed, 16 Mar 2022 05:56:01 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF90F35276; Wed, 16 Mar 2022 02:54:45 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id mm23-20020a17090b359700b001bfceefd8c6so4536262pjb.3; Wed, 16 Mar 2022 02:54:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=v5mNvrZN9lZkpS+QOv00K0RMgjrUj0vzj/s1xuppdno=; b=Xr+0fdTsz0Txo88MbxgIxbCziPWIEblzXPq+hZGB941/jv6mGciPxI7tGvF1p4Dm1V t5pOISmYaso3KRj378Q9aplZ1ZuJ4weDywWg0t7NlDEpwKQunOvNtAGxrF/gF+8vuw7m vdAXRI6tYRbQZjuhu0LNnpu3PJtiAilooUQ/R/fzJrMw0QiMPkuDfwRWgT8+37EM6HgP Vlpb7gFuUgv9/PcyKPMwdBOb5kuIal3VL8ifK7gpdbx2OiPDigl2/xyHFUn+QFHzZ2O9 gtIwqdB/YrwjzKH6GZLyb0DkUA8VTPiDK4NRbC7Y4MMpraL05vTzOQYsafPe33gjrkW2 K2iQ== 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=v5mNvrZN9lZkpS+QOv00K0RMgjrUj0vzj/s1xuppdno=; b=3YcZ7Bx4WCnoDiOWfz9/yIGjuNtjDLR7MpEjM5TAQCfV/gjTbxcbclOvgYcmfbue8S C2BR1HYTWMFMFzfHqWz7Ei/MPV8hhoI6udCVqukeR4c5qpCukfLNbz2jWbROAXHeyeE9 RfchbhwgJltRWqqbLr9vS+/PSgD0UxsNZT3OUnvkVluuPNOh6VpxVXZzTLxHMboAJT/s P13SxpcF4hI//lLGvuGAqHbhT4hniqzm1e7hZs48cuDclvHLkIyk9CK+YUgCDO5IXw3L MIcZYdQISOARpEBloKMRV2+4shdStUja5VBTF/NimWEZIfMqwK9MyjbCj+6j3IznikWn 73DQ== X-Gm-Message-State: AOAM5322gWx8GOY7G8Cu3dL0nD5hxyCn3bAgTj0d3lhcEjLC6+fo8xK1 bZ3MeoVchrm6ld3yAa2L7mE= X-Google-Smtp-Source: ABdhPJyIJmE052pBUPiWhEKPUBd9SEDzehcGzTSiuc3MHkMAx6skUQgvtIK8pGrRgk+i+HeeXnNJ6Q== X-Received: by 2002:a17:902:e5ca:b0:152:54c1:f860 with SMTP id u10-20020a170902e5ca00b0015254c1f860mr32819967plf.35.1647424485335; Wed, 16 Mar 2022 02:54:45 -0700 (PDT) Received: from localhost.localdomain ([122.161.51.18]) by smtp.gmail.com with ESMTPSA id a22-20020a056a000c9600b004f7b8b3a44csm2567070pfv.29.2022.03.16.02.54.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 02:54:45 -0700 (PDT) From: Kuldeep Singh To: Marc Zyngier , Mark Rutland , Daniel Lezcano , Thomas Gleixner , Rob Herring Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: timer: Rearrange compatible entries of arch timer Date: Wed, 16 Mar 2022 15:24:30 +0530 Message-Id: <20220316095433.20225-2-singh.kuldeep87k@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220316095433.20225-1-singh.kuldeep87k@gmail.com> References: <20220316095433.20225-1-singh.kuldeep87k@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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: devicetree@vger.kernel.org Compatibles entries of arch timer includes few extra items and enum pairs which are redundant and can be simplified in a more clear, concise and readable way. Do it. Signed-off-by: Kuldeep Singh Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/timer/arm,arch_timer.yaml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml b/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml index df8ce87fd54b..ba2910f0a7b2 100644 --- a/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml +++ b/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml @@ -21,17 +21,13 @@ description: |+ properties: compatible: oneOf: + - enum: + - arm,armv7-timer + - arm,armv8-timer - items: - enum: - arm,cortex-a15-timer - - enum: - - arm,armv7-timer - - items: - - enum: - - arm,armv7-timer - - items: - - enum: - - arm,armv8-timer + - const: arm,armv7-timer interrupts: minItems: 1 From patchwork Wed Mar 16 09:54:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuldeep Singh X-Patchwork-Id: 1606072 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=gBjMX6e3; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4KJQcW075Qz9s8s for ; Wed, 16 Mar 2022 20:55:07 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355055AbiCPJ4Q (ORCPT ); Wed, 16 Mar 2022 05:56:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355064AbiCPJ4O (ORCPT ); Wed, 16 Mar 2022 05:56:14 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6E793A1B3; Wed, 16 Mar 2022 02:54:53 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id g19so3314332pfc.9; Wed, 16 Mar 2022 02:54:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lpseHuuurVsvCF6c7YR9tNxdFsI8d0m+UJUC4TThNds=; b=gBjMX6e3E97ZuABfMI3RgeWXsztOd8Cm4w8dq+bJEjYSxA9dfOQv++x9bSStIO/gVF EhZyQ8AjZ/jccTBF9OD3+LWlwKTtWNp6WpMQKm78yJQTbAwJiolrPYU4E5WLjpXQ9U07 ZWqsN0sykDJGbkvsVJreOKFLIM/U325rQEXJYdNupzAtU4jzCbZNnDpSAyXiSjxrX5U7 EJwNcNdL20x6rziEIbn6cxEPTmgsLS2KTAIqLSoEfzXV5qcAWowVcujul/nyPkThMOfJ HB/f62dWx8p19fozRB3W3OS439DOYnVwndeqg5MahbJ+Sl2QmyWRLPrz3burUs5+8x+Z mOtg== 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=lpseHuuurVsvCF6c7YR9tNxdFsI8d0m+UJUC4TThNds=; b=fc0oGAKDjKa7i33xgq8uTNsga99TKQUE9NShVq5sXAl5VuN+OeZ26F6u9ZlxbBccpI Fa3qa1M4tyY4TSP9bgrjA5mTIgpI9+Qe2uCfWH2wfc2hHkRHBGiMkpJQwW8zSMX6CB3w jX6D+ZGVrj/sMfz4vcvpWON1XsGDQYLTCJRCdtlTm5kpfQdRjup6Im27DpOdOLltLZnc k2iZJUdytVQSvQtRo5LEpVafau7Uphuo7Oq6jO6m7bxR9d/mYuOtqsC3Y/bHDZQkkQej RlpQnJItfXhAfWAl8ztpD1JMQnahDQ5Zs1sVN90d+0xsQxZzFkbIULx5vx38vg1PVebn iQ+g== X-Gm-Message-State: AOAM532eYGUQWu7vvmCbVTujn7BIWwxSZEdc4tuPVN7DsyRVP4ayhNWC l/OoHOGeuHzwJFqtOw+cn2g= X-Google-Smtp-Source: ABdhPJzMZYfh+hrcbENonQvLkV0/+OhtCeCnB6JIYjtPgWQItmr7QuLJhiZEzMKcqRtQWBUnanNvXA== X-Received: by 2002:a63:cf0c:0:b0:380:fb66:fa2a with SMTP id j12-20020a63cf0c000000b00380fb66fa2amr24400099pgg.273.1647424493165; Wed, 16 Mar 2022 02:54:53 -0700 (PDT) Received: from localhost.localdomain ([122.161.51.18]) by smtp.gmail.com with ESMTPSA id a22-20020a056a000c9600b004f7b8b3a44csm2567070pfv.29.2022.03.16.02.54.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 02:54:52 -0700 (PDT) From: Kuldeep Singh To: Marc Zyngier , Mark Rutland , Daniel Lezcano , Thomas Gleixner , Rob Herring Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH 2/3] dt-bindings: timer: Document arm,cortex-a7-timer for arch timer Date: Wed, 16 Mar 2022 15:24:31 +0530 Message-Id: <20220316095433.20225-3-singh.kuldeep87k@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220316095433.20225-1-singh.kuldeep87k@gmail.com> References: <20220316095433.20225-1-singh.kuldeep87k@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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: devicetree@vger.kernel.org Renesas RZ/N1D platform uses compatible "arm,cortex-a7-timer" in conjugation with "arm,armv7-timer". Since, initial entry is not documented, it start raising dtbs_check warnings. ['arm,cortex-a7-timer', 'arm,armv7-timer'] is too long 'arm,cortex-a7-timer' is not one of ['arm,armv7-timer', 'arm,armv8-timer'] 'arm,cortex-a7-timer' is not one of ['arm,cortex-a15-timer'] In general, removing an existing entry is mostly devastating considering backward compatibility. Therefore, document it. Signed-off-by: Kuldeep Singh --- Documentation/devicetree/bindings/timer/arm,arch_timer.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml b/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml index ba2910f0a7b2..ea390e5df71d 100644 --- a/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml +++ b/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml @@ -26,6 +26,7 @@ properties: - arm,armv8-timer - items: - enum: + - arm,cortex-a7-timer - arm,cortex-a15-timer - const: arm,armv7-timer