From patchwork Tue Mar 2 15:22:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 12112545 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=-18.8 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 9B80BC28CBC for ; Wed, 3 Mar 2021 01:19:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7023364FA6 for ; Wed, 3 Mar 2021 01:19:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241674AbhCCBMy (ORCPT ); Tue, 2 Mar 2021 20:12:54 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:57497 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1578717AbhCBP0w (ORCPT ); Tue, 2 Mar 2021 10:26:52 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20210302152253euoutp02c1e46538473d0313f3926aeb75464f1e~oj8wzi9xs0151001510euoutp02A for ; Tue, 2 Mar 2021 15:22:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20210302152253euoutp02c1e46538473d0313f3926aeb75464f1e~oj8wzi9xs0151001510euoutp02A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1614698573; bh=27homzhxtOgQquKIw/0+3LoypE6+9O9g4fIKMDgjxBE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kKrASF8mr7FyME5BukZRfEkUN1h6Nb3AbNnBKFX3nUiVvt8EMvAybkZ6sa5961S/2 HokxsR1ruLvtBB4zIRLAKfu7MEGoJkL1h3EoFDgIddJBhjkjWkj7KbeXF6SsrcyaP2 h74ja/ZoDLi9Yffq5P8Pawrf9NuVFtBoMFEGrKoA= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20210302152253eucas1p28c187f3999b16bcc2632fdd687320b84~oj8wRkgUT0597105971eucas1p2E; Tue, 2 Mar 2021 15:22:53 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id A3.DE.27958.C485E306; Tue, 2 Mar 2021 15:22:52 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20210302152252eucas1p2cebd13f124e03ccd69f5d150fe144a64~oj8v1cbfr0565805658eucas1p2i; Tue, 2 Mar 2021 15:22:52 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20210302152252eusmtrp1f512ea88fa8a07e859d530ebed1e74d2~oj8v0oPor1781617816eusmtrp17; Tue, 2 Mar 2021 15:22:52 +0000 (GMT) X-AuditID: cbfec7f2-efdff70000006d36-12-603e584ccfef Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 9A.25.16282.C485E306; Tue, 2 Mar 2021 15:22:52 +0000 (GMT) Received: from localhost (unknown [106.120.51.46]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20210302152252eusmtip11cf14f6772e85ba51f862133eaa7fe9c~oj8vlaIJp1399713997eusmtip18; Tue, 2 Mar 2021 15:22:52 +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: [RESEND PATCH v11 2/3] dt-bindings: net: Add bindings for AX88796C SPI Ethernet Adapter Date: Tue, 2 Mar 2021 16:22:49 +0100 Message-Id: <20210302152250.27113-3-l.stelmach@samsung.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210302152250.27113-1-l.stelmach@samsung.com> MIME-Version: 1.0 Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKKsWRmVeSWpSXmKPExsWy7djPc7o+EXYJBnNOWVmcv3uI2WLjjPWs FnPOt7BYzD9yjtVi0fsZrBbX3t5hteh//JrZ4vz5DewWF7b1sVrcPLSC0WLT42usFpd3zWGz mHF+H5PFoal7GS3WHrnLbnFsgZhF694j7Bb/9+xgdxDyuHztIrPHlpU3mTx2zrrL7rFpVSeb x+Yl9R47d3xm8ujbsorR4/MmuQCOKC6blNSczLLUIn27BK6Mq8fMCs4LVyzo/cnUwDiFv4uR k0NCwESi484sZhBbSGAFo8TJh4pdjFxA9hdGiQt939kgnM+MEtNfLGeE6fix/h8zRGI5o8TK ngdMEM5zRol5S6+CzWITcJToX3qCFSQhInCPWWJ9+wNGEIdZ4D6jxL3nq8GqhAWSJJ4un8wC YrMIqEpcWbyWDcTmFbCWONT8hglin7xE+/LtYHFOARuJDSfXsU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Y/0/5i5GLg4hgaWM Ent2vWHsYuQASkhJrJybDlEjLPHnWhcbRM1TRonZa+YwgSTYBBwl+peeYAVJiAi8YZZouveW HcRhFrjPKPHr0wtGkCphgQSJ04vPg3WwCKhKXFm8lg3E5hWwljjU/IYJYoW8RPvy7WBxTgEb iQ0n17GA2EJANYvur2SHqBeUODnzCQvIdcwC6hLr5wmBhPkFtCTWNF0HK2cGGtO8dTbzBEah WUg6ZiF0zEJStYCReRWjSGppcW56brGRXnFibnFpXrpecn7uJkZghG879nPLDsaVrz7qHWJk 4mA8xCjBwawkwiv+0jZBiDclsbIqtSg/vqg0J7X4EKMp0GcTmaVEk/OBKSavJN7QzMDU0MTM 0sDU0sxYSZzX5MiaeCGB9MSS1OzU1ILUIpg+Jg5OqQamqJAwcR/HgMoXCn0ztKKbUmaueviI sSDpwuL9q86/2/uLd+rxpJ0v2FcWLj5xhTvqa8vTi7vN1iXuNpSIiF30SE7suoK8V0JY6POl 1zzVNh+Q4C0sf6Cntr3Ate8++xab5oNWSfNV5P8cXbWl/aNkhJO8nqHvSQfmt9uXJFwzi5J9 UF7Ar674cn7X3/L//+XO3d+8tNfoTtHT3l3ND7fvcuSSu5J07Sf7Fbt+l/sv7/jJbwi9f+b0 LicX1Ydyu7i3JTOtbRJ0EjkeF/ebY9ekc7eBaZ39qIz7Ns4Q7beSrn/yJDbw+/lNXPtCPifh xX+rtZe/ezPtFguet7fz9rvc1Qvy3IyuurEkMp8R3PFGiaU4I9FQi7moOBEAnviY5HkDAAA= X-CMS-MailID: 20210302152252eucas1p2cebd13f124e03ccd69f5d150fe144a64 X-Msg-Generator: CA X-RootMTR: 20210302152252eucas1p2cebd13f124e03ccd69f5d150fe144a64 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20210302152252eucas1p2cebd13f124e03ccd69f5d150fe144a64 References: <20210302152250.27113-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>; + }; + };