From patchwork Tue Jul 29 22:51:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 4643601 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id ABF439F2B8 for ; Tue, 29 Jul 2014 22:51:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AB48F20142 for ; Tue, 29 Jul 2014 22:51:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C8EC32012D for ; Tue, 29 Jul 2014 22:51:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754415AbaG2WvN (ORCPT ); Tue, 29 Jul 2014 18:51:13 -0400 Received: from mail-la0-f46.google.com ([209.85.215.46]:58436 "EHLO mail-la0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754388AbaG2WvJ (ORCPT ); Tue, 29 Jul 2014 18:51:09 -0400 Received: by mail-la0-f46.google.com with SMTP id b8so266822lan.19 for ; Tue, 29 Jul 2014 15:51:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:subject:cc:from:organization:date :mime-version:content-type:content-transfer-encoding:message-id; bh=bqdx43HXPh+p8CjmQ3KqgJ7X65kAjLgavumNvBf3HH8=; b=ZP98eTo/V1ICqAY/9FcZKvOmJ2reIBZ9lr6OYeIW6THZv9phG8celHktF+uTaicVlC zE2z3lw3ydMg/TfwMSraT93RJ3BbIkuEpMYuLRH5XpH42N+ZGPTCVF57NY9sQjgzxGBW XDYGx/cWKgLufdc4i0b5l9/aLb7SK31wOfm7qqpt4fcA7/WFGAEB1lHCFdHZkxLkhuIe rxDdMHMvhIg+CN/5h+hGhOmzP+LRRYDwtVwhe43EkqzTRxeiEYqKrfte13Fv2at3zPXF eVk63fN1cXMpXpsv4DjBms+FQGZXxb38CEx8RsFiQ85F78xfn8j0kdeGWIHJ+0FTe+gZ Ku2w== X-Gm-Message-State: ALoCoQnClEGozLQP52q4RXfBlrdkgsGXdAhzthCzMFEgXCMljwwQoGLi33nRI3AFTu6HktfJetCn X-Received: by 10.152.5.167 with SMTP id t7mr185111lat.54.1406674268285; Tue, 29 Jul 2014 15:51:08 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp23-117.pppoe.mtu-net.ru. [81.195.23.117]) by mx.google.com with ESMTPSA id aq10sm541846lbc.9.2014.07.29.15.51.06 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 29 Jul 2014 15:51:07 -0700 (PDT) To: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, devicetree@vger.kernel.org Subject: [PATCH v2 1/2] rcar_can: document device tree bindings Cc: netdev@vger.kernel.org, wg@grandegger.com, mkl@pengutronix.de, linux-can@vger.kernel.org, linux-sh@vger.kernel.org, vksavl@gmail.com From: Sergei Shtylyov Organization: Cogent Embedded Date: Wed, 30 Jul 2014 02:51:08 +0400 MIME-Version: 1.0 Message-Id: <201407300251.09436.sergei.shtylyov@cogentembedded.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Document the R-Car CAN device tree bindings. Signed-off-by: Sergei Shtylyov --- The patch is against the 'linux-can-next.git' repo. Changes in version 2: - new patch, split from the driver's device tree support patch; - adjusted "clocks" property to refer to 3 clocks instead of 1; - added mandatory "clock-names" property; - renamed the "clock-select" property to "renesas,can-clock-select". Documentation/devicetree/bindings/net/can/rcar_can.txt | 43 +++++++++++++++++ 1 file changed, 43 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-can-next/Documentation/devicetree/bindings/net/can/rcar_can.txt =================================================================== --- /dev/null +++ linux-can-next/Documentation/devicetree/bindings/net/can/rcar_can.txt @@ -0,0 +1,43 @@ +Renesas R-Car CAN controller Device Tree Bindings +------------------------------------------------- + +Required properties: +- compatible: "renesas,can-r8a7778" if CAN controller is a part of R8A7778 SoC. + "renesas,can-r8a7779" if CAN controller is a part of R8A7779 SoC. + "renesas,can-r8a7790" if CAN controller is a part of R8A7790 SoC. + "renesas,can-r8a7791" if CAN controller is a part of R8A7791 SoC. +- reg: physical base address and size of the R-Car CAN register map. +- interrupts: interrupt specifier for the sole interrupt. +- clocks: phandles and clock specifiers for 3 CAN clock inputs. +- clock-names: 3 clock input name strings: "clkp1", "clkp2", "can_clk". +- pinctrl-0: pin control group to be used for this controller. +- pinctrl-names: must be "default". + +Optional properties: +- renesas,can-clock-select: R-Car CAN Clock Source Select. Valid values are: + <0x0> (default) : Peripheral clock (clkp1) + <0x1> : Peripheral clock (clkp2) + <0x3> : Externally input clock + +Example +------- + +SoC common .dtsi file: + + can0: can@e6e80000 { + compatible = "renesas,can-r8a7791"; + reg = <0 0xe6e80000 0 0x1000>; + interrupts = <0 186 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&mstp9_clks R8A7791_CLK_RCAN0>, + <&cpg_clocks R8A7791_CLK_RCAN>, <&can_clk>; + clock-names = "clkp1", "clkp2", "can_clk"; + status = "disabled"; + }; + +Board specific .dts file: + +&can0 { + pinctrl-0 = <&can0_pins>; + pinctrl-names = "default"; + status = "okay"; +};