Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp526368imu; Wed, 12 Dec 2018 23:09:18 -0800 (PST) X-Google-Smtp-Source: AFSGD/UpnJff5mCfSP8GSRnbdGOpwTKJ6jc+kXohkqwwCDWGeuOgReAsDqDORICFaT3QNQRJ7lqK X-Received: by 2002:a65:48c4:: with SMTP id o4mr20187202pgs.371.1544684958859; Wed, 12 Dec 2018 23:09:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544684958; cv=none; d=google.com; s=arc-20160816; b=eyPB2mfVcROMqjQcS0S5dWfWwpiWv23IT1ylWoCQ00lIfLe1/h+PgnOqmwIvsJDY4h XRn2NH2JQcEmLVxsvGRkJeMBfdgsMPNLIG1fvzeO+eMG6NZhsrqKYxU90TkNN0pTrPd5 tEjLfsiCrchbJbLVuoC55PaUw3YD6L5ux2Tt+WK4RPgoycvfJd9DlyFCeBrcTwHzkkIf LN5oxCM8NQ/l+ZNCjSV7K04KoTtw3/CJxRhqTJdgZ+DGwtn94coLKjszg3WMJmCq+GKZ XTqaGfOcvdpNrKbTlzK1i02LcgWGspJ6IKTtXqX5BwNjzy9xuaAVkxv0BIMRH8Br5SQI ssRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=Ph81R+A3kNDDvtmLfC1J/OB8tc/KpBFapkAKd8klNE4=; b=GxcD82lujGxL/6TVrSe/Q7p8lpnpY7DK9+o2GTAxADpMP8gIH05N1eJv2brlbExvRC qTTL7Ot9EOFFhyjulZG2xzDXxpWBEi2T6baMmov1bW2Ny13XljitDs0dgfk1UO7yUaLo hMGrasEP5Wc8HDd+3MTdAVmSa9jyTVJ1UUOjAMrg5M6tGivd/941JnJ04nhicsEhhpDk r2QKmXGXp46A5Oc5jcpy9b+N9GjgfK9yQt5UhKbm7QeercYcgiDRKE735wuneU/YL6C+ dBsevzrZQu4Stcvh/O7MtGQ8PPqScZQAAlWoHGvF5snIGKIW2b70AqfElgUj7jcl/9MZ /wFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b="B/VSx42Z"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s5si878522plp.139.2018.12.12.23.08.56; Wed, 12 Dec 2018 23:09:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b="B/VSx42Z"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727069AbeLMHIE (ORCPT + 99 others); Thu, 13 Dec 2018 02:08:04 -0500 Received: from mail-eopbgr50084.outbound.protection.outlook.com ([40.107.5.84]:48784 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726816AbeLMHID (ORCPT ); Thu, 13 Dec 2018 02:08:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ph81R+A3kNDDvtmLfC1J/OB8tc/KpBFapkAKd8klNE4=; b=B/VSx42ZDZ6NbQb2xcvxdYfK7fcVxWngqFDXIe15xJRpvKeRarnillTBzFY5sFnOhINwtWAiS2A/deUu1MMz9/luWZZ/JugMxvyKARs73yBxFm5CcHyf6W2YomLS1WZEu3ivQ1lr2Alazvm1R3hThnCR/s1xGV3sJVgwRu6sIow= Received: from DB7PR04MB4618.eurprd04.prod.outlook.com (52.135.138.152) by DB7PR04MB4985.eurprd04.prod.outlook.com (20.176.234.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1425.18; Thu, 13 Dec 2018 07:07:57 +0000 Received: from DB7PR04MB4618.eurprd04.prod.outlook.com ([fe80::edcf:3d61:66a6:8bc9]) by DB7PR04MB4618.eurprd04.prod.outlook.com ([fe80::edcf:3d61:66a6:8bc9%3]) with mapi id 15.20.1425.016; Thu, 13 Dec 2018 07:07:57 +0000 From: Joakim Zhang To: "mkl@pengutronix.de" , "robh@kernel.org" CC: "linux-can@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx , Aisheng Dong , Joakim Zhang Subject: [PATCH 1/2] Documentation: can: flexcan: add PE clock source property to device tree Thread-Topic: [PATCH 1/2] Documentation: can: flexcan: add PE clock source property to device tree Thread-Index: AQHUkrKTIckHgyi7wUKqieTSsLQm4w== Date: Thu, 13 Dec 2018 07:07:57 +0000 Message-ID: <20181213070537.25095-2-qiangqing.zhang@nxp.com> References: <20181213070537.25095-1-qiangqing.zhang@nxp.com> In-Reply-To: <20181213070537.25095-1-qiangqing.zhang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.17.1 x-clientproxiedby: SG2PR04CA0128.apcprd04.prod.outlook.com (2603:1096:3:16::12) To DB7PR04MB4618.eurprd04.prod.outlook.com (2603:10a6:5:36::24) authentication-results: spf=none (sender IP is ) smtp.mailfrom=qiangqing.zhang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [92.121.68.129] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DB7PR04MB4985;6:NbmewxZv/bY2od0/dKzwIqLc1np8j5wWnijEBJkl0TGukODHBd0oOgs+S+OINaXZ7u4RDgtRB/6fuiaU8tr7NjO1HhypBrYS3MuvWHshxNfpvv5lWhLb9cWiUo6lEwJMnovGF68tRvGXH5p27hOhnFs4UDDKzudijoy1xBm9jYXfKycAHNoOfqPp1K72+DoEyo48W0sXIer2UKVLJ7/mfpFdltwXryUKf10bU9a9G1qJyLEhbWoQQ+yS23s5yRm5Uv2EsjabmmoLY766iMxkK3IiSfSxlUX0ADN4wIDMHn/+HhS0X2hI82AZd1aJboUvulAfRu/wnZxfq/qO311sU1S/d3H4JV+AVVUdmMzFY68PM/wxQ2hSPX4vapIoAg71AC/xsJHad/y7Vt2EhYytpnbPSwNe2vAg8wb9zAumuzpoWwhAB4TM8Mnf5Qo0+U7LYS/kjovYRtUJgQmPzVb6rA==;5:IfCo1Pi23IuqEvBORQbr1kF0P4zN46zosTbiIN5AuiU1KAYugSuMFo+B6W1jqIXFY9Nm0xCGSdHl2qBj+C2KxLywRAx5yWZnrylLR7iz6ic2BuVMscPxHcbuFQdLWXddttOW/Xfd0GggxZl4VH+qYWJrLVw6Z8NhsRcD4dh5XY0=;7:apyl9VnBVFLrrAM/iXAiqA7QYuMOMQ5Nt0WCg51u4q3gs6XNxtraiRZVIOL+gvXmuOBc+fuyhMvPDQSvg/OyrlIV2yFhxECEgt+BZdEtgjcHq6Q1WEbocngmvJmbHpYL2BqG8fDYC1EABKlrn9PQLw== x-ms-office365-filtering-correlation-id: 95b67485-70fd-4c70-c5a0-08d660c9b56c x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:DB7PR04MB4985; x-ms-traffictypediagnostic: DB7PR04MB4985: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(3230021)(999002)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231475)(944501520)(52105112)(3002001)(6055026)(148016)(149066)(150057)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123564045)(201708071742011)(7699051)(76991095);SRVR:DB7PR04MB4985;BCL:0;PCL:0;RULEID:;SRVR:DB7PR04MB4985; x-forefront-prvs: 088552DE73 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(376002)(39860400002)(346002)(396003)(136003)(189003)(199004)(97736004)(36756003)(71200400001)(106356001)(71190400001)(81166006)(8676002)(81156014)(52116002)(66066001)(486006)(256004)(2616005)(476003)(316002)(446003)(11346002)(86362001)(76176011)(50226002)(105586002)(54906003)(110136005)(8936002)(2501003)(3846002)(6486002)(4326008)(6116002)(53936002)(6512007)(25786009)(68736007)(26005)(186003)(6506007)(102836004)(99286004)(386003)(1076002)(478600001)(14454004)(5660300001)(2906002)(7736002)(305945005)(6436002);DIR:OUT;SFP:1101;SCL:1;SRVR:DB7PR04MB4985;H:DB7PR04MB4618.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: DsoFDF+4vOgssqkS+wf3bcxkRpldEbxekhOYGwnxjBXbRTehdARU3nzE7EOXrVKPDslg1BowOesvFRU5FOITq31uq8PWQAt3roOvg/VtTIr1Uiyw7BCp8nLqo6HmzTZdrbVtARM1HdgKUwIVe4ObCs4FP16QMHCeTqvfQgeM6ynwHQcMLvuvgcyKpr4C4LBwZ3tpCbkftxdFmxUrDw7CBOZO+YvNpotknYKNpqtCGc8qzOzwzxiL2V3L9NyJk9L5hl+2Ndcx0t62qsyrCHMJrN2amjooitnJoLDZaFyFlFv9l0DeaIdTAhqg1R8AkQVD spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 95b67485-70fd-4c70-c5a0-08d660c9b56c X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Dec 2018 07:07:57.0813 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4985 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dong Aisheng The FlexCAN controller can parse clock source property from DTS file to select PE clock source. Signed-off-by: Dong Aisheng Signed-off-by: Joakim Zhang --- Documentation/devicetree/bindings/net/can/fsl-flexcan.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/net/can/fsl-flexcan.txt b/Do= cumentation/devicetree/bindings/net/can/fsl-flexcan.txt index bc77477c6878..a04168605998 100644 --- a/Documentation/devicetree/bindings/net/can/fsl-flexcan.txt +++ b/Documentation/devicetree/bindings/net/can/fsl-flexcan.txt @@ -32,6 +32,13 @@ Optional properties: ack_gpr is the gpr register offset of CAN stop acknowledge. ack_bit is the bit offset of CAN stop acknowledge. =20 +- fsl,clk-source: Select the clock source to the CAN Protocol Engine (PE). + It's SoC Implementation dependent. Refer to RM for detailed + definition. If this property is not set in device tree node + then driver selects clock source 1 by default. + 0: clock source 0 (oscillator clock) + 1: clock source 1 (peripheral clock) + Example: =20 can@1c000 { @@ -40,4 +47,5 @@ Example: interrupts =3D <48 0x2>; interrupt-parent =3D <&mpic>; clock-frequency =3D <200000000>; // filled in by bootloader + fsl,clk-source =3D <0>; // select clock source 0 for PE }; --=20 2.17.1