From patchwork Wed Oct 28 21:40:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 11863249 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=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,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 49944C4363A for ; Wed, 28 Oct 2020 21:43:21 +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 C156820E65 for ; Wed, 28 Oct 2020 21:43:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZUKrrkSW"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="fO6gSQpW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C156820E65 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=bCu2de+9kQf+rxd1hOktP9ogMnlyEjLrpCwHhyklnp4=; b=ZUKrrkSWXIb6pfZRe3Zb8LICC 3atavbFU3Y6vkskfEI3Qx4VI7NRRyBchSilq3VDaADMhsw8thSRF/2CJOq/B1PUqD1LLtjPWbrFTN 6byfgOBrQpWUS0FAUhcJ/V6dlvpRctFC/3pOz08GnAtEOZkyPTHvidSajoqh2bW/2dob8WG5TeHCi uSRjVUS0raWxlJRT2in/dnco2TsqWsQm+fWkmuHluz5kpD7IsBSouVe3UlPhKsGE9i0yYZiq7YklV VbtZ9CkIY/FWOZrhjU6DNt1/VU9IxpHelS4raSU1KuvmViWAr3sYRYW6x0lkORm8/2zQNKZAzzYIv PIKlYvc/w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXtCA-0006vW-3q; Wed, 28 Oct 2020 21:41:26 +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 1kXtBV-0006lG-Ej for linux-arm-kernel@lists.infradead.org; Wed, 28 Oct 2020 21:40:50 +0000 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20201028214029euoutp0295bdc3175f55685f16b4092a610483a9~CRdwuRW020334203342euoutp02P for ; Wed, 28 Oct 2020 21:40:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20201028214029euoutp0295bdc3175f55685f16b4092a610483a9~CRdwuRW020334203342euoutp02P DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1603921229; bh=I+o/56XtJST5vLryEFJ4j4MJlOOh9NA3qyon+YC57NM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fO6gSQpW7/t2aCmwaikTo7TEAEPzjxhN4x8tgLU495b1aWdbV9Z/S8HgqGnvTjwZe sjTHCfsmEqiOAhDkqsK5hJe7i6RmupaoFTpk4wAvJg93AmcwzHkmrcj/s0jX5TkJKp T8BAlKbzc1fP0JK73LNjlUi6KfAmKVXIVIwvTDYk= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20201028214018eucas1p123197ce91702ead337ae9c1a01f95899~CRdm8nSlO3058230582eucas1p1h; Wed, 28 Oct 2020 21:40:18 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id E2.5C.06318.245E99F5; Wed, 28 Oct 2020 21:40:18 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20201028214017eucas1p251d5bd9f5f9db68da4ccefe8ee5e7c13~CRdl4ckua2482524825eucas1p2c; Wed, 28 Oct 2020 21:40:17 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20201028214017eusmtrp1a59ef10948a3e87798153ce60a73992c~CRdl3enLh3223832238eusmtrp1k; Wed, 28 Oct 2020 21:40:17 +0000 (GMT) X-AuditID: cbfec7f5-38bff700000018ae-03-5f99e54282a3 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 7F.8E.06314.145E99F5; Wed, 28 Oct 2020 21:40:17 +0000 (GMT) Received: from localhost (unknown [106.120.51.46]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20201028214016eusmtip238e663beef7e55250b77e6e510a55b27~CRdkqqha-2543225432eusmtip2n; Wed, 28 Oct 2020 21:40:16 +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 v4 2/5] dt-bindings: net: Add bindings for AX88796C SPI Ethernet Adapter Date: Wed, 28 Oct 2020 22:40:09 +0100 Message-Id: <20201028214012.9712-3-l.stelmach@samsung.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201028214012.9712-1-l.stelmach@samsung.com> MIME-Version: 1.0 Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA02Se0hTcRTH+e3eu92NZtdpeVhSMQxSUXv3I8Myglb0h1L0h6A29aKSs9jU NCLFd2ouNUmXlUmSzfem85FKLrHCaj5CjZxpapZiElpk2sPtGvXf95zz+Z4HHJqQjFJSOjI6 hlVFK6JkfBFp7F4yexyZKg7eMV7ngc0WE4Hri2opXGJOJfHdrlcULpsvovDg3AiFNROzBDab 6wS415hL4TemCoT1E4MUHmgt4eMicwcPmwrbEa7usghwd+lGnNbeJThsLx8Y7CPkDQ/f8OQt WotArtdd5csN9xPlLc0LPHlugw7JF/Sb/egA0cEwNioyjlV5+ZwVRXxMS6UuXJfEZy8uUUmo 3C4LCWlg9kDn7WcoC4loCVOBoG92iuCCRQTvs+vXggUETeNG4q9luDVlrfAAgeVFNckF06v+ jj4bxWd8QVP+jLIWHJlRAmozxmxTCKYDQcvoDRvlwASALuX1KkXTJLMN2goOWdNi5gBczXmJ uHFbIONBE9+qhYw3TC4+ojjGHp4XT5JWvZ5xg6rkIZsmVvmUxlu29YAppOHL8k8e1+golHV9 ozjtADNPGwScdoaeghzSugMwiVCQv4/z5iAwlnwnOcYbRl794FsZgnGF2lYvLu0Lv+cNPM5q B8Nz9twK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4srcQ4wSHMxKIrxOZ0/HCfGmJFZWpRblxxeV5qQWH2I0BfpyIrOUaHI+MOXk lcQbmhqaW1gamhubG5tZKInzdggcjBESSE8sSc1OTS1ILYLpY+LglGpgDCt9ZrtOvH6CgeyJ Pxc7Umf0t4pUz1Se3P/xeL/j07OdR/x/XvNeJLwg63eVWt48Zd2PnU9lqsPC5/YvLvr5oOvl 19cvpeS229/k7HrkKyi3K+XKnI2COntDNk8/wcq3TGTPD+0e3YrAn29eaOyId4/nWmnAdHiN 3t9Ti6z3TOEOKn0THzvxuxJLcUaioRZzUXEiAMXn3HUBAwAA X-CMS-MailID: 20201028214017eucas1p251d5bd9f5f9db68da4ccefe8ee5e7c13 X-Msg-Generator: CA X-RootMTR: 20201028214017eucas1p251d5bd9f5f9db68da4ccefe8ee5e7c13 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20201028214017eucas1p251d5bd9f5f9db68da4ccefe8ee5e7c13 References: <20201028214012.9712-1-l.stelmach@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201028_174045_618755_55428B9A X-CRM114-Status: GOOD ( 18.51 ) 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 --- .../bindings/net/asix,ax88796c.yaml | 69 +++++++++++++++++++ 1 file changed, 69 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..05093c1ec509 --- /dev/null +++ b/Documentation/devicetree/bindings/net/asix,ax88796c.yaml @@ -0,0 +1,69 @@ +# 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 + - interrupt-parrent + - reset-gpios + +additionalProperties: false + +examples: + # Artik5 eval board + - | + #include + #include + 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>; + };