From patchwork Thu Jul 31 21:24:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 4659001 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 21259C0338 for ; Thu, 31 Jul 2014 21:24:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 511402015E for ; Thu, 31 Jul 2014 21:24:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6B2AB20121 for ; Thu, 31 Jul 2014 21:24:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752980AbaGaVY1 (ORCPT ); Thu, 31 Jul 2014 17:24:27 -0400 Received: from mail-lb0-f181.google.com ([209.85.217.181]:32982 "EHLO mail-lb0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752914AbaGaVY0 (ORCPT ); Thu, 31 Jul 2014 17:24:26 -0400 Received: by mail-lb0-f181.google.com with SMTP id 10so2465597lbg.40 for ; Thu, 31 Jul 2014 14:24:25 -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=P5pZTrx47Hjb0wnH3Yfmy+kjln1hV3oM3LiPaRN3r6p2qtxO2iHZQPWOsGgT102bmE iH7YbQOPxNxNQu9coMEb/aj9prT9sPx/7R8swL1+GeRlFY8IIawSt4YdFou7LuuzVupm OPqTgMGjb4el1Ny+Otnxu/gYp9/5SzBKfdetHUitPX1IboI32ekZvo/wy+vKjNXoWYsW UYZQzIRFHwsnuP0gO40xYoa55WDTE8wFDkWFYWPt4kZ88hA+LLF3nQdHQnQNA6x1Yjd5 WfILpmdFt+PBMrCZNanodZZtPw29gS6b+xm0vWALHVNOd2yKYD5VynkLWMyRqZa/ej/8 Mjhg== X-Gm-Message-State: ALoCoQl5GPQvWus/4qpbtv1pWbh1+BJqYdtWfw51rR+cKHcNwwfVm+YMZt/E8Bt8u/Pf9Fq+JX2D X-Received: by 10.152.120.231 with SMTP id lf7mr916031lab.58.1406841865137; Thu, 31 Jul 2014 14:24:25 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp19-216.pppoe.mtu-net.ru. [81.195.19.216]) by mx.google.com with ESMTPSA id bc17sm3562758lab.24.2014.07.31.14.24.23 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 31 Jul 2014 14:24:24 -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 v3 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: Fri, 1 Aug 2014 01:24:25 +0400 MIME-Version: 1.0 Message-Id: <201408010124.26505.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"; +};