From patchwork Thu Jun 1 05:45:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Shubin X-Patchwork-Id: 101732 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp73913vqr; Wed, 31 May 2023 22:55:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6MgDD22Az1NgVfJCIGT3MVZkjI7ic7+VY2C+L1pVZ2Xf8M1knnJgc5ajDp/AmnngMWYlaT X-Received: by 2002:a17:903:1105:b0:1ac:8cd4:7404 with SMTP id n5-20020a170903110500b001ac8cd47404mr8807085plh.35.1685598940208; Wed, 31 May 2023 22:55:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685598940; cv=none; d=google.com; s=arc-20160816; b=DO0KQoCSvymW42ExeOdm+mk0/9PLIfLJ0RbTYB9DX7tXoF/f5chD44/NOTATBLRLi8 NYTtu+xo5uGfemTKgLMEQNyneWX1hZiB3zi30vRBFPayiNuA6gtdi2zoz90W+vml7PoW zIZsWCBPorN4LRHtKidCrnpu5j+DGbdfuk+fRo6ekDN0jwBXJku30NIUdPKLrvjtL0GR 34eN9KCAS4XXDCg6Kva1eeoEu/dyDkEOTI1zAldBazkhTRFxNyWE8w7UYtW44kjnUWFt fhfj/jFF8fWJlVY3fAa+2Aqf8P9iweMoyyeovxJy/SUB5tqdh2kK3xsbI4TRT72MxR32 cDYA== 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=0YJKTt4qnbyh+8Nwc8VCqPNAqMn97qfUdg5Z1sSgti8=; b=Zl1EXpwwSiPG3g4NQ6z2uEETDSwBvTVb7oMcrKgNDGaun8/j38vHpjqXhwdniKIb5L p3TWzyuSUI2c33M/fPAXwhAjpn+Qcji1fPmEjuqr8sJN2ZNwYKjZpjfPo3KR3St2jDMY 4FtOiiRpcqvpi0GjybeHW3dBB7jerD2IjKaglddtwcyv2ez48HsNs78n24FFejnN5mHO iRMqHn7ZExbfAthuYvZaU4+f3yuYY6aLv0D29ajSVuk+tt38esY49Tjpmn8+XWc+EGTe TYNLDWAUiEiOWTDyvxDvs1CICV6k+K6BUQj87Xka7i17/XxT4LQrCnf/0Xw2RlTbGPl+ HWHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b="E/qpELlm"; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iw19-20020a170903045300b001a994803b1csi1332530plb.19.2023.05.31.22.55.28; Wed, 31 May 2023 22:55: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; dkim=pass header.i=@maquefel.me header.s=mail header.b="E/qpELlm"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231310AbjFAFp7 (ORCPT + 99 others); Thu, 1 Jun 2023 01:45:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230174AbjFAFp5 (ORCPT ); Thu, 1 Jun 2023 01:45:57 -0400 Received: from forward100a.mail.yandex.net (forward100a.mail.yandex.net [178.154.239.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 611759D; Wed, 31 May 2023 22:45:55 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1f:5e51:0:640:23ee:0]) by forward100a.mail.yandex.net (Yandex) with ESMTP id 528BA46CDA; Thu, 1 Jun 2023 08:45:53 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id pjGDMhnDduQ0-2mCnHApf; Thu, 01 Jun 2023 08:45:52 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1685598352; bh=0YJKTt4qnbyh+8Nwc8VCqPNAqMn97qfUdg5Z1sSgti8=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=E/qpELlmZlEJXkhHcS4wFmaVrPRw4CGI99dPGlmt8XyMZssVUPpqhtQs6llLjbzQu yodjbyrfBOMHRYJZ6amkIjNLiD9D9iLvk0OgcBtyLJiFfqf4Wid1bB5W4vhR9SvrJb mMsH4z75Gl2QMNUij4Wn9I38hWGLCyJNfAFfcIWU= Authentication-Results: mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net; dkim=pass header.i=@maquefel.me From: Nikita Shubin To: Alexander Sverdlin , Arnd Bergmann , Linus Walleij , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Nikita Shubin Cc: Michael Peters , Kris Bahnsen , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 19/43] dt-bindings: net: Add Cirrus EP93xx Date: Thu, 1 Jun 2023 08:45:24 +0300 Message-Id: <20230601054549.10843-1-nikita.shubin@maquefel.me> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20230424123522.18302-1-nikita.shubin@maquefel.me> References: <20230424123522.18302-1-nikita.shubin@maquefel.me> MIME-Version: 1.0 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,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?1767478594724603431?= X-GMAIL-MSGID: =?utf-8?q?1767478594724603431?= Add YAML bindings for ep93xx SoC Ethernet Controller. Signed-off-by: Nikita Shubin --- Notes: v0 -> v1: - replaced maintainers - fixed title Rob Herring: - reference ethernet-controller.yaml - s/eth/ethernet/ Andrew Lunn: - dropped copy_addr - use phy-handle instead of using non-conventional phy-id Krzysztof Kozlowski: - removed wildcards - use fallback compatible and list all possible compatibles - dropped label - fix ident .../bindings/net/cirrus,ep9301-eth.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/cirrus,ep9301-eth.yaml diff --git a/Documentation/devicetree/bindings/net/cirrus,ep9301-eth.yaml b/Documentation/devicetree/bindings/net/cirrus,ep9301-eth.yaml new file mode 100644 index 000000000000..580316f33187 --- /dev/null +++ b/Documentation/devicetree/bindings/net/cirrus,ep9301-eth.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/cirrus,ep9301-eth.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: EP93xx SoC Ethernet Controller + +maintainers: + - Alexander Sverdlin + - Nikita Shubin + +allOf: + - $ref: ethernet-controller.yaml# + +properties: + compatible: + oneOf: + - const: cirrus,ep9301-eth + - items: + - enum: + - cirrus,ep9302-eth + - cirrus,ep9307-eth + - cirrus,ep9312-eth + - cirrus,ep9315-eth + - const: cirrus,ep9301-eth + + reg: + items: + - description: The physical base address and size of IO range + + interrupts: + items: + - description: Combined signal for various interrupt events + + phy-handle: true + + mdio: + $ref: mdio.yaml# + unevaluatedProperties: false + description: optional node for embedded MDIO controller + +required: + - compatible + - reg + - interrupts + - phy-handle + +additionalProperties: false + +examples: + - | + ethernet@80010000 { + compatible = "cirrus,ep9301-eth"; + reg = <0x80010000 0x10000>; + interrupt-parent = <&vic1>; + interrupts = <7>; + phy-handle = <&phy0>; + }; + +...