From patchwork Wed Aug 2 20:18:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Franklin Cooper X-Patchwork-Id: 9877735 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 16620602BC for ; Wed, 2 Aug 2017 20:49:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01F9E2882D for ; Wed, 2 Aug 2017 20:49:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EA66928830; Wed, 2 Aug 2017 20:49:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4ABDB2882D for ; Wed, 2 Aug 2017 20:49:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1myBRDDvQerxJJzGxnXoEtBws0jGOdHSmhmx6qDYtR0=; b=W/ayaPc/93fYJC mKSgYO52skuTgl9VwCo66u9XYJXnECikBnT0Nf4qmEAvga2BJy9KT1NZwWwEjpNtt4vZjXFnwxEO8 bIR9ig9SMCRGoapRiuHMwkIrO/P9y6bJlU9I9ORwmu3USX052zsA4UgBe4xMd4McEGmRO+9AH7EKE X6whiHJ8ZuIlad/MvKK4fmsSRUZLqocxq27p9h6LV61iqQ7Wz5/SIQetjFnivfphl6sIGGPAsdk8s rQCcK75Qv+RI0rSTLptQgIinXG1TWzRwx/zwFULWWOAVXqwkKlxnM1WQoltt09mOWyfndV8zKKzYz 2ck7sqxOVd2VFefJ1u4Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dd0Zt-0002yZ-CJ; Wed, 02 Aug 2017 20:49:13 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dd0Zr-0002yK-U7 for linux-arm-kernel@bombadil.infradead.org; Wed, 02 Aug 2017 20:49:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7udHRVeGGo2WUaAYv7TUvzfD+GhigMgtKGWFH4d7LhA=; b=NEnYp21ACC+RkvaBPfhXYitmx cmTtXOFBSfjnjOpgMKrJdhDUvGvv/NlXbDD6ZCmXeYoLNgIoKk1y+TT9PbiykQGYkFc40bXW3NQpE ufl8hN9kEDCs4GKHOjjddfcxNLtoPiB0H6O5IwGae87gjAxMVuTRFdncnojKQAw0GUXq+XxJWpsYI hysFj/kd8Vdu5NdTCmMXR9xZpgSIm9eUAzkqzc/3j5TS3ymE1PvmlLy5mW+3dfhj5WGKTONZg2uVE hDOEQeu+Ntjmesxopguj3Wnd07XwNYuCUzYRli94afZZ5ux/TSXntxYLo0mZlbYy/hS5UgeGuIJKx ENuOTmpZw==; Received: from fllnx210.ext.ti.com ([198.47.19.17]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dd06p-000223-MI for linux-arm-kernel@lists.infradead.org; Wed, 02 Aug 2017 20:19:12 +0000 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id v72KIa3o003513; Wed, 2 Aug 2017 15:18:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1501705116; bh=ASeVJlwR59Bvtrp+RyKxtrhWG+jFVKnT/p9kWcbJrHg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=j5zzQ/ASf5BNAcoVGMFZvnmep5yo1gvYY0KkQtfVl2OdTHQr3IR+ENWtkcRNuWYFN D/Am/XN9hufk6nYbA7/ti1q1QFdR7zPAoogpu2qjIRnbwcxceeBigdSLjjmQwky4aB kLB+sQ1uS1SMY4PBcSryGoTTku3bTw29nTX+Wqxo= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v72KIa3p004926; Wed, 2 Aug 2017 15:18:36 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Wed, 2 Aug 2017 15:18:35 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Wed, 2 Aug 2017 15:18:35 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Wed, 2 Aug 2017 15:18:35 -0500 Received: from dbdmail01.india.ti.com (dbdmail01.india.ti.com [172.24.162.206]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v72KIYOs025162; Wed, 2 Aug 2017 15:18:34 -0500 Received: from uda0273011.dhcp.ti.com (uda0273011.dhcp.ti.com [128.247.59.33]) by dbdmail01.india.ti.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id v72KIQ9E030916; Thu, 3 Aug 2017 01:48:30 +0530 From: Franklin S Cooper Jr To: , , , , , , , , , Subject: [PATCH 1/3] dt-bindings: net: c_can: Update binding for clock and power-domains property Date: Wed, 2 Aug 2017 15:18:20 -0500 Message-ID: <20170802201822.11532-2-fcooper@ti.com> X-Mailer: git-send-email 2.9.4.dirty In-Reply-To: <20170802201822.11532-1-fcooper@ti.com> References: <20170802201822.11532-1-fcooper@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Franklin S Cooper Jr Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP CAN driver uses the clk_get_rate call to determine the frequency of the functional clock. OMAP based SoCs do not require the clock property since hwmod already handles creating a "fck" clock thats accessible to drivers. However, this isn't the case for 66AK2G which makes the clocks property require for that SoC. 66AK2G requires a new property. Therefore, update the binding to also make this property requirement clear. Also clarify that for OMAP based SoCs ti,hwmod is a required property. Signed-off-by: Franklin S Cooper Jr Acked-by: Rob Herring --- Documentation/devicetree/bindings/net/can/c_can.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/can/c_can.txt b/Documentation/devicetree/bindings/net/can/c_can.txt index 5a1d8b0..2d50425 100644 --- a/Documentation/devicetree/bindings/net/can/c_can.txt +++ b/Documentation/devicetree/bindings/net/can/c_can.txt @@ -11,9 +11,20 @@ Required properties: - interrupts : property with a value describing the interrupt number -Optional properties: +The following are mandatory properties for DRA7x, AM33xx and AM43xx SoCs only: - ti,hwmods : Must be "d_can" or "c_can", n being the instance number + +The following are mandatory properties for Keystone 2 66AK2G SoCs only: +- power-domains : Should contain a phandle to a PM domain provider node + and an args specifier containing the DCAN device id + value. This property is as per the binding, + Documentation/devicetree/bindings/soc/ti/sci-pm-domain.txt +- clocks : CAN functional clock phandle. This property is as per the + binding, + Documentation/devicetree/bindings/clock/ti,sci-clk.txt + +Optional properties: - syscon-raminit : Handle to system control region that contains the RAMINIT register, register offset to the RAMINIT register and the CAN instance number (0 offset).