Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp482191imu; Fri, 21 Dec 2018 02:23:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN5tSrCjEKBGJKHaX07hL878x7D14iSSkKVhnut+99VaQQvOsZjexrT69TkY0JesqMbKof3n X-Received: by 2002:a65:484c:: with SMTP id i12mr1793812pgs.309.1545387834638; Fri, 21 Dec 2018 02:23:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545387834; cv=none; d=google.com; s=arc-20160816; b=A2IW07bXiUKxyG7GS9FQv43D1fBwhqCOHrrft2c5CfpnLPN22SaTeKwui57MiWrfSM bAJrB6yXK2zruA2I0Dua0o4m/fPkGcCqNzrUr37rxmfql8kWx2pISNPqxNa1cRrgzzQQ qhqdfL98FEWbAdX/C+UYP5LDRkhJGUbhzmxOWxOoMbnUUR6knoAbnYWnGc7XqDJRUJ++ T53M1FSy7LJDibZfLxRpPm6MTtcOf4xgn/UGPbt43i+YVKAZqrWxyp9559ET3a6vUB7x NkOe6igwc+QaA658ZN0CiTXwSogixYvWSMpdW3QZfqggFh06IbUixJ/PGmG03s7TlAb8 /3iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=BTrzvBPxiwd4pvfl3PlEXOfLlqgTOynPTw2iwWne1yM=; b=aKXfsgazpgzdICKdBXGv1eXVakDq7EyONdA0EEZc49z04BXBgBHvTSosSKw3/zVISi lmCbyddsaVtSEh8WfW0nbETp1zSeell1nRLSDD9Bw9cTxBbm67r3ye8HqGwyOEgNJJ+y Es+JJmGeYT9Sl9CIyAG6p4UcK8/ExQUMieuvzMannbkNC7x+DZrkJ7PshhPqrNZXrpQN Yjf78uhiEZwptIcyLfW9AD468uqFVSzOxXpoa1wzZWL3QwtzwLrnPqSuZWSYCLrD/Wwl Qa94Le+c1Miw1AGJU5FqHxRUKMeRj7ptiIx9Bodv0Y6GzMXZeM6/WVJrW/F6w14SiSxe vQFw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y3si21646572pfb.152.2018.12.21.02.23.39; Fri, 21 Dec 2018 02:23:54 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732212AbeLTUWw (ORCPT + 99 others); Thu, 20 Dec 2018 15:22:52 -0500 Received: from mail-oi1-f193.google.com ([209.85.167.193]:44654 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730043AbeLTUWw (ORCPT ); Thu, 20 Dec 2018 15:22:52 -0500 Received: by mail-oi1-f193.google.com with SMTP id m6so2949907oig.11; Thu, 20 Dec 2018 12:22:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=BTrzvBPxiwd4pvfl3PlEXOfLlqgTOynPTw2iwWne1yM=; b=lScGfzSAU/n5VxrmNnegDs2V2R66IoVzgz8m8zio0Fb1bc+BErD+Qoc4xS/3v0O+AO SF5v5alNuaav7Fe2oci4cKRmVcJVxV1nhuiZyiwEngQw+GyYNm0TQwCA300nG0wavnP3 bzJL7o6ni/YMgIKBVGOl93ewB+MgwYBV8A93w+1CRGbOJf7sOZiuKkSqlHCPvEHovwyd w3jN725YdAMP7z/o61H/EcEOmIjM/+MslJAw9HFpRi7vg+RQ9PwUiMa3dDzbkAHSRsqU NXsIdW4E9KAHIVrmQXOEtz2jqwmcPuqHiuoc1PqFee66aFrSI3Liy2GSO8l2G50aN7Zt wyWg== X-Gm-Message-State: AA+aEWYMvIIh5Jym885IXH1rhnwsfqrGDyOcolky6gw+s82HQ5KT+cYp /uV8WpD8Z61qJBN1ibgDC8WDlFE= X-Received: by 2002:aca:bb8b:: with SMTP id l133mr120011oif.357.1545337370262; Thu, 20 Dec 2018 12:22:50 -0800 (PST) Received: from localhost ([2607:fb90:20d2:a5e2:49af:e73e:5a36:3b50]) by smtp.gmail.com with ESMTPSA id k130sm10728005oia.47.2018.12.20.12.22.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Dec 2018 12:22:49 -0800 (PST) Date: Thu, 20 Dec 2018 14:22:47 -0600 From: Rob Herring To: Joakim Zhang Cc: "mkl@pengutronix.de" , "linux-can@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx , Aisheng Dong Subject: Re: [PATCH 1/2] Documentation: can: flexcan: add PE clock source property to device tree Message-ID: <20181220202247.GA26362@bogus> References: <20181213070537.25095-1-qiangqing.zhang@nxp.com> <20181213070537.25095-2-qiangqing.zhang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181213070537.25095-2-qiangqing.zhang@nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 13, 2018 at 07:07:57AM +0000, Joakim Zhang wrote: > 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/Documentation/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. > > +- fsl,clk-source: Select the clock source to the CAN Protocol Engine (PE). > + It's SoC Implementation dependent. Refer to RM for detailed If SoC dependent, then it should be implied by the SoC specific compatible. Also, seems like you should add clock binding support here if you need more clock control. > + 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: > > can@1c000 { > @@ -40,4 +47,5 @@ Example: > interrupts = <48 0x2>; > interrupt-parent = <&mpic>; > clock-frequency = <200000000>; // filled in by bootloader > + fsl,clk-source = <0>; // select clock source 0 for PE > }; > -- > 2.17.1 >