From patchwork Fri Nov 11 09:42:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 18620 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp643623wru; Fri, 11 Nov 2022 01:45:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf6YkHL4zu5/bJ6ZQj9sacYaMNM0Hhh3wwes9nkcSKWSuCw+Oprju5dSx/ka/eFcB2fBxWcs X-Received: by 2002:a63:501e:0:b0:464:85db:29c with SMTP id e30-20020a63501e000000b0046485db029cmr915544pgb.600.1668159948810; Fri, 11 Nov 2022 01:45:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668159948; cv=none; d=google.com; s=arc-20160816; b=0ya9fv0kXimTFC2JBmaRjz3PzvNaDRaXdvVUf7QRDaDR0hsOrKmwAz01eGobo3Ckdh 1h1mnJjYchjOfoGhICNwaroTfJov4nnZfr/9QtmdYf4WdT2nlc3fhdKe7XIntuNEh5HJ NLH+xgoxinBTIxqdPLIKJ8SuxAwMkiyUyz2ZMQpz8YWe0rNaSWolxfLRUvbHTGVo7jJ6 75YtdPA1DPK8ft9Oa5Y5OOcy9xmDqjfCbDecaEm0lWzFoORBBDNqzLEq2t3r7uVDH7df SncGK8AH62Dx7i9fwK/kplzv4Iaq1OutXnG96I9kpz39YqRP73/ujqnlPd7I4gR6D7kR 0Yuw== 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 :dkim-signature; bh=pyDKQpZMzsEhp0LAIu0OPkD/FuQNGjCcyBUAqhhwqak=; b=IKYCMCiK8y3RRpPy160ESink6RCHgFNchTtWqPZKzxdCWnoTTackSwcBVY0b8y+JKw RbEZzZtjwHEr/NcHQ2QxNxKvdXeU8+2JObBM1dmnDUFST5lsSasO6awexGzRH7KmlFhu LwMGdE1oMphATuva46jvtzw9ZwMY/znEgIBzREDKKvltYNFQeUPtwVXUJ4SRchDPFvUQ fK6tfNhZ0wzvMkgGeRHoidlYqW+qrlUGi5FJ1ChvV5rVlQaBFFE5bk2rVqGEj+GyRlMX SUWvtowl5HHTIvjFgVRC+xUnHpbKsiqZQKD4pyXonQsKxwBS1QfE0N90kFz3KBiZNuSs UtsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XRP4geMZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b16-20020a170902d51000b00174b83659fasi2165903plg.502.2022.11.11.01.45.35; Fri, 11 Nov 2022 01:45:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XRP4geMZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233671AbiKKJnN (ORCPT + 99 others); Fri, 11 Nov 2022 04:43:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233670AbiKKJnJ (ORCPT ); Fri, 11 Nov 2022 04:43:09 -0500 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEEF5729A0; Fri, 11 Nov 2022 01:43:08 -0800 (PST) Received: by mail-pj1-x1030.google.com with SMTP id z5-20020a17090a8b8500b00210a3a2364fso7543763pjn.0; Fri, 11 Nov 2022 01:43:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pyDKQpZMzsEhp0LAIu0OPkD/FuQNGjCcyBUAqhhwqak=; b=XRP4geMZx6kjuwTuwCzNE3NGQvZSPEpgUGPUs/on8NHxBiXRo40j+eGI6CUVyRP1vh QZPNUwTxiNDvtyoAg5z8UV4Tiye9mGB7m87FISgzUQdPRGluBENb9zLf45DZE3LcOmdu mCC052P4k0Zu+R8hCZqYWXdOvMuJk1LNtYQaWw0Y0QuPXRsihOdIAyH6ZEuGipMuOHzR 0DINweUKaO2BXGVbpj+H3C5I0C5ZURPxqV94G4YeixQ34BWrKbUubzXncGEsrdxnUXGw YujkS7lHGqU8R0QeRZ9N3RsYmsU2Fg7GMI7ChqIWsqmA19VC1JU2dcSRshVUe9D8R4nq P+yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pyDKQpZMzsEhp0LAIu0OPkD/FuQNGjCcyBUAqhhwqak=; b=K7EV0slOU0Ge6wY1rhSCLizCJohN/oDbsxRcoItkdjFtqssmaSODtgOTIs49dSLUkB aoOjTa/JV1sSYdwyEPW7EoYZ8GlPcU5lLIONejbIjWEZp3PkUz3yzpR45ZHN1W3xlmKp DvMXbfe3ir8Q4psw/8S5FZo7HtuYaANjTl+FkydkqqYIpewsIpv7A2RPNAGXXzD/+1WM M5yqQ0JAI/vjPbHQc34IBNDSoRTjS5E8B4Jb8h3khunrSHMcFpZOhcJ4jPhbMuMV0Ux4 4k4q+A/wd06iDb80LruspsQOqKyruY85ArOoLaXYAWSotH1RJVHLZcp50s7olXG4ZFCd G9GQ== X-Gm-Message-State: ANoB5pkQrlKY4Wo/FnViiftO+d0PIP5TOfCTvmNZxBH13odMc/0q0MOO +Dyog7LXU1H8rwKahpGKJFM= X-Received: by 2002:a17:902:e54d:b0:188:4ea8:a685 with SMTP id n13-20020a170902e54d00b001884ea8a685mr1521777plf.71.1668159788465; Fri, 11 Nov 2022 01:43:08 -0800 (PST) Received: from localhost.localdomain ([103.51.72.74]) by smtp.gmail.com with ESMTPSA id fa13-20020a17090af0cd00b002086ac07041sm1188450pjb.44.2022.11.11.01.43.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Nov 2022 01:43:07 -0800 (PST) From: Anand Moon To: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner Cc: Anand Moon , Chukun Pan , Michael Riesch , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [linux-next-v1 2/3] arm64: dts: rockchip: Add support of external clock to ethernet node on Rock 3A sbc Date: Fri, 11 Nov 2022 09:42:34 +0000 Message-Id: <20221111094238.1640-2-linux.amoon@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221111094238.1640-1-linux.amoon@gmail.com> References: <20221111094238.1640-1-linux.amoon@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749192486621910130?= X-GMAIL-MSGID: =?utf-8?q?1749192486621910130?= Add support of external clock gmac1_clkin which is used as input clock to ethernet node. Signed-off-by: Anand Moon --- arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts index 72e410e3aca8..16fff1ada195 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts @@ -32,6 +32,13 @@ hdmi_con_in: endpoint { }; }; + gmac1_clkin: external-gmac1-clock { + compatible = "fixed-clock"; + clock-frequency = <125000000>; + clock-output-names = "gmac1_clkin"; + #clock-cells = <0>; + }; + leds { compatible = "gpio-leds"; @@ -249,9 +256,8 @@ &cpu3 { &gmac1 { assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>; - assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>; - assigned-clock-rates = <0>, <125000000>; - clock_in_out = "output"; + assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&gmac1_clkin>; + clock_in_out = "input"; phy-handle = <&rgmii_phy1>; phy-mode = "rgmii"; pinctrl-names = "default"; @@ -259,6 +265,7 @@ &gmac1 { &gmac1m1_tx_bus2 &gmac1m1_rx_bus2 &gmac1m1_rgmii_clk + &gmac1m1_clkinout &gmac1m1_rgmii_bus>; status = "okay"; };