Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4472284pxj; Tue, 22 Jun 2021 00:38:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxK+SSpbbL2ur8OwJ62oF1jSNOR3ma6yQR5LNRWvvfXpSjtg6Mh4Fqv5W0iKdtV++XQOrPx X-Received: by 2002:a92:cc4c:: with SMTP id t12mr1739700ilq.201.1624347508974; Tue, 22 Jun 2021 00:38:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624347508; cv=none; d=google.com; s=arc-20160816; b=TD8b3e68ffZm7Eiv6K8LYZPHvKjFFy1e+LjNCYL9Uw0R1wdQLrpLbifXSrX/rfY/l7 dPpx0BP/syJJ6vcFbP7T7OBc8tSpcWBtbK8Ma1Gc8SnAUnGvRr7ZXT67Qojg41h4id60 TIeNvt3v9Kq+7wdwLMbIjaDYQI72303OyyCTM0MKBMB3aPR+6C1CZW8beuy7UVSNTBlI Mkrilp1jRQEBnvzInV6POvS31GVuJqRUpVH5UsCzHaLPG3DPpsDuozCsodfhepFvbdlK llCpyYFirwavsG8HerZKcgrTS5GdgxQWZBWmpR6Bi5AVL4rY+JOwhlXPDODySF7s7XJ4 Kq3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=UvGpSvFLGKHnpRjGuxdWqQmn36axLEQZJBnI1yx/fkU=; b=wfTpz+gZ/dQtdb+2YEdPBMZkfC/il+5wBTYkTMUr7Ai8O6KK2oFvl1W+xqWV61HptG ceLlf58wn/QruAJoeYVfn7ZQr/r1EuXo6cwOnZ7s5Wmf40BflixOaIrDEnb+BokHuQcr FEacNQLHyolHW8cLQ7CpxAb2NaUtGozlHo+FuvnGWRp22srL8drraSU8s2X+0f2TILhx ynrrcNM9d5K69li0lhCB8g4Ai4LTE1SJf4Dg+ZImsYlkg7Hryo1Hd2kkRg7QFUf6S+73 2gQBpwfcpjbyzJSpaIgnkfV4kH8HvILk+41kKuEM3ZZkxyg7Vfb69VJeXvMH2iVi8YW2 gMdQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k6si18336536iow.10.2021.06.22.00.38.17; Tue, 22 Jun 2021 00:38:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229954AbhFVHj7 (ORCPT + 99 others); Tue, 22 Jun 2021 03:39:59 -0400 Received: from out28-125.mail.aliyun.com ([115.124.28.125]:55335 "EHLO out28-125.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230062AbhFVHj6 (ORCPT ); Tue, 22 Jun 2021 03:39:58 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1416569|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.0113689-0.000133307-0.988498;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047209;MF=zhouyanjie@wanyeetech.com;NM=1;PH=DS;RN=12;RT=12;SR=0;TI=SMTPD_---.KW7pc9x_1624347446; Received: from localhost.localdomain(mailfrom:zhouyanjie@wanyeetech.com fp:SMTPD_---.KW7pc9x_1624347446) by smtp.aliyun-inc.com(10.147.40.26); Tue, 22 Jun 2021 15:37:39 +0800 From: =?UTF-8?q?=E5=91=A8=E7=90=B0=E6=9D=B0=20=28Zhou=20Yanjie=29?= To: tsbogend@alpha.franken.de, paul@crapouillou.net, robh+dt@kernel.org Cc: linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dongsheng.qiu@ingenic.com, aric.pzqi@ingenic.com, rick.tyliu@ingenic.com, sihui.liu@ingenic.com, jun.jiang@ingenic.com, sernia.zhou@foxmail.com Subject: [PATCH 2/4] MIPS: Ingenic: Add MAC syscon nodes for Ingenic SoCs. Date: Tue, 22 Jun 2021 15:37:23 +0800 Message-Id: <1624347445-88070-3-git-send-email-zhouyanjie@wanyeetech.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1624347445-88070-1-git-send-email-zhouyanjie@wanyeetech.com> References: <1624347445-88070-1-git-send-email-zhouyanjie@wanyeetech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add MAC syscon nodes for X1000 SoC and X1830 SoC from Ingenic. Signed-off-by: 周琰杰 (Zhou Yanjie) --- arch/mips/boot/dts/ingenic/x1000.dtsi | 7 +++++++ arch/mips/boot/dts/ingenic/x1830.dtsi | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/arch/mips/boot/dts/ingenic/x1000.dtsi b/arch/mips/boot/dts/ingenic/x1000.dtsi index aac9ded..dec7909 100644 --- a/arch/mips/boot/dts/ingenic/x1000.dtsi +++ b/arch/mips/boot/dts/ingenic/x1000.dtsi @@ -80,6 +80,11 @@ status = "disabled"; }; + + mac_phy_ctrl: mac-phy-ctrl@e8 { + compatible = "syscon"; + reg = <0xe8 0x4>; + }; }; ost: timer@12000000 { @@ -347,6 +352,8 @@ clocks = <&cgu X1000_CLK_MAC>; clock-names = "stmmaceth"; + mode-reg = <&mac_phy_ctrl>; + status = "disabled"; mdio: mdio { diff --git a/arch/mips/boot/dts/ingenic/x1830.dtsi b/arch/mips/boot/dts/ingenic/x1830.dtsi index 59ca3a8..215257f 100644 --- a/arch/mips/boot/dts/ingenic/x1830.dtsi +++ b/arch/mips/boot/dts/ingenic/x1830.dtsi @@ -73,6 +73,11 @@ status = "disabled"; }; + + mac_phy_ctrl: mac-phy-ctrl@e8 { + compatible = "syscon"; + reg = <0xe8 0x4>; + }; }; ost: timer@12000000 { @@ -336,6 +341,8 @@ clocks = <&cgu X1830_CLK_MAC>; clock-names = "stmmaceth"; + mode-reg = <&mac_phy_ctrl>; + status = "disabled"; mdio: mdio { -- 2.7.4