From patchwork Fri Oct 2 19:22:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 11814507 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B4A42112C for ; Fri, 2 Oct 2020 19:24:11 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 86E75206DB for ; Fri, 2 Oct 2020 19:24:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="dMzbSRRp"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="Vn59qbxH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 86E75206DB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:MIME-Version:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=pa6rT5EJereNbSYeuDbC9jkhI6cOjJtXPhaYwNJ4u6c=; b=dMzbSRRp3bbJJR1ubafGWH+hk Ie29tQqp4TcvlDTPP9TxpfpMynPQaZEn3eHYXjeXQVDWQhoYUu8NIWCycna10aGIJWurR1cVKeoby SFXAMAsvywUja/Yxl7FDn8KNS8dGOuWRnddca6Y7agHnFJnZVW55/cpJepDFQ2BC+t6+6nm4CbsoF +g/xs/QhMHh99yj64kg+uZhDux3xqxisD2xTkPaGCB1AX5wKMMfDigPK2ylVc+g9L3kA+IrpjEJGE oahyRD34Uegs7BjrFJqlIpO9rIILa/+iLLShPhF76WrHr75WiwOkaWHkNJweGpD0wN/wxs5EftqNQ rOMcDK8Tg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kOQdf-0008MH-9R; Fri, 02 Oct 2020 19:22:43 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kOQdG-0008AP-VG for linux-arm-kernel@lists.infradead.org; Fri, 02 Oct 2020 19:22:22 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20201002192216euoutp029d76e710f0b1a6b2f8b88e21055add20~6QzqyB3iY0075300753euoutp02R for ; Fri, 2 Oct 2020 19:22:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20201002192216euoutp029d76e710f0b1a6b2f8b88e21055add20~6QzqyB3iY0075300753euoutp02R DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1601666536; bh=fKNIzhnGzJdvS5RU/Nj7qeDTjzN/JzjzeSMvxgS0jug=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vn59qbxHxpubVW1Y6ZL2Pn5f1UQZvno4J1csWo4tvMlcCUN2owM2GWM31v6xIpZoM FAtl0i9D3X0bQVjFXtOy5rnxGS2SKTaiOSPhuq2E/HxcaL2JfMopvAgdJN6A5sx57D uveLPaq9t0JAL9PNP048YTcR8+MvQpBspfWOEVE8= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20201002192216eucas1p2fedd19b6a8ab63f62dac20b9914efae1~6QzqNwkBs1913419134eucas1p2n; Fri, 2 Oct 2020 19:22:16 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 5D.37.06318.8ED777F5; Fri, 2 Oct 2020 20:22:16 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20201002192215eucas1p2c1d2baebfe2a9caa11d88175a2899fea~6Qzp5Usdx1922419224eucas1p2q; Fri, 2 Oct 2020 19:22:15 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20201002192215eusmtrp2b96bec70f05e6c69c5f07b79106819e8~6Qzp4n3td3070930709eusmtrp26; Fri, 2 Oct 2020 19:22:15 +0000 (GMT) X-AuditID: cbfec7f5-371ff700000018ae-22-5f777de8aef7 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 95.3F.06314.7ED777F5; Fri, 2 Oct 2020 20:22:15 +0100 (BST) Received: from localhost (unknown [106.120.51.46]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20201002192215eusmtip15019de3bb672fd09c81028ca4f3c2987~6QzpqllvK3257332573eusmtip18; Fri, 2 Oct 2020 19:22:15 +0000 (GMT) From: =?utf-8?q?=C5=81ukasz_Stelmach?= To: "David S. Miller" , Jakub Kicinski , Krzysztof Kozlowski , Kukjin Kim , Rob Herring , Russell King , Andrew Lunn , jim.cromie@gmail.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 1/4] dt-bindings: net: Add bindings for AX88796C SPI Ethernet Adapter Date: Fri, 2 Oct 2020 21:22:07 +0200 Message-Id: <20201002192210.19967-2-l.stelmach@samsung.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201002192210.19967-1-l.stelmach@samsung.com> MIME-Version: 1.0 Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA02Sf0zMcRjHfe77s1unr6vp2TG2E5v8KIo+lsnPORub/2xMufTd1fqh3ZVk syikWzryo5wo1e1OpFSOisx1iuGOlX5RWG04XeFixHDfvhr/vd+f5/U87+fZPiwh76EUbEJK Gq9NUScpaSlpbfvuWPTuQEZMaPU4g539NgJfL66hcInzMIlL7Q4Kd7lfUtgw+IHATmctg59a Cyjca7MgXDfYReGOphIaFztbJNh25g7C1fZ+BreVTcdH7tiZ1Zyqo+sZoWq43CtRNRr7GVVd VR6tqq/MUjXe8khUBQ1VSOWpm7WV3S5dGccnJezltSGrdknjmwsjUu/DvksDV+iDqMFfj3xY 4MLBVe8m9EjKyjkLghbjIUo0YwiGersZ0Xi8lVwLmmzpH2n/S5kRfMwRCoJ5i6Bz7AslUDS3 BgymBxNUAGclYLi+nBQMwbUgaBw4TQiUP7cdzCN3GUGT3FxwjRZPZMi4SHjX3SkR82ZDrvkm LWgfbiU0ZdcyIjMNHp4bIgXtxwXD1ezuCU14+Zwb5ydOAi6PhV7Tc1octB7GCyyEqP3B1d7A iHom/G4s9YaxXp0FpwqXi735CKwl30iRiYSXjnFaYAhuPtQ0hYj4GjhX7SfKqdDjniZuMBUK rUWE+CyDY0fl4owguGa4/XeeAo67LOgEUhr/u8X43/7Gf1FliKhCgXy6LlnD68JS+IzFOnWy Lj1Fs3j3nuQ65P1vj361f7mFWn7G2hDHIqWvjA3NiJFT6r26zGQbApZQBsjWPnkULZfFqTP3 89o9Mdr0JF5nQzNYUhkoCyt/v1POadRpfCLPp/LayaqE9VEcRFkmPZXmLhrqVHyq8Phd6HRs fNq6Sr/D93xE+IK7UV+j3YcdsXFB9RX0ifYf80K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d6ddnLa7 Zs/enpUuSkosxRmJhlrMRcWJAI7NKEX8AgAA X-CMS-MailID: 20201002192215eucas1p2c1d2baebfe2a9caa11d88175a2899fea X-Msg-Generator: CA X-RootMTR: 20201002192215eucas1p2c1d2baebfe2a9caa11d88175a2899fea X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20201002192215eucas1p2c1d2baebfe2a9caa11d88175a2899fea References: <20201002192210.19967-1-l.stelmach@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201002_152219_155106_6E9DCD8B X-CRM114-Status: GOOD ( 20.78 ) X-Spam-Score: -5.2 (-----) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-5.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [210.118.77.12 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [210.118.77.12 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marek Szyprowski , =?utf-8?q?=C5=81ukasz_Stelm?= =?utf-8?q?ach?= , =?utf-8?q?Bart=C5=82omiej_=C5=BBo?= =?utf-8?q?lnierkiewicz?= Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add bindings for AX88796C SPI Ethernet Adapter. Signed-off-by: Łukasz Stelmach --- .../bindings/net/asix,ax88796c-spi.yaml | 76 +++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + 2 files changed, 78 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/asix,ax88796c-spi.yaml diff --git a/Documentation/devicetree/bindings/net/asix,ax88796c-spi.yaml b/Documentation/devicetree/bindings/net/asix,ax88796c-spi.yaml new file mode 100644 index 000000000000..50a488d59dbf --- /dev/null +++ b/Documentation/devicetree/bindings/net/asix,ax88796c-spi.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/asix,ax88796c-spi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ASIX AX88796C SPI Ethernet Adapter + +allOf: + - $ref: ethernet-controller.yaml# + +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 a SPI controller, hence + all mandatory properties described in ../spi/spi-bus.txt must be specified. + +maintainers: + - Łukasz Stelmach + +properties: + compatible: + const: asix,ax99796c-spi + + reg: + description: + SPI device address. + maxItems: 1 + + spi-max-frequency: + maximum: 40000000 + + interrupts: + description: + GPIO interrupt to which the chip is connected. + maxItems: 1 + + interrupt-parrent: + description: + A phandle of an interrupt controller. + 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 + - interrupt-parrent + - reset-gpios + +examples: + # Artik5 eval board + - | + ax88796c@0 { + compatible = "asix,ax88796c"; + 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>; + reg = <0x0>; + reset-gpios = <&gpe0 2 GPIO_ACTIVE_LOW>; + controller-data { + samsung,spi-feedback-delay = <2>; + }; + }; diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 2baee2c817c1..5ce5c4a43735 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -117,6 +117,8 @@ patternProperties: description: Asahi Kasei Corp. "^asc,.*": description: All Sensors Corporation + "^asix,.*": + description: ASIX Electronics Corporation "^aspeed,.*": description: ASPEED Technology Inc. "^asus,.*":