From patchwork Thu Nov 12 11:51:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 11899817 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D45BC697 for ; Thu, 12 Nov 2020 11:52:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A47D722228 for ; Thu, 12 Nov 2020 11:52:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="hc4CQ5a/" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728229AbgKLLwi (ORCPT ); Thu, 12 Nov 2020 06:52:38 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:42440 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728155AbgKLLvz (ORCPT ); Thu, 12 Nov 2020 06:51:55 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20201112115124euoutp02480d016209b7bacf934a3450e77ea32d~GwGtHEOoV2785127851euoutp02K for ; Thu, 12 Nov 2020 11:51:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20201112115124euoutp02480d016209b7bacf934a3450e77ea32d~GwGtHEOoV2785127851euoutp02K DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1605181884; bh=27homzhxtOgQquKIw/0+3LoypE6+9O9g4fIKMDgjxBE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hc4CQ5a/2lLRf052FxdMavEYpXKYbABjQw6bcVV7AkKAuEZAOxNOWR3gjq2Vrn0Io IMlFRh0zSQoy5ugU2Zb/LOCCUHSYnVv2hsm/DsCqojpaibWTILHwSVj0qJyvpme7r3 kaV4xfo9MMCxMJqA3aLdjv9tk8AgMXmc/b3iycS4= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20201112115109eucas1p2dc635c026c006506cdc22566bb14cee6~GwGe_xc6_1206312063eucas1p2L; Thu, 12 Nov 2020 11:51:09 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 99.E6.27958.CA12DAF5; Thu, 12 Nov 2020 11:51:08 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20201112115108eucas1p1857507fc2d994eca6ee6b1b86b87cfd5~GwGel0XNc2257422574eucas1p1H; Thu, 12 Nov 2020 11:51:08 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20201112115108eusmtrp1103fbf46d81bfc864eecb8c66c8a0af5~GwGelH8GO1853418534eusmtrp1L; Thu, 12 Nov 2020 11:51:08 +0000 (GMT) X-AuditID: cbfec7f2-efdff70000006d36-4a-5fad21accf28 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 72.B7.16282.CA12DAF5; Thu, 12 Nov 2020 11:51:08 +0000 (GMT) Received: from localhost (unknown [106.120.51.46]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20201112115108eusmtip1b00bf6d5b326733b1395254e927e2ea0~GwGeTksqq2747927479eusmtip1Y; Thu, 12 Nov 2020 11:51:08 +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 v6 2/5] dt-bindings: net: Add bindings for AX88796C SPI Ethernet Adapter Date: Thu, 12 Nov 2020 12:51:03 +0100 Message-Id: <20201112115106.16224-3-l.stelmach@samsung.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201112115106.16224-1-l.stelmach@samsung.com> MIME-Version: 1.0 Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMKsWRmVeSWpSXmKPExsWy7djP87prFNfGG6y5YGpx/u4hZouNM9az Wsw538JiMf/IOVaLRe9nsFpce3uH1aL/8Wtmi/PnN7BbXNjWx2px89AKRotNj6+xWlzeNYfN Ysb5fUwWh6buZbRYe+Quu8WxBWIWrXuPsFv837OD3UHI4/K1i8weW1beZPLYOesuu8emVZ1s HpuX1Hvs3PGZyaNvyypGj8+b5AI4orhsUlJzMstSi/TtErgyrh4zKzgvXLGg9ydTA+MU/i5G Tg4JAROJmWc3snUxcnEICaxglPh35DQjSEJI4AujxPOj0hCJz4wS2yetBqriAOvY/JYZIr6c UeLhzJMsEM5zRokFK18zgXSzCThK9C89wQqSEBG4xyyxvv0BI4jDLHCfUeLe89XMIKOEBaIk fs8IB2lgEVCVeLDwJCuIzStgLfHt1h42iPvkJdqXbwezOQVsJJbevMgOUSMocXLmExYQm19A S2JN03UwmxmovnnrbLDzJAT2c0rMfnmTCWKQi8Ss01cYIWxhiVfHt7BD2DISpyf3sEC8Vi8x eZIZRG8Po8S2OT9YIGqsJe6c+wX2PrOApsT6XfoQYUeJN90bGCFa+SRuvBWEOIFPYtK26cwQ YV6JjjYhiGoViXX9e6AGSkn0vlrBOIFRaRaSZ2YheWAWwq4FjMyr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mTM5+wgBzHLKAusX6eEEiYX0BLYk3TdRYQmxloTPPW2cwTGIVm IemYhdAxC0nVAkbmVYwiqaXFuem5xUZ6xYm5xaV56XrJ+bmbGIHRve3Yzy07GFe++qh3iJGJ g/EQowQHs5IIr7LDmngh3pTEyqrUovz4otKc1OJDjKZAn01klhJNzgeml7ySeEMzA1NDEzNL A1NLM2MlcV6TI0BNAumJJanZqakFqUUwfUwcnFINTEVh/kfWTuSqWbL11H1xPcd5nOeOaMZe rBPN9zRefvV1b+2tGf08e8McO2Y8l31j2HMj1tc6NuBvMq9KjVCD/HMT/61ufqfOfd4ZUXSn T/4p61ohCYOve9hvO/FmBxqJ+M0XrXCZaFGgXzgzYN7xPXq9y8WzSntUw5esVWw8eroh67Cb qLbXD7nZ/luWZz7W/nfbdWJcn4OLiLl6xROB5SZ33wVeNQhm/Lu/zGKzuMTiDx/83QS9/5/O O1e1sbv/6cMX/F3Ft1a8tJFw5pBc6+V+efLrrdputzZN3+a0f7PCk94mu30vWv8c2Tvvyi3x O8dXR7U+fieptetMosU3f4sj2rGz+H6qWOu9SLj3XomlOCPRUIu5qDgRAA5PaRR3AwAA X-CMS-MailID: 20201112115108eucas1p1857507fc2d994eca6ee6b1b86b87cfd5 X-Msg-Generator: CA X-RootMTR: 20201112115108eucas1p1857507fc2d994eca6ee6b1b86b87cfd5 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20201112115108eucas1p1857507fc2d994eca6ee6b1b86b87cfd5 References: <20201112115106.16224-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>; + }; + };