From patchwork Wed Sep 29 14:08:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 12525647 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 46CDEC433EF for ; Wed, 29 Sep 2021 14:09:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 284BF6140F for ; Wed, 29 Sep 2021 14:09:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344419AbhI2OLI (ORCPT ); Wed, 29 Sep 2021 10:11:08 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:53905 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344396AbhI2OK5 (ORCPT ); Wed, 29 Sep 2021 10:10:57 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20210929140914euoutp02d997a03a46e8e0f26cb4f9087372ea2c~pUDr2tAMV2990729907euoutp02n for ; Wed, 29 Sep 2021 14:09:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20210929140914euoutp02d997a03a46e8e0f26cb4f9087372ea2c~pUDr2tAMV2990729907euoutp02n DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1632924554; bh=Z4IBSKno7o4u2IPtq/oGi8k3geESxSGYf1l5VWz39q4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EJFF5JDh2gR4dwAi0l3p+Grg5YPMl/aRHfWgIu6pR+C/IKIPmP5jFXiLyBwwCQg2R lq46q5y7GU6d9yQjLz4Gpz75dRbkvAGOk3YXcKpqM5Tcni5RfGZ0PdjOgdhxWZDy97 80VUqV4SuEsbSLL7/i1vW4fZuTYD/9GqzIndv7wc= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20210929140913eucas1p2cbed7e470a84688dcfb7576d88cece93~pUDrcUys-1555515555eucas1p2h; Wed, 29 Sep 2021 14:09:13 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 4A.CB.42068.98374516; Wed, 29 Sep 2021 15:09:13 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20210929140913eucas1p19ae6de17520916149879be71a33291c7~pUDq6AAux0545405454eucas1p1i; Wed, 29 Sep 2021 14:09:13 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20210929140913eusmtrp1d29ca32d2519ee0d7b0a0c2f2352437b~pUDq5KMgY3235032350eusmtrp1s; Wed, 29 Sep 2021 14:09:13 +0000 (GMT) X-AuditID: cbfec7f4-c71ff7000002a454-ef-615473895320 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 2A.D0.20981.88374516; Wed, 29 Sep 2021 15:09:12 +0100 (BST) Received: from localhost (unknown [106.120.51.46]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210929140912eusmtip277040d10ff0b8d90d7b154f3268ef9a9~pUDqseiwu0168801688eusmtip2F; Wed, 29 Sep 2021 14:09:12 +0000 (GMT) From: =?utf-8?q?=C5=81ukasz_Stelmach?= To: "David S. Miller" , Jakub Kicinski , Andrew Lunn , jim.cromie@gmail.com, Heiner Kallweit , 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 v16 2/3] dt-bindings: net: Add bindings for AX88796C SPI Ethernet Adapter Date: Wed, 29 Sep 2021 16:08:53 +0200 Message-Id: <20210929140854.28535-3-l.stelmach@samsung.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210929140854.28535-1-l.stelmach@samsung.com> MIME-Version: 1.0 Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCKsWRmVeSWpSXmKPExsWy7djP87qdxSGJBj+3KVqcv3uI2WLjjPWs FnPOt7BYzD9yjtVi0fsZrBbX3t5hteh//JrZ4vz5DewWF7b1sVrcPLSC0WLT42usFpd3zWGz mHF+H5PFoal7GS3WHrnLbnFsgZhF694j7Bb/9+xgdxDyuHztIrPHlpU3mTx2zrrL7rFpVSeb x+Yl9R47d3xm8ujbsorR4/MmuQCOKC6blNSczLLUIn27BK6M5vNP2AvOC1cc3nWXuYFxCn8X IyeHhICJxL89s5m6GLk4hARWMEp8XP6IFcL5wijR1fiXGcL5zCjxc8t1RpiWQ7397CC2kMBy Rom/uxUhip4zSvzZu4gZJMEm4CjRv/QE2CgRgXvMEp+OHWcDcZgF7jNK3Hu+GqxKWCBFYv2D Z0AJDg4WAVWJO1eLQExeAWuJzzdiIJbJS7Rdnw62mFPARuL93wNgNq+AoMTJmU9YQGx+AS2J NU3XwWxmoPrmrbPBrpYQOMwpcWL3LqirXSS6Jm+BsoUlXh3fwg5hy0icntzDArJXQqBeYvIk M4jeHkaJbXN+sEDUWEvcOfcL7ExmAU2J9bv0IcKOEi+W/4Vq5ZO48VYQ4gQ+iUnbpjNDhHkl OtqEIKpVJNb174EaKCXR+2oF4wRGpVlInpmF5IFZCLsWMDKvYhRPL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YX4BLYk1TddZQGxmoDHNW2czT2AUmoWk YxZCxywkVQsYmVcxiqSWFuem5xYb6RUn5haX5qXrJefnbmIERve2Yz+37GBc+eqj3iFGJg7G Q4wSHMxKIrw/xIMThXhTEiurUovy44tKc1KLDzGaAv01kVlKNDkfmF7ySuINzQxMDU3MLA1M Lc2MlcR5TY6siRcSSE8sSc1OTS1ILYLpY+LglGpgmrI4qCatXLx/KqPBAs1v+lzX9E80MJke suc67Fa787XoTJeH63TKWz4ZSG3WEVWw1jnG4xJvp7hs/TFDp9t2Ib+/vdW5zD3X/8/0jyts L3KaTpKpNNp+Jzs6JuZx4qajorfyGqe+YJ3y+GXz95itChOdvXrDT74t3jdj7YdYI03lmVd8 btff456uz3tl3b6/edaisR6fdddZaL+4tHrrr0e7F/YyLz1jdyPPvOcYy3ynXa3nNLY9k9sX /nzStpjOuuyLc57N0L6sXut//blD4ofnq2+7LX9+03fvvcu7PD8cXNVc5x98rMFH1jDAS3TZ U/UbfadO7bZyKFHPF3756N6Es9oeaQvbA49JSjxT6VViKc5INNRiLipOBAD9gsPQdwMAAA== X-CMS-MailID: 20210929140913eucas1p19ae6de17520916149879be71a33291c7 X-Msg-Generator: CA X-RootMTR: 20210929140913eucas1p19ae6de17520916149879be71a33291c7 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20210929140913eucas1p19ae6de17520916149879be71a33291c7 References: <20210929140854.28535-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>; + }; + };