From patchwork Thu Dec 17 11:53: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: 11979649 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 18A57C2BB40 for ; Thu, 17 Dec 2020 11:55:33 +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 C86FC238D6 for ; Thu, 17 Dec 2020 11:55:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C86FC238D6 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=v1Ty7rrZt8L7CYLD/fluRRsAZ mlPlaNkvdUWosufpfKJBtJCSR/DH0c1JfqzAl6FswANYziD1b6dTRVky0P0O2p2ahthMrb2mjKN48 ZA5oo+hHi2C+9UoN3hvf4v/w+Rbcct0AvkdR3Q2j1OJv7qI5uz0EaoGLz2yXhSMA1+IrRR+iP7Ol7 YkeJQ8JP7LtvH0U/Q2SEoVCrPWPyAf4IipNY9wK5j9N3IesE5JrrP9EXhgF1Ja2mNYQBN1tovoEyE G7AL/c3zCvvrhLrlcny3BckRXyr7CVoFzBKiINh/qi0WR7qhATBGQLWloE3bc3vgpPDTCB2wLAvtp eYBgnDv/g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kprrB-0002Ie-LF; Thu, 17 Dec 2020 11:54:05 +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 1kprr5-0002H5-UE for linux-arm-kernel@lists.infradead.org; Thu, 17 Dec 2020 11:54:01 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20201217115343euoutp02222efb1c0b6344f7f5b31740d139396a~RftuIMVPe0967609676euoutp02n for ; Thu, 17 Dec 2020 11:53:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20201217115343euoutp02222efb1c0b6344f7f5b31740d139396a~RftuIMVPe0967609676euoutp02n DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1608206023; bh=27homzhxtOgQquKIw/0+3LoypE6+9O9g4fIKMDgjxBE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nfK5oSgikG35wtGI9EMzsY/WvzKI+mUIOMztVGqbhQGX5I4ydzdkI7vc/cnFFPWCP px/sKaET0u9gKAbdM7yyys5KbeAzcVLyBp8iSE+5gm9xfhQ+O9w+MiI0s90gMNNgSk p11HWvzzshACHY/GXHpR7rChe7XFN2ryDwnuAUaQ= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20201217115342eucas1p16834b1445ff478f20cf1047959f4e418~Rfttyz-dG2279122791eucas1p1_; Thu, 17 Dec 2020 11:53:42 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id D6.9D.45488.6C64BDF5; Thu, 17 Dec 2020 11:53:42 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20201217115342eucas1p2360bc06a60795f2ee421698a10c060b3~RfttZOoud0292602926eucas1p2s; Thu, 17 Dec 2020 11:53:42 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20201217115342eusmtrp18ab57a9708fecf57197bf33aa6bb82f1~RfttYdrgN2027720277eusmtrp1e; Thu, 17 Dec 2020 11:53:42 +0000 (GMT) X-AuditID: cbfec7f5-c77ff7000000b1b0-be-5fdb46c6fa92 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 7A.A7.21957.6C64BDF5; Thu, 17 Dec 2020 11:53:42 +0000 (GMT) Received: from localhost (unknown [106.120.51.46]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20201217115342eusmtip2ee37e3b677052d9e399289181668212e~RfttL_Lkl1290712907eusmtip2u; Thu, 17 Dec 2020 11:53:42 +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 v9 2/3] dt-bindings: net: Add bindings for AX88796C SPI Ethernet Adapter Date: Thu, 17 Dec 2020 12:53:29 +0100 Message-Id: <20201217115330.28431-3-l.stelmach@samsung.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201217115330.28431-1-l.stelmach@samsung.com> MIME-Version: 1.0 Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA02SbUxTVxjHOb2v7VK4FqZPEAY26sAovsywk+AcZIzdLZqYzETlg9DIFQyl kFYmbDECDhgdgoIMrCwSAqMyBlrbilXc7Ehx6qivVQItZhAMEIaKTECLo70s89vvOf//85rD Eor7VCh7QHNQ0GpUaiUtI62OWec6R1J/yoY7k5ux020n8Pm6DgrXO78l8ZnuXgo3TtZR2DUx QOHKoXECO53nGHzbWkHhPrsRYdOQi8L3bPU0rnNelWB7TRfCv3S7GexoWIqLu7oZ/OZKJxOv 4O+57hC8+WyfhL9kcDO8qbWM5i80HeEvdU5J+ApzK+KnTO/tYJNlW9IE9YGvBO36ramyjAeO 2BxncF7DsVlJAToZpEcsC9xmuF5D6JGMVXBGBDWjtxeDFwgsN9poMZhC0Hh0dEGR+jOG/+lH otCCYFr/mhSDJwheNTZRPhfNJUBl83XKJ4RwHgI6Sh/7UwhuEIHnyc/+WsFcMkw8n/Izya2C voFp5GM5Fwc9N4qR2C8CSlsu0j6WclugpPkvSvQsgT9ODZM+DuLWQFvRQz8TC/6jltP+LYD7 XQpV8xcWB08Ek/EHWuRgGOsxMyKHwc3qclI8xxGorooVc8sRWOtnSNETBwO9c7TPQ3DR0GFb L9oTwK3XiBgIjyaWiBMEQpW1lhCf5fBdiUKssRLaK68s1guFY2NGdBwpDW/tYnhrfsP/rRoQ 0YqWCbm6rHRB94FGOBSjU2XpcjXpMfuys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pKqBYzMqxhFUkuLc9Nziw31ihNzi0vz0vWS83M3MQIjfNuxn5t3MM579VHvECMT B+MhRgkOZiUR3oQDN+OFeFMSK6tSi/Lji0pzUosPMZoCfTaRWUo0OR+YYvJK4g3NDEwNTcws DUwtzYyVxHm3zl0TLySQnliSmp2aWpBaBNPHxMEp1cCkvezF17ezpaseThZKMDktdVYgsuH5 cf6r+iUJE2VZ10g+6tffxrsn9YGuK3fUK8/m4j9XwxLe2L2LfVva/fN72kLdxTdCQgRu1ZRv ys1STgxLC5Dk/K+TN0VzkfVeheSbeyZxrHut93mThu7WiDbxLfeeRu1Xuf9RbdqraYsVDv7X OPJp+9eH4gWrr+U0efwWu7idOezjBYWYNkMV9fUnN57qK/wQt6LiSbJLuLSGSw9/b0pM/rzW tbk/zjus03m2fEV8T/ya71cjrup9XncwfUMZh+KhP67xmlJZE8U33eTYsT9y425/YfWoTzuO zfleaWHOf8++pdJrYZlxb9e979OMpA/et1slsFrG7c1sJZbijERDLeai4kQA2C/ZBXkDAAA= X-CMS-MailID: 20201217115342eucas1p2360bc06a60795f2ee421698a10c060b3 X-Msg-Generator: CA X-RootMTR: 20201217115342eucas1p2360bc06a60795f2ee421698a10c060b3 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20201217115342eucas1p2360bc06a60795f2ee421698a10c060b3 References: <20201217115330.28431-1-l.stelmach@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201217_065400_253740_B7CC785B X-CRM114-Status: GOOD ( 17.96 ) 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: Marek Szyprowski , =?utf-8?q?=C5=81ukasz_Stelm?= =?utf-8?q?ach?= , =?utf-8?q?Bart=C5=82omiej_=C5=BBo?= =?utf-8?q?lnierkiewicz?= 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>; + }; + };