Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756133AbbBLPQM (ORCPT ); Thu, 12 Feb 2015 10:16:12 -0500 Received: from mail-by2on0066.outbound.protection.outlook.com ([207.46.100.66]:23979 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756104AbbBLPQH (ORCPT ); Thu, 12 Feb 2015 10:16:07 -0500 Date: Thu, 12 Feb 2015 16:15:43 +0100 From: Michal Simek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Mark Rutland , =?UTF-8?B?U8O2cmVuIEJyaW5rbWFubg==?= CC: Michal Simek , "linux-kernel@vger.kernel.org" , "monstr@monstr.eu" , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= , Russell King , "devicetree@vger.kernel.org" , Steffen Trumtrar , Kumar Gala , Peter Crosthwaite , Ian Campbell , Rob Herring , Pawel Moll , Rob Herring , Josh Cartwright , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH v2] ARM: dts: zynq: Add OCM node References: <6df19b400e314ef8228be475bb8ba83765683016.1423737765.git.michal.simek@xilinx.com> <20150212105443.GB1522@leverpostej> <5c1602f83c594a72aac78c245f1830fa@BL2FFO11FD052.protection.gbl> <20150212150709.GG1522@leverpostej> In-Reply-To: <20150212150709.GG1522@leverpostej> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-7.5.0.1018-21296.000 X-TM-AS-User-Approved-Sender: Yes Message-ID: <6cd07a2ca61d4083b1a3d370efcc19bc@BN1BFFO11FD016.protection.gbl> X-EOPAttributedMessage: 0 Authentication-Results: spf=pass (sender IP is 62.221.5.235) smtp.mailfrom=michal.simek@xilinx.com; X-Forefront-Antispam-Report: CIP:62.221.5.235;CTRY:GB;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(438002)(51704005)(24454002)(164054003)(479174004)(377454003)(377424004)(561944003)(6806004)(83506001)(47776003)(65806001)(54356999)(106466001)(108616004)(15975445007)(65956001)(77096005)(93886004)(46102003)(50986999)(50466002)(104016003)(92726002)(87936001)(76176999)(92566002)(2950100001)(33646002)(77156002)(23676002)(19580395003)(74316001)(19580405001)(62966003)(86362001)(65826006)(107986001)(24736002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN1BFFO11HUB020;H:xir-pvapsmtpgw01;FPR:;SPF:Pass;MLV:sfv;LANG:en; X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BN1BFFO11HUB020; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004);SRVR:BN1BFFO11HUB020; X-Forefront-PRVS: 0485417665 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:;SRVR:BN1BFFO11HUB020; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Feb 2015 15:16:03.9355 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[62.221.5.235] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1BFFO11HUB020 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2521 Lines: 61 On 02/12/2015 04:07 PM, Mark Rutland wrote: > On Thu, Feb 12, 2015 at 02:58:36PM +0000, Sören Brinkmann wrote: >> On Thu, 2015-02-12 at 12:01PM +0100, Michal Simek wrote: >>> On 02/12/2015 11:54 AM, Mark Rutland wrote: >>>> On Thu, Feb 12, 2015 at 10:42:47AM +0000, Michal Simek wrote: >>>>> Add OCM node for all zynq boards. OCM location >>>>> can changed but for all current boards this >>>>> is the location where OCM is.` >>>>> >>>>> Signed-off-by: Michal Simek >>>>> --- >>>>> >>>>> Changes in v2: >>>>> - Move node to board file suggested by Mark >>>>> >>>>> This patch is done based on discussion here. >>>>> https://lkml.org/lkml/2014/12/1/396 >>>>> >>>>> Mark: I expect you won't like amba bus reference or >>>>> am I wrong? >>>> >>>> I'm fine with dropping things onto a bus in this way. If we're happy to >>>> do it for other nodes I don't see why busses should be special. >>> >>> Wonderful. I will give people some time to comment this style. >> >> Given that the location is discoverable, wouldn't it make sense to let >> 'reg' point to the ctrl/cfg registers in the SLCR and let the driver >> handle the whereabouts of the OCM location? (but I guess this is going >> in circles now, such a proposal was on the table at some point, IIRC). >> But I'd prefer: >> memory-controller@0xfffc0000 { /* the address here would of course not match all configurations */ > > I'd really prefer that we keep the unit-address and reg consistent. > > Given that the address may change on a per-board basis, it simply has to > live in the board file. > > However, given that all boards are currently the same it could be > dropped in the SoC file for now, with a comment saying it should be > factored out to boards when the first board with a different address > comes along. Soren is talking about different solution which I have tried to push to mainline in that thread above. OCM configuration is discoverable through system controller to find out which configuration is used. >From this simple sram block it looks like that it is 64k of memory but it is just one block which can live in low or high address (at 0x0 or 0xfffc0000) based on controller configuration. In total there are 4 blocks with low and high locations. Thanks, Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/