From patchwork Tue May 10 12:49:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12845024 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9D2F8C433EF for ; Tue, 10 May 2022 12:51:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2edHcdWOjk4BZ2kU9C9oh0G7ssDMgimzZaCgZy2QjEM=; b=P8T3+9O5m5CqNr KlswAb6ijz1B4Twh+aTtk3ISwH0vUYS3kJ0z9Q6VEE205oZ6ODBSio3FQbhWZF8L00v88rbuSayX2 NXKhtjmX8Kr16CZ+XOJagx/p4j0xAZIIDP5FDFzT+wPpEdD/ddv6/WZ7ZC4WEn0ypR+40TIk2UYKN 2yscdVgoxyCwfWq7dRdtDNvFa6YXq/wrHN4Pc/pKKswNXlaucvIvWYrAD0YKYcOwhnwJHlYJPfNe+ WfGa0wtz3TU3rBD2pRPslsp+rH+5gfBouoCyLRSTBSbEf64BZhVJTHYRgxAP0wNE/ydUVs4VHH5aO f8MnJK2SnYyR9C5Pythg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1noPJs-0020gZ-BN; Tue, 10 May 2022 12:50:28 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1noPJB-0020M5-9m for linux-arm-kernel@lists.infradead.org; Tue, 10 May 2022 12:49:47 +0000 Received: by mail-ej1-x62e.google.com with SMTP id z2so31144828ejj.3 for ; Tue, 10 May 2022 05:49:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HwSEDQjFnwotXAtx/HSGdXHZhDY72VMSwl9scvd/d5E=; b=o3h880dzH6Y90hW139+ZkGG8SE0ySGB7a41cCmjBk5+OBsUt5ygCr4s3a07LHeQWnH k7tyTKvDY8KiFl3HLNiBOWEytjM0/Q7NDBnVXJUN4JNAz/4YP1aiiuh3JBQOhqu/SNoc UZUsDAjyy0mDfBkvTUN/c9EzxF5UbUniixJnstsWuob9fekY9RKqtJTKD5Nmcs9I3zx5 VfFtnJyL0EmHFvyjpdTR1YlCeQc3ZmZ0cO4pdJofo6k1pFrTQ5mK++NXG1jh5MEfvDht 1iMBCQrkf+c3+XeCmTo+bIT0UEfGoBcN8hW20ZDlO+rebPCX+ZmJQ6YBPcGZC9NvywwZ oIYw== 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=HwSEDQjFnwotXAtx/HSGdXHZhDY72VMSwl9scvd/d5E=; b=vrZ4COfmfw/Cggc/bMbJlloqRLbCrEJPSfFvAQLiw1iZ/M5f+3ghnxhjO+QPkKm2bp 9Ju5edBoLwYW++dqMCsOZBva1JuCEPcuJx1h4yzVu/mNGph5W2qdPJ6O4+nZzby5bFx9 SUbTeqHwvcrpYgp0RhE+ViVv2avX7kFRYvewJZ2GnTSNTxEzSgTXAwo+C0NST4ImVN5O 7jby/yt4JmHE5GgVuoFH0OmVc6a14b/cSPo+WpOwAbSgQWgpYiMK+rMrYQGnH2o4de1N P7HXCi4VrSzkyWqcpOdbPH/Jh4m4gjEDEyXEhLQkxBkAkkSyfN3xQ1av04APLqaZHE6x 2hpQ== X-Gm-Message-State: AOAM533n8ItrlzjsWYYJHo4i9fm86jE4dQeB97M498QL7AucyhavBKEF JNVsfcyLR8QL3gIUWJDoPrjQLg== X-Google-Smtp-Source: ABdhPJzkQHZolGvccUtfG+aH8pjTTF52qEYDIOqyGPbYfIkk82mgKajVFLtjhDSy/pTFLxFlzgdXRw== X-Received: by 2002:a17:907:6d87:b0:6f8:95d2:6814 with SMTP id sb7-20020a1709076d8700b006f895d26814mr13531809ejc.232.1652186976753; Tue, 10 May 2022 05:49:36 -0700 (PDT) Received: from fedora.robimarko.hr (cpezg-94-253-144-75-cbl.xnet.hr. [94.253.144.75]) by smtp.googlemail.com with ESMTPSA id gz14-20020a170907a04e00b006f3ef214e62sm6094290ejc.200.2022.05.10.05.49.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 May 2022 05:49:36 -0700 (PDT) From: Robert Marko To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, andrew@lunn.ch, gregory.clement@bootlin.com, sebastian.hesselbarth@gmail.com, kostap@marvell.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, pali@kernel.org, marek.behun@nic.cz Cc: Robert Marko Subject: [PATCH v2 02/11] dt-bindings: marvell: convert Armada 37xx compatibles to YAML Date: Tue, 10 May 2022 14:49:20 +0200 Message-Id: <20220510124929.91000-2-robert.marko@sartura.hr> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220510124929.91000-1-robert.marko@sartura.hr> References: <20220510124929.91000-1-robert.marko@sartura.hr> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220510_054945_415060_109E0365 X-CRM114-Status: GOOD ( 14.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Convert the Armada 37xx SoC compatibles to YAML. Signed-off-by: Robert Marko --- .../bindings/arm/marvell/armada-37xx.txt | 26 ---------- .../bindings/arm/marvell/armada-37xx.yaml | 50 +++++++++++++++++++ 2 files changed, 50 insertions(+), 26 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/marvell/armada-37xx.yaml diff --git a/Documentation/devicetree/bindings/arm/marvell/armada-37xx.txt b/Documentation/devicetree/bindings/arm/marvell/armada-37xx.txt index f6d6642d81c0..29fa93dad52b 100644 --- a/Documentation/devicetree/bindings/arm/marvell/armada-37xx.txt +++ b/Documentation/devicetree/bindings/arm/marvell/armada-37xx.txt @@ -1,21 +1,3 @@ -Marvell Armada 37xx Platforms Device Tree Bindings --------------------------------------------------- - -Boards using a SoC of the Marvell Armada 37xx family must carry the -following root node property: - - - compatible: must contain "marvell,armada3710" - -In addition, boards using the Marvell Armada 3720 SoC shall have the -following property before the previous one: - - - compatible: must contain "marvell,armada3720" - -Example: - -compatible = "marvell,armada-3720-db", "marvell,armada3720", "marvell,armada3710"; - - Power management ---------------- @@ -48,11 +30,3 @@ avs: avs@11500 { compatible = "marvell,armada-3700-avs", "syscon"; reg = <0x11500 0x40>; } - - -CZ.NIC's Turris Mox SOHO router Device Tree Bindings ----------------------------------------------------- - -Required root node property: - - - compatible: must contain "cznic,turris-mox" diff --git a/Documentation/devicetree/bindings/arm/marvell/armada-37xx.yaml b/Documentation/devicetree/bindings/arm/marvell/armada-37xx.yaml new file mode 100644 index 000000000000..3f41ef2c6f3e --- /dev/null +++ b/Documentation/devicetree/bindings/arm/marvell/armada-37xx.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/marvell/armada-37xx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell Armada 37xx Platforms Device Tree Bindings + +maintainers: + - Robert Marko + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - description: Armada 3710 SoC + items: + - const: marvell,armada3710 + + - description: Armada 3720 SoC + items: + - enum: + - marvell,armada-3720-db + - globalscale,espressobin + - cznic,turris-mox + - methode,udpu + - const: marvell,armada3720 + - const: marvell,armada3710 + + - description: Globalscale Espressobin boards + items: + - enum: + - globalscale,espressobin-emmc + - globalscale,espressobin-ultra + - globalscale,espressobin-v7 + - const: globalscale,espressobin + - const: marvell,armada3720 + - const: marvell,armada3710 + + - description: Globalscale Espressobin V7 boards + items: + - enum: + - globalscale,espressobin-v7-emmc + - const: globalscale,espressobin-v7 + - const: globalscale,espressobin + - const: marvell,armada3720 + - const: marvell,armada3710 + +additionalProperties: true