Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp654407rwb; Fri, 18 Nov 2022 06:38:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf6o5ZND/5H6oNSPa0OlP2MJJmu7aCROv+inzgOKE8Gsz6HSxdNneJrsZHeh+RbNSRY9Ob0c X-Received: by 2002:a17:907:2a56:b0:7ae:c2c:e55a with SMTP id fe22-20020a1709072a5600b007ae0c2ce55amr6115486ejc.214.1668782289790; Fri, 18 Nov 2022 06:38:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668782289; cv=none; d=google.com; s=arc-20160816; b=rWk0+3zfx1//WB/ZOR8p4hoUlZ4CI0XgwRR7WQcj+gFVfKFJWhygfw4YWeitLDHLVA iwKFDHrr1/PQO0pie+GfwHZCMeEPsq0jRhbFAW1q9pNET3QF+q15ZT+ayA1fOSmURbD0 BMNZvhZ515Mc8W4Gs8Xm/4sYznpJLIW4ixsNPtIZEKUIZzJQCElKoF0sLYRvItC6DnuW y5iFFboylwoCy0H49DdD/gJx9J8nlbEHsEfkjmvmddlzYx+pYrOKOHeKRuQ3u0duQT/y qboPjSDjenfF0gQpC/406eqUPYTUTiwUttV1RUv49MUB1w6ROP5DATcowKROl7s+bdua e8sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=os18iIH40bbHxRjQCRqddwrzdnwc6I4uEJqYH2KW3Ak=; b=uy76ftOiwmQshJYkM/84Qzos80H6t98x0P8ZvQFyixyleNgNMBPCozzm43wRBD/WCi VsyfOLtuTtpE3TgZNTBo2PAvCXQDu8V0Kqp2Q/dgIJPxp6UOBrBKXReOt9TF/c754pKn PdtgaDYI+8zRX1dLMzm0nD4c4OT7f9NgpRk0xRZSMyTQw50xA6ZKsuU1FEJnfRec7kcs xSZPqVTAQhoT1Jb7dkI7pu+dqw2/llbGXXT8vXH2m7kV/BxU20ZZ59PI8WhB4lU1kqB6 MY+h7F4cPwGSehO5JzoJo7a7zBR5bHEAepShIYwRI4fmfXW/JQLAhTDxVYqX+H3eG7z1 HqvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lJkfDmBK; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa24-20020a1709076d1800b007a39ad3da43si3389548ejc.714.2022.11.18.06.37.41; Fri, 18 Nov 2022 06:38:09 -0800 (PST) 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=@linaro.org header.s=google header.b=lJkfDmBK; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241772AbiKROeF (ORCPT + 91 others); Fri, 18 Nov 2022 09:34:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242411AbiKROdi (ORCPT ); Fri, 18 Nov 2022 09:33:38 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B67B164551 for ; Fri, 18 Nov 2022 06:33:36 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id o30so3754920wms.2 for ; Fri, 18 Nov 2022 06:33:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=os18iIH40bbHxRjQCRqddwrzdnwc6I4uEJqYH2KW3Ak=; b=lJkfDmBKCzja3AXdIe++widX8f6gelPNh/0y1AaE6UoXgCvbnqGe4Q2GTBmMoezOA7 UwtxeNVmLjuKTePTBAJ6UYIs3erJSdky2WJ4mziNHtotJ4r8lZKLs5Cev/peAc9QyuFZ g1bDFZ2LDOoXlpwAs6L90H1YxEh0n3juUQWASZn/xGaoT2GQZWyI6fKWcS12qvGMdoIY bUNfweLRh1LDprvbOnwhIkJFJEBN77lDXVu/QZHK9IOBKKX06rTZHKsENp15XnM92fel sSMouQOYt2KeZ9JANMrM/znKckpEa2swmbX37FCcHmLlfhTrIi9Y5D+VaO5h15QrXr78 0k9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=os18iIH40bbHxRjQCRqddwrzdnwc6I4uEJqYH2KW3Ak=; b=6hPaJqpw7VvSZB8UlsWMpKT4wSlfMD7hupO5nVHmLptwzsO+ZR4cPmbSardM8k8B/j tH/lWTpezyX18QciySi56cbDZliqipiTr4XpGlQfwT/VrlgADVo9RRwGb1KvbLsiXm3w 4R/dUPB4XnNycqA0BevE2KYAMEjKD72+KnAezV6Ip32ZBnY0VwqG2aqITA70VBqJTTl6 UuavV6HZn4yPgU3+KPexEym2uXKTxaEADMBgR7U8BV0HxwwrbJnQTGcysEuncnCJS9lZ X7daOdIPrSGiQaTCc9P2bo3KmidH/fzGzHTZhht+g0Fw1ywRZ6PqvOgeBkK9HhdJ3edD NCVA== X-Gm-Message-State: ANoB5pmssL4B/nex7PRsUAwN1d1ALdEYgu+eb87O07pFuUyHmeicdeh1 XHdz5ls9KhHZInPPwP/m4SLL1w== X-Received: by 2002:a05:600c:3110:b0:3cf:b07a:cd56 with SMTP id g16-20020a05600c311000b003cfb07acd56mr8325908wmo.143.1668782015225; Fri, 18 Nov 2022 06:33:35 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id j21-20020a05600c1c1500b003cfb7c02542sm5436726wms.11.2022.11.18.06.33.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Nov 2022 06:33:34 -0800 (PST) From: Neil Armstrong Date: Fri, 18 Nov 2022 15:33:29 +0100 Subject: [PATCH 03/12] dt-bindings: nvmem: convert amlogic-meson-mx-efuse.txt to dt-schema MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20221117-b4-amlogic-bindings-convert-v1-3-3f025599b968@linaro.org> References: <20221117-b4-amlogic-bindings-convert-v1-0-3f025599b968@linaro.org> In-Reply-To: <20221117-b4-amlogic-bindings-convert-v1-0-3f025599b968@linaro.org> To: Jakub Kicinski , Wim Van Sebroeck , Srinivas Kandagatla , Rob Herring , Andrew Lunn , Alessandro Zummo , Eric Dumazet , Bjorn Helgaas , Kevin Hilman , Ulf Hansson , Heiner Kallweit , Vinod Koul , Russell King , Thomas Gleixner , Kishon Vijay Abraham I , Guenter Roeck , Krzysztof Kozlowski , Martin Blumenstingl , Alexandre Belloni , Daniel Lezcano , Jerome Brunet , Paolo Abeni , Mauro Carvalho Chehab , "David S. Miller" Cc: linux-media@vger.kernel.org, netdev@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-mmc@vger.kernel.org, linux-rtc@vger.kernel.org, linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Neil Armstrong , devicetree@vger.kernel.org X-Mailer: b4 0.10.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Convert the Amlogic Meson6 eFuse bindings to dt-schema. Signed-off-by: Neil Armstrong --- .../bindings/nvmem/amlogic,meson6-efuse.yaml | 64 ++++++++++++++++++++++ .../bindings/nvmem/amlogic-meson-mx-efuse.txt | 22 -------- 2 files changed, 64 insertions(+), 22 deletions(-) diff --git a/Documentation/devicetree/bindings/nvmem/amlogic,meson6-efuse.yaml b/Documentation/devicetree/bindings/nvmem/amlogic,meson6-efuse.yaml new file mode 100644 index 000000000000..232d68d7fbcb --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/amlogic,meson6-efuse.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/amlogic,meson6-efuse.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic Meson6 eFuse + +maintainers: + - Neil Armstrong + - Martin Blumenstingl + +allOf: + - $ref: nvmem.yaml# + +properties: + compatible: + enum: + - amlogic,meson6-efuse + - amlogic,meson8-efuse + - amlogic,meson8b-efuse + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: core + + secure-monitor: + description: phandle to the secure-monitor node + +required: + - compatible + - reg + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + efuse: efuse@0 { + compatible = "amlogic,meson6-efuse"; + reg = <0x0 0x2000>; + clocks = <&clk_efuse>; + clock-names = "core"; + #address-cells = <1>; + #size-cells = <1>; + + sn: sn@14 { + reg = <0x14 0x10>; + }; + + eth_mac: mac@34 { + reg = <0x34 0x10>; + }; + + bid: bid@46 { + reg = <0x46 0x30>; + }; + }; diff --git a/Documentation/devicetree/bindings/nvmem/amlogic-meson-mx-efuse.txt b/Documentation/devicetree/bindings/nvmem/amlogic-meson-mx-efuse.txt deleted file mode 100644 index a3c63954a1a4..000000000000 --- a/Documentation/devicetree/bindings/nvmem/amlogic-meson-mx-efuse.txt +++ /dev/null @@ -1,22 +0,0 @@ -Amlogic Meson6/Meson8/Meson8b efuse - -Required Properties: -- compatible: depending on the SoC this should be one of: - - "amlogic,meson6-efuse" - - "amlogic,meson8-efuse" - - "amlogic,meson8b-efuse" -- reg: base address and size of the efuse registers -- clocks: a reference to the efuse core gate clock -- clock-names: must be "core" - -All properties and sub-nodes as well as the consumer bindings -defined in nvmem.txt in this directory are also supported. - - -Example: - efuse: nvmem@0 { - compatible = "amlogic,meson8-efuse"; - reg = <0x0 0x2000>; - clocks = <&clkc CLKID_EFUSE>; - clock-names = "core"; - }; -- b4 0.10.1