From patchwork Tue Jul 27 09:43:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 12402211 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=-19.5 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, URIBL_BLOCKED,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 EE552C4338F for ; Tue, 27 Jul 2021 09:43:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CB3B76139E for ; Tue, 27 Jul 2021 09:43:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236182AbhG0Jnn (ORCPT ); Tue, 27 Jul 2021 05:43:43 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:59639 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236046AbhG0Jnc (ORCPT ); Tue, 27 Jul 2021 05:43:32 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20210727094332euoutp011c02338cb04bb038e66adf86982858fe~VnJbhbztY1972619726euoutp01B for ; Tue, 27 Jul 2021 09:43:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20210727094332euoutp011c02338cb04bb038e66adf86982858fe~VnJbhbztY1972619726euoutp01B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1627379012; bh=27homzhxtOgQquKIw/0+3LoypE6+9O9g4fIKMDgjxBE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fvnBfsrMQWpRpjOG8iCaog0jz7r5E2VE8FBOHbDQbkWHPIx8+AGhEx83c11KyP3bE ipYte80OLbgrAfdRR/2d4/uACMqljKvate+Li2jcxA1Owmgj0CxkAAHJLP8/QBzEzP AnlY9Y1rLGOatHZdfpTVzPgLb03SQR7EXO+z8DNg= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20210727094331eucas1p29dae5e733a06f69aabb4591d54b71986~VnJavmidX3249732497eucas1p2K; Tue, 27 Jul 2021 09:43:31 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 41.70.56448.345DFF06; Tue, 27 Jul 2021 10:43:31 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20210727094330eucas1p1ff05293382ad818fd3127936aac53ca2~VnJaRbXY_1958219582eucas1p1W; Tue, 27 Jul 2021 09:43:30 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20210727094330eusmtrp26793ed6c59466e4850ab6e8b4f1cdb0b~VnJaQbd3r2985529855eusmtrp2E; Tue, 27 Jul 2021 09:43:30 +0000 (GMT) X-AuditID: cbfec7f5-d53ff7000002dc80-31-60ffd5438101 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id D8.05.20981.245DFF06; Tue, 27 Jul 2021 10:43:30 +0100 (BST) Received: from localhost (unknown [106.120.51.46]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20210727094330eusmtip13f1c918e40a68d75da3ba72f944d3f6a~VnJaBJOO_2286222862eusmtip1y; Tue, 27 Jul 2021 09:43:30 +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_Stelmach?= , Rob Herring Subject: [PATCH net-next v15 2/3] dt-bindings: net: Add bindings for AX88796C SPI Ethernet Adapter Date: Tue, 27 Jul 2021 11:43:24 +0200 Message-Id: <20210727094325.9189-3-l.stelmach@samsung.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210727094325.9189-1-l.stelmach@samsung.com> MIME-Version: 1.0 Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKKsWRmVeSWpSXmKPExsWy7djP87rOV/8nGHzaLmhx/u4hZouNM9az Wsw538JiMf/IOVaLRe9nsFpce3uH1aL/8Wtmi/PnN7BbXNjWx2px89AKRotNj6+xWlzeNYfN Ysb5fUwWh6buZbRYe+Quu8WxBWIWrXuPsFv837OD3UHI4/K1i8weW1beZPLYOesuu8emVZ1s HpuX1Hvs3PGZyaNvyypGj8+b5AI4orhsUlJzMstSi/TtErgyrh4zKzgvXLGg9ydTA+MU/i5G Tg4JAROJL89/sXQxcnEICaxglLi3bBszhPOFUaKpow0q85lR4uDu+cwwLYemXWQHsYUEljNK PJjNDVH0nFFiQ98tJpAEm4CjRP/SE6wgCRGBe8wS69sfMII4zAL3gZY8Xw02SlggRWLFl21g HSwCqhLLV0wAG8srYCUxvf0bC8Q6eYn25dvZQGxOAWuJpq5WqBpBiZMzn4DV8AtoSaxpug5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g2eRVbFyMHUEJKYuXcdIgaYYk/17rYIGqeMkrcPDWTHSTBJuAo0b/0BCtIQkTgDbNE0723 YJOYBe4zSvz69IIRpEpYIEniw8n/YDaLgKrE8hUTwLp5Bawkprd/Y4FYIS/Rvnw7G4jNKWAt 0dTVClYjBFTT0XWZBaJeUOLkzCcsINcxC6hLrJ8nBBLmF9CSWNN0HayEGWhM89bZzBMYhWYh 6ZiF0DELSdUCRuZVjCKppcW56bnFRnrFibnFpXnpesn5uZsYgRG+7djPLTsYV776qHeIkYmD 8RCjBAezkgivw4rfCUK8KYmVValF+fFFpTmpxYcYTYE+m8gsJZqcD0wxeSXxhmYGpoYmZpYG ppZmxkrivCZH1sQLCaQnlqRmp6YWpBbB9DFxcEo1MM2+kF1y9oXj6iSTM7Z5v00PWV+6u4Nn blCzg7D8vGNnV+f6R+eJPDjzcFO9kvTcl59l+C2WJOcoG3ttVn50XPNnv/2dFCF77a+pDK9u 971dMVEjW/UiY+dO1qtrBNZ8kl2xaeFrgQxNrhrv6V0Ldmb9Z9h6XLG7dF/SX2GZRy4yWdbT MzPNVHniV9n1npYpX6M4uW2DTyjjmsqLk7zfJF+3fVEfM+ex7V8x9S9P9y46sFNywveGPiZD wwKBm4brqlYfUrn/TMLC85fgq9v2j3Zdsl+ua1fH/tckcone2fiDC5d8KTZ1OnMp2/jO5uYq Txm2gJY9FtezFPextdXaVZxNOOe+3bnr4uXZ/V82mimxFGckGmoxFxUnAgCFOtITeQMAAA== X-CMS-MailID: 20210727094330eucas1p1ff05293382ad818fd3127936aac53ca2 X-Msg-Generator: CA X-RootMTR: 20210727094330eucas1p1ff05293382ad818fd3127936aac53ca2 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20210727094330eucas1p1ff05293382ad818fd3127936aac53ca2 References: <20210727094325.9189-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>; + }; + };