From patchwork Thu Mar 2 13:35:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yassine Oudjana X-Patchwork-Id: 63424 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp4243178wrd; Thu, 2 Mar 2023 05:50:41 -0800 (PST) X-Google-Smtp-Source: AK7set8ae89dIZQqT30NoRMmTxY5iHZp6RI+eBJNGUzC8RTjlEWiPAAOXdDHw7FpG57lU9pN8tz/ X-Received: by 2002:a05:6a20:7f5c:b0:bf:4563:e647 with SMTP id e28-20020a056a207f5c00b000bf4563e647mr8591276pzk.40.1677765040757; Thu, 02 Mar 2023 05:50:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677765040; cv=none; d=google.com; s=arc-20160816; b=Vj7NfiqQKtopt60IV6gWeJsMpXFpclW+o/kweKpPlQa5iJg0m9SpCI2kRHRjqwdQiw EzAMjdWj8/8EUu8C4HT5eL5v5lIOF5lXYTbt2oHbQrkZmDsqAID3Xw65bXATV7mwamvf X21TQAKQTY8NnpJLtVQZDyNK712dLVlVGOOmiE50BhYUoOrtMIk5tiPaTzDSqjcKv+ZY nTyhfdwCWuVn8HOolvNfwfXlzCYKlit+jGuMGQsPWZZ6j+1PoSBk7/alOjtH8YNvrVpH dHT2J/9NG4uiDMfrou1Tet1FtQrMwejMuRa9mFdJnrbBJiiy66ldUCq7ARuYhu6ODpHN j90Q== 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=Yf0MtNAXJR5sVHoDdZUb8vL+9/OJhXtHzJtQPPYmfMs=; b=RGwoCnOuYh5oNllQInMqeLHchXedy/X/wF+piPDsqUgA59/CxZyjmhXYYGDlEptWU0 eTEXeqA2Dvg7onQR/1HED2uXObOSZDip8kzq5ttBwScgDZRa8dKB3EE4pSs4zrgYqm8J tgO2o3JuRALBP4YTzNVIh67mowKGMHMM1gUHCrrfwRvlPk9UFkIzKWOw6f+6h8/9Ujyp 5Q1SLnrQMlkLRSPKhL89Sc3MLDoEzq1tJrYC4y1GKXzMb5MMhHYbnWvbbn+K6C7s9xes aDlPBp3ol0X/fVN9PhcAh/nPxhEd4FIavo2DJOA+0gfF6iO7lbIUOos/VbWFPb4z5ByC EY7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DcqS7t4f; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e62-20020a636941000000b004fb122c3746si1839644pgc.15.2023.03.02.05.50.27; Thu, 02 Mar 2023 05:50:40 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=DcqS7t4f; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230054AbjCBNft (ORCPT + 99 others); Thu, 2 Mar 2023 08:35:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229541AbjCBNfr (ORCPT ); Thu, 2 Mar 2023 08:35:47 -0500 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C08D642BD2; Thu, 2 Mar 2023 05:35:45 -0800 (PST) Received: by mail-ed1-x52d.google.com with SMTP id o12so67609619edb.9; Thu, 02 Mar 2023 05:35:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677764144; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Yf0MtNAXJR5sVHoDdZUb8vL+9/OJhXtHzJtQPPYmfMs=; b=DcqS7t4f8C7YXe9qA9b023TC/KQa23JP80zD6x99lNkqgnAUVcaBeTkTTAzvUn+kNE OXcDjv55WZwrX3G+2guV57T8ScuRdsVAktXwwzDwQatGS4TmdXsQhYkA1v0YzYXvC4ew nuORNmqbYsoXRQgLeNh+tB3AiQyvm+6CFMICcHK+NJ9hdda1QeqKAoImPOG4PSKi3xFc ERlANB7GZV6M7lrzofS5p67IYszjvhmZ23Xel4oejt46jCEsUFExnqK7F9cmULqydUwJ GahAZ8c1rdjws95m1ZvcZRwhqcK4jvcXT0tRkexs19ZWZlV2SMuNmA3aCMeMubk15w30 xTIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677764144; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Yf0MtNAXJR5sVHoDdZUb8vL+9/OJhXtHzJtQPPYmfMs=; b=gwoSuLPCLVjb2wDD5xbZQfTyxDEnqmMzd4Gwt2coNNpor2repKYJgtt7u+DghCzm4S OglYXReoab56qVGBQM01myguu1hmX8n9N8V2Qy5i3iDHHEu4rsedjBwtHUiZMSIdv5W2 /ixTI/nomaaHWxOxMKlw6jRu+CREbYR8H9ty3EyD0O4l1SA1zbSrVCdHEWU/stOAVS+U K25qPL7OJAsHRh2AYGt22qiGSSUexOO9aK3yMGORyR10H9CLhDqncyzFtGMyjWCjFI4o H1IR7ceqmhtr8BYugw+B2uONL3/km9M3Zjro2LxaZsb1lUjkvnTNntR6qQh9LjBybfxS 2y0w== X-Gm-Message-State: AO0yUKUMEuPWKcYr66cWOGHKhAKkp6INoqEkrgaImc+Ba2UldLgMsdox qbe6HE5qaTtrlJKr9AXZjHM= X-Received: by 2002:a17:906:6445:b0:8f7:48fe:319d with SMTP id l5-20020a170906644500b008f748fe319dmr2016089ejn.17.1677764144306; Thu, 02 Mar 2023 05:35:44 -0800 (PST) Received: from localhost.localdomain ([95.183.227.97]) by smtp.gmail.com with ESMTPSA id a26-20020a170906191a00b008e56a0d546csm7011833eje.123.2023.03.02.05.35.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 05:35:43 -0800 (PST) From: Yassine Oudjana X-Google-Original-From: Yassine Oudjana To: Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Alexandre Torgue , Matthias Brugger , AngeloGioacchino Del Regno Cc: Yassine Oudjana , Yassine Oudjana , dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH] dt-bindings: display: mediatek: Compatible list cleanup Date: Thu, 2 Mar 2023 16:35:28 +0300 Message-Id: <20230302133528.124113-1-y.oudjana@protonmail.com> X-Mailer: git-send-email 2.39.2 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 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759264155273254726?= X-GMAIL-MSGID: =?utf-8?q?1759264155273254726?= From: Yassine Oudjana Several DT bindings of MediaTek display blocks make unnecessary use of "oneOf" and "items", and have some enums with only 1 element. Remove unnecessary "oneOf" and "items", and replace enums that have 1 element with "const". Signed-off-by: Yassine Oudjana --- .../bindings/display/mediatek/mediatek,aal.yaml | 3 +-- .../display/mediatek/mediatek,ccorr.yaml | 10 ++++------ .../display/mediatek/mediatek,color.yaml | 10 ++++------ .../display/mediatek/mediatek,dither.yaml | 3 +-- .../bindings/display/mediatek/mediatek,dsc.yaml | 4 +--- .../display/mediatek/mediatek,gamma.yaml | 7 +++---- .../display/mediatek/mediatek,merge.yaml | 8 +++----- .../bindings/display/mediatek/mediatek,od.yaml | 8 +++----- .../display/mediatek/mediatek,ovl-2l.yaml | 10 ++++------ .../bindings/display/mediatek/mediatek,ovl.yaml | 16 ++++++---------- .../display/mediatek/mediatek,postmask.yaml | 3 +-- .../bindings/display/mediatek/mediatek,rdma.yaml | 13 +++++-------- .../display/mediatek/mediatek,split.yaml | 4 +--- .../bindings/display/mediatek/mediatek,ufoe.yaml | 4 +--- .../bindings/display/mediatek/mediatek,wdma.yaml | 4 +--- 15 files changed, 39 insertions(+), 68 deletions(-) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml index 92741486c24d..d8d78abd6c6c 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml @@ -25,8 +25,7 @@ properties: - mediatek,mt8173-disp-aal - mediatek,mt8183-disp-aal - items: - - enum: - - mediatek,mt2712-disp-aal + - const: mediatek,mt2712-disp-aal - const: mediatek,mt8173-disp-aal - items: - enum: diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,ccorr.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,ccorr.yaml index b04820c95b22..e72d2884bb49 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,ccorr.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,ccorr.yaml @@ -21,18 +21,16 @@ description: | properties: compatible: oneOf: - - items: - - const: mediatek,mt8183-disp-ccorr - - items: - - const: mediatek,mt8192-disp-ccorr + - enum: + - mediatek,mt8183-disp-ccorr + - mediatek,mt8192-disp-ccorr - items: - enum: - mediatek,mt8188-disp-ccorr - mediatek,mt8195-disp-ccorr - const: mediatek,mt8192-disp-ccorr - items: - - enum: - - mediatek,mt8186-disp-ccorr + - const: mediatek,mt8186-disp-ccorr - const: mediatek,mt8192-disp-ccorr reg: diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml index 62306c88f485..d0ea77fc4b06 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml @@ -22,12 +22,10 @@ description: | properties: compatible: oneOf: - - items: - - const: mediatek,mt2701-disp-color - - items: - - const: mediatek,mt8167-disp-color - - items: - - const: mediatek,mt8173-disp-color + - enum: + - mediatek,mt2701-disp-color + - mediatek,mt8167-disp-color + - mediatek,mt8173-disp-color - items: - enum: - mediatek,mt7623-disp-color diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dither.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,dither.yaml index 5c7445c174e5..9d74de63fe63 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,dither.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,dither.yaml @@ -22,8 +22,7 @@ description: | properties: compatible: oneOf: - - items: - - const: mediatek,mt8183-disp-dither + - const: mediatek,mt8183-disp-dither - items: - enum: - mediatek,mt8186-disp-dither diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dsc.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,dsc.yaml index 49248864514b..37bf6bf4a1ab 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,dsc.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,dsc.yaml @@ -19,9 +19,7 @@ description: | properties: compatible: - oneOf: - - items: - - const: mediatek,mt8195-disp-dsc + const: mediatek,mt8195-disp-dsc reg: maxItems: 1 diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,gamma.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,gamma.yaml index a5c6a91fac71..6c2be9d6840b 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,gamma.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,gamma.yaml @@ -21,10 +21,9 @@ description: | properties: compatible: oneOf: - - items: - - const: mediatek,mt8173-disp-gamma - - items: - - const: mediatek,mt8183-disp-gamma + - enum: + - mediatek,mt8173-disp-gamma + - mediatek,mt8183-disp-gamma - items: - enum: - mediatek,mt8186-disp-gamma diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,merge.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,merge.yaml index 69ba75777dac..c474ee6fa05b 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,merge.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,merge.yaml @@ -20,11 +20,9 @@ description: | properties: compatible: - oneOf: - - items: - - const: mediatek,mt8173-disp-merge - - items: - - const: mediatek,mt8195-disp-merge + enum: + - mediatek,mt8173-disp-merge + - mediatek,mt8195-disp-merge reg: maxItems: 1 diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,od.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,od.yaml index 853fcb9db2be..7e6bbf8b5c60 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,od.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,od.yaml @@ -20,11 +20,9 @@ description: | properties: compatible: - oneOf: - - items: - - const: mediatek,mt2712-disp-od - - items: - - const: mediatek,mt8173-disp-od + enum: + - mediatek,mt2712-disp-od + - mediatek,mt8173-disp-od reg: maxItems: 1 diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl-2l.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl-2l.yaml index 4e94f4e947ad..16944a817d63 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl-2l.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl-2l.yaml @@ -21,13 +21,11 @@ description: | properties: compatible: oneOf: + - enum: + - mediatek,mt8183-disp-ovl-2l + - mediatek,mt8192-disp-ovl-2l - items: - - const: mediatek,mt8183-disp-ovl-2l - - items: - - const: mediatek,mt8192-disp-ovl-2l - - items: - - enum: - - mediatek,mt8186-disp-ovl-2l + - const: mediatek,mt8186-disp-ovl-2l - const: mediatek,mt8192-disp-ovl-2l reg: diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml index 065e526f950e..c606cfb3f834 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml @@ -21,14 +21,11 @@ description: | properties: compatible: oneOf: - - items: - - const: mediatek,mt2701-disp-ovl - - items: - - const: mediatek,mt8173-disp-ovl - - items: - - const: mediatek,mt8183-disp-ovl - - items: - - const: mediatek,mt8192-disp-ovl + - enum: + - mediatek,mt2701-disp-ovl + - mediatek,mt8173-disp-ovl + - mediatek,mt8183-disp-ovl + - mediatek,mt8192-disp-ovl - items: - enum: - mediatek,mt7623-disp-ovl @@ -40,8 +37,7 @@ properties: - mediatek,mt8195-disp-ovl - const: mediatek,mt8183-disp-ovl - items: - - enum: - - mediatek,mt8186-disp-ovl + - const: mediatek,mt8186-disp-ovl - const: mediatek,mt8192-disp-ovl reg: diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,postmask.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,postmask.yaml index 27de64495401..12ec410bb921 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,postmask.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,postmask.yaml @@ -21,8 +21,7 @@ description: | properties: compatible: oneOf: - - items: - - const: mediatek,mt8192-disp-postmask + - const: mediatek,mt8192-disp-postmask - items: - enum: - mediatek,mt8186-disp-postmask diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml index 3ade2ece3fed..42059efad45d 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml @@ -23,14 +23,11 @@ description: | properties: compatible: oneOf: - - items: - - const: mediatek,mt2701-disp-rdma - - items: - - const: mediatek,mt8173-disp-rdma - - items: - - const: mediatek,mt8183-disp-rdma - - items: - - const: mediatek,mt8195-disp-rdma + - enum: + - mediatek,mt2701-disp-rdma + - mediatek,mt8173-disp-rdma + - mediatek,mt8183-disp-rdma + - mediatek,mt8195-disp-rdma - items: - enum: - mediatek,mt8188-disp-rdma diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml index 35ace1f322e8..54b7b0531144 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,split.yaml @@ -20,9 +20,7 @@ description: | properties: compatible: - oneOf: - - items: - - const: mediatek,mt8173-disp-split + const: mediatek,mt8173-disp-split reg: maxItems: 1 diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,ufoe.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,ufoe.yaml index b8bb135fe96b..87523b45a210 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,ufoe.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,ufoe.yaml @@ -21,9 +21,7 @@ description: | properties: compatible: - oneOf: - - items: - - const: mediatek,mt8173-disp-ufoe + const: mediatek,mt8173-disp-ufoe reg: maxItems: 1 diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,wdma.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,wdma.yaml index 7d7cc1ab526b..52f233fe1c0f 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,wdma.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,wdma.yaml @@ -20,9 +20,7 @@ description: | properties: compatible: - oneOf: - - items: - - const: mediatek,mt8173-disp-wdma + const: mediatek,mt8173-disp-wdma reg: maxItems: 1