From patchwork Tue Aug 17 08:06:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12440771 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.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,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 CFB4FC4338F for ; Tue, 17 Aug 2021 08:09:21 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 9AD6860F35 for ; Tue, 17 Aug 2021 08:09:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9AD6860F35 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=canonical.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:Message-Id:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=/zXHqpvgHgCTmEAvog5Sp5CuMZ+JmGN4IP62RZawuhs=; b=2TpYRaUsMh0IEN o6pKXTg9j0KBVSZHQ+iGOhELkBbkEwFf68+j2cIpcTyOMyE4UzNO+W9gQ3vOzDJV+PaGovapqvGNa oFoHowyV8VBwmuocYn6jOYomDRigFaXFEKnPRKEjKjqp3TU298YnEkIAnyONCITzntNnpyAU5nNTS v4oBQg6m1qEM41SevNxld0q85RmRQQYCao8C488/vglSWT8b7E0w0ISUgCyuxsTmclVUGT6wwpJJn JseWguCESK63iV7WtWf7E5dbn4S3vGqucBrPZ/td/0XeNYCYAlc9vgA3sUFP+QCQgxtjlAB9siFNA 9ZxKLmDNrnx/G6Q/Ygbg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mFu7j-001UR8-6c; Tue, 17 Aug 2021 08:07:03 +0000 Received: from smtp-relay-canonical-1.canonical.com ([185.125.188.121]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mFu7c-001UQ7-U4 for linux-arm-kernel@lists.infradead.org; Tue, 17 Aug 2021 08:07:01 +0000 Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPS id BE3B63F070 for ; Tue, 17 Aug 2021 08:06:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1629187614; bh=gTC7PEUSA5dHECIH2h3N62kOFO0K8qY81V1jF3nxSjc=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=Yl1Q7mbudu2N5PeiyhTLfIs52kEM4idOvf2OECBEOkaFPLeeqUEcQI6Z9CKrHjh3N Ace+gfMy+q1cfnC15pawF6nE0iP3MnNq7S/znzhoSwFXOTg8ZWsPen1iUIaqOxLv4t HoT3pDX80fe7JMGTmgIoJujXQGgWuwbfkrJlLpVG/gHZZ9dZetxmfLuogNtRNyoEHn Kpx6EzZEL/W+iC4MkiriTEOeDQKclrydi9EE2Ug5FL2CUxN/Xx3ey+4x+xpQrTgOwY Cig/qpRjSJza4CR2X1iFmRW0kXLfR3JPczHyc34zqTacl0W59wgaRkejmiGoZ4bFR6 edQkYGIdBwmcQ== Received: by mail-ed1-f72.google.com with SMTP id di3-20020a056402318300b003bebf0828a2so6162530edb.8 for ; Tue, 17 Aug 2021 01:06:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=gTC7PEUSA5dHECIH2h3N62kOFO0K8qY81V1jF3nxSjc=; b=LhWYBp2Xe1iPLJ/YUCOOPdw+9Z8DjCLQ9r+ngYjkMdDwu2BaRNfnv9xfUmWrRRIPGt RNByRqvlhOmHsy4/yDp5vGgcwclggEGmLAMYg1/WpovfRN/N0sv5pBQLbYFZolEhaAqa jRKKv2/e8uouuYw3Jo0G4K9QXsLbwo9qK/JFTgr9Y53XFGm0ct/ypmCWY/6Usm90Llvl spzy8R/XabZnWus29AvAUwj5cYy50wKk3ndpAuUPmBnx+nx17ZqTnjf2J0uaLQ+tiGmr 4meEL/RhrbkQ1cHyBDKO1I7F2EkVvUxbGRXS88uwUUq21vbZIOVwwo+iM6PkNG2IbE44 EOtw== X-Gm-Message-State: AOAM533XF4aMLkfid7c/bpoAmzc/TOGCifE8m0hFJQKQ4z4pUXRZQdWe peUpp7GU6PoFLYzGy4hU0694fAPGm+TJnDXoWyqrjDKvnB09WmTOGizKNvTY2VM/BpMnX5DeQLa 5u+boX5c+5v8SqQRt/uzzEQ86I/PTkdNGPdheIz3dvgeM5IEoclux X-Received: by 2002:a17:906:f90c:: with SMTP id lc12mr2606295ejb.96.1629187614479; Tue, 17 Aug 2021 01:06:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxug0RpA7XHKzvWpV/h62al/fvo39l+Fmdx5oDpD9qBSh34lwOsD09ucjabyGG7KZ38GYcZyQ== X-Received: by 2002:a17:906:f90c:: with SMTP id lc12mr2606275ejb.96.1629187614275; Tue, 17 Aug 2021 01:06:54 -0700 (PDT) Received: from localhost.localdomain ([86.32.42.198]) by smtp.gmail.com with ESMTPSA id i26sm425529ejh.4.2021.08.17.01.06.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 01:06:53 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Rob Herring , Markus Mayer , bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] dt-bindings: memory: convert Broadcom DPFE to dtschema Date: Tue, 17 Aug 2021 10:06:17 +0200 Message-Id: <20210817080617.14503-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210817_010657_237626_55637F21 X-CRM114-Status: GOOD ( 19.24 ) 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 Broadcom DDR PHY Front End (DPFE) bindings to DT schema format using json-schema. Signed-off-by: Krzysztof Kozlowski Acked-by: Markus Mayer --- .../memory-controllers/brcm,dpfe-cpu.txt | 27 ----------- .../memory-controllers/brcm,dpfe-cpu.yaml | 48 +++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 49 insertions(+), 28 deletions(-) delete mode 100644 Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.txt create mode 100644 Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml diff --git a/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.txt b/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.txt deleted file mode 100644 index 82d923ef413f..000000000000 --- a/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.txt +++ /dev/null @@ -1,27 +0,0 @@ -DDR PHY Front End (DPFE) for Broadcom STB -========================================= - -DPFE and the DPFE firmware provide an interface for the host CPU to -communicate with the DCPU, which resides inside the DDR PHY. - -There are three memory regions for interacting with the DCPU. These are -specified in a single reg property. - -Required properties: - - compatible: must be "brcm,bcm7271-dpfe-cpu", "brcm,bcm7268-dpfe-cpu" - or "brcm,dpfe-cpu" - - reg: must reference three register ranges - - start address and length of the DCPU register space - - start address and length of the DCPU data memory space - - start address and length of the DCPU instruction memory space - - reg-names: must contain "dpfe-cpu", "dpfe-dmem", and "dpfe-imem"; - they must be in the same order as the register declarations - -Example: - dpfe_cpu0: dpfe-cpu@f1132000 { - compatible = "brcm,bcm7271-dpfe-cpu", "brcm,dpfe-cpu"; - reg = <0xf1132000 0x180 - 0xf1134000 0x1000 - 0xf1138000 0x4000>; - reg-names = "dpfe-cpu", "dpfe-dmem", "dpfe-imem"; - }; diff --git a/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml b/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml new file mode 100644 index 000000000000..769f13250047 --- /dev/null +++ b/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/brcm,dpfe-cpu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: DDR PHY Front End (DPFE) for Broadcom STB + +maintainers: + - Krzysztof Kozlowski + - Markus Mayer + +properties: + compatible: + items: + - enum: + - brcm,bcm7271-dpfe-cpu + - brcm,bcm7268-dpfe-cpu + - const: brcm,dpfe-cpu + + reg: + items: + - description: DCPU register space + - description: DCPU data memory space + - description: DCPU instruction memory space + + reg-names: + items: + - const: dpfe-cpu + - const: dpfe-dmem + - const: dpfe-imem + +required: + - compatible + - reg + - reg-names + +additionalProperties: false + +examples: + - | + dpfe-cpu@f1132000 { + compatible = "brcm,bcm7271-dpfe-cpu", "brcm,dpfe-cpu"; + reg = <0xf1132000 0x180>, + <0xf1134000 0x1000>, + <0xf1138000 0x4000>; + reg-names = "dpfe-cpu", "dpfe-dmem", "dpfe-imem"; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 36aee8517ab0..be8e4af8ed64 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3855,7 +3855,7 @@ M: Markus Mayer M: bcm-kernel-feedback-list@broadcom.com L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) S: Maintained -F: Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.txt +F: Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml F: drivers/memory/brcmstb_dpfe.c BROADCOM STB NAND FLASH DRIVER