From patchwork Tue Nov 24 12:03:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 11928175 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=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 B5854C63798 for ; Tue, 24 Nov 2020 12:04:37 +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 346A12083E for ; Tue, 24 Nov 2020 12:04:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="JilMvn8T"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="jPjCvV2P" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 346A12083E 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+linux-arm-kernel=archiver.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=tjQc9Us9kdZbHnA6UJEP0VBxKxYDIpcuDFAbZMxxnXo=; b=JilMvn8TR5KtxMQ33Q1E4C+vZ XKCLNh74toypwM60F2RtPauPzOMrlI1XgLq1gbrUlkwV2w2nrnZ2ONFGUiR2sNRwIAQzGy3Ar4ZmN fi529ScoxWH5XRFjKR8+GsIDEfFNkrgibuA6S/qY2UqsuAoW4QlsYsyREDxltNW/0AK/f9Q0fJaJK bm01TSIjSFHHj4xLH4Ud/BdNXSdk4rD+AyhsqAn8s1TdSpPPgOA1sl7iPikgjpKUtJG/iRjkp26QC Wxa8p2M0EwNoM7ElVcwSzAaQNt9kBnvU0p3PNeKg+plwZ0EH3fvdRANSa4gk4g7XhmwTMK9r3xqS6 /FJmX/1sQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1khX3I-0006rN-98; Tue, 24 Nov 2020 12:04:08 +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 1khX3B-0006qC-Ja for linux-arm-kernel@lists.infradead.org; Tue, 24 Nov 2020 12:04:03 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20201124120345euoutp024d67e4ed93a91ef69b439e4b4a5080fe~KcA69X7eI2523125231euoutp02k for ; Tue, 24 Nov 2020 12:03:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20201124120345euoutp024d67e4ed93a91ef69b439e4b4a5080fe~KcA69X7eI2523125231euoutp02k DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1606219425; bh=27homzhxtOgQquKIw/0+3LoypE6+9O9g4fIKMDgjxBE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jPjCvV2PtZFL90684vHHCD96dIFZ1Ib5XA/vC2H7mzV/VKGwHW8v9pbSSz/oF1Fpn ma6ohTaEZYP7QX4saz0loV8+N108u7+auusSCmbhKKpAjwP+HkeYDTSeWEhTev8aTA xOdjoIC++jYMyA0yyFCBXStHhnPZRz0A2BL8kRHQ= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20201124120337eucas1p29094a198a22d270098d184c7991000da~KcAzDAgoz2294422944eucas1p26; Tue, 24 Nov 2020 12:03:37 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id FE.63.27958.996FCBF5; Tue, 24 Nov 2020 12:03:37 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20201124120336eucas1p2982f8a4e16a9357e1354cde77333f695~KcAyu1o9t2505525055eucas1p2S; Tue, 24 Nov 2020 12:03:36 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20201124120336eusmtrp1e542686081fcdd96904d3537bf9c4332~KcAytiKXU0982309823eusmtrp1D; Tue, 24 Nov 2020 12:03:36 +0000 (GMT) X-AuditID: cbfec7f2-efdff70000006d36-5f-5fbcf699b4d4 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 8A.2E.21957.896FCBF5; Tue, 24 Nov 2020 12:03:36 +0000 (GMT) Received: from localhost (unknown [106.120.51.46]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20201124120336eusmtip1363eec52f06f74f191989e323c1b7a91~KcAyg0iC-0406404064eusmtip11; Tue, 24 Nov 2020 12:03:36 +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 Subject: [PATCH v7 2/3] dt-bindings: net: Add bindings for AX88796C SPI Ethernet Adapter Date: Tue, 24 Nov 2020 13:03:29 +0100 Message-Id: <20201124120330.32445-3-l.stelmach@samsung.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201124120330.32445-1-l.stelmach@samsung.com> MIME-Version: 1.0 Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA01SbUxTZxjNez96L82KlwuOd4zh6CRmOCvVhb0DxkacpvtjdPGX+9E1eoMd LWALopANM0dBAgJFZ0GW4vzqCtKJbaUIkpUOYWCLY3aglH10kQkBhlVAZmBcrmb+O895znnO eZOXxtnbZAytzs7jdNkqjVQkJpw9T7yb6uY6lEkXf6CQL+DG0RWTjUQNvq8IZPZ4SfTtjIlE /qlRElUFJ3Hk831PoUHnCRKNuC0AtQb9JBpqbxAhk+8GhtynOgG67AlQqKfxZVTS6aHQckcb 9QGrGPLfxhX270Ywhas+QClarcdFiqvnixWuthCmOGG3AkWoNW4XvVectp/TqA9xus3pn4oP 3OlJzvVFHm6sfIIdBSfXlAOahszbsO8XdTkQ0yxjAbArMImXg7CV4RGAE91HhEUIwMeDj8jn BsNAhMBfArB0+gEmDOMAhhxfY7xbxGTAqgu9JL+IYsZwaCv9HfADzvwG4Nh402pGJLMXGu4M AR4TTAL8seQGxkdImFQ4Zt7K05BZB0svXRPxOIxJgwbPvVWrhImAfXV/ETxewyTC5i9/XcX4 iv6Y4wzOZ0GmOwyO3wo9q/0hHO3NF25GwombdkrAsbC/toIQJMWw1pgsWCsAdDYs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6iffl2sKGcAjYS bUdug5ULAZVsm32IBcTmFRCUODnzCQtIK7OAusT6eUIgYX4BLYk1TdfBSpiBxjRvnc08gVFo FpKOWQgds5BULWBkXsUoklpanJueW2yoV5yYW1yal66XnJ+7iREY3duO/dy8g3Heq496hxiZ OBgPMUpwMCuJ8LbK7YwX4k1JrKxKLcqPLyrNSS0+xGgK9NhEZinR5HxgeskriTc0MzA1NDGz NDC1NDNWEufdOndNvJBAemJJanZqakFqEUwfEwenVANT9KvMkh9cgRl3rG13Km+MzK/tOf2Y cYbBJ0599kZ/H4kAPsMT+qdfzeA2/L5kt9nvRf5Mxt8+23O/vmAidiLzYWnE/63RN+KT/pX1 nt7yPsdg4bfuRZvi9zvqJcfz6i+c8HwBa0hca2BjwNt/Z73mh3gpzNi33OT0h6aoYqX/ugpu PQyVZ1/0Wh77esBENHOlMc+8M1JzdaSiO1eFti84KWGak9Q3zyrSQvTi/Q2ejRs2rmXz9Glb 2/I+W+hw1I/UfcdfrJ0kczYla+mkjT1lWgdrEo7k37y67E7tmf2C/J9YOtVu9k16uNWMnyv6 x+KvUi61jMVX0uy+C62qKy1/2nv1ttuecwcvzlq69PQDJZbijERDLeai4kQALujP7HcDAAA= X-CMS-MailID: 20201124120336eucas1p2982f8a4e16a9357e1354cde77333f695 X-Msg-Generator: CA X-RootMTR: 20201124120336eucas1p2982f8a4e16a9357e1354cde77333f695 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20201124120336eucas1p2982f8a4e16a9357e1354cde77333f695 References: <20201124120330.32445-1-l.stelmach@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201124_070401_854252_AC93E5C1 X-CRM114-Status: GOOD ( 18.45 ) 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: Rob Herring , Marek Szyprowski , =?utf-8?q?=C5=81ukasz_Stelmach?= , =?utf-8?q?Bart?= =?utf-8?q?=C5=82omiej_=C5=BBolnierkiewicz?= Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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>; + }; + };