From patchwork Tue Oct 25 14:41:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ioana Ciornei X-Patchwork-Id: 10848 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1047530wru; Tue, 25 Oct 2022 07:45:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6a2ULEu8wGl7vqGifJV5Wg6w4vN9nDmicph5DWvybI54mnBsEU/PiQGHaNryo7+rkTyU1P X-Received: by 2002:a17:907:6296:b0:787:d066:9fcf with SMTP id nd22-20020a170907629600b00787d0669fcfmr31326627ejc.692.1666709101594; Tue, 25 Oct 2022 07:45:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666709101; cv=pass; d=google.com; s=arc-20160816; b=QkoG8uytTacuqVHgGrCe7VOchx43qVDtjQ7Dwuf94iB144p78QBIWijy+nN59mE5pQ DYtLAtQQ5DkWDoxcr3lclsltJHjM5i5+vGvZPx1YrDduqY6MdqRm8GEARFMZDsAMhZRx Kis+HaHve0+grhxbUDF3vQVL29ZOnwsOrca0UBgnGh/ci6Wb1E+l42fdNl4WvW3L+OcX zm/EL/23YHNvSQ7cBebZ/8Fl9oMOVO/7gaFrWZmUxhWi5i2u9qT1cgo/SqtN5FNVHAv9 YBu1O2wGR6hu2lGEYpLY5ZuE2vS8bdcJAllfH+A6qjLwa9bX7UvKQFgv+OIot4KIR89n ayvg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TLXjUErPRHjM0ZcFI8P0DubxZDqAH/cjLy4gavA5ajQ=; b=QYEmf5q7LOzfe0g2U42sbZaSnnszvtEOpqtHakFmgFVexXTCEhNm39RLynF2o7r6nV 7pBCRLQPTShD1yR8TGNJMeUpcVY6lyFOiyn/SUdC1u+w3qt1pEbBds0NnwfEGO1BIFNH RgipZKrG5taaNMBWDzzWAYgGGH0VcAYDVInwlyBnfYAh8q5Jl2X9JQ5xjlPBu4y1MHm+ LJNCLif/inyhNAR7FRpMslzfOgirhzUuMlfw8GuRT9eHn2KSHSWvD8ArMYXutFK5WRXI XfqEl45rmgTRgeGLe6K3aonNCvjaAfX+app6C1uqj0nFqxeaLdEpAv8ZE+dlFJ4mOJTJ K+Hw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=osmmiPUB; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z16-20020a05640240d000b0045d57af9fd3si3566533edb.593.2022.10.25.07.44.37; Tue, 25 Oct 2022 07:45:01 -0700 (PDT) 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=@nxp.com header.s=selector2 header.b=osmmiPUB; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232437AbiJYOmH (ORCPT + 99 others); Tue, 25 Oct 2022 10:42:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232536AbiJYOmB (ORCPT ); Tue, 25 Oct 2022 10:42:01 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60048.outbound.protection.outlook.com [40.107.6.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 683A4166994; Tue, 25 Oct 2022 07:42:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mLsAwnoiM9JkZOZaWVKCazH33QK00I7Iboy/7UIN15lYTpOSx1ia50LrbxccokNGqLyGAyoOHTkdHurXfd8ctNUfShz1/TyvCi+9cIF71AexNnjlUDoqMqpc8jxCQMgHaAJEzCgbb2r2dOH7bSpxMGSuitJkclt7zkyVlR8PWQBcvdtBYtw54BLKo/R82dCm/vvvAAL4njefPzUsL/PFFmLk4M5mS3J9UKonEfQ7YXJ1biLXW5g+jI+EKfc/oGAe0ulNuZp19xcu5kTZrX2hPoQ6n5FyQUV+LsAKULI796WcEDRn0G8/rUI2MavEyVqdJNNu2E7CBz9QAouzn5WiWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TLXjUErPRHjM0ZcFI8P0DubxZDqAH/cjLy4gavA5ajQ=; b=G0+JzqE3i0qRCn7Xcq+19kmLCpxRqt+GZ/O+MpEOcdd9DLhCGf7CSX6JDxsUAFeMgHylFkekhrLdRH49GwNuWOknyYN2Hp++hhGZGwtAN8gUgjXS0KiUTsb2t9eebEuf3RLcs+spVRSb99KxOpjmOUC+IF8GGvZkYFu9EU7ZSLxE6gFXyULPV03cQBN4/gdOqZt51nO0Inn+fkd6xqWfcyqb6/OBKouIXsmXxPPIumiQ4kLbvQPutqJnHDfuvTLD4OT6p7cjaYVW4gIbLpdQylNsKSH3N5Y3rqnBb3ESVIUKHNQ5KA4wtX7mY8gZH/qLvvp4RKS+Sbe5+XSOVnak5A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TLXjUErPRHjM0ZcFI8P0DubxZDqAH/cjLy4gavA5ajQ=; b=osmmiPUBO0FEnrp15Mfw5grUv7TAgncmFaLuZJ8PUUB0EN0gOkelnrhUE5Gldq88W/KZGvgL8GVPz9TnvPIDX/4ke+yUJzWQunj2UdJd7kt7txeCvHd0irCPvbyH7aea3UAoo4M6sO4e9jOsagJYoW+LJjX3MMkfqu1QtDE6Deg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from GV1PR04MB9055.eurprd04.prod.outlook.com (2603:10a6:150:1e::22) by AM9PR04MB8537.eurprd04.prod.outlook.com (2603:10a6:20b:434::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.21; Tue, 25 Oct 2022 14:41:57 +0000 Received: from GV1PR04MB9055.eurprd04.prod.outlook.com ([fe80::408d:4d9d:f80:620a]) by GV1PR04MB9055.eurprd04.prod.outlook.com ([fe80::408d:4d9d:f80:620a%7]) with mapi id 15.20.5746.021; Tue, 25 Oct 2022 14:41:57 +0000 From: Ioana Ciornei To: shawnguo@kernel.org Cc: leoyang.li@nxp.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, rmk+kernel@armlinux.org.uk, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ioana Ciornei Subject: [PATCH 2/3] arm64: dts: ls1088a: specify clock frequencies for the MDIO controllers Date: Tue, 25 Oct 2022 17:41:16 +0300 Message-Id: <20221025144117.1010488-3-ioana.ciornei@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221025144117.1010488-1-ioana.ciornei@nxp.com> References: <20221025144117.1010488-1-ioana.ciornei@nxp.com> X-ClientProxiedBy: AS4P190CA0037.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:5d1::18) To GV1PR04MB9055.eurprd04.prod.outlook.com (2603:10a6:150:1e::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1PR04MB9055:EE_|AM9PR04MB8537:EE_ X-MS-Office365-Filtering-Correlation-Id: 89fe0d7d-99d2-43fa-63c9-08dab69710a8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /jHsRwQqxF2rIBS853IiAo2k2nIeR7d5cG20HwUXY+y2VzZul+41cQdE7NIiGzellb5Q0yCi/C4eJvCDndmHCOVgnakeyiBcZyUVZxMtrlWtdgNrXyRKiz1SfHxwDEZhpbKClVgUebsY4PUtOfWH5eFhMSW6kjljltFwUPUKNkALnWDYTv4yoGMqJVZTY3EIXlp3lObw39ebnGMjuGsGG77Y1Cx6q2egmqPpSaHsTWrI5QhbIEQtp/8m6sm4NjU3WBtM8d9WtvcIt7CklOWTgloTZvCemkIU0XmOEFu2F0hyQlYbP13Kox7iGlKc7Qd5S20B62xjrFYBGzOGux35ie9xfM+C0LyUZchdqYiyfENDU6UKLLcZOhPkdvw1Kf4f7H5McUTvjrQKFJ2mKEeWtexDe7CoYfv3jCnSF3vJzijaXfR+XkXKO1K2nsnsZShDsE9c3LDC19HN+u7r2eOhWH6h75WBxNEq8GvjIX2v4nFL05kLXSi5ZSFY4UIhBwKC56UGrXbimUhG7EYeXVYJwme3sv9vy1Q0cfASeVHQn5E6grQFjZ6PmPQTLLVBNR53X1YxiQmVq3sES9bX1Mmm5gdQAkuZioAWFXmU/uh7bByqVA9wxL28vY7qyPaxGm7Hgz5CkGjXLaZcHov7EXnixPQ5ZsVpTUUkQfvdJlJFHBIW7y5LKu9oIfRKFSrNf9D7gJDwTca+Aj9IbD+foik8iVoA+YDkAfF3EZMreyktPfryHOPTmYDdpew+lX3uypJSZ65PCIogRcrJjt11LIzriQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GV1PR04MB9055.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(396003)(376002)(346002)(366004)(39860400002)(136003)(451199015)(36756003)(66476007)(44832011)(2906002)(316002)(66946007)(41300700001)(4326008)(66556008)(8676002)(5660300002)(478600001)(6916009)(6486002)(8936002)(83380400001)(38350700002)(38100700002)(86362001)(6666004)(26005)(52116002)(6506007)(1076003)(186003)(2616005)(6512007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: uEHwJ5wq6gNQqZFbU0VnPUrDyO7FOKSOM8ltsAyqnKKxPNU6nEg0RIs8Cx7xODMRQEZBB4mmfDDzR3KkMR0fM202NikHc17CB9rI5+6aznpMVY/+yrMybu1RhLviIo+EDXHj5l+5Yo0qfT1zPhd9/cIl+Z7dCcdnn1bt8SwkvqFU0CCkS6frFMHwINtJ3r8XY5o9htpatRkMDDNCznZxhGKrMzm50CZ8OpcwJJK1GNWPelS4BbXtwQoHMypf2IoQESMHifgFseiN2v0dps58bbJvCIQd9mHdGLBmwV2UE4fkkgwQQE5b5TsMqwLOOG6ydV/kU3fGksuXgM6dlJ1viBECg2Q5g8ajf3JM96+EIKevNM86Wz/q9vsGnUm9/iF9MyAB4KqiPmTFcr01t1f18D+2aKJPx5L+0jbgy4t9ewnQHupuRxJ3yBtC3j0bGxFJW/K7UOk4lXCJaLf7pURGEODcc4+HIl2DYimvp7IHfgtUe+u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4YOMgf1IpGLDMgrFN1YTlek9w3uOdgWxPnbg/8O15+4QPrrf8nTaONYQETAFw== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 89fe0d7d-99d2-43fa-63c9-08dab69710a8 X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9055.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2022 14:41:57.1366 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uLNsotBIv6fJRqveXbtSZpF1gvlN+7A4nu6iyyhlGdo93dq9elpaEmjUHLJ0m1JikwYhNPZwwa8eLO4IFj9lBw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8537 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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?1747671163214224005?= X-GMAIL-MSGID: =?utf-8?q?1747671163214224005?= Up until now, the external MDIO controller frequency values relied either on the default ones out of reset or on those setup by u-boot. Let's just properly specify the MDC frequency in the DTS so that even without u-boot's intervention Linux can drive the MDIO bus. Fixes: bbe75af7b092 ("arm64: dts: ls1088a: add external MDIO device nodes") Signed-off-by: Ioana Ciornei --- arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi index 421d879013d7..260d045dbd9a 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi @@ -779,6 +779,9 @@ emdio1: mdio@8b96000 { little-endian; #address-cells = <1>; #size-cells = <0>; + clock-frequency = <2500000>; + clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL + QORIQ_CLK_PLL_DIV(1)>; status = "disabled"; }; @@ -788,6 +791,9 @@ emdio2: mdio@8b97000 { little-endian; #address-cells = <1>; #size-cells = <0>; + clock-frequency = <2500000>; + clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL + QORIQ_CLK_PLL_DIV(1)>; status = "disabled"; };