Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp85619imn; Mon, 25 Jul 2022 10:41:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vMx0vFnqmwjVTyZS+ZRdvx2l2A5/dMeuTpeeKl8/ddNxrh56nLbLmZ8DKKLEtyNm+Uto8L X-Received: by 2002:a17:90b:1648:b0:1f2:df01:d714 with SMTP id il8-20020a17090b164800b001f2df01d714mr1993356pjb.157.1658770900446; Mon, 25 Jul 2022 10:41:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658770900; cv=none; d=google.com; s=arc-20160816; b=uNMxeSoh9DTXeL18ZMWyQhF6poIeBurQFPsjVVTiFFqvV+22mQPvR44pTGUU9E553g TZYP+4hklysmgEOQKZhnj6mGtQc6xLMXMJCuq9uOQd+Vu4jYVj3qlV6yMeIauxi2EQMD 8JQC8GpKrQ6E421cAjhfWAM+IrzD4BpZeh9kWOaig/1VNr1OupOOa7CJlk737mjAI4E3 klK4xyEMNH47n9hZDDhNvwsJUKy1YvgsWqvtTx0HP+tnjjotcF0BGM6ZGnl5ZZ9gCkbO VKJLhp8+JSM7PrsAnfVuUs5IpaID24G0ftt3K7KDQ0HqaLYv2ioFnahfTkHAyv8FWnqN +EEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Ags/uMlE+4T6PSoG9+FRe6BAxQvyYH9i8wb2DiPoQtg=; b=Vsp3/GgJtLhs/7mfSwdw74ofzMVNOGM6RVwaqMYHnOAwKOEtXtv0gcv8bcWFFFnMdO VHdpNzmy7GBUuexOCBnUKEh/i4M/jX+vLVN/eRw4xtr1ivasMCsRsxZU9/qeij9omTVl UEkmOV/cx6FTgsch8A8pUfQ52BuyrD85RPxFfWj0OWVZ5GB2y4izLsjrfQm0V35IJzgH IrUZZHSus3NRXaWHhw82HhDOLiJ4budr6bQu6WY5FgnHU33mDd0oRdQFhtRRhNIZiGJV pKGLKWS5lCVf7xNhQdl0Ya5dw7/YJj96t3ROqcAHiUS1jKsGURFIBK7+w2q3643SWNSf Cckg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q6-20020a056a00150600b0051e48426b86si16968967pfu.366.2022.07.25.10.41.25; Mon, 25 Jul 2022 10:41:40 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236379AbiGYQkN (ORCPT + 99 others); Mon, 25 Jul 2022 12:40:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236366AbiGYQkD (ORCPT ); Mon, 25 Jul 2022 12:40:03 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3030F1D0FC; Mon, 25 Jul 2022 09:40:03 -0700 (PDT) Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 26PEsjw2017948; Mon, 25 Jul 2022 12:39:44 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3hgau76c5t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Jul 2022 12:39:44 -0400 Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 26PGdhuT013500 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 25 Jul 2022 12:39:43 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Mon, 25 Jul 2022 12:39:42 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Mon, 25 Jul 2022 12:39:42 -0400 Received: from localhost.localdomain ([10.48.65.12]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 26PGd7uL014141; Mon, 25 Jul 2022 12:39:37 -0400 From: To: CC: , , , , , , , , , , , , , , , Subject: [net-next v2 3/3] dt-bindings: net: adin1110: Add docs Date: Mon, 25 Jul 2022 19:53:12 +0300 Message-ID: <20220725165312.59471-4-alexandru.tachici@analog.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220725165312.59471-1-alexandru.tachici@analog.com> References: <20220725165312.59471-1-alexandru.tachici@analog.com> MIME-Version: 1.0 Content-Type: text/plain X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: CjdHl1LzH5GQoLKv50SA1JQck2MJ3Q0r X-Proofpoint-ORIG-GUID: CjdHl1LzH5GQoLKv50SA1JQck2MJ3Q0r X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-07-25_12,2022-07-25_03,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 bulkscore=0 spamscore=0 priorityscore=1501 lowpriorityscore=0 suspectscore=0 mlxscore=0 clxscore=1015 malwarescore=0 impostorscore=0 mlxlogscore=981 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2207250066 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 From: Alexandru Tachici Add bindings for the ADIN1110/2111 MAC-PHY/SWITCH. Signed-off-by: Alexandru Tachici --- .../devicetree/bindings/net/adi,adin1110.yaml | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/adi,adin1110.yaml diff --git a/Documentation/devicetree/bindings/net/adi,adin1110.yaml b/Documentation/devicetree/bindings/net/adi,adin1110.yaml new file mode 100644 index 000000000000..cc83f08c0a55 --- /dev/null +++ b/Documentation/devicetree/bindings/net/adi,adin1110.yaml @@ -0,0 +1,81 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/adi,adin1110.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ADI ADIN1110 MAC-PHY + +maintainers: + - Alexandru Tachici + +description: | + The ADIN1110 is a low power single port 10BASE-T1L MAC- + PHY designed for industrial Ethernet applications. It integrates + an Ethernet PHY core with a MAC and all the associated analog + circuitry, input and output clock buffering. + + The ADIN2111 is a low power, low complexity, two-Ethernet ports + switch with integrated 10BASE-T1L PHYs and one serial peripheral + interface (SPI) port. The device is designed for industrial Ethernet + applications using low power constrained nodes and is compliant + with the IEEE 802.3cg-2019 Ethernet standard for long reach + 10 Mbps single pair Ethernet (SPE). + + The device has a 4-wire SPI interface for communication + between the MAC and host processor. + +allOf: + - $ref: ethernet-controller.yaml# + +properties: + compatible: + enum: + - adi,adin1110 + - adi,adin2111 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + reg: + maxItems: 1 + + adi,spi-crc: + description: | + Enable CRC8 checks on SPI read/writes. + type: boolean + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include + + spi { + ethernet@0 { + compatible = "adi,adin2111"; + reg = <0>; + spi-max-frequency = <24500000>; + + adi,spi-crc; + + #address-cells = <1>; + #size-cells = <0>; + + interrupt-parent = <&gpio>; + interrupts = <25 IRQ_TYPE_LEVEL_LOW>; + + local-mac-address = [ 00 11 22 33 44 55 ]; + }; + }; -- 2.25.1