From patchwork Fri May 7 14:01:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 432388 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.4 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 58E19C433ED for ; Fri, 7 May 2021 14:01:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 261A36145E for ; Fri, 7 May 2021 14:01:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237369AbhEGOCq (ORCPT ); Fri, 7 May 2021 10:02:46 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:28992 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237382AbhEGOCZ (ORCPT ); Fri, 7 May 2021 10:02:25 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20210507140115euoutp0182aa1892fdc2a0ff485ac7bd28b2aff7~8zaUfCFch1321713217euoutp01D for ; Fri, 7 May 2021 14:01:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20210507140115euoutp0182aa1892fdc2a0ff485ac7bd28b2aff7~8zaUfCFch1321713217euoutp01D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1620396075; bh=27homzhxtOgQquKIw/0+3LoypE6+9O9g4fIKMDgjxBE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gxsd1cuWhqwR5wOy3zM4kgFoivTnwQLJHz+/lanV2uOIG7Q02aySASmjeoueQ3mDd NcOLJGlNpqYpW+LDSySiodPmadM1KperOq6ZP1CYNImByFCg3y2O3Vn61Z4/viyrp3 hoDrqht7LC63IGccQCoFf35RvYy33BWylPfgwyuo= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20210507140114eucas1p296246a65a9378a29407a8fecd389be22~8zaT7fwaE1975719757eucas1p2V; Fri, 7 May 2021 14:01:14 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id C6.CD.09452.A2845906; Fri, 7 May 2021 15:01:14 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20210507140113eucas1p135a114200d194a8fa9d52987b7725fa4~8zaTeVBbc1676016760eucas1p1j; Fri, 7 May 2021 14:01:13 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20210507140113eusmtrp16d88a8e1a5a2d0bf57d96ce0051b291f~8zaTdeq8G3079830798eusmtrp1d; Fri, 7 May 2021 14:01:13 +0000 (GMT) X-AuditID: cbfec7f2-ab7ff700000024ec-fd-6095482ac8d1 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 94.49.08696.92845906; Fri, 7 May 2021 15:01:13 +0100 (BST) Received: from localhost (unknown [106.120.51.46]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210507140113eusmtip21f63e086457492f0b38ebb264ea5ed88~8zaTORvp02651326513eusmtip2Z; Fri, 7 May 2021 14:01: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 v12 2/3] dt-bindings: net: Add bindings for AX88796C SPI Ethernet Adapter Date: Fri, 7 May 2021 16:01:09 +0200 Message-Id: <20210507140110.6323-3-l.stelmach@samsung.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210507140110.6323-1-l.stelmach@samsung.com> MIME-Version: 1.0 Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCKsWRmVeSWpSXmKPExsWy7djP87paHlMTDC7PELE4f/cQs8XGGetZ Leacb2GxmH/kHKvFovczWC2uvb3DatH/+DWzxfnzG9gtLmzrY7W4eWgFo8Wmx9dYLS7vmsNm MeP8PiaLQ1P3MlqsPXKX3eLYAjGL1r1H2C3+79nB7iDkcfnaRWaPLStvMnnsnHWX3WPTqk42 j81L6j127vjM5NG3ZRWjx+dNcgEcUVw2Kak5mWWpRfp2CVwZV4+ZFZwXrljQ+5OpgXEKfxcj J4eEgIlEc/8f1i5GLg4hgRWMEtu29jFDOF8YJU43tLBAOJ8ZJd4f72OBadl5fj8ziC0ksJxR YvksUYii54wSJ1/8YgJJsAk4SvQvPQE2V0TgHrPE+vYHjCAOs8B9Rol7z1eDtQsLpEg83PEY KMHBwSKgKrF1TzZImFfASuLjl7WsENvkJdqXb2cDsTkFrCUefLrLDlEjKHFy5hOwi/gFtCT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xcjJ4eEgInEzvP7mbsYuTiEBJYy SlztnQTkcAAlpCRWzk2HqBGW+HOtiw2i5imjRPvdu4wgCTYBR4n+pSdYQRIiAm+YJZruvWUH cZgF7jNK/Pr0AqxKWCBJYta9DhaQqSwCqhJb92SDhHkFrCQ+flnLCrFBXqJ9+XY2EJtTwFri wae77CC2EFDNxE2dTBD1ghInZz4BG8MsoC6xfp4QSJhfQEtiTdN1FhCbGWhM89bZzBMYhWYh 6ZiF0DELSdUCRuZVjCKppcW56bnFRnrFibnFpXnpesn5uZsYgfG97djPLTsYV776qHeIkYmD 8RCjBAezkgjv6UWTE4R4UxIrq1KL8uOLSnNSiw8xmgI9NpFZSjQ5H5hg8kriDc0MTA1NzCwN TC3NjJXEeU2OrIkXEkhPLEnNTk0tSC2C6WPi4JRqYJJlfnx1wzqGlXW3L7DqxCxg3jxDemvP qyamySpy+Q9vZD9m397WGK8+64Th7XmapXpW5RNeX6zaqmZu07rxxMxglt+1InN2CHIohL1+ VG67jY2b+1D1ZNXjnPOvHesyO5XfnaZ47U3s1LdLDswKk5H5pMpTKJEuu30P/+Ly09VNhik3 o629F93ofdKdstGTi2W2xt8pEx50PA4WEpHWMRUM+e/YmHVeuHgBj8qFFe5PctLiBA4u2sAk xh257tABy7xvhvHbZqz6/Hb7jRP/rzWG7G29zrM9/9LNldM8n79eLFXXclOfq0ou5pbz4hLb ILYpOR8fHq/m+Wh65IWg+Lvl6T+rPb7POKtauTe2rUaJpTgj0VCLuag4EQCermsweAMAAA== X-CMS-MailID: 20210507140113eucas1p135a114200d194a8fa9d52987b7725fa4 X-Msg-Generator: CA X-RootMTR: 20210507140113eucas1p135a114200d194a8fa9d52987b7725fa4 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20210507140113eucas1p135a114200d194a8fa9d52987b7725fa4 References: <20210507140110.6323-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>; + }; + };