From patchwork Thu Jan 13 05:37:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Boger X-Patchwork-Id: 12712308 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id BF924C433EF for ; Thu, 13 Jan 2022 05:39:28 +0000 (UTC) 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:MIME-Version:References: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=jpPED48LqkkkOr0SUpPe6+nQVEhZ3+C3sRAOCamVYx0=; b=IV620QYItkGwUT 5IYDe2zvs8aZOlEonCVaMVLJRgeaLsKnTHO/DzN9Un0TlFgLA8k5ChM/+ABkavyWK8vcyEHPZX1d4 Z/DftOOUERgr/ok6OCfWdFdDhN3/ox9wKxw/wWriYwQ7Dxx+cUxLKABVgK1VT0dvZwieGZKO154cy Qhpk/YduaTXEOjTEVSSGuqdifyTB1HXNhcwsPr1aYwHFEM150pA/tppIDnmdzBkPj/6Kln0pDC6KR rIX39AdB81eH9qtOxZBcMiEMSM85HbcKlvSJK9pjASE8nJQnYkEsB7d8pPMEWFSzO6wlEsdOFnJ8w KC2cs2n4YcXjixGky44g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7soZ-004iCj-Tu; Thu, 13 Jan 2022 05:38:24 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7so3-004i70-JG for linux-arm-kernel@lists.infradead.org; Thu, 13 Jan 2022 05:37:54 +0000 Received: by mail-lf1-x12e.google.com with SMTP id g11so15802309lfu.2 for ; Wed, 12 Jan 2022 21:37:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wirenboard-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LMVIf6eidCZlhuBpwEpwVRF+pP+2nKVMi7BQpp34us4=; b=Bvsb1h0AIb14iTaT86yWwrvNGz0PAr7ClUuU3fvGQU2XxheDeP9LJblRniC6xYjsvW lrKsPV03aO2q8coFCQcLlkAcYArJ4/ZW0xeI2VE2+s7Dxs6Y3EspdKgrMwm/u56iAM8M HVD+AtmXg0zZ8ctBSU8ER6sZ7Ro4xu7kVi/eyEV/0HamYpCPTaUeKS4QAlnFQCPeXAQs Eu8Mmt3G2MFQ1fxOpqwKRpvUKOyLiG/mjkVPT1PsiLCqcgf5+DIpKmMSKb+J7oHazjy9 3+LcSq7KB+nLlwkMwmphPyc2vLQqmHZQ58JrVrm30fHjuHuqtGaFDp+OJjbw6hTPE5UB wZlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LMVIf6eidCZlhuBpwEpwVRF+pP+2nKVMi7BQpp34us4=; b=aE/1AoHfWoBJBLpDFChFw+ZLTMb40SiHCN7urI6aAICmBVzu8KfQH9YLv4v4h0B4iG 6uE28N69HYEFxIpvq839Xx3RMspDVrO6ZwMH5yDyTp2PKzW0vJy6zlGDc8vww61a58DW /Xo/aJrSy25sTrLlFDD7iaN4uAQWedarmKbas+Y0OXq56ecGuvtkufH6FopDhecU3rz9 e9UbrHVrcabW4ThFbiMjnRx+OXrfkZGbx5QMZZjNfNPy9sLWtAEVnzS05y33OidQpgLC rMg55DqS+xXCX171MKMGCzqcjpnuy3oBCnohFJE2j/+aVSBgU135PWLQjzAGFfTHJ78b N3ag== X-Gm-Message-State: AOAM532MiBRC5q9jDKHqGBwO4JjNREDD9auPK3OXqKHZa+Iw2ORyYxcV 3Vlj2DO7rb0ayCZafFJT5w7Gdw== X-Google-Smtp-Source: ABdhPJxVtxlA4bWuEqA2uFn9Wd95Jc9arVr0nXuJXUGhs2wGi+qnEcxMcnypYqKX6crSvaItGv3kqA== X-Received: by 2002:a05:6512:b01:: with SMTP id w1mr2194009lfu.301.1642052267729; Wed, 12 Jan 2022 21:37:47 -0800 (PST) Received: from boger-laptop.lan (81.5.110.253.dhcp.mipt-telecom.ru. [81.5.110.253]) by smtp.gmail.com with ESMTPSA id x21sm180212lfa.296.2022.01.12.21.37.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jan 2022 21:37:47 -0800 (PST) From: Evgeny Boger To: Maxime Ripard , Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org Cc: Evgeny Boger , devicetree@vger.kernel.org, Rob Herring , linux-sunxi@lists.linux.dev Subject: [PATCH v5 2/3] dt-bindings: net: support for Allwinner R40 EMAC controller Date: Thu, 13 Jan 2022 08:37:33 +0300 Message-Id: <20220113053734.105813-3-boger@wirenboard.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220113053734.105813-1-boger@wirenboard.com> References: <20220113053734.105813-1-boger@wirenboard.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220112_213751_654526_F4213320 X-CRM114-Status: UNSURE ( 9.91 ) X-CRM114-Notice: Please train this message. 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 R40 and A10/A20 share the same EMAC IP. However, on R40 the EMAC reset needs to be deasserted first, so resets property is required. Signed-off-by: Evgeny Boger Acked-by: Maxime Ripard Reviewed-by: Rob Herring --- .../bindings/net/allwinner,sun4i-a10-emac.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/allwinner,sun4i-a10-emac.yaml b/Documentation/devicetree/bindings/net/allwinner,sun4i-a10-emac.yaml index 8d8560a67abf..d9ed7b547af3 100644 --- a/Documentation/devicetree/bindings/net/allwinner,sun4i-a10-emac.yaml +++ b/Documentation/devicetree/bindings/net/allwinner,sun4i-a10-emac.yaml @@ -15,7 +15,9 @@ maintainers: properties: compatible: - const: allwinner,sun4i-a10-emac + enum: + - allwinner,sun4i-a10-emac + - allwinner,sun8i-r40-emac reg: maxItems: 1 @@ -30,6 +32,19 @@ properties: description: Phandle to the device SRAM $ref: /schemas/types.yaml#/definitions/phandle-array + resets: + maxItems: 1 + +if: + properties: + compatible: + contains: + const: allwinner,sun8i-r40-emac + +then: + required: + - resets + required: - compatible - reg