From patchwork Mon Jul 19 19:28:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 480244 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-20.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F1F5C07E9D for ; Mon, 19 Jul 2021 22:57:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 38C7B6113A for ; Mon, 19 Jul 2021 22:57:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236678AbhGSWQR (ORCPT ); Mon, 19 Jul 2021 18:16:17 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:51318 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385218AbhGSSwF (ORCPT ); Mon, 19 Jul 2021 14:52:05 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20210719192915euoutp0155fac45ee8c70bcd4780aef9cbaf40c9~TR_jcRTiM1235212352euoutp01J for ; Mon, 19 Jul 2021 19:29:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20210719192915euoutp0155fac45ee8c70bcd4780aef9cbaf40c9~TR_jcRTiM1235212352euoutp01J DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1626722955; bh=27homzhxtOgQquKIw/0+3LoypE6+9O9g4fIKMDgjxBE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iD1REVptyDUZ/Zjs6dOS56FtvF2BUb2OZ6wxaSPG0oH7UILBu3rIz79G1IQsqBHG0 NXIKKtQ6guApCvm/7Uy8MJm3zdxqyMpemeRQTxa+529n+IMtU+xtGG8NLLP1ZnbcXN 2BOPNXtm33dUaEVmjPtvw/BWHxh6nvG8ZhCYevQA= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20210719192914eucas1p10bc584d300209c1063fe205a5b30061a~TR_iPnZb02583725837eucas1p1K; Mon, 19 Jul 2021 19:29:14 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id BF.0C.56448.A82D5F06; Mon, 19 Jul 2021 20:29:14 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20210719192913eucas1p22ebe775ac3f40af0184a6569e6e869f3~TR_hP3Rz12864628646eucas1p2J; Mon, 19 Jul 2021 19:29:13 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20210719192913eusmtrp21cdfa6e7305cdfc6be1d469ac4f90199~TR_hPF1n52699226992eusmtrp2b; Mon, 19 Jul 2021 19:29:13 +0000 (GMT) X-AuditID: cbfec7f5-d3bff7000002dc80-82-60f5d28a6288 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id FC.DC.20981.982D5F06; Mon, 19 Jul 2021 20:29:13 +0100 (BST) Received: from localhost (unknown [106.120.51.46]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210719192913eusmtip2a81ef80b5e8c795df594d2f46bed8c02~TR_hBT65D1148611486eusmtip2-; Mon, 19 Jul 2021 19:29:13 +0000 (GMT) From: =?utf-8?q?=C5=81ukasz_Stelmach?= To: Andrew Lunn , jim.cromie@gmail.com, Heiner Kallweit , "David S. Miller" , Jakub Kicinski , Rob Herring , Kukjin Kim , Krzysztof Kozlowski , Russell King , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: =?utf-8?q?Bart=C5=82omiej_=C5=BBolnierkiewicz?= , Marek Szyprowski , =?utf-8?q?=C5=81ukasz_St?= =?utf-8?q?elmach?= , Rob Herring Subject: [PATCH net-next v14 2/3] dt-bindings: net: Add bindings for AX88796C SPI Ethernet Adapter Date: Mon, 19 Jul 2021 21:28:51 +0200 Message-Id: <20210719192852.27404-3-l.stelmach@samsung.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210719192852.27404-1-l.stelmach@samsung.com> MIME-Version: 1.0 Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKKsWRmVeSWpSXmKPExsWy7djPc7pdl74mGLx5LW1x/u4hZouNM9az Wsw538JiMf/IOVaLRe9nsFpce3uH1aL/8Wtmi/PnN7BbXNjWx2px89AKRotNj6+xWlzeNYfN Ysb5fUwWh6buZbRYe+Quu8WxBWIWrXuPsFv837OD3UHI4/K1i8weW1beZPLYOesuu8emVZ1s HpuX1Hvs3PGZyaNvyypGj8+b5AI4orhsUlJzMstSi/TtErgyrh4zKzgvXLGg9ydTA+MU/i5G Tg4JAROJp2tmsnQxcnEICaxglPj25h87hPOFUWLtk/tMEM5nRom901cywrSsvPiGGSKxnFFi avcqVgjnOaPEiuanzCBVbAKOEv1LT4AlRATuMUusb3/ACOIwC9xnlLj3fDVQFQeHsECKxJF7 jiANLAKqEle+rGIBsXkFrCV+Tm9hhlgnL9G+fDsbiM0pY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ydTA+MU/i5GTg4JAROJlRffMHcxcnEICSxl lNhxrp+xi5EDKCElsXJuOkSNsMSfa11sEDVPGSU+bVrJCpJgE3CU6F96ghUkISLwhlmi6d5b dhCHWeA+o8SvTy8YQaqEBZIkNr5+zwRiswioSlz5sooFxOYVsJb4Ob2FGWKFvET78u1sIDan gI3E3A9P2ECuEAKqWb07AKJcUOLkzCcsIGFmAXWJ9fOEQML8AloSa5qug01kBprSvHU28wRG oVlIOmYhdMxCUrWAkXkVo0hqaXFuem6xkV5xYm5xaV66XnJ+7iZGYHxvO/Zzyw7Gla8+6h1i ZOJgPMQowcGsJMKrUvQ1QYg3JbGyKrUoP76oNCe1+BCjKdBjE5mlRJPzgQkmryTe0MzA1NDE zNLA1NLMWEmc1+TImnghgfTEktTs1NSC1CKYPiYOTqkGpn41TrM1e22DFuwqlXxyfIuX9c8b H6t8/dZ518iF7y7cfexVueqnr6b6IuorPA7bi2w2Fg97djVox6q3anFL+Pl/5fWask9hMK3M 2Lll54XJ7kuZvm0+r/R+8teCyP8vzs/z6aoMO/dltuKMnffKNBVD2nq3SkROMo2d9M126vGu d1cMJm8ouW58Z/ep90f63z9lrf123MXedy9fdMX/uE8inddn1T15s3V/1OEs392Oop++LuJn eSax5M2xZwo5D5QrPqQXvJVKXtspOuNbjNvzBVH5W2rConmvnkzlm/zL0feE6sFzX39PuNn3 UPJRu8okx6p/Ly28rkSw1LzbfkLwx9wcO7lcca7mEMvZK34psRRnJBpqMRcVJwIAwEC+fHgD AAA= X-CMS-MailID: 20210719192913eucas1p22ebe775ac3f40af0184a6569e6e869f3 X-Msg-Generator: CA X-RootMTR: 20210719192913eucas1p22ebe775ac3f40af0184a6569e6e869f3 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20210719192913eucas1p22ebe775ac3f40af0184a6569e6e869f3 References: <20210719192852.27404-1-l.stelmach@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Add bindings for AX88796C SPI Ethernet Adapter. Signed-off-by: Łukasz Stelmach Reviewed-by: Rob Herring Acked-by: Krzysztof Kozlowski --- .../bindings/net/asix,ax88796c.yaml | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/asix,ax88796c.yaml diff --git a/Documentation/devicetree/bindings/net/asix,ax88796c.yaml b/Documentation/devicetree/bindings/net/asix,ax88796c.yaml new file mode 100644 index 000000000000..699ebf452479 --- /dev/null +++ b/Documentation/devicetree/bindings/net/asix,ax88796c.yaml @@ -0,0 +1,73 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/asix,ax88796c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ASIX AX88796C SPI Ethernet Adapter + +maintainers: + - Łukasz Stelmach + +description: | + ASIX AX88796C is an Ethernet controller with a built in PHY. This + describes SPI mode of the chip. + + The node for this driver must be a child node of an SPI controller, + hence all mandatory properties described in + ../spi/spi-controller.yaml must be specified. + +allOf: + - $ref: ethernet-controller.yaml# + +properties: + compatible: + const: asix,ax88796c + + reg: + maxItems: 1 + + spi-max-frequency: + maximum: 40000000 + + interrupts: + maxItems: 1 + + reset-gpios: + description: + A GPIO line handling reset of the chip. As the line is active low, + it should be marked GPIO_ACTIVE_LOW. + maxItems: 1 + + local-mac-address: true + + mac-address: true + +required: + - compatible + - reg + - spi-max-frequency + - interrupts + - reset-gpios + +additionalProperties: false + +examples: + # Artik5 eval board + - | + #include + #include + spi0 { + #address-cells = <1>; + #size-cells = <0>; + + ethernet@0 { + compatible = "asix,ax88796c"; + reg = <0x0>; + local-mac-address = [00 00 00 00 00 00]; /* Filled in by a bootloader */ + interrupt-parent = <&gpx2>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + spi-max-frequency = <40000000>; + reset-gpios = <&gpe0 2 GPIO_ACTIVE_LOW>; + }; + };