From patchwork Thu Nov 5 14:11:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Tudor X-Patchwork-Id: 11884491 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7B6AC4741F for ; Thu, 5 Nov 2020 14:12:06 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 26B4B206DB for ; Thu, 5 Nov 2020 14:12:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="1ZS93rjR"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="nTACnZD8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 26B4B206DB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=+CHVgAkNkbxAkuo1Z7mkgjIx+u/u3YLKqWBU1MWtY10=; b=1ZS93rjRd9KsdWxYi2g5ib3K79 QKiYl4Md2nxWNEeB1xiH03IWA+8/JnwrleUu21nR8wOBMeV2Zbe2GYmVT6hmLcpymPPpkUbJHJx9D Rw3yWSkyOyQq3/pPN5cY71TBz0EmYCRke4k2bQobmm1aYCRq1DyybSzblpKNh440jewubmbNdDKy+ 9tUpFlvZ/tKYs+RwG0k6z5k0i+BNSeiNtidAq7L0j3c5+dZGsO/vYSWryzytcyoYef6iEV0zd+Qwd prHSiqFENh2Q8Qn3lDnGxdrUEh1M4K757ZvXX+sc+R1dQHgoHyYh2zqTY+ze1Sqba7xzLBy7w1QT7 utAUAZUw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kafzJ-00005V-3S; Thu, 05 Nov 2020 14:11:41 +0000 Received: from mail-eopbgr80074.outbound.protection.outlook.com ([40.107.8.74] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kafzF-0008UF-62 for linux-arm-kernel@lists.infradead.org; Thu, 05 Nov 2020 14:11:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dn+y+u+2RYZXovE1VgnXAvq0UYleZAWwBI5A4/rUbbrwtek+NW/JYdQSa/P3Bdx+T4/I6BxYs0yrspefnVoFdCL8XjCG7S8v/8fAwD8KVAoV8qrtmWMIYItiEqlJ2H+OiZ0KnBcYJISbknPwv6P/KG2vf6DwJoqmiy4P3c43pPuGahhOxnn4lSdi9sg8+M/KkgJVevR05CkbKtIj53J3hs+/o9kSLgv/iFE8oA126NkPgyQSrUzppAqdpRLqwI83oPwmcgyLEH5TxDp7K7Yd6H+8svzHe9YRlFYwo4ErVI1CEir8+zqDLOTmQ9+95uY0U3ADfHDZweoGwHQekdwJoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aan4qCPugIs9uyQoe3iXNY5LscdnEQPrUHQUaD//uis=; b=T6i6Um1hXPnN1qi5m0nsFKLYefAiCAoVgFDWKb7m5M6uD7WPzgAWcNK4GuFMcZlrYL9Karav2Aljhq2W6sHNPLAXofUsQ7yv87LkDI+Gk1UEFREbzcJUSVpxdTkJgLT9/An/F9dymvj+NKfDWphPUVxwni60t2jNdBaBYrqqzhenlaKK8ndGG7KcbLyK4C5zhbOV8axNP2ppJfq54qclHiNlTcYS9GgwvR4yb5/526zJFZKEiNwHNuU8IksM/ENxVB5lQw1NX+WylTmqTRm82fwRNnyJ+M+43XPcHtz/Ss50BrcJ6rsNc61EQ+i39Xm2UFBh2ojue3xZH2H/t5vWdw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aan4qCPugIs9uyQoe3iXNY5LscdnEQPrUHQUaD//uis=; b=nTACnZD8VaC1uDL3kjFV9deQzD2LuPFKt3MVY+1IQYFFw1yZUJjhFs+ZJEp9x2X5DzegE3o1wCu5eolB9iCxr+R+6ZZECb54mg/YjeZnbJN7QFjI2D4wt+IyU+GXES/53/q/WwhRJqcaB+U5OCZLp18jVfIWlK3clWX7PqRs9sc= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; Received: from VI1PR0402MB3405.eurprd04.prod.outlook.com (2603:10a6:803:3::26) by VI1PR0402MB3581.eurprd04.prod.outlook.com (2603:10a6:803:3::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.29; Thu, 5 Nov 2020 14:11:31 +0000 Received: from VI1PR0402MB3405.eurprd04.prod.outlook.com ([fe80::f557:4dcb:4d4d:57f3]) by VI1PR0402MB3405.eurprd04.prod.outlook.com ([fe80::f557:4dcb:4d4d:57f3%2]) with mapi id 15.20.3499.032; Thu, 5 Nov 2020 14:11:30 +0000 From: Laurentiu Tudor To: robh+dt@kernel.org, leoyang.li@nxp.com, corbet@lwn.net, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: misc: convert fsl, dpaa2-console from txt to YAML Date: Thu, 5 Nov 2020 16:11:13 +0200 Message-Id: <20201105141114.18161-1-laurentiu.tudor@nxp.com> X-Mailer: git-send-email 2.17.1 X-Originating-IP: [83.217.231.2] X-ClientProxiedBy: AM0PR01CA0156.eurprd01.prod.exchangelabs.com (2603:10a6:208:aa::25) To VI1PR0402MB3405.eurprd04.prod.outlook.com (2603:10a6:803:3::26) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from fsr-ub1864-101.ea.freescale.net (83.217.231.2) by AM0PR01CA0156.eurprd01.prod.exchangelabs.com (2603:10a6:208:aa::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21 via Frontend Transport; Thu, 5 Nov 2020 14:11:29 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 0143a702-3134-4aa9-5bea-08d88194b182 X-MS-TrafficTypeDiagnostic: VI1PR0402MB3581: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LdHPrrqMpxVSjtn5oiTfEpJuOx4BHpkzDlIlJiE2vZsG6akY/R8HzgQAcWBu3b10yjiV/IfxeCTv6/9HwwTMu33hLTGOuPzHI4J0v6vfCwglxE3Vs3RsUyYn1VnvBwqOTJwTVBf7+SPl412V6SbhG+yl1Awdyv2jnQwfsrEL8zVmdhwPUV4uJCkjKfXt5z2izJlVSX8VwtR42RAYJfyqBruOEJBr/RgWc5HP3Hs7CmZMIvo8f4klQI2zgwj4JeK+D+aObNWZu9ApduF4IfRhreZMxWFRVyQHg+Eki8lMxLXDySgHFaK15k5Mo9UYirL5K7I/50xqR2sYxCV3SbEPteeEpeViLzQrHa6KHYh0G4A7lQyPPVGHXQg+F+d9Y7TWlDTV9RWC+lB5QneiL29liA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0402MB3405.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(366004)(136003)(376002)(346002)(39860400002)(52116002)(2616005)(6506007)(16526019)(26005)(8676002)(6486002)(186003)(478600001)(966005)(8936002)(956004)(83380400001)(6512007)(2906002)(4326008)(66556008)(5660300002)(7416002)(44832011)(1076003)(86362001)(54906003)(66476007)(316002)(66946007)(36756003)(6666004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: N8rQQQe3y/UYhdWN2sdPm4UsFlkVdMKWEw9Pq/nEU2UFqO0yOW1vAOtBKAIF2jYaaMtXkKlcJcK7EvEdmtlSCAEhYxlCIg1ziqIiVqU98MoOpFEwT6ffEgi+LpwDGxDSS1Eh+GVggbzUL1pD38H5N4pmQWGw2JBbeJzScaGiH6EzAg5ZUdrWcHOyLaVaMfvr1kk2wbeUctQmZcfhDn24qkH80J6maPm+7J0pR61u3jq/IOkJeoHb5smsXsU+vOmO8xO0OB8lHvn8m053W68RnePFV+dOMXZK9wsmPFwLCuwJ7dHgV5C/WaGgKIgihHceTW41rIPRDEVNq9y+hXV386wG9+BXtHCKaeT5ar9cDUQWpd9wCzQ1tsaR316I7IAC3q0BFp/x9UoclRmUKi9yTlpTpSj6Sxqmx9xxbpAPB5VInULW23KnPfF9jCe55xZZF7ru+VxPkuodMi0YDE6tb0nZVstByGlb5MKp8tI2hSIboSfiUN1fjA5WS3VKxS+SBB49+TLMyA6CQStw+kxmjPHDD/aNCYmyiisZ9wUNFMKI3FQ48i6+QiSh2LukraoeXeuH3iv2oVkQQkDUemcebt7+m0eS4MLBgdH3PyT86KASzyHf6e4/upuj+qPu5zyW+w7jmJUuh5SXs6Lh/xuFzg== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0143a702-3134-4aa9-5bea-08d88194b182 X-MS-Exchange-CrossTenant-AuthSource: VI1PR0402MB3405.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Nov 2020 14:11:30.8787 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uc8z5wtAZLZEYeMle7jLPnBgVNaBlKIXkl5dfjSmL6cEwOn02HcfVL0ZjPZ1SuE6bNc1gaZl+UTf/UhTi4tfAA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3581 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201105_091137_283579_2572E5AB X-CRM114-Status: GOOD ( 14.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ioana.ciornei@nxp.com, Ionut-robert Aron , kuba@kernel.org, linuxppc-dev@lists.ozlabs.org, davem@davemloft.net, Laurentiu Tudor Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Ionut-robert Aron Convert fsl,dpaa2-console to YAML in order to automate the verification process of dts files. Signed-off-by: Ionut-robert Aron Signed-off-by: Laurentiu Tudor --- .../bindings/misc/fsl,dpaa2-console.txt | 11 --------- .../bindings/misc/fsl,dpaa2-console.yaml | 23 +++++++++++++++++++ 2 files changed, 23 insertions(+), 11 deletions(-) delete mode 100644 Documentation/devicetree/bindings/misc/fsl,dpaa2-console.txt create mode 100644 Documentation/devicetree/bindings/misc/fsl,dpaa2-console.yaml diff --git a/Documentation/devicetree/bindings/misc/fsl,dpaa2-console.txt b/Documentation/devicetree/bindings/misc/fsl,dpaa2-console.txt deleted file mode 100644 index 1442ba5d2d98..000000000000 --- a/Documentation/devicetree/bindings/misc/fsl,dpaa2-console.txt +++ /dev/null @@ -1,11 +0,0 @@ -DPAA2 console support - -Required properties: - - - compatible - Value type: - Definition: Must be "fsl,dpaa2-console". - - reg - Value type: - Definition: A standard property. Specifies the region where the MCFBA - (MC firmware base address) register can be found. diff --git a/Documentation/devicetree/bindings/misc/fsl,dpaa2-console.yaml b/Documentation/devicetree/bindings/misc/fsl,dpaa2-console.yaml new file mode 100644 index 000000000000..9ffb864d8b58 --- /dev/null +++ b/Documentation/devicetree/bindings/misc/fsl,dpaa2-console.yaml @@ -0,0 +1,23 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2020 NXP +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/misc/fsl,dpaa2-console.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: DPAA2 console support + +maintainers: + - Laurentiu Tudor + +properties: + compatible: + const: "fsl,dpaa2-console" + + reg: + description: A standard property. Specifies the region where the MCFBA + (MC firmware base address) register can be found. + +required: + - compatible + - reg From patchwork Thu Nov 5 14:11:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Tudor X-Patchwork-Id: 11884493 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,MSGID_FROM_MTA_HEADER,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3EF64C4741F for ; Thu, 5 Nov 2020 14:12:15 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A5B9C206DB for ; Thu, 5 Nov 2020 14:12:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="dBpMh56E"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="WpdZJ3Ey" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A5B9C206DB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=myTV7We2+pDsdK3jPyY/4fFZXIuNnPJkM6z3sdlX5iw=; b=dBpMh56E7MjbxFnWYs96MJ6u6 j5CUP1x7Eg6sExDU4DU9ioRkyvTBtoR9yW5rjBsgfBauE4bCxPWAIl7mM2qP0/LJCtnzR2tDLjHsk lp0F1Wg9QE9W0kDSzTp5LnHTcXVoy/92VqVSEUn6Toy0DkgMBCHcRdwL/OAznScPpi3syCHQ3+lvr 3vhadhK/tk1Tju0ARdjbS9apU8O7EIommhOjEbw4HsAi4xCAjs9fvB3ds+onaaaFeNMsmxXyEBM11 J7xG4TAAHHKo+CKWDKw4xHQUlYKWM3xXA/clvEFTl1i7seVGmU59sZQ6VXvHsenW3BiPpXReBw5x1 4kIKYaizQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kafzO-00007G-7q; Thu, 05 Nov 2020 14:11:46 +0000 Received: from mail-eopbgr80074.outbound.protection.outlook.com ([40.107.8.74] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kafzG-0008UF-VH for linux-arm-kernel@lists.infradead.org; Thu, 05 Nov 2020 14:11:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jQxHACGoK46pxNWIkUa/Qk9RseQEVC6sdFBt9SiJo0PcTYGYXMLBmahZauvL+ea91IwcPxBr/DxNE5dM+CC5ZGtJ8rRJjDT7ZZCbUIeKorg9iUtrrhjYLAiRlDXsguLayin47mM6eKD4K9tY3bg0xHKa12MiOWF51t4IV9VVLiA+POghDSZWLpEcEIB6673y/xN64QKU3R1W08dXDcBxoT4TBOtY/J2BJ3fTUddtSme2nDgfMIBc0Dmelf7MNKZWUSsWiHhoYMssjysUZIiWePXPd0PBhMm4mRugVhCGpMMrIgz5ztfzWfXXFmp7FsD0zh8qkhDm7vVRgvRrvasCcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ve8zAPss4cMxX+AG3GFfunns7SNeR22A71n/7DPZZEw=; b=AElkGQVkHbWA7Q9xSLFz4BcO0ikHFuXPp8rvB1/kC2xPHOxuTcbCRgZcvTSk5I7rmntDZukY0qZGgr69eLNyBl1dZvhO/nhmtdvnL3Po+FiKbB2Cw+zmSna3D17MfNKljlj9O7fJv0s5njpgFaf7okpv+6AoHpIYcw+gbPBbB/AMJAxCtbe15JccsuZvOOWJEaxDIcVvUKyHeNmfB6qqKFZJD1lisS5vOqc3UcNK81sweRDjsN6rsD6kHhVsXS4k5UEdOigLyeHHJvUaiqwLrLf+mVYTIFEsKhQsa7p9skrraeC2KQkqgJqQsejKmesBWsXIeB9pAqmEKzFNsxDsaQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ve8zAPss4cMxX+AG3GFfunns7SNeR22A71n/7DPZZEw=; b=WpdZJ3Eyu3yZwbFEs4n8CpXJpVQl5ZSeGOSs5sT5IbAX/uX+XZ7Rt562dcjQLFBtXau+CIbEUIRPoH4hkGqyIAG20jVZx9w14i4BN4XYpIWMMGjqf+LH7aAOmJLBM4rSmnnnh7PDniCEj0fkDWOslRYXg/nOSV6v+BPk9r/Spj4= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; Received: from VI1PR0402MB3405.eurprd04.prod.outlook.com (2603:10a6:803:3::26) by VI1PR0402MB3581.eurprd04.prod.outlook.com (2603:10a6:803:3::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.29; Thu, 5 Nov 2020 14:11:35 +0000 Received: from VI1PR0402MB3405.eurprd04.prod.outlook.com ([fe80::f557:4dcb:4d4d:57f3]) by VI1PR0402MB3405.eurprd04.prod.outlook.com ([fe80::f557:4dcb:4d4d:57f3%2]) with mapi id 15.20.3499.032; Thu, 5 Nov 2020 14:11:35 +0000 From: Laurentiu Tudor To: robh+dt@kernel.org, leoyang.li@nxp.com, corbet@lwn.net, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH 2/2] dt-bindings: misc: convert fsl,qoriq-mc from txt to YAML Date: Thu, 5 Nov 2020 16:11:14 +0200 Message-Id: <20201105141114.18161-2-laurentiu.tudor@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201105141114.18161-1-laurentiu.tudor@nxp.com> References: <20201105141114.18161-1-laurentiu.tudor@nxp.com> X-Originating-IP: [83.217.231.2] X-ClientProxiedBy: AM0PR01CA0156.eurprd01.prod.exchangelabs.com (2603:10a6:208:aa::25) To VI1PR0402MB3405.eurprd04.prod.outlook.com (2603:10a6:803:3::26) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from fsr-ub1864-101.ea.freescale.net (83.217.231.2) by AM0PR01CA0156.eurprd01.prod.exchangelabs.com (2603:10a6:208:aa::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21 via Frontend Transport; Thu, 5 Nov 2020 14:11:34 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 4812cd4d-4fb3-4bb4-32cf-08d88194b460 X-MS-TrafficTypeDiagnostic: VI1PR0402MB3581: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Qh0C/wqnrV01uuHJY067eBmL3TaErjo4LMlA2ldLeGAgxoUUb60A6lor0IvaU8VIsAQboqxiIMyIh+Ubfl0c0T13+nwItX8c02kEQ1HCB7rZUe5AOBw6uPYay+dp8KpYGms8RE3//VJra0g37wXPDRNRQHTpcPSBkAV9cc/QKdcxxhcV0KYp7K6XV9bRvJLtC9qMYrT2E+qkoUTwFJ3Fs2zWCpbfls/eWKTuAZxN4evfpS31e8qEZQ3WwL6F7cMdL5VGyHK9n9B7FtVUJZE8kb2rbPkS6jOGv+IGn1e8KzM72jnegh7h/5oPwcKL0pwmYuW4TVnCdwGjb6o4A+RDI2ytlmX/OVkcstLeYS7eXoHt3YUXGONrupqss7npAlfPSaWZSSIvXqsVZOaMhC055g== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0402MB3405.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(366004)(136003)(376002)(346002)(39860400002)(52116002)(2616005)(6506007)(16526019)(26005)(8676002)(6486002)(186003)(478600001)(966005)(8936002)(956004)(83380400001)(6512007)(2906002)(4326008)(66556008)(5660300002)(7416002)(44832011)(1076003)(86362001)(54906003)(30864003)(66476007)(316002)(66946007)(36756003)(6666004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 8vBgPxp2ee3Qm1qTwg2lTNePVbbHNkFq1MksNUfTsxQqSLe3mC/p6BM5LLEaRhf67HXQAAIDJBOWEzSG232fcFHXz/v8sm9vP8cyvhyIHq+cmp3Tv+EL6xXaoqyd4KwLU0H0rHPHgMdrhVqYGs5jYjLGShVKpxNeYziqnEkT61YEHyIuRQeYT5QSEW8Hh/O/SX4iDNK1/2spdXHT5PuR+yg8bVD9AFf2XDaF3kodKXmbp+rAVfYuxE9weuVUeKcmQ058lxkF58ORNcLyve2bR78kTmcYPnPQM43aEcvEoX0VwEpdmCnLALPw7MD+yx/Z/Xr/9jxLGgGVlDCm5AwVNGA7JBkGR8LLDm8IJ+WlzzU7KyPjhklaijORi8+AdvHNaERo6yh3UGKtb5RKxB4I1KbxIjZob2qxWA4OOV0OYo5KUlIFlVXHFk9ovHkuRLGOFggS9+qNYt8x+yPOZbpjHDXTlio/ldasJOHJlC1VtU8rWB0J/KepOKoK6OlKPmwoNq6sUVXBbLV6iPdjp4Ez4ItfoZdyL3/jukWqXdYMmlAdeR1KCd8rcA1JSBVg3mbFxYE8iPZffGpy3c46CKj771vd8D7bF5qxHXjhLKZm6JZcnBUnCjJMgpCIvaK4lTi1d+Y8GBtzholK7PLLZe4vKg== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4812cd4d-4fb3-4bb4-32cf-08d88194b460 X-MS-Exchange-CrossTenant-AuthSource: VI1PR0402MB3405.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Nov 2020 14:11:35.7719 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: sb9ZzkEIT2dmIFH1FCc9l0WYObc0ylhOSW/f0FpxgJo3FI1yzqGQBSnh2QM97NgX+kLx5I8A9g4IYBERSWf6mQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3581 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201105_091139_232191_AD0E3AD6 X-CRM114-Status: GOOD ( 23.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ioana.ciornei@nxp.com, Ionut-robert Aron , kuba@kernel.org, linuxppc-dev@lists.ozlabs.org, davem@davemloft.net, Laurentiu Tudor Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Ionut-robert Aron Convert fsl,qoriq-mc to YAML in order to automate the verification process of dts files. In addition, update MAINTAINERS accordingly and, while at it, add some missing files. Signed-off-by: Ionut-robert Aron [laurentiu.tudor@nxp.com: update MINTAINERS, updates & fixes in schema] Signed-off-by: Laurentiu Tudor --- .../devicetree/bindings/misc/fsl,qoriq-mc.txt | 196 ---------------- .../bindings/misc/fsl,qoriq-mc.yaml | 218 ++++++++++++++++++ .../ethernet/freescale/dpaa2/overview.rst | 5 +- MAINTAINERS | 4 +- 4 files changed, 225 insertions(+), 198 deletions(-) delete mode 100644 Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt create mode 100644 Documentation/devicetree/bindings/misc/fsl,qoriq-mc.yaml diff --git a/Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt b/Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt deleted file mode 100644 index 7b486d4985dc..000000000000 --- a/Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt +++ /dev/null @@ -1,196 +0,0 @@ -* Freescale Management Complex - -The Freescale Management Complex (fsl-mc) is a hardware resource -manager that manages specialized hardware objects used in -network-oriented packet processing applications. After the fsl-mc -block is enabled, pools of hardware resources are available, such as -queues, buffer pools, I/O interfaces. These resources are building -blocks that can be used to create functional hardware objects/devices -such as network interfaces, crypto accelerator instances, L2 switches, -etc. - -For an overview of the DPAA2 architecture and fsl-mc bus see: -Documentation/networking/device_drivers/ethernet/freescale/dpaa2/overview.rst - -As described in the above overview, all DPAA2 objects in a DPRC share the -same hardware "isolation context" and a 10-bit value called an ICID -(isolation context id) is expressed by the hardware to identify -the requester. - -The generic 'iommus' property is insufficient to describe the relationship -between ICIDs and IOMMUs, so an iommu-map property is used to define -the set of possible ICIDs under a root DPRC and how they map to -an IOMMU. - -For generic IOMMU bindings, see -Documentation/devicetree/bindings/iommu/iommu.txt. - -For arm-smmu binding, see: -Documentation/devicetree/bindings/iommu/arm,smmu.yaml. - -The MSI writes are accompanied by sideband data which is derived from the ICID. -The msi-map property is used to associate the devices with both the ITS -controller and the sideband data which accompanies the writes. - -For generic MSI bindings, see -Documentation/devicetree/bindings/interrupt-controller/msi.txt. - -For GICv3 and GIC ITS bindings, see: -Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.yaml. - -Required properties: - - - compatible - Value type: - Definition: Must be "fsl,qoriq-mc". A Freescale Management Complex - compatible with this binding must have Block Revision - Registers BRR1 and BRR2 at offset 0x0BF8 and 0x0BFC in - the MC control register region. - - - reg - Value type: - Definition: A standard property. Specifies one or two regions - defining the MC's registers: - - -the first region is the command portal for the - this machine and must always be present - - -the second region is the MC control registers. This - region may not be present in some scenarios, such - as in the device tree presented to a virtual machine. - - - ranges - Value type: - Definition: A standard property. Defines the mapping between the child - MC address space and the parent system address space. - - The MC address space is defined by 3 components: - - - Valid values for region type are - 0x0 - MC portals - 0x1 - QBMAN portals - - - #address-cells - Value type: - Definition: Must be 3. (see definition in 'ranges' property) - - - #size-cells - Value type: - Definition: Must be 1. - -Sub-nodes: - - The fsl-mc node may optionally have dpmac sub-nodes that describe - the relationship between the Ethernet MACs which belong to the MC - and the Ethernet PHYs on the system board. - - The dpmac nodes must be under a node named "dpmacs" which contains - the following properties: - - - #address-cells - Value type: - Definition: Must be present if dpmac sub-nodes are defined and must - have a value of 1. - - - #size-cells - Value type: - Definition: Must be present if dpmac sub-nodes are defined and must - have a value of 0. - - These nodes must have the following properties: - - - compatible - Value type: - Definition: Must be "fsl,qoriq-mc-dpmac". - - - reg - Value type: - Definition: Specifies the id of the dpmac. - - - phy-handle - Value type: - Definition: Specifies the phandle to the PHY device node associated - with the this dpmac. -Optional properties: - -- iommu-map: Maps an ICID to an IOMMU and associated iommu-specifier - data. - - The property is an arbitrary number of tuples of - (icid-base,iommu,iommu-base,length). - - Any ICID i in the interval [icid-base, icid-base + length) is - associated with the listed IOMMU, with the iommu-specifier - (i - icid-base + iommu-base). - -- msi-map: Maps an ICID to a GIC ITS and associated msi-specifier - data. - - The property is an arbitrary number of tuples of - (icid-base,gic-its,msi-base,length). - - Any ICID in the interval [icid-base, icid-base + length) is - associated with the listed GIC ITS, with the msi-specifier - (i - icid-base + msi-base). - -Deprecated properties: - - - msi-parent - Value type: - Definition: Describes the MSI controller node handling message - interrupts for the MC. When there is no translation - between the ICID and deviceID this property can be used - to describe the MSI controller used by the devices on the - mc-bus. - The use of this property for mc-bus is deprecated. Please - use msi-map. - -Example: - - smmu: iommu@5000000 { - compatible = "arm,mmu-500"; - #iommu-cells = <1>; - stream-match-mask = <0x7C00>; - ... - }; - - gic: interrupt-controller@6000000 { - compatible = "arm,gic-v3"; - ... - } - its: gic-its@6020000 { - compatible = "arm,gic-v3-its"; - msi-controller; - ... - }; - - fsl_mc: fsl-mc@80c000000 { - compatible = "fsl,qoriq-mc"; - reg = <0x00000008 0x0c000000 0 0x40>, /* MC portal base */ - <0x00000000 0x08340000 0 0x40000>; /* MC control reg */ - /* define map for ICIDs 23-64 */ - iommu-map = <23 &smmu 23 41>; - /* define msi map for ICIDs 23-64 */ - msi-map = <23 &its 23 41>; - #address-cells = <3>; - #size-cells = <1>; - - /* - * Region type 0x0 - MC portals - * Region type 0x1 - QBMAN portals - */ - ranges = <0x0 0x0 0x0 0x8 0x0c000000 0x4000000 - 0x1 0x0 0x0 0x8 0x18000000 0x8000000>; - - dpmacs { - #address-cells = <1>; - #size-cells = <0>; - - dpmac@1 { - compatible = "fsl,qoriq-mc-dpmac"; - reg = <1>; - phy-handle = <&mdio0_phy0>; - } - } - }; diff --git a/Documentation/devicetree/bindings/misc/fsl,qoriq-mc.yaml b/Documentation/devicetree/bindings/misc/fsl,qoriq-mc.yaml new file mode 100644 index 000000000000..9e89fd8eb635 --- /dev/null +++ b/Documentation/devicetree/bindings/misc/fsl,qoriq-mc.yaml @@ -0,0 +1,218 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2020 NXP +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/misc/fsl,qoriq-mc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +maintainers: + - Laurentiu Tudor + +title: Freescale Management Complex + +description: | + The Freescale Management Complex (fsl-mc) is a hardware resource + manager that manages specialized hardware objects used in + network-oriented packet processing applications. After the fsl-mc + block is enabled, pools of hardware resources are available, such as + queues, buffer pools, I/O interfaces. These resources are building + blocks that can be used to create functional hardware objects/devices + such as network interfaces, crypto accelerator instances, L2 switches, + etc. + + For an overview of the DPAA2 architecture and fsl-mc bus see: + Documentation/networking/device_drivers/freescale/dpaa2/overview.rst + + As described in the above overview, all DPAA2 objects in a DPRC share the + same hardware "isolation context" and a 10-bit value called an ICID + (isolation context id) is expressed by the hardware to identify + the requester. + + The generic 'iommus' property is insufficient to describe the relationship + between ICIDs and IOMMUs, so an iommu-map property is used to define + the set of possible ICIDs under a root DPRC and how they map to + an IOMMU. + + For generic IOMMU bindings, see: + Documentation/devicetree/bindings/iommu/iommu.txt. + + For arm-smmu binding, see: + Documentation/devicetree/bindings/iommu/arm,smmu.yaml. + + MC firmware binary images can be found here: + https://github.com/NXP/qoriq-mc-binary + +properties: + compatible: + const: "fsl,qoriq-mc" + description: "Must be 'fsl,qoriq-mc'. A Freescale Management Complex + compatible with this binding must have Block Revision + Registers BRR1 and BRR2 at offset 0x0BF8 and 0x0BFC in + the MC control register region." + + reg: + description: "A standard property. Specifies one or two regions defining + the MC's registers: + + - the first region is the command portal for the this machine + and must always be present + + - the second region is the MC control registers. This region + may not be present in some scenarios, such as in the device + tree presented to a virtual machine." + + ranges: + description: "A standard property. Defines the mapping between the child + MC address space and the parent system address space. + + The MC address space is defined by 3 components: + + + Valid values for region type are: + 0x0 - MC portals + 0x1 - QBMAN portals" + + '#address-cells': + const: 3 + + '#size-cells': + const: 1 + + dpmacs: + type: object + description: "The fsl-mc node may optionally have dpmac sub-nodes that + describe the relationship between the Ethernet MACs which belong + to the MC and the Ethernet PHYs on the system board. + + The dpmac nodes must be under a node named 'dpmacs' which + contains the following properties: + + - '#address-cells' + const: 1 + description: Must be present if dpmac sub-nodes are defined + and must have a value of 1. + + - '#size-cells' + const: 0 + description: Must be present if dpmac sub-nodes are defined + and must have a value of 0." + + properties: + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + patternProperties: + "^dpmac@[0-9a-f]+$": + type: object + + description: "dpmac sub-node that describes the relationship between the + Ethernet MACs which belong to the MC and the Ethernet PHYs + on the system board." + + properties: + compatible: + const: "fsl,qoriq-mc-dpmac" + + reg: + description: Specifies the id of the dpmac + + phy-handle: + $ref: /schemas/types.yaml#definitions/phandle + description: "Specifies the phandle to the PHY device node + associated with the this dpmac." + + required: + - compatible + - reg + - phy-handle + + iommu-map: + description: | + Maps an ICID to an IOMMU and associated iommu-specifier data. + + The property is an arbitrary number of tuples of + (icid-base, iommu, iommu-base, length). + + Any ICID i in the interval [icid-base, icid-base + length) is + associated with the listed IOMMU, with the iommu-specifier + (i - icid-base + iommu-base). + + msi-map: + description: | + Maps an ICID to a GIC ITS and associated msi-specifier data. + + The property is an arbitrary number of tuples of + (icid-base, gic-its, msi-base, length). + + Any ICID in the interval [icid-base, icid-base + length) is + associated with the listed GIC ITS, with the msi-specifier + (i - icid-base + msi-base). + + msi-parent: + deprecated: true + description: "Points to the MSI controller node handling message interrupts + for the MC." + +required: + - compatible + - reg + - iommu-map + - msi-map + - ranges + - '#address-cells' + - '#size-cells' + +additionalProperties: false + +examples: + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + + smmu: iommu@5000000 { + compatible = "arm,mmu-500"; + #global-interrupts = <1>; + #iommu-cells = <1>; + reg = <0 0x5000000 0 0x800000>; + stream-match-mask = <0x7c00>; + interrupts = <0 13 4>, + <0 146 4>, <0 147 4>, + <0 148 4>, <0 149 4>, + <0 150 4>, <0 151 4>, + <0 152 4>, <0 153 4>; + }; + + fsl_mc: fsl-mc@80c000000 { + compatible = "fsl,qoriq-mc"; + reg = <0x00000008 0x0c000000 0 0x40>, /* MC portal base */ + <0x00000000 0x08340000 0 0x40000>; /* MC control reg */ + /* define map for ICIDs 23-64 */ + iommu-map = <23 &smmu 23 41>; + /* define msi map for ICIDs 23-64 */ + msi-map = <23 &its 23 41>; + #address-cells = <3>; + #size-cells = <1>; + + /* + * Region type 0x0 - MC portals + * Region type 0x1 - QBMAN portals + */ + ranges = <0x0 0x0 0x0 0x8 0x0c000000 0x4000000 + 0x1 0x0 0x0 0x8 0x18000000 0x8000000>; + + dpmacs { + #address-cells = <1>; + #size-cells = <0>; + + dpmac@1 { + compatible = "fsl,qoriq-mc-dpmac"; + reg = <1>; + phy-handle = <&mdio0_phy0>; + }; + }; + }; + }; diff --git a/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/overview.rst b/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/overview.rst index d638b5a8aadd..b3261c5871cc 100644 --- a/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/overview.rst +++ b/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/overview.rst @@ -28,6 +28,9 @@ interfaces, an L2 switch, or accelerator instances. The MC provides memory-mapped I/O command interfaces (MC portals) which DPAA2 software drivers use to operate on DPAA2 objects. +MC firmware binary images can be found here: +https://github.com/NXP/qoriq-mc-binary + The diagram below shows an overview of the DPAA2 resource management architecture:: @@ -338,7 +341,7 @@ Key functions include: a bind of the root DPRC to the DPRC driver The binding for the MC-bus device-tree node can be consulted at -*Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt*. +*Documentation/devicetree/bindings/misc/fsl,qoriq-mc.yaml*. The sysfs bind/unbind interfaces for the MC-bus can be consulted at *Documentation/ABI/testing/sysfs-bus-fsl-mc*. diff --git a/MAINTAINERS b/MAINTAINERS index b43b59542d15..400a17c90edb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14409,9 +14409,11 @@ M: Stuart Yoder M: Laurentiu Tudor L: linux-kernel@vger.kernel.org S: Maintained -F: Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt +F: Documentation/devicetree/bindings/misc/fsl,dpaa2-console.yaml +F: Documentation/devicetree/bindings/misc/fsl,qoriq-mc.yaml F: Documentation/networking/device_drivers/ethernet/freescale/dpaa2/overview.rst F: drivers/bus/fsl-mc/ +F: include/linux/fsl/mc.h QT1010 MEDIA DRIVER M: Antti Palosaari