From patchwork Tue Jan 25 17:11:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Hancock X-Patchwork-Id: 12724069 X-Patchwork-Delegate: kuba@kernel.org 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A2C1C433FE for ; Tue, 25 Jan 2022 17:14:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380758AbiAYRO3 (ORCPT ); Tue, 25 Jan 2022 12:14:29 -0500 Received: from mx0c-0054df01.pphosted.com ([67.231.159.91]:11227 "EHLO mx0c-0054df01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381226AbiAYRMX (ORCPT ); Tue, 25 Jan 2022 12:12:23 -0500 Received: from pps.filterd (m0208999.ppops.net [127.0.0.1]) by mx0c-0054df01.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 20PCjBKd007915; Tue, 25 Jan 2022 12:12:09 -0500 Received: from can01-to1-obe.outbound.protection.outlook.com (mail-to1can01lp2054.outbound.protection.outlook.com [104.47.61.54]) by mx0c-0054df01.pphosted.com (PPS) with ESMTPS id 3dsvtr0y77-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Jan 2022 12:12:09 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GqfDzIAnzlXChD2SYB4+NuTAjbEIeWgAyrUJZZK8EXmsoO6mxKZ1UW+WputTxoV/WZDprrl7H9Rjc8qDAc9Z+Nr3Mpk8/CCv5nCTWwQPBB9eskKhamGqMXJSx4I5wRRdOROeJyUo5knbr/fs6guKP8ai5AmRHxb3UjF1GETbLIDJ3x6NW8pMCvPKf2K4+wGJSZ4woubiRM1BbxKtM5ZZaA4Ng9zeq24uDU8DEC9uzQHYuZ/fikTQYdvPrycRCyUu2w4dqvBUZ7gP7Jh+9Anr7pk3sr+PFnMlGuPM9Wlbtg6og5n2N7XopNy8JjkrlGt1x5nYNVeb1ROz3lsWApdsOw== 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=jBBv6L7nuTh14DdrAsfoyaTAfWQIBln4jQF8cfrYMt0=; b=LU795ivOczVPqBJPN/sqBK8FzAHrMUIYl7biHh8Ajk4qGAMhlfLvVMR8o6o91VL24/wK45XFP9ElXwZYUmnfcgx2lJPIlLjpvZ3viL88cyyYfm3VPyrX/R4PzLGxRbuKH49xtU3XiZNLO1pbblMp5c+2UzJbBYxc+68DZT+yUnl7hv1Laaz2+JJElB44XoWhxvXwyaRiik9Gh7Kj0wWLC8EjpJNQMo0X6HuJ8AC8PTatSiswRdicqxWwO8agTom40jk+ogJrt6Iwxic76hE77ESu/9AO+SrE8d8uhowe5GagjHTkMonPJ74Do/lDfIRThRVTdP5UcXd7zMXtUyS8Fw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=calian.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jBBv6L7nuTh14DdrAsfoyaTAfWQIBln4jQF8cfrYMt0=; b=eEzxGGUPJT0gjP/TYTwIEYzuno1IEejV9nmnPGZeQEfErxMH5GYdf03V4a4DvhIKcRTeB6Sxg+K2UP4mbY4AMrllCcC5rtuzgrtMsZLY4WK7pjQ1lR4STP9sCCo4tVMBZzeHtDSmWt3FKabE1oz3u8189i5QZ7ZCAaQwaagxAf0= Received: from YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:6a::19) by YT2PR01MB4382.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:30::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.7; Tue, 25 Jan 2022 17:12:07 +0000 Received: from YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM ([fe80::6929:c39f:d893:b6c8]) by YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM ([fe80::6929:c39f:d893:b6c8%2]) with mapi id 15.20.4888.020; Tue, 25 Jan 2022 17:12:07 +0000 From: Robert Hancock To: netdev@vger.kernel.org Cc: woojung.huh@microchip.com, UNGLinuxDriver@microchip.com, andrew@lunn.ch, vivien.didelot@gmail.com, f.fainelli@gmail.com, olteanv@gmail.com, davem@davemloft.net, kuba@kernel.org, robh+dt@kernel.org, marex@denx.de, devicetree@vger.kernel.org, Robert Hancock , Rob Herring Subject: [PATCH net-next v2 1/2] net: dsa: microchip: Document property to disable reference clock Date: Tue, 25 Jan 2022 11:11:39 -0600 Message-Id: <20220125171140.258190-2-robert.hancock@calian.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220125171140.258190-1-robert.hancock@calian.com> References: <20220125171140.258190-1-robert.hancock@calian.com> X-ClientProxiedBy: MWHPR1201CA0020.namprd12.prod.outlook.com (2603:10b6:301:4a::30) To YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:6a::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d4a7bce1-1bc2-405e-93c6-08d9e025d0c7 X-MS-TrafficTypeDiagnostic: YT2PR01MB4382:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3631; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /wPnRPyl71yRsOIR1kEmN990z3WadXEN/utvPvlperQ8xdc9b15Y4qwfPOIJUCAIA5QkuvLJyE1q+Ya8MlLloAvgO36761LzqKFrkeIJXhMZb9Y4sYP9RotpSz5lRAeBCMl3A8M51PoQnfvei7zGgC4RGBWgQuYGm4jyYG0/RznwTOE7MJAdeMaubz7tqbvl0718Wnrh62hZqBskfyX0EwAPLnM2/hnATQvNui8pXBDnKSZftnFaJh/fX6vVYNjTIy++dYduvRA6Q1BFn3smU63TeOMowSWtz5Hu3VtgSbDFLNwgHsanL9OUbN4daasSG3Kufb42bMLb7brpG5exmKo0vN8Rar4lzWx2rSUByCMvAoJ47TG5idipS+I5JwE8Ye629+1SiqwZ0XNro4t6xvbdvYGAIf+rwqKphWPgVxXlaWy/SHi5QJPyuJN7djxhPoqreGiwmG55Gu1oLc2x6kinC/xVHByXsK17jjksEkjd23gaaUrq4MuP8DtH7ab9oAsltja7qcStq+s34djiCdlRs4OtLCFXPIuvxfqV39a9sSC5ItZD1XxpGG//uBZMd+F/xOxJ5OdV80IZPaRbCVFUj55DgSKNTfTgJRRud0gqf0ZzWg2RhKueHqKNupHik7aLkOSWKoSkohlqkiakS8VCecnZt0FeKob1vS/1irNBor+9P+GHqS3x3TG0jqhJpB1xnalcbOUc09u32/0bkg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(4636009)(366004)(4326008)(6506007)(66946007)(66556008)(2906002)(44832011)(7416002)(36756003)(66476007)(86362001)(52116002)(6486002)(26005)(54906003)(83380400001)(38350700002)(38100700002)(8676002)(8936002)(6512007)(2616005)(6666004)(316002)(186003)(1076003)(4744005)(6916009)(5660300002)(508600001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 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hfFhp3cfDQiUAS+2bW5jRKNkgHkVvKUavgBTHQtu+vtvyTGbYKRESQBFO/zSAF1uX2e2Pl9WW1bh8FEvJ9xtOHupKgotoJLReiWBU1mbZlBZF46rTpNzsi5LJymJaylIQiTfJfWXgQVbGlNy4rzyUiLC6CCwuHb2xAWYfoaIP4hgNIt9R9gikkg+EuIl/y75Q/DNo/oMFmilC+P1cW5Z5E1kZvg8b8rkbu5DBnMIFrWvE1ZCbvi73W4EZ9mZAqxU4rb/HfbwghaojgkrhnLVafwSHGQSOfX/K8mBPTtTktWGU8qiqr5TeUIVXUNKttkqjwWS04l53NHpI8RI4tDFol91Djxr1TUYyMWyMSlj9OJNUtUx4HiwnXon72ngtx8o7Ya0+IjXVaOdQLhS4rD1mdzW49/Q+LdWNBNkAEyNsWWek3EHGtBCj6hJcFEip2Sq3tQ+/qlr84kGFYp66TSyj10OxIbZ3OVnMdx7F4G2/FuHZR4lo2onr5IgpQaTvQB29giHanuMxcv3bzJ5ZkOK3wnvRREwCUVz6PS5smPCib5RhcKcKYs7Iql+JUK6gfOlMHX+DCEtmetODC4XdZ/LMqW9dtw26notp+J6IWtjdCtl8GH0Vox0/QWr5DW2rUJP3yX4iehww3eQ= X-OriginatorOrg: calian.com X-MS-Exchange-CrossTenant-Network-Message-Id: d4a7bce1-1bc2-405e-93c6-08d9e025d0c7 X-MS-Exchange-CrossTenant-AuthSource: YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2022 17:12:07.2662 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 23b57807-562f-49ad-92c4-3bb0f07a1fdf X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Dpk6NKsRXjshHsPkAmeeuPhJ3t13u7t/S/v3KyvsUwKH97wcFeRmxWdV5tI9R+aJCmjT1yWaS6YKxA4WY1uo2hJkRopNU6/29YSofWHJuTI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: YT2PR01MB4382 X-Proofpoint-ORIG-GUID: wnucEwB01q5dbbEUtO0f2dGoX_MM7Eyl X-Proofpoint-GUID: wnucEwB01q5dbbEUtO0f2dGoX_MM7Eyl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-25_03,2022-01-25_02,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 clxscore=1015 spamscore=0 adultscore=0 malwarescore=0 mlxlogscore=999 suspectscore=0 phishscore=0 impostorscore=0 priorityscore=1501 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2201250107 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Document the new microchip,synclko-disable property which can be specified to disable the reference clock output from the device if not required by the board design. Signed-off-by: Robert Hancock Acked-by: Rob Herring --- Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml b/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml index 84985f53bffd..7cc22ab1787c 100644 --- a/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml +++ b/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml @@ -42,6 +42,11 @@ properties: description: Set if the output SYNCLKO frequency should be set to 125MHz instead of 25MHz. + microchip,synclko-disable: + $ref: /schemas/types.yaml#/definitions/flag + description: + Set if the output SYNCLKO clock should be disabled. + required: - compatible - reg From patchwork Tue Jan 25 17:11:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Hancock X-Patchwork-Id: 12724070 X-Patchwork-Delegate: kuba@kernel.org 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BDAAC4332F for ; Tue, 25 Jan 2022 17:14:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381320AbiAYROb (ORCPT ); Tue, 25 Jan 2022 12:14:31 -0500 Received: from mx0c-0054df01.pphosted.com ([67.231.159.91]:11557 "EHLO mx0c-0054df01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1392182AbiAYRMX (ORCPT ); Tue, 25 Jan 2022 12:12:23 -0500 Received: from pps.filterd (m0208999.ppops.net [127.0.0.1]) by mx0c-0054df01.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 20PBvDA0004742; Tue, 25 Jan 2022 12:12:11 -0500 Received: from can01-qb1-obe.outbound.protection.outlook.com (mail-qb1can01lp2054.outbound.protection.outlook.com [104.47.60.54]) by mx0c-0054df01.pphosted.com (PPS) with ESMTPS id 3dsvtr0y7a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Jan 2022 12:12:11 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DHsBxg5RW5QeBQZraky7B4C4ia+P5hH/D2bFY7jorqEj5vDip7tDOR9n5qceWaEC6/Y++7zAniI66GfZVyVM7vuNA1R9S4trnNcjcJc8tu02/leUvP6nk0QZH0WmHvwBSX6U2CvnT/heX0AsRbj3bFABYsUZVRO+mw0xrxX940SjhnpT0Ne0+R95twIOw9sHrqKttco++anM0ps3odObh8s9UOQ3xQSA1Ocmy/0sv+jrCMXTlSfWGoCqGnjFxzfSB+lrLYKf8oK86IYL9fWevlKytQl8Z3N4nEicI6BGbD8aCWxNXEzwh0DHzLQO3EaLy33QV3G+iKl4oXRx8dccxg== 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=bcg329DL2Nfk/YbSd8kLr5YjWlnL4qcBO7yCk1Xjulo=; b=FQroiAW3xcM9UZohkVDMYKkNUUsXrMFUR5OBjKsRczcFGI5WRLF8g3QeeIQlW4TmDrVQd7Z6wfOsuzpM7d3sibpNeI6Tuh6i3YmqptncH6/gvoyMeZkRrBc2dT5Gr0rszXmKaP+Cu7PIaXFST3IPMkspR1Hh6Juh4uFLaFDw77pjvjHMvFLtnIylWgnzd5WsloisN6dAsaANkII59rhZWqiW8Zp8hnzIFHw0FObt3qNw9dlsLoLQD+uWAd80UkOcIvSn+U2rNIwXG4G0vPZ7prmUFGy0cMN9L6XuYcGa63vAdfFt508FCeIXUqG4uuzPsIhvJg84SuWSxaM7LYYZdg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=calian.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bcg329DL2Nfk/YbSd8kLr5YjWlnL4qcBO7yCk1Xjulo=; b=4xiJjHeUClgSBlma9CCAduw3DfnG6wlziNs63I5q1G/o4KE5ttF3IzoMxBfKAnFy3FPkMnwaYBGrmH2TBzDptxJTI2OonhbhKRnD8iiQ9RotTJt3oj6nioBl7rxArICMAdrorajFVpANG7WyKSy8+GYBhhnnx5GWS6zXv6V+ZV8= Received: from YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:6a::19) by YQXPR0101MB1992.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:1a::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.13; Tue, 25 Jan 2022 17:12:09 +0000 Received: from YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM ([fe80::6929:c39f:d893:b6c8]) by YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM ([fe80::6929:c39f:d893:b6c8%2]) with mapi id 15.20.4888.020; Tue, 25 Jan 2022 17:12:09 +0000 From: Robert Hancock To: netdev@vger.kernel.org Cc: woojung.huh@microchip.com, UNGLinuxDriver@microchip.com, andrew@lunn.ch, vivien.didelot@gmail.com, f.fainelli@gmail.com, olteanv@gmail.com, davem@davemloft.net, kuba@kernel.org, robh+dt@kernel.org, marex@denx.de, devicetree@vger.kernel.org, Robert Hancock Subject: [PATCH net-next v2 2/2] net: dsa: microchip: Add property to disable reference clock Date: Tue, 25 Jan 2022 11:11:40 -0600 Message-Id: <20220125171140.258190-3-robert.hancock@calian.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220125171140.258190-1-robert.hancock@calian.com> References: <20220125171140.258190-1-robert.hancock@calian.com> X-ClientProxiedBy: MWHPR1201CA0020.namprd12.prod.outlook.com (2603:10b6:301:4a::30) To YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:6a::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5643a01a-6443-4220-f987-08d9e025d212 X-MS-TrafficTypeDiagnostic: YQXPR0101MB1992:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YF2bfDLM/kMNps7dU0yhvIevSXfRn2ja0wCl+3JXXbi/g7/uiQ/FfVZr0Wp52rccfL3ZiVEknGv95t1ymumhpwMzos0y89hx0se85+xcdStf3o5VJBY6ZfULKbjbZTnMbwp+CkgnMW/tBgR6WTXu+Gq/jTdIoqCKfd/NCAmJ30mnT6Lg+IFUtyVLJENktfYq4lW/vGzw5tRKCz9wZGIpjsj8smwbsms75UrUD+wCNrBCfunzjvI3qes73F5RBG94BD0corjSAQDjuC1xfJJBQGi/odVwQRjAYh9a7wY8WnlG4D8huQqfCmBjSy5qLb3kIomXMwec3Mm43cMQfpehQobj8sDn3xmgRtz3LTymqVlg2npBDxSJWGU7fbSLGfuSMtYGglNTC1h2m0NJhNBu6mMD1GZV/+TcCgA1Ge1U+lTtBi8L7GY1cYpEn+RQZGaMrtzFo+K4eY2Rw/IyNdvfxMC6UWS3vwc1+c+8StUjODqHr2JA5JDUME93j4hcxs1I8bT6/TFc2QWtfee9nSdfkdjDZ41pPFTKa/prXCVc4Yu1AANN8ECyMRSKR1efDTu7/1o6N6gvrMgmvO+DwyKB9CR233yfDwf12YZq8Jkl8/6IjS05ixGA7owxk4TF12T23tgAOGN70++Yk7o3BwXZ4DJYryFwUhT/LAEBoHuvTPG5UkE9xNDaJ/2dXb4g80dewuRJJ94I9mp/kE83m3Q1aw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(4636009)(366004)(508600001)(186003)(66946007)(44832011)(8676002)(36756003)(8936002)(66556008)(26005)(5660300002)(86362001)(4326008)(107886003)(6916009)(7416002)(38350700002)(1076003)(83380400001)(38100700002)(66476007)(2616005)(52116002)(6506007)(6666004)(6512007)(6486002)(316002)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ge8j9oz+qXc9sugkeu4RHCp4mazgZvH2CbWCQXq0kg2RLTlCs+5XmTJDOXzj9kbHLnmDuxYn28Jj0+gixiZd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J5YJArH0US8fCnA6X96qqmbvKxyVijkiQxfuq0DN2k1PtGjxAZUFZvQ452Sf5ua1zYzpXD7EDlw9yPB1Z6+VTnsb0Ls7nOEQMAlUwdyRJf7hFWigM7+Nq8XyRLY5QegYOu2FNgKC2palBGsvaycN/AYTYdybSYTcWLhjxKrT85ZVKpwiLxNDaQcDBw/e6nDlXqLZJmGeSi5cju8qtAD3KKnsifg7fTSYJyTp8zdJMlbnJIXgf8RkZ/skzB/XwJJCsZM41oH3iMN8nUUc2qsc+E4mHgubs+gRjbYW4tGT7v0wwHRMPPcuKChHRXXHlRhMcZ1i2wb7OesOUlTQ184+lbV5qx3+NQcFIIncvBzgypvPVU1FkQYdec6pNRP8G5brUlM6X0B5DPU5WKHD725yGF7495x+GDmOot0rXmEarZdzidHH0ytyoCUVwPnU4xJPwRkglt887ahn7JDp72utd9rImIMIXu4sZh0KnB22pstFFzUW6d6clXTY+AqvqWURL55qA8Pr1U6w8cJeaDudnWwgTBZSqlzuE3JHZ8uDM= X-OriginatorOrg: calian.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5643a01a-6443-4220-f987-08d9e025d212 X-MS-Exchange-CrossTenant-AuthSource: YT3PR01MB6274.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2022 17:12:09.3925 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 23b57807-562f-49ad-92c4-3bb0f07a1fdf X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LgQFLZxiGhfzbYkj7BhsuSMMbwWEPOezUSk/Om7Dn3zhufoUzVtnrmF9o7O6ErE27Xmr4Hi4Z7qPicdDO1en+XZj8mhoIPMq/ZcVuNKL74E= X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQXPR0101MB1992 X-Proofpoint-ORIG-GUID: DqmbLuKDlCQjesR0Djkla31m3I7OH8sX X-Proofpoint-GUID: DqmbLuKDlCQjesR0Djkla31m3I7OH8sX X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-25_03,2022-01-25_02,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 clxscore=1015 spamscore=0 adultscore=0 malwarescore=0 mlxlogscore=695 suspectscore=0 phishscore=0 impostorscore=0 priorityscore=1501 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2201250107 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Add a new microchip,synclko-disable property which can be specified to disable the reference clock output from the device if not required by the board design. Signed-off-by: Robert Hancock --- drivers/net/dsa/microchip/ksz9477.c | 7 ++++++- drivers/net/dsa/microchip/ksz_common.c | 2 ++ drivers/net/dsa/microchip/ksz_common.h | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/net/dsa/microchip/ksz9477.c b/drivers/net/dsa/microchip/ksz9477.c index 353b5f981740..33d52050cd68 100644 --- a/drivers/net/dsa/microchip/ksz9477.c +++ b/drivers/net/dsa/microchip/ksz9477.c @@ -222,9 +222,14 @@ static int ksz9477_reset_switch(struct ksz_device *dev) (BROADCAST_STORM_VALUE * BROADCAST_STORM_PROT_RATE) / 100); - if (dev->synclko_125) + if (dev->synclko_disable) + ksz_write8(dev, REG_SW_GLOBAL_OUTPUT_CTRL__1, 0); + else if (dev->synclko_125) ksz_write8(dev, REG_SW_GLOBAL_OUTPUT_CTRL__1, SW_ENABLE_REFCLKO | SW_REFCLKO_IS_125MHZ); + else + ksz_write8(dev, REG_SW_GLOBAL_OUTPUT_CTRL__1, + SW_ENABLE_REFCLKO); return 0; } diff --git a/drivers/net/dsa/microchip/ksz_common.c b/drivers/net/dsa/microchip/ksz_common.c index 55dbda04ea62..0a524f1f227a 100644 --- a/drivers/net/dsa/microchip/ksz_common.c +++ b/drivers/net/dsa/microchip/ksz_common.c @@ -434,6 +434,8 @@ int ksz_switch_register(struct ksz_device *dev, } dev->synclko_125 = of_property_read_bool(dev->dev->of_node, "microchip,synclko-125"); + dev->synclko_disable = of_property_read_bool(dev->dev->of_node, + "microchip,synclko-disable"); } ret = dsa_register_switch(dev->ds); diff --git a/drivers/net/dsa/microchip/ksz_common.h b/drivers/net/dsa/microchip/ksz_common.h index df8ae59c8525..3db63f62f0a1 100644 --- a/drivers/net/dsa/microchip/ksz_common.h +++ b/drivers/net/dsa/microchip/ksz_common.h @@ -75,6 +75,7 @@ struct ksz_device { u32 regs_size; bool phy_errata_9477; bool synclko_125; + bool synclko_disable; struct vlan_table *vlan_cache;