From patchwork Mon Jan 25 16:54:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 12045391 X-Patchwork-Delegate: kuba@kernel.org 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.0 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=ham 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 6F801C4332D for ; Tue, 26 Jan 2021 05:24:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 43E36229C4 for ; Tue, 26 Jan 2021 05:24:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732526AbhAZFY0 (ORCPT ); Tue, 26 Jan 2021 00:24:26 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:40182 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729139AbhAYQzV (ORCPT ); Mon, 25 Jan 2021 11:55:21 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20210125165423euoutp01a5214dc6b8473fd33b1898244bf2db4e~dh_Xk84dz1860418604euoutp01U for ; Mon, 25 Jan 2021 16:54:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20210125165423euoutp01a5214dc6b8473fd33b1898244bf2db4e~dh_Xk84dz1860418604euoutp01U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1611593663; bh=27homzhxtOgQquKIw/0+3LoypE6+9O9g4fIKMDgjxBE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iIf7UYTIH5IDCW+fbwT4b49jWJVb2q6Xa34mLdc0Hrr0bwihhdcR/AY4SmHO5x4vG 0BYLGOkBqUlnk7OS3QabvVVDygLucPZ/Xc5jZpBTYXiAOxT4qFwB64sF+anAFzSra/ fu//+o0cbSXzu/hkoJFYHRnTKQQdCnaiiOsUogOY= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20210125165422eucas1p297009fa0b2a769716bde6b409b0c6cd8~dh_W1YjJ41974219742eucas1p2i; Mon, 25 Jan 2021 16:54:22 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id F7.BF.45488.EB7FE006; Mon, 25 Jan 2021 16:54:22 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20210125165421eucas1p16dc1839cfabb66a1049b92daf0c7d483~dh_Wefovo2390323903eucas1p1H; Mon, 25 Jan 2021 16:54:21 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20210125165421eusmtrp2ae4537855e94205cf444148ac71d11ad~dh_WdzYlC0209902099eusmtrp2E; Mon, 25 Jan 2021 16:54:21 +0000 (GMT) X-AuditID: cbfec7f5-c5fff7000000b1b0-35-600ef7bee532 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 0D.D5.21957.DB7FE006; Mon, 25 Jan 2021 16:54:21 +0000 (GMT) Received: from localhost (unknown [106.120.51.46]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210125165421eusmtip2b1638da4f06d38dfd36bb10f31a1c214~dh_WM4J3Q2870728707eusmtip2B; Mon, 25 Jan 2021 16:54:21 +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 v11 2/3] dt-bindings: net: Add bindings for AX88796C SPI Ethernet Adapter Date: Mon, 25 Jan 2021 17:54:05 +0100 Message-Id: <20210125165406.9692-3-l.stelmach@samsung.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210125165406.9692-1-l.stelmach@samsung.com> MIME-Version: 1.0 Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKKsWRmVeSWpSXmKPExsWy7djP87r7vvMlGFzr57c4f/cQs8XGGetZ Leacb2GxmH/kHKvFovczWC2uvb3DatH/+DWzxfnzG9gtLmzrY7W4eWgFo8Wmx9dYLS7vmsNm MeP8PiaLQ1P3MlqsPXKX3eLYAjGL1r1H2C3+79nB7iDkcfnaRWaPLStvMnnsnHWX3WPTqk42 j81L6j127vjM5NG3ZRWjx+dNcgEcUVw2Kak5mWWpRfp2CVwZV4+ZFZwXrljQ+5OpgXEKfxcj J4eEgInEgSOrGLsYuTiEBFYwSuw4cYgFwvnCKHFr5mo2COczo8SpF6tZYFo2PloDZgsJLGeU WD3DDqLoOaPE3Jt3mEESbAKOEv1LT7CCJEQE7jFLrG9/ALaEWeA+o8S956vBqoQFoiX+9rcz gdgsAqoSJ9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QyNzWOt jEyV9O1sUlJzMstSi/TtEvQyrh4zKzgvXLGg9ydTA+MU/i5GTg4JAROJjY/WsHQxcnEICSxl lDix/xdTFyMHUEJKYuXcdIgaYYk/17rYIGqeMkpsfP2BHSTBJuAo0b/0BCtIQkTgDbNE0723 7CAOs8B9Rolfn14wglQJC0RKbD/zlRnEZhFQlTjRfoUVxOYVsJJ48H4jM8QKeYn25dvZQGxO AWuJJ4fnM4HYQkA1519+Y4OoF5Q4OfMJC8h1zALqEuvnCYGE+QW0JNY0XWcBsZmBxjRvnc08 gVFoFpKOWQgds5BULWBkXsUoklpanJueW2yoV5yYW1yal66XnJ+7iREY4duO/dy8g3Heq496 hxiZOBgPMUpwMCuJ8O7W40kQ4k1JrKxKLcqPLyrNSS0+xGgK9NlEZinR5HxgiskriTc0MzA1 NDGzNDC1NDNWEufdOndNvJBAemJJanZqakFqEUwfEwenVAPToq/PL976f+9T2i1rZlerJ+J3 JNgZdt45tXy7+uXNDyTcbqxZJSvcFFSr5B7IbbP86xyfwpo/Ek+u3wjwLytRXcv1ZaL/Zpa7 Zbne89f/mOWdW1V6wLrxudCenw8qfYynKDXo1ihYcNRra029GH77j8z/N4y8czK1X0xqb9uU 4Kp7TOPnQ9N/X69qmalWiSqmCpqav5rBeeHU0myRiYZPnxVrnWxbn5xt+cf5jPTc1a3fOefG pDG63m+5wfE1dd+DcNYZU6NO7zoe8LjN2zKXSTv7tvCDt4nKsz5eP1TpdXzRo2v725LvKXAz XDQ8Pz9CjClJ9SBfJteteWnPl6zcc/XSvk2ci/SDY9IPGwZ3KrEUZyQaajEXFScCAJitDCF5 AwAA X-CMS-MailID: 20210125165421eucas1p16dc1839cfabb66a1049b92daf0c7d483 X-Msg-Generator: CA X-RootMTR: 20210125165421eucas1p16dc1839cfabb66a1049b92daf0c7d483 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20210125165421eucas1p16dc1839cfabb66a1049b92daf0c7d483 References: <20210125165406.9692-1-l.stelmach@samsung.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@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>; + }; + };