Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752257AbdLGDmq (ORCPT ); Wed, 6 Dec 2017 22:42:46 -0500 Received: from mail-dm3nam03on0082.outbound.protection.outlook.com ([104.47.41.82]:31840 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751990AbdLGDmo (ORCPT ); Wed, 6 Dec 2017 22:42:44 -0500 From: Dhaval Rajeshbhai Shah To: "'Rob Herring'" CC: "mark.rutland@arm.com" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "michal.simek@xilinx.com" , Hyun Kwon Subject: RE: [PATCH] [linux][master][v1] devicetree: misc: Add binding for logicoreIP xlnx,vcu Thread-Topic: [PATCH] [linux][master][v1] devicetree: misc: Add binding for logicoreIP xlnx,vcu Thread-Index: AQHTbbrcqkD8Jd4ZhEinIKMYNIkWL6M23KGAgABhlyA= Date: Thu, 7 Dec 2017 03:42:38 +0000 Message-ID: References: <1512472023-3957-1-git-send-email-dshah@xilinx.com> <20171206214909.jr2x6cdzs2577aee@rob-hp-laptop> In-Reply-To: <20171206214909.jr2x6cdzs2577aee@rob-hp-laptop> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=DSHAH@xilinx.com; x-originating-ip: [149.199.62.254] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM2PR0201MB1007;6:i1d3+A9cXtNRH2Uj+OTkzb52kF0PqChCBlBeX1J0lG7h4Jckt43TY4wg9ZScimOcKAzin0uR4VNXAs2Ptnb5SkoONmTvv37KPBSUdyntYBi5FQdE1A2RC1pL8ZNbBBNjIa/0PVdb2cZjPXXGk9V6WHdjR73dkJvNZXE2HuNYuFUhXXOeIeqAGUGUz1pC7vIWFSdM5E5r2WYCSTYLG8pSy7Jz7ocCE/5wMAXicCkdB6sRkKWe/NWHJ5ibiyQNZEcwBNV1J1Z/x3LBWfvydnVirDSXAAxgU0zmrH+sgVwuBgVkZ9684CnPUty+4gSJT71CVS5HhGuRvDVE0ckIGsA76k8Oz4sFJ02C2to9UT/g9YA=;5:4cK4dUhsCPrIi5/pEfapAh9RcxdtBjieX07yetwwTg2IM1dI3+WMrMjBy9MbexCnyKqD/Vd+U7YB0dn0csKXJW8+/XmNzn9tRwAoTlHXndkb5bKIdYrCWePsayzLz+jjysprdefLUothIF/qhTM36Vxt7k7npOTQj0JbMNsaiFc=;24:TBeFN5eDJr5l/hDYIfSkvC8VcHb2BBY/MDTl7kpBWTBuFqATL/K3fOpYwBv2zoEB3uswA03GFm3I12w5hZ+84BVJ/4BuxtfWNRIV7A9+lso=;7:OBLeIoh+8a1WlvKRp42rhHixVTYNYTw2cuDpu3v8noIjYtMqbJikNEAsFr8/dyLUIjjJFAU45FDBf4zqmRjq+IPLc33p69GWHHKF75gpcnvLeJk26NEm27SphFo59VvsOn0V/F0kSPpMe4HBix36EKTuUN2bgMza3Kz7bqyHrwPRhhqK8ZusDDQ3n+enUg62QsbbQicTO3V14ETymdkCLdoaZ730u8Bjvs2FOPCf+LfLvxpPiCMveuB4vKBpqImb x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-forefront-antispam-report: SFV:SKI;SCL:-1;SFV:NSPM;SFS:(10009020)(376002)(39860400002)(366004)(346002)(199004)(13464003)(189003)(24454002)(43544003)(6246003)(2906002)(2950100002)(53936002)(6116002)(102836003)(3846002)(77096006)(97736004)(86362001)(54906003)(80792005)(53546010)(229853002)(101416001)(8936002)(7696005)(76176011)(107886003)(316002)(478600001)(7736002)(305945005)(966005)(66066001)(33656002)(68736007)(81166006)(3660700001)(81156014)(8676002)(74316002)(72206003)(4326008)(6916009)(55016002)(6506006)(99286004)(5660300001)(6436002)(9686003)(6306002)(2900100001)(105586002)(106356001)(25786009)(14454004)(3280700002)(142933001)(422495003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR0201MB1007;H:BY2PR0201MB1879.namprd02.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; x-ms-office365-filtering-correlation-id: 07fac6c7-ba97-4d3a-177e-08d53d249029 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603286);SRVR:DM2PR0201MB1007; x-ms-traffictypediagnostic: DM2PR0201MB1007: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917)(9452136761055)(192813158149592); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(5005006)(8121501046)(3002001)(3231022)(10201501046)(93006095)(93001095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123564025)(20161123555025)(20161123562025)(20161123560025)(6072148)(201708071742011);SRVR:DM2PR0201MB1007;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:DM2PR0201MB1007; x-forefront-prvs: 05143A8241 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-Network-Message-Id: 07fac6c7-ba97-4d3a-177e-08d53d249029 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Dec 2017 03:42:38.8115 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0201MB1007 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id vB73gpli026541 Content-Length: 4385 Lines: 124 > -----Original Message----- > From: Rob Herring [mailto:robh@kernel.org] > Sent: Wednesday, December 06, 2017 1:49 PM > To: Dhaval Rajeshbhai Shah > Cc: mark.rutland@arm.com; devicetree@vger.kernel.org; linux- > kernel@vger.kernel.org; michal.simek@xilinx.com; Hyun Kwon > ; Dhaval Rajeshbhai Shah > Subject: Re: [PATCH] [linux][master][v1] devicetree: misc: Add binding for > logicoreIP xlnx,vcu > > On Tue, Dec 05, 2017 at 03:07:03AM -0800, Dhaval Shah wrote: > > From: Dhaval Shah > > > > Added the txt file which contain the xlnx,vcu DT node properties > > information. This also provides the information of it's child node as > > well. > > > > Signed-off-by: Dhaval Shah > > --- > > .../devicetree/bindings/misc/xlnx,vcu.txt | 59 > ++++++++++++++++++++++ > > 1 file changed, 59 insertions(+) > > create mode 100644 > > Documentation/devicetree/bindings/misc/xlnx,vcu.txt > > > > diff --git a/Documentation/devicetree/bindings/misc/xlnx,vcu.txt > > b/Documentation/devicetree/bindings/misc/xlnx,vcu.txt > > new file mode 100644 > > index 0000000..e722ff3 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/misc/xlnx,vcu.txt > > @@ -0,0 +1,59 @@ > > +Xilinx VCU init Driver > > Bindings don't describe drivers. Describe the h/w. I will take care of this. > > > +----------------------------- > > + > > +General concept > > +--------------- > > + > > +Xilinx VCU init driver is developed to handle the LogiCore related > > +new implementation. In this directory, The DT node of the Xilinx VCU > > +init driver represents as a top level node. > > + > > +Required properties: > > +- compatible: Must be "xlnx,vcu". > > Needs to be more specific. I will resolve this. > > > +- reg, reg-names: There are two sets of registers need to provide. > > + 1. vcu slcr > > + 2. Logicore > > + reg-names should contain name for the each register sequence. > > +- clocks: phandle for aclk and pll_ref clocksource > > +- clock-names: The identification string, "aclk", is always required for > > + the axi clock. "pll_ref" is required for pll. > > +- ranges > > +- VCU Init driver node define the following child nodes: > > + * Allegro encoder driver node > > encoder of what? I have to remove this encoder and decoder nodes. Other team is working on that. They will extend this once they are done with encoder and decoder. > > > + - compatible: Must be "al,al5e" > > + - reg: There is a one set of register. > > > > + - interrupts: interrupt number to the cpu. > > + - interrupt-parent: the phandle for the interrupt controller > > + that services interrupts for this device. > > + * Allegro decoder driver node > > + - compatible: Must be "al,al5d" > > + - reg: There is a one set of register. > > + - interrupts: interrupt number to the cpu. > > + - interrupt-parent: the phandle for the interrupt controller > > + that services interrupts for this device. > > +Example: > > + > > + xlnx_vcu: vcu@a0040000 { > > + compatible = "xlnx,vcu"; > > + #address-cells = <2>; > > + #size-cells = <2>; > > There's no reason the child nodes need 64 bits of address or size. Use ranges. I will take care of this. > > > + reg = <0x0 0xa0040000 0x0 0x1000>, > > + <0x0 0xa0041000 0x0 0x1000>; > > + reg-names = "vcu_slcr", "logicore"; > > + clocks = <&si570_1>, <&clkc 71>; > > + clock-names = "pll_ref", "aclk"; > > + ranges; > > + encoder: al5e@a0000000 { > > + compatible = "al,al5e"; > > + reg = <0x0 0xa0000000 0x0 0x10000>; > > + interrupts = <0 89 4>; > > + interrupt-parent = <&gic>; > > + }; > > + > > + decoder: al5d@a0020000 { > > + compatible = "al,al5d"; > > + reg = <0x0 0xa0020000 0x0 0x10000>; > > + interrupts = <0 89 4>; > > A shared interrupt? Are these really separate blocks? Seems like this could all > be a single node. Based on the discussion in the misc/drivers forum, I will remove this encoder and decoder node which is of some other team working on. They will extend this once they are done with there work. > > > + interrupt-parent = <&gic>; > > + }; > > + }; > > -- > > 2.7.4 > > > > -- > > To unsubscribe from this list: send the line "unsubscribe devicetree" > > in the body of a message to majordomo@vger.kernel.org More > majordomo > > info at http://vger.kernel.org/majordomo-info.html