Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1657979rdb; Sun, 19 Nov 2023 05:26:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IGt+hA39jxb7Y8c745X32K6lT4pMEznG3xpWvyy2lzZ+pnsF8sCpzHO/AaUIFbnGrc7rVWV X-Received: by 2002:a05:6a20:4429:b0:188:75c:e69a with SMTP id ce41-20020a056a20442900b00188075ce69amr6968480pzb.4.1700400386013; Sun, 19 Nov 2023 05:26:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700400385; cv=none; d=google.com; s=arc-20160816; b=SMEOaiJPogopJbek0TWUCU3CwV5VdOPNHCytqkgO7CYOwtQlVQM04fI2tWz+Qtotdc 5MWzQZg1i/OJxbFiU2Zv2CwlLFYejtDLX/YWhWWx3jrBaARQRCcEmId6cZlOIvyn/HUC +YBQfzf0lF8nGfTqbnQQIUX7nXlHK1VJzYxeLMf/WK/jVdqRFAFlfnV6/13kZxY/BJHj oCeYXwpBrSXHS0gI/Xi0MWDPvRiSWiCnlfKMEhwHPpnAGL97Zi8ROpEnrZ634Md9L3c9 CyuIZCJOZgQZMPAblmKPeEGji8gk47+MFCihcOLAeSr4v2PR4ABjPkQ6G461eKykkn1b YXBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XJsB/1u2klEcw8ogQG7Qk7a8Zg1OeBogdcAthPKSvN4=; fh=QOXzc0jzHScFsS/HivTQq27dVg7pcIBOIWuB/9pJlTU=; b=yIJPUW0/MrL9fMAfDXt7XxCZQtYD1DM3V7Vjp11lqymmSLmL/LRIYx0NiE1oQT3IMn BBcjTRjQC9xM/jDlWob5YGm47BXeiUkkvNm1tvxiMpWHzSRMKPBnONg0GoHRpzS8P9gP v2wXAGnbd7Qy5wgBwcsdVcm4anjqWh51CgemkKgYtbbJ+cajioAiWh5fhLbuZeVRqyz5 oHo79HUYeOxiIVwMYz9PCwnSGcU7u+/VXRAq86f8JCY3YivyXX8KbXDrPDH6k/zSV0g7 nEes3I2Yhnp5NNTFNmJZAi56dkOJc/TtFVzAZ/scxhB/kQKnMFzArM0HwhNTBnmgElhI 9iQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UFFfua7e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id k26-20020a63561a000000b005bd3d377a54si6150093pgb.123.2023.11.19.05.26.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 05:26:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UFFfua7e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 507A8807C56B; Sun, 19 Nov 2023 05:26:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231218AbjKSN0C (ORCPT + 99 others); Sun, 19 Nov 2023 08:26:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231208AbjKSN0B (ORCPT ); Sun, 19 Nov 2023 08:26:01 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D276133 for ; Sun, 19 Nov 2023 05:25:57 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B534C433C9; Sun, 19 Nov 2023 13:25:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700400357; bh=EAoI1oPVY8eW/ZcDNqHuO5UMxZXaN5+c4qTncpj4H+c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UFFfua7e9Mb5DN9dWT4E5HE4L3nheij1HYoo6gzkEEGODsAmMsK1TbnTR/xwe1NFl q88cK0bU3qLLGYlP3fcE5ob0rTvm7IWzlJpdu9mA6qQQ+nrpk/teL4F/EZqDSQ15Ut nx5CMSChPY7E6cZkYW5k/NO4T5TjRj82VOsxUOVlZynpl9vwexAjctqef815jghD62 Jv1KrffsfGR195TNCZbR/sOFd6C+FuJ/KqeejGG2eAjlQZVqG/DqPjNLW1cNtZiBH0 w8pHEyHZ2CHVtRQ+VN7oDIYIVlT1RIcpvGsuJ+FOwm1sgD4GM45yblUByAK7mj6pJF ahW/wTrbz487w== From: Jisheng Zhang To: Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Chao Wei , Chen Wang Subject: [PATCH 1/2] dt-bindings: nvmem: Add sophgo,efuses Date: Sun, 19 Nov 2023 21:13:31 +0800 Message-Id: <20231119131332.999-2-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20231119131332.999-1-jszhang@kernel.org> References: <20231119131332.999-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 19 Nov 2023 05:26:23 -0800 (PST) Sophgo SoCs such as CV1800B come with eFuses used to store factory-programmed data such as calibration settings for the built-in ethernet PHY. Signed-off-by: Jisheng Zhang --- .../bindings/nvmem/sophgo,efuse.yaml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/sophgo,efuse.yaml diff --git a/Documentation/devicetree/bindings/nvmem/sophgo,efuse.yaml b/Documentation/devicetree/bindings/nvmem/sophgo,efuse.yaml new file mode 100644 index 000000000000..e4ae81a1742a --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/sophgo,efuse.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/sophgo,efuse.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sophgo SoC eFuse-based NVMEM + +description: | + Sophgo SoCs such as the CV1800B contain factory-programmed eFuses used to e.g. store + calibration data for the built-in ethernet PHY. +maintainers: + - Jisheng Zhang + +allOf: + - $ref: nvmem.yaml# + - $ref: nvmem-deprecated-cells.yaml# + +properties: + compatible: + items: + - enum: + - sophgo,cv1800b-efuse + + reg: + maxItems: 1 + + clocks: + description: + eFuse clock id. + maxItems: 1 + +required: + - compatible + - reg + - clocks + +unevaluatedProperties: false + +examples: + - | + efuse@3050000 { + compatible = "sophgo,cv1800b-efuse"; + reg = <0x3050000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + clocks = <&clk 1>; + + ephy_txitune: ephy-txitune@24 { + reg = <0x24 0x4>; + }; + }; + +... -- 2.42.0