Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752560AbbKLAcS (ORCPT ); Wed, 11 Nov 2015 19:32:18 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:65093 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751911AbbKLAcQ (ORCPT ); Wed, 11 Nov 2015 19:32:16 -0500 X-AuditID: cbfec7f4-f79c56d0000012ee-a8-5643de0b4338 Subject: Re: [PATCH v7 1/4] Documentation: dt-bindings: Describe SROMc configuration To: Rob Herring , Pavel Fedin References: <0bc58ce0fd39767834f486c4c0cfbbd70044caed.1446799912.git.p.fedin@samsung.com> <009301d11c4c$6eaa1eb0$4bfe5c10$@samsung.com> Cc: "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-samsung-soc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Kukjin Kim From: Krzysztof Kozlowski X-Enigmail-Draft-Status: N1110 Message-id: <5643DE0A.2060400@samsung.com> Date: Thu, 12 Nov 2015 09:32:10 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-version: 1.0 In-reply-to: Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpnkeLIzCtJLcpLzFFi42I5/e/4NV2ee85hBrflLOYfOcdq0f9mIavF uVcrGS1evzC06H/8mtli0+NrrBaXd81hs5hxfh+TxdLrF5ksXl1axWYxYfpaFovWvUfYHXg8 1sxbw+hxua+XyWPl8i9sHptWdbJ5bF5S79G3ZRWjx+dNcgHsUVw2Kak5mWWpRfp2CVwZ77bm FOwVqLj7bQJ7A+MH7i5GTg4JAROJr18fMEHYYhIX7q1n62Lk4hASWMoo0Xx6IQuE84VRYt/v a6wgVcICYRLXrh5mB7FFBNwlJn1/zA5RdIRJovvjBWYQh1ngGrPEgzUXwDrYBIwlNi9fwgax Q06it3sSC4jNK6Al8ffTTrA4i4CqRPfpG4wgtqhAhMTECQ2sEDWCEj8m3wOr5xQIlnjXPB0o zgG0QF1iypRckDCzgLzE5jVvmScwCs5C0jELoWoWkqoFjMyrGEVTS5MLipPScw31ihNzi0vz 0vWS83M3MUKi58sOxsXHrA4xCnAwKvHwTpjpHCbEmlhWXJl7iFGCg1lJhDdgHlCINyWxsiq1 KD++qDQntfgQozQHi5I479xd70OEBNITS1KzU1MLUotgskwcnFINjLZHtj2Nszm/KaQ8uPWh XOCrRy0cBy6Ebsi1kbRU+3dnCt+JPRLiahcN/rTmHEgXEOjn0LSrvd1j+PZ7Nuveu1l/lrlP +y4wme24ovevD32ZP77/Nazu6CmunLKv5W5o2d/4H1svC5kpBz2/3RTm+Uxuh3xgmOIz3oTS PLn8/rg51wQyuS+yKLEUZyQaajEXFScCAI8AvuaaAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2314 Lines: 45 On 12.11.2015 05:43, Rob Herring wrote: > On Wed, Nov 11, 2015 at 12:44 AM, Pavel Fedin wrote: >> Hello! >> >>>> +- samsung,srom-timing : array of 6 integers, specifying bank timings in the >>>> + following order: Tacp, Tcah, Tcoh, Tacc, Tcos, Tacs. >>>> + Each value is specified in cycles and has the following >>>> + meaning and valid range: >>>> + Tacp : Page mode access cycle at Page mode (0 - 15) >>>> + Tcah : Address holding time after CSn (0 - 15) >>>> + Tcoh : Chip selection hold on OEn (0 - 15) >>>> + Tacc : Access cycle (0 - 31, the actual time is N + 1) >>>> + Tcos : Chip selection set-up before OEn (0 - 15) >>>> + Tacs : Address set-up before CSn (0 - 15) >>> >>> This is not easily extended. Perhaps a property per value instead. >> >> We had a discussion with Krzysztof about it, he agreed with this form of the property. >> My concern was that it's just too much typing, and makes little sense because these >> settings always go together. If register layout changes, or parameter set changes in >> incompatible way, then it's another device, not exynos-srom anymore. >> So would you agree with that, or is your position strong? > > I'm thinking for a new version of the controller which could add (or > remove) new timing parameters, but then I guess you can interpret the > field differently based on the compatible string. Anyway, your problem > to deal with. Actually I also preferred properties per one timing... but finally agreed on simpler approach. Adding new parameters to the array is still possible (because the order matters) and removal as well (by ignoring some indices). All ARMv7 Exynos SoCs have exactly the same registers for SROM controller (Exynos3250, Exynos4, Exynos5). On newer Exynos ARMv8 (Exynos5433 and Exynos7420) I don't know because it is not documented. Best regards, Krzysztof -- 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/