From patchwork Mon May 8 10:32:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Jakubek X-Patchwork-Id: 91054 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2066023vqo; Mon, 8 May 2023 04:05:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6kbprjtKcTlnalUZIQFpv57/yOlYoS53l8lryeXZq/RkGwpZLs9pGUUSq2mxmoC4Tv0Dfb X-Received: by 2002:a05:6a00:240a:b0:63d:3a18:4a08 with SMTP id z10-20020a056a00240a00b0063d3a184a08mr11907123pfh.24.1683543946924; Mon, 08 May 2023 04:05:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683543946; cv=none; d=google.com; s=arc-20160816; b=kk7HWPn3XDSq65+pJQJjL3dSIdJRacjbVWdC/w7J7EhRpEX1W86V7RMKdt/kHE/7wc 27oiWYNufIp6NukgGP/5CBHDWN5TN5+CilalDGnfxA2Rpz/TMtLSKVqnOD3zNupDJ/m7 ZoNF20i+VfMkygiKAsNM06kNovfWjNP8e//qjRixEDIE8NsApZfyiqdItOTYvwUgbYhl IHRxdu9RyCZPfpHXY+i9Ry+POqyuUg4w8z2aYk5az1Nttr+XOqpPsB91o9JKrChOuUrz L6l3rR8EogxwZvkEfo7hSynrmPI8yle42aFbCnWDtHLF27qHqC2Fzbm1HcUx7Fc0u74E +KSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=5RO31PIvOJ1a+cgiuJEFwT9RyHnjbLWAMpuWQH4KIaA=; b=u2IJ0m9ADG0xtOEf8XZR/cBO2CSfor+qcUbqOM/oACTnuWdGm5its7kg4t/T3m+TUz blTCu7YQsmAVyL+6fDEVikOkfTZKVrNZnzkH5jirbg1a8vzPOI66KE3sh/vzOU/30FCO W066ft3xPaf4ThZVHgqsJdh+0VVaech/tJPeE9p2d0tSTWW1YI1bf8Yi63PLinq4X0B/ 4/od8GfH/IVPZqDQKvxFRcfRZ5Ve6sN693V5pn1WkBc6aoPHn4XSmXvBu3fPKt6bK4oC CrNJWAGQMgcdL88qUZ9EZLz2p34sWVhWN7YWDJ7qAiSv/t5eLX8sbjR/bPZ6IUPny/OS H9QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="LTe8i/EE"; 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 q21-20020aa79835000000b0063b54679d0dsi8390101pfl.44.2023.05.08.04.05.33; Mon, 08 May 2023 04:05:46 -0700 (PDT) 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=20221208 header.b="LTe8i/EE"; 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 S234818AbjEHKeZ (ORCPT + 99 others); Mon, 8 May 2023 06:34:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234749AbjEHKd5 (ORCPT ); Mon, 8 May 2023 06:33:57 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 323282674A; Mon, 8 May 2023 03:33:02 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-3062b101ae1so2680664f8f.2; Mon, 08 May 2023 03:33:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683541977; x=1686133977; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=5RO31PIvOJ1a+cgiuJEFwT9RyHnjbLWAMpuWQH4KIaA=; b=LTe8i/EEI090DJOGzB6O8dy8nt7yJ29tkNzWmyiXQ/QaXCPWnIHwSAIb7Gult7iaVR RXXWmCqC0C4cwaQb6N00PRITSZeG18Su4yucjYPo280JqskpqwG6CIxtLf+rUsi4r5Yl fSzxO+sCpUeYhH5EI20ELsHRRoBMgRXy+Fd0GEYmsYNj1T51PKxVTD9x7uNeKuX5EZoP YLioH6cqA6ZqEVGYbVVfCK62sI3BZjlingJ+tdcqtOjWyNokyzInctZTXO1Ql2FsKl0X wb6VzscfnaQGyu0JfStfa0EfXvaFgUUBtFkPEdVZRVnvnkTpRfp2hPVgTr1PO5cyLc5v GIxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683541977; x=1686133977; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5RO31PIvOJ1a+cgiuJEFwT9RyHnjbLWAMpuWQH4KIaA=; b=bA3QyrtK+ANJyrJpXnO5z6HIoHj8Jtezw6d+K2G2Fr8/btDyf+LPp9vVXCS9gXTxby EXnw63gWHD3TH1tpv9/ZmBsSrguR6axIRNZnbvqNuhpYxor5FXQZISXbR/hDG8DRYjZS gsYNOr5Y67C+dfuphXjJSDZaR0wLTMTpydrIN1gmgMGZ4AguV+nCSwBCG3RiuXiAmy9M wQYG2bNyndFmJQkBouDxQh5HbwC46uIpDDhw8Lwoaa0zOxo/F8yP1kUTEPPO56xpRQ0N KWZkFQqwsnCkg1CwoeNRvQgWale3jBgTn8CwuxdETyuLqBzoLfxIh2/XXnAzQ+owD6rE mZJg== X-Gm-Message-State: AC+VfDxmea6T9lZekikbiyyiKunKx0L+Lxsyqc7ftGCE4a/DbXtwMlDw e2sI4PvAYoKorvBC45TBsaDqu/i8zh/LRw== X-Received: by 2002:a5d:4570:0:b0:2fe:c0ea:18b5 with SMTP id a16-20020a5d4570000000b002fec0ea18b5mr6094585wrc.35.1683541977506; Mon, 08 May 2023 03:32:57 -0700 (PDT) Received: from standask-GA-A55M-S2HP ([188.123.113.247]) by smtp.gmail.com with ESMTPSA id k11-20020adff5cb000000b0030649242b72sm10931916wrp.113.2023.05.08.03.32.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 May 2023 03:32:57 -0700 (PDT) Date: Mon, 8 May 2023 12:32:55 +0200 From: Stanislav Jakubek To: Rob Herring , Krzysztof Kozlowski , Florian Fainelli , Ray Jui , Scott Branden Cc: bcm-kernel-feedback-list@broadcom.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3] dt-bindings: firmware: brcm,kona-smc: convert to YAML Message-ID: <20230508103255.GA18424@standask-GA-A55M-S2HP> MIME-Version: 1.0 Content-Disposition: inline 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,T_SCC_BODY_TEXT_LINE 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?1765323777916727136?= X-GMAIL-MSGID: =?utf-8?q?1765323777916727136?= Convert Broadcom Kona family Secure Monitor bounce buffer bindings to DT schema. Changes during conversion: - move from misc to firmware subdirectory - add used, but previously undocumented SoC-specific compatibles - drop deprecated compatibles (they've been deprecated for ~10 years) Signed-off-by: Stanislav Jakubek Reviewed-by: Krzysztof Kozlowski --- Changes in V3: - remove unnecessary oneOf (Krzysztof) Changes in V2: - move to firmware subdirectory (Krzysztof) - drop deprecated compatibles (Krzysztof) - adjusted commit message to reflect the above changes .../bindings/firmware/brcm,kona-smc.yaml | 39 +++++++++++++++++++ .../bindings/misc/brcm,kona-smc.txt | 15 ------- 2 files changed, 39 insertions(+), 15 deletions(-) create mode 100644 Documentation/devicetree/bindings/firmware/brcm,kona-smc.yaml delete mode 100644 Documentation/devicetree/bindings/misc/brcm,kona-smc.txt diff --git a/Documentation/devicetree/bindings/firmware/brcm,kona-smc.yaml b/Documentation/devicetree/bindings/firmware/brcm,kona-smc.yaml new file mode 100644 index 000000000000..684b15ba9ad0 --- /dev/null +++ b/Documentation/devicetree/bindings/firmware/brcm,kona-smc.yaml @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/firmware/brcm,kona-smc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom Kona family Secure Monitor bounce buffer + +description: + A bounce buffer used for non-secure to secure communications. + +maintainers: + - Florian Fainelli + +properties: + compatible: + items: + - enum: + - brcm,bcm11351-smc + - brcm,bcm21664-smc + - brcm,bcm23550-smc + - const: brcm,kona-smc + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + smc@3404c000 { + compatible = "brcm,bcm11351-smc", "brcm,kona-smc"; + reg = <0x3404c000 0x400>; /* 1 KiB in SRAM */ + }; +... diff --git a/Documentation/devicetree/bindings/misc/brcm,kona-smc.txt b/Documentation/devicetree/bindings/misc/brcm,kona-smc.txt deleted file mode 100644 index 05b47232ed9e..000000000000 --- a/Documentation/devicetree/bindings/misc/brcm,kona-smc.txt +++ /dev/null @@ -1,15 +0,0 @@ -Broadcom Secure Monitor Bounce buffer ------------------------------------------------------ -This binding defines the location of the bounce buffer -used for non-secure to secure communications. - -Required properties: -- compatible : "brcm,kona-smc" -- DEPRECATED: compatible : "bcm,kona-smc" -- reg : Location and size of bounce buffer - -Example: - smc@3404c000 { - compatible = "brcm,bcm11351-smc", "brcm,kona-smc"; - reg = <0x3404c000 0x400>; //1 KiB in SRAM - };