From patchwork Wed Dec 13 15:04:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 178077 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp7839506dys; Wed, 13 Dec 2023 07:06:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IGuX3KwsxoTdRxxF4RSSTpEEquLs62JG8oVhMufnOCAVTYq2RIl9tsIGRq6mJjVAYZtyFdP X-Received: by 2002:a05:6a21:339b:b0:18b:30e2:7e55 with SMTP id yy27-20020a056a21339b00b0018b30e27e55mr10451229pzb.46.1702479972185; Wed, 13 Dec 2023 07:06:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702479972; cv=none; d=google.com; s=arc-20160816; b=C5Vk7PZCAmRGil4bLqxzL4Plb+6O8F7g5tO7feZpScVDA9Gf+WB8FSdlywgM0/y+nB HsuvEJgyGdNOWZejOlHfCGCIR6jB5+JJF5jTw2XIhEgJQ/rbqUDzAckZIlAcfRiUu7af pnZtPq7iNpQrvQOLWPkQvuJHnNPw0/D0ozLM/qEhi75iNph0tUmb9hgG5ZdKRH/MaYst TZw3JJcAISrXC8E+nT1tj6z2S1JluoRq1B6DKa3Sbx5ctXvW5suNiG+NIdLyzAjLAckC Np+h8fRMSI+Zj6KFj2j3UVYvNQIhkVyYzVXhElhgZdK3Z9jLn9elUf33Du2xjePKxqpD D40A== 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=RaIqa889/Xel1qXaRfMAUx4gwV9LpaUtBao8QbW7li0=; fh=aryF+YEwzcGka2vwlB0inHWKiFbMUzlApe3EXzDN2wU=; b=ESu7rqZbxWFqbnVV4GoRpgAdb+740YAtwbbTaiIM2hi+6fN7Y+/EUYW+hBUXmHtErw tdGihY1zBAB68YjEiDo/GBcAw04Ervb1mjpuocEa3nWCP8y08WxlDu61WWuwHvklZLZo bplGQuRElbKbBpyxhSMF+5TWM6Knwsao7ksXiXw7xualu3ghnwJMvt/I0B/JBV3YbJj6 z0JEJ1ahA+X2EnfDuiQihuWgNRvzuX5hmyofx5NxHzyHLnvgCrtCZ7OnsJlMffGFxzEm AMb1kf0OkCjeCRN8H9juPExHB4HMLIfSmW5DTKcdoY/iQyBCNmDB4b2NxKEE7aNtt3V2 99lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=chmYBad3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id 4-20020a631544000000b005ac2af99d30si9593030pgv.705.2023.12.13.07.06.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 07:06:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=chmYBad3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 48503807597E; Wed, 13 Dec 2023 07:05:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442101AbjLMPEr (ORCPT + 99 others); Wed, 13 Dec 2023 10:04:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442073AbjLMPEo (ORCPT ); Wed, 13 Dec 2023 10:04:44 -0500 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E185A0 for ; Wed, 13 Dec 2023 07:04:50 -0800 (PST) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1d08a924fcfso65305615ad.2 for ; Wed, 13 Dec 2023 07:04:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1702479890; x=1703084690; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RaIqa889/Xel1qXaRfMAUx4gwV9LpaUtBao8QbW7li0=; b=chmYBad3NlKoCwbX2VSCliQWPX02ZIp8kj0AYsMPCVgpB2jXdCB2cWLUXFWqeBku+w 2noztKABpHORAlS50kqmrJG0w8v9woFiTI1xXzLT1dYR1zT5ZcsIipstubpomBJLAcNW v+41zJEuYpCPpAkeiP35EDRAAA/dblskIEwIQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702479890; x=1703084690; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RaIqa889/Xel1qXaRfMAUx4gwV9LpaUtBao8QbW7li0=; b=SmV6fGa4LoJSfzguST5IhXlOePzDThJigwKTuueh9yHvWvoOMYf6fXq96dyjq7fv/X i6Jfa+ZqJo3eS6bDjJb5j0UX72A7BtPcD6lvm89EbxQ1HWXgvGzgUUYRObG5KBoZ9jyY jcqhwJPk4iSkSgqmy11/POafsyyjlNKLIqQevbHNLAdyPTQ0B41amD1HNa8p1+PkgorK FqFsbIsJAezDNwnQUxDuGGzBTKYawgaGdEoEP3sYi1HGXA4DcXsZsYGZNshM/9B2lx6U uAChTxYnbTMZqSD1q3swCkHgzcxpknjZV9UbfUlH5Hau83np1dugiZ7chJF3G9IAJpnl nFtg== X-Gm-Message-State: AOJu0YxxhO7Vmzcv4sWOh5Wac+Y04tqYNwp+kI/hO3WpQBrONQ5jBOxv Jfqf+2x5NClsHLXpybUoF58jew== X-Received: by 2002:a17:902:ab83:b0:1d0:6ffd:e2ef with SMTP id f3-20020a170902ab8300b001d06ffde2efmr7719522plr.137.1702479889748; Wed, 13 Dec 2023 07:04:49 -0800 (PST) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:1974:9e2:4915:58b0]) by smtp.gmail.com with ESMTPSA id z15-20020a1709027e8f00b001cc2dc61c99sm813808pla.22.2023.12.13.07.04.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 07:04:49 -0800 (PST) From: Chen-Yu Tsai To: Matthias Brugger , AngeloGioacchino Del Regno Cc: Chen-Yu Tsai , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Eugen Hristev , Conor Dooley Subject: [PATCH v4 1/9] dt-bindings: arm: mediatek: Sort entries by SoC then board compatibles Date: Wed, 13 Dec 2023 23:04:25 +0800 Message-ID: <20231213150435.4134390-2-wenst@chromium.org> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog In-Reply-To: <20231213150435.4134390-1-wenst@chromium.org> References: <20231213150435.4134390-1-wenst@chromium.org> MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 13 Dec 2023 07:05:32 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785179639088232374 X-GMAIL-MSGID: 1785179639088232374 Some of the new MediaTek board entries were inserted in a chronological order, or just randomly. This makes it harder to search for an entry. Sort the entries by first grouping by SoC, then sorting by board compatible strings. Also add a comment at the top asking people to do the same. Signed-off-by: Chen-Yu Tsai Acked-by: Conor Dooley Reviewed-by: AngeloGioacchino Del Regno --- Changes since v3: - Collected reviewed-by from Angelo Changes since v2: - none Changes since v1: - Collected ack from Conor --- .../devicetree/bindings/arm/mediatek.yaml | 123 +++++++++--------- 1 file changed, 62 insertions(+), 61 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm/mediatek.yaml index a5999b3afc35..60337b439744 100644 --- a/Documentation/devicetree/bindings/arm/mediatek.yaml +++ b/Documentation/devicetree/bindings/arm/mediatek.yaml @@ -17,6 +17,7 @@ properties: const: '/' compatible: oneOf: + # Sort by SoC (last) compatible, then board compatible - items: - enum: - mediatek,mt2701-evb @@ -129,71 +130,10 @@ properties: - enum: - mediatek,mt8173-evb - const: mediatek,mt8173 - - items: - - enum: - - mediatek,mt8183-evb - - const: mediatek,mt8183 - - description: Google Hayato rev5 - items: - - const: google,hayato-rev5-sku2 - - const: google,hayato-sku2 - - const: google,hayato - - const: mediatek,mt8192 - - description: Google Hayato - items: - - const: google,hayato-rev1 - - const: google,hayato - - const: mediatek,mt8192 - - description: Google Spherion rev4 (Acer Chromebook 514) - items: - - const: google,spherion-rev4 - - const: google,spherion - - const: mediatek,mt8192 - - description: Google Spherion (Acer Chromebook 514) - items: - - const: google,spherion-rev3 - - const: google,spherion-rev2 - - const: google,spherion-rev1 - - const: google,spherion-rev0 - - const: google,spherion - - const: mediatek,mt8192 - - description: Acer Tomato (Acer Chromebook Spin 513 CP513-2H) - items: - - enum: - - google,tomato-rev2 - - google,tomato-rev1 - - const: google,tomato - - const: mediatek,mt8195 - - description: Acer Tomato rev3 - 4 (Acer Chromebook Spin 513 CP513-2H) - items: - - const: google,tomato-rev4 - - const: google,tomato-rev3 - - const: google,tomato - - const: mediatek,mt8195 - - items: - - enum: - - mediatek,mt8186-evb - - const: mediatek,mt8186 - - items: - - enum: - - mediatek,mt8192-evb - - const: mediatek,mt8192 - - items: - - enum: - - mediatek,mt8195-demo - - mediatek,mt8195-evb - - const: mediatek,mt8195 - description: Google Burnet (HP Chromebook x360 11MK G3 EE) items: - const: google,burnet - const: mediatek,mt8183 - - description: Google Krane (Lenovo IdeaPad Duet, 10e,...) - items: - - enum: - - google,krane-sku0 - - google,krane-sku176 - - const: google,krane - - const: mediatek,mt8183 - description: Google Cozmo (Acer Chromebook 314) items: - const: google,cozmo @@ -244,6 +184,13 @@ properties: - google,kodama-sku32 - const: google,kodama - const: mediatek,mt8183 + - description: Google Krane (Lenovo IdeaPad Duet, 10e,...) + items: + - enum: + - google,krane-sku0 + - google,krane-sku176 + - const: google,krane + - const: mediatek,mt8183 - description: Google Willow (Acer Chromebook 311 C722/C722T) items: - enum: @@ -251,10 +198,64 @@ properties: - google,willow-sku1 - const: google,willow - const: mediatek,mt8183 + - items: + - enum: + - mediatek,mt8183-evb + - const: mediatek,mt8183 - items: - enum: - mediatek,mt8183-pumpkin - const: mediatek,mt8183 + - items: + - enum: + - mediatek,mt8186-evb + - const: mediatek,mt8186 + - description: Google Hayato + items: + - const: google,hayato-rev1 + - const: google,hayato + - const: mediatek,mt8192 + - description: Google Hayato rev5 + items: + - const: google,hayato-rev5-sku2 + - const: google,hayato-sku2 + - const: google,hayato + - const: mediatek,mt8192 + - description: Google Spherion (Acer Chromebook 514) + items: + - const: google,spherion-rev3 + - const: google,spherion-rev2 + - const: google,spherion-rev1 + - const: google,spherion-rev0 + - const: google,spherion + - const: mediatek,mt8192 + - description: Google Spherion rev4 (Acer Chromebook 514) + items: + - const: google,spherion-rev4 + - const: google,spherion + - const: mediatek,mt8192 + - items: + - enum: + - mediatek,mt8192-evb + - const: mediatek,mt8192 + - description: Acer Tomato (Acer Chromebook Spin 513 CP513-2H) + items: + - enum: + - google,tomato-rev2 + - google,tomato-rev1 + - const: google,tomato + - const: mediatek,mt8195 + - description: Acer Tomato rev3 - 4 (Acer Chromebook Spin 513 CP513-2H) + items: + - const: google,tomato-rev4 + - const: google,tomato-rev3 + - const: google,tomato + - const: mediatek,mt8195 + - items: + - enum: + - mediatek,mt8195-demo + - mediatek,mt8195-evb + - const: mediatek,mt8195 - items: - enum: - mediatek,mt8365-evk