From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=aj.id.au (client-ip=66.111.4.26; helo=out2-smtp.messagingengine.com; envelope-from=andrew@aj.id.au; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=aj.id.au Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aj.id.au header.i=@aj.id.au header.b="Z0gJXNsP"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="F1W2WKpt"; dkim-atps=neutral Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41Vc0T3DwlzF35v for ; Wed, 18 Jul 2018 09:28:24 +1000 (AEST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 86E5521A21; Tue, 17 Jul 2018 19:28:19 -0400 (EDT) Received: from web5 ([10.202.2.215]) by compute4.internal (MEProxy); Tue, 17 Jul 2018 19:28:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=fS8pziHKcKRm6V9XorgCUhq/d2mKA AiSs9IRoVrRo5o=; b=Z0gJXNsPspp4Ooi1BjOykWgZVPTZb5LXUIPYQ9QZh2Az6 HBPAS5tIyxT0JJdMz0r6gVkLQH8PE/EOfyo2reTZsHhOKCqD8IWpo5jJCERqrWPE d05BJo2S4a+0r3dB5XscDR6NbwSdrShhtTup2u5KhE53GTpNNUWdWn4x0ByXVGNn Y+iCoy2AAC1Qx4WzoBZUxYbGZdlJWIkmJPclCAvPAPk/4cmYdnAZm3MtBSuuC3+e dLs9mSSDQuQdhwEu48nb5zL8Jz37dplcV0mtHhkGsYM6gOeRIxZ9mk9b2cn0kO1G IhezIFBhGjSD8R9/KnfFRA96BijBTP9LSm0dVf89g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=fS8pzi HKcKRm6V9XorgCUhq/d2mKAAiSs9IRoVrRo5o=; b=F1W2WKptIhpMX7OHMPKuyg 6G67YFpLiUP16QG08r1vxZfni3GW8QFEc1/vwYjLdAMcqC2klqZnaM+azca3CyG5 gTM0/loRfwQxMR5HMkN5H6+52+OuSsbeflpY5I0OoRkiJo+OrKySzNAujGfZj//C qofe9uSxSsbZS0DNJkexADUVJnxOuZAYj3ffzdbItAGBSgOLcxBo0faHjrbahrW/ btV9u/FymB0Yo6hfTj8HpvR1PUv5TBGPTLzsTnmkXzxvfQSJotMHl+0l7pYgy+VN rDrjkfZdgC4wcHX1ijYNcyU4VZYGFROLh3tjD+6Zuk/R0C4o/XQTw3hsEGaW+57Q == X-ME-Proxy: X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 6FEF79E111; Tue, 17 Jul 2018 19:28:18 -0400 (EDT) Message-Id: <1531870098.3337969.1444201888.2476205D@webmail.messagingengine.com> From: Andrew Jeffery To: Benjamin Herrenschmidt , Rob Herring Cc: Mark Rutland , devicetree@vger.kernel.org, "Greg Kroah-Hartman" , Eugene.Cho@dell.com, a.amelkin@yadro.com, linux-kernel@vger.kernel.org, Joel Stanley , stewart@linux.ibm.com, OpenBMC Maillist , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-957169fa In-Reply-To: Date: Wed, 18 Jul 2018 08:58:18 +0930 Subject: Re: [RFC PATCH v2 1/4] dt-bindings: misc: Add bindings for misc. BMC control fields References: <20180711053122.30773-1-andrew@aj.id.au> <20180711053122.30773-2-andrew@aj.id.au> <20180711200450.GB17291@rob-hp-laptop> <1531356830.3551458.1437853280.551CA8C5@webmail.messagingengine.com> <1531463489.747186.1439263128.075AECE1@webmail.messagingengine.com> X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jul 2018 23:28:28 -0000 On Tue, 17 Jul 2018, at 14:26, Benjamin Herrenschmidt wrote: > On Mon, 2018-07-16 at 07:55 -0600, Rob Herring wrote: > > If that data is one set per SoC, then i'm not that concerned having > > platform-specific data in the driver. That doesn't mean the driver is > > not "generic". It's still not clear to me in this thread, how much of > > this is board specific, but given that you've placed all the data in > > an SoC dtsi file it seems to be all per SoC. > > So Rob, I think that's precisely where the disconnect is. > > I think we all (well hopefully) agree that those few tunables don't fit > in any existing subystem and aren't likely to ever do (famous last > words...). > > Where we disagree is we want to make this parametrized via the DT, and > you want us to hard wire the list in some kind of SoC driver for a > given SoC family/version. > > The reason I think hard wiring the list in the driver is not a great > solution is that that list in itself is prone to variations, possibly > fairly often, between boards, vendors, versions of boards, etc... > > We can't know for sure every SoC tunable (out of the gazillions in > those chips) are going to be needed for a given system. We know which > ones we do use for ours, and that's a couple of handfuls, but it could > be that Dell need a slightly different set, and so might Yadro, or so > might our next board revision for that matter. > > Now, updating the device-tree in the board flash with whatever vendor > specific information is needed is a LOT easier than getting the kernel > driver constantly updated. The device-tree after all is there to > reflect among other things system specific ways in which the SoC is > wired and configured. This is rather close... Not sure this helps, but I feel that the proposal pretty closely matches what's described in Documentation/devicetree/bindings/mfd/mfd.txt. It's intended that nodes using the bindings I'm proposing are children of a 'compatible = "syscon", "simple-mfd"' node (this is the case with the features we're hoping to describe for our SoC). I should explicitly call that out. But to go on, "simple-mfd" is effectively an alias of "simple-bus", which means its intended to match child node compatibles to drivers provided by the kernel. If we shouldn't be describing minor features of a SoC in the devicetree, doesn't this invalidate the case for simple-mfd? What is the *correct* use of simple-mfd? When is it not used to expose minor features in set of "miscellaneous system registers"? Why doesn't this proposed case fit? Cheers, Andrew