From patchwork Mon Jul 19 19:28:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 12386649 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.2 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,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 423E7C07E95 for ; Mon, 19 Jul 2021 19:32:02 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 F32B761107 for ; Mon, 19 Jul 2021 19:32:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F32B761107 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=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:MIME-Version:In-Reply-To: Message-Id:Date:Subject:Cc: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=x5XluHbKi1CQPH GU1naytqfdV0V9L+uRBRAJcK3oZ1ECBIjk/KFbeVyIkL6bfeMxcyp1/tvbiqaoAQxhVfhM+Ji1Mb8 jUkzLFIjpUgObCU9d21OY3sCnT7/dS7qmu2VeQ6WNeUHMce4SKKD7r1hb2SP4UC7KU0nrN2THWWUN bgM/s9CNUzoE7KNql7PgL3M0+Qt5g1O41pY37LcYqelxiR06ZF4oZqQ+FlXMcUeCH0BMlo3H/f3h2 Zipos3YE+xb66cNhPEUiDQzk7XiZuWU+yp+m83lWqQ/S4r8vni1xZr79fZ3YaSp/p0oAgbmNQ/Zdr 4tqbzhW0EdAd+kVKv2Mg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m5YxJ-00B4zj-Ik; Mon, 19 Jul 2021 19:29:33 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m5Yx3-00B4vc-50 for linux-arm-kernel@lists.infradead.org; Mon, 19 Jul 2021 19:29:19 +0000 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20210719192915euoutp011f0f6a2005326f8777f1f604f50e182f~TR_jYK8ku1234812348euoutp01H for ; Mon, 19 Jul 2021 19:29:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20210719192915euoutp011f0f6a2005326f8777f1f604f50e182f~TR_jYK8ku1234812348euoutp01H DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1626722955; bh=27homzhxtOgQquKIw/0+3LoypE6+9O9g4fIKMDgjxBE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iD1REVptyDUZ/Zjs6dOS56FtvF2BUb2OZ6wxaSPG0oH7UILBu3rIz79G1IQsqBHG0 NXIKKtQ6guApCvm/7Uy8MJm3zdxqyMpemeRQTxa+529n+IMtU+xtGG8NLLP1ZnbcXN 2BOPNXtm33dUaEVmjPtvw/BWHxh6nvG8ZhCYevQA= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20210719192914eucas1p10bc584d300209c1063fe205a5b30061a~TR_iPnZb02583725837eucas1p1K; Mon, 19 Jul 2021 19:29:14 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id BF.0C.56448.A82D5F06; Mon, 19 Jul 2021 20:29:14 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20210719192913eucas1p22ebe775ac3f40af0184a6569e6e869f3~TR_hP3Rz12864628646eucas1p2J; Mon, 19 Jul 2021 19:29:13 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20210719192913eusmtrp21cdfa6e7305cdfc6be1d469ac4f90199~TR_hPF1n52699226992eusmtrp2b; Mon, 19 Jul 2021 19:29:13 +0000 (GMT) X-AuditID: cbfec7f5-d3bff7000002dc80-82-60f5d28a6288 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id FC.DC.20981.982D5F06; Mon, 19 Jul 2021 20:29:13 +0100 (BST) Received: from localhost (unknown [106.120.51.46]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210719192913eusmtip2a81ef80b5e8c795df594d2f46bed8c02~TR_hBT65D1148611486eusmtip2-; Mon, 19 Jul 2021 19:29:13 +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 net-next v14 2/3] dt-bindings: net: Add bindings for AX88796C SPI Ethernet Adapter Date: Mon, 19 Jul 2021 21:28:51 +0200 Message-Id: <20210719192852.27404-3-l.stelmach@samsung.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210719192852.27404-1-l.stelmach@samsung.com> MIME-Version: 1.0 Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKKsWRmVeSWpSXmKPExsWy7djPc7pdl74mGLx5LW1x/u4hZouNM9az Wsw538JiMf/IOVaLRe9nsFpce3uH1aL/8Wtmi/PnN7BbXNjWx2px89AKRotNj6+xWlzeNYfN Ysb5fUwWh6buZbRYe+Quu8WxBWIWrXuPsFv837OD3UHI4/K1i8weW1beZPLYOesuu8emVZ1s HpuX1Hvs3PGZyaNvyypGj8+b5AI4orhsUlJzMstSi/TtErgyrh4zKzgvXLGg9ydTA+MU/i5G Tg4JAROJp2tmsnQxcnEICaxglPj25h87hPOFUWLtk/tMEM5nRom901cywrSsvPiGGSKxnFFi avcqVgjnOaPEiuanzCBVbAKOEv1LT4AlRATuMUusb3/ACOIwC9xnlLj3fDVQFQeHsECKxJF7 jiANLAKqEle+rGIBsXkFrCV+Tm9hhlgnL9G+fDsbiM0pYCMx98MTNogaQYmTM5+A1fMLaEms aboOZjMD1TdvnQ12noTAKU6JFx/mM0EMcpE4/ukeC4QtLPHq+BZ2CFtG4v9OkBoOILteYvIk M4jeHkaJbXN+QNVbS9w594sNpIZZQFNi/S59iLCjxMKjk6Ba+SRuvBWEOIFPYtK26cwQYV6J jjYhiGoViXX9e6AGSk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AKqWb07AKJcUOLkzCcsIGFmAXWJ9fOEQML8AloSa5qug01kBprSvHU28wRG oVlIOmYhdMxCUrWAkXkVo0hqaXFuem6xkV5xYm5xaV66XnJ+7iZGYHxvO/Zzyw7Gla8+6h1i ZOJgPMQowcGsJMKrUvQ1QYg3JbGyKrUoP76oNCe1+BCjKdBjE5mlRJPzgQkmryTe0MzA1NDE zNLA1NLMWEmc1+TImnghgfTEktTs1NSC1CKYPiYOTqkGpn41TrM1e22DFuwqlXxyfIuX9c8b H6t8/dZ518iF7y7cfexVueqnr6b6IuorPA7bi2w2Fg97djVox6q3anFL+Pl/5fWask9hMK3M 2Lll54XJ7kuZvm0+r/R+8teCyP8vzs/z6aoMO/dltuKMnffKNBVD2nq3SkROMo2d9M126vGu d1cMJm8ouW58Z/ep90f63z9lrf123MXedy9fdMX/uE8inddn1T15s3V/1OEs392Oop++LuJn eSax5M2xZwo5D5QrPqQXvJVKXtspOuNbjNvzBVH5W2rConmvnkzlm/zL0feE6sFzX39PuNn3 UPJRu8okx6p/Ly28rkSw1LzbfkLwx9wcO7lcca7mEMvZK34psRRnJBpqMRcVJwIAwEC+fHgD AAA= X-CMS-MailID: 20210719192913eucas1p22ebe775ac3f40af0184a6569e6e869f3 X-Msg-Generator: CA X-RootMTR: 20210719192913eucas1p22ebe775ac3f40af0184a6569e6e869f3 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20210719192913eucas1p22ebe775ac3f40af0184a6569e6e869f3 References: <20210719192852.27404-1-l.stelmach@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210719_122917_593107_03A3415E X-CRM114-Status: GOOD ( 18.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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>; + }; + };