From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751755AbdKDUGq (ORCPT ); Sat, 4 Nov 2017 16:06:46 -0400 Received: from mx2.suse.de ([195.135.220.15]:33082 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750959AbdKDUGn (ORCPT ); Sat, 4 Nov 2017 16:06:43 -0400 Subject: Re: [PATCH 3/5] dt-bindings: arm: Document Socionext MB86S71 and Fujitsu F-Cue To: Ard Biesheuvel Cc: Leif Lindholm , Grant Likely , Masahiro Yamada , Satoru OKAMOTO , Arnd Bergmann , Olof Johansson , Mark Rutland , Rob Herring , "devicetree@vger.kernel.org" , Linux Kernel Mailing List , Amit Kucheria , linux-arm-kernel , Yang Zhang References: <20170625170020.11791-1-afaerber@suse.de> <20170625170020.11791-4-afaerber@suse.de> <20170628164605.2gnvrv4g7jluzyrm@rob-hp-laptop> <51221840-b08e-45f1-5601-937fb15f3947@suse.de> <3327258c-b222-248b-9550-7620a57328f5@suse.de> From: =?UTF-8?Q?Andreas_F=c3=a4rber?= Organization: SUSE Linux GmbH Message-ID: <4d589d7a-2035-085e-17c4-1b88785b59f9@suse.de> Date: Sun, 5 Nov 2017 04:06:31 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 04.11.2017 um 23:39 schrieb Ard Biesheuvel: > On 4 November 2017 at 15:30, Andreas Färber wrote: >> Am 04.11.2017 um 22:57 schrieb Ard Biesheuvel: >>> On 4 November 2017 at 13:44, Andreas Färber wrote: >>>> Hi everyone, >>>> >>>> The non-building clk driver has been removed for 4.14, but this patchset >>>> seems stuck on matters of naming and maintenance... >>>> >>>> Am 30.06.2017 um 01:18 schrieb Masahiro Yamada: >>>>> Hi Andreas, >>>>> >>>>> 2017-06-29 21:53 GMT+09:00 Andreas Färber : >>>>>> Hi Masahiro-san, >>>>>> >>>>>> Am 29.06.2017 um 14:18 schrieb Masahiro Yamada: >>>>>>> 2017-06-29 1:46 GMT+09:00 Rob Herring : >>>>>>>> On Sun, Jun 25, 2017 at 07:00:18PM +0200, Andreas Färber wrote: >>>>>>>>> For consistency with existing SoC bindings, use "fujitsu,mb86s71" but >>>>>>>>> socionext.txt. >>>>>>>>> >>>>>>>>> Signed-off-by: Andreas Färber >>>>>>>>> --- >>>>>>>>> Documentation/devicetree/bindings/arm/socionext.txt | 17 +++++++++++++++++ >>>>>>>>> 1 file changed, 17 insertions(+) >>>>>>>>> create mode 100644 Documentation/devicetree/bindings/arm/socionext.txt >>>>>>>> >>>>>>>> Acked-by: Rob Herring >>>>>>>> -- >>>>>>> >>>>>>> I do not mind this, but >>>>>>> please note there are multiple product lines in Socionext >>>>>>> because Socionext merged LSI divisions from Panasonic and Fujitsu. >>>>>>> >>>>>>> I maintain documents for Socionext UniPhier SoC family >>>>>>> (which inherits SoC architecture of Panasonic) >>>>>>> in Documentation/devicetree/bindings/arm/uniphier/. >>>>>> >>>>>> Actually you seemed to be lacking bindings beyond the cache controller >>>>>> for Uniphier: >>>>>> >>>>>> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/Documentation/devicetree/bindings/arm/uniphier >>>>>> >>>>>> The SoC compatible, e.g. "socionext,uniphier-ld11", needs to be defined >>>>>> somewhere too, as done here. A git-grep for that particular compatible >>>>>> only finds derived clk and reset bindings. >>>>> >>>>> I can care to send a patch later, but it is off-topic here. >>>> >>>> [The relevance was that had there been any bindings precedence from >>>> UniPhier, it would've influenced my naming choices.] >>>> >>>>>> Using socionext.txt allows you to add those bindings to a shared file; >>>>>> if you prefer to host them separately below uniphier/ or as uniphier.txt >>>>> >>>>> I was thinking of this way. >>>>> >>>>> For example, TI has omap/, keystone/, davinci.txt, etc. >>>>> in this directory level. >>>>> >>>>>> do you have a better name suggestion for this one? I was trying to keep >>>>>> our options open to later add SC2A11 in socionext.txt, and I also saw >>>>>> some mb8ac300 or so (MB86S7x predecessor?) in downstream sources, so I >>>>>> don't know a good common name for the non-Panasonic parts. And if we >>>>>> take fujitsu.txt for MB86S7x to match the vendor prefix then we will >>>>>> need a separate file for the new SC2A11 IIUC. >>>>> >>>>> I have no idea. >>>>> Actually, I am not familiar with those SoCs. >>>>> >>>>> I am not sure if there exists a common name for those Fujitsu-derived SoCs. >>>>> I think a SoC family name will be helpful to avoid proliferating >>>>> arch/arm/mach-{mb86s7x,mb8ac300, ...}. >>>>> >>>>> I see some Socionext guys CC'ed in this mail, >>>>> somebody might have information about this. >>>>> >>>>> As I said before, I do not mind adding socionext.txt >>>>> and it seems reasonable enough >>>>> if there is no common name for those SoCs. >>>>> >>>>>> Also if you can tell us where the cut between Fujitsu and Socionext >>>>>> should be done, we can certainly adapt. NXP is still adding all their >>>>>> new SoCs in fsl.txt, it seems. >>>>>> (A similar naming issue exists for my not-yet-submitted FM4 patches, >>>>>> where it changed owners from Fujitsu to Spansion and then to Cypress.) >>>>> >>>>> Right, vendor names are not future-proof in some cases. >>>>> >>>>> We use "uniphier" because it is convenient to >>>>> make a group of SoCs with similar architecture, >>>>> and it will work even if UniPhier product lines are sold again in the >>>>> future. :-) >>>> >>>> Summarizing: Masahiro-san only wants to maintain the UniPhier family of >>>> Socionext SoCs, not this MB86S71. No one from Socionext or Linaro has >>>> volunteered as maintainer for these F-Cue MB86S71 patches - that seems >>>> to indicate I'll again have to set up a new repository and start >>>> maintaining it myself. >>>> >>>> Naming it linux-socionext.git wouldn't quite be right due to UniPhier >>>> also being Socionext. >>>> >>>> It's also unclear whether and by whom there may be SC2A11 patches - I >>>> hear for now Linaro are maintaining a SynQuacer DT in EDK2, rebelling >>>> against linux.git. >>> >>> Eh, wait, what? "Rebelling against linux.git"? What is that supposed >>> to mean exactly? >> >> Bindings must be submitted to the devicetree mailing list, acked by Rob >> and merged into the Linux tree before compatible strings may be used in >> Linux drivers or in-tree .dts[i] files. checkpatch.pl checks for that. > > OK, so where did we deviate from this in your opinion? I was very clear which new Socionext 96board platform my remark was about. There not being a socionext.txt file before this patch here hints at there being no official SoC binding defined for any. Adding one would require coordinating how to go about these platforms, as unsuccessfully attempted here. I was also referring to off-list remarks wrt EDK2 DT vs. Linux, which could've well come from you, given your rant. Note that both the bindings maintainer and one arm-soc maintainer are from Linaro afaik, so you're essentially fighting against your colleagues here... Last but not least pretty much every shipping 96Board to date had a pre-installed DT that did not have official bindings submitted (I don't count the Cello as shipping) and thus later changed incompatibly. >> U-Boot only allows import of new .dts files from Linux, too. >> >> So Linus' linux.git is the location to merge any vendor prefixes and >> device tree bindings, > > Agreed. > >> as well as the central location for device trees. > > Why should there be a central location for device trees? Because with a .dtsi for SoC and SoM we can share DT code across boards and bootloaders. And at least one .dts is needed for compile-testing it. >>From a central location files can be either individually copied or potentially aggregated as submodules. DT patch reviews have resulted in GIC nodes growing virtualization support for instance, and there have been in-tree refactorings fixing the arch timer's interrupt type iirc. Comparing modeling across vendors is also useful to not live in silos. Also considering that drivers are spread over subsystem rather than SoC directories these days, the central location being Linux facilitates checking which platforms have been enabled already and to which degree. >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts >> >> If you're unfamiliar with that, talk to your Linaro colleagues please! > > Please don't lecture me on this. If you ask questions, you may get answers. Blame yourself if you intended them as rhetorical questions. > The bindings are the contract between the OS and the platform, and I > agree that those need to be reviewed and maintained in a central > location, and the kernel tree, while not optimal, is a suitable place > for that. > > However, the existence of such contracts means that there is no need > to have a central location for device trees, nor should there be a > need for distros to ever ship device trees with the kernel. That > practice defeats the entire purpose of having contracts in the first > place, especially with the pathetic churn we are seeing in device > trees that are kept in the kernel. Please don't argue with me about these fundamentals. Not my decisions! This is not about distros shipping things; there is no openSUSE on these platforms precisely because code is not in central repositories. It's rather about three platforms by one vendor all going into different directions: SC2A11 into some seemingly non-mainline EDK2, MB86S71 as vendor kernel / U-Boot tarballs (and my kernel patches here), and UniPhier as only one in mainline kernel and mainline U-Boot. Have you ever tried to boot e.g. a HiKey with a DT not from the mainline kernel you are trying to boot? Good luck... Even server vendors occasionally change their device trees with firmware updates. Fact is, as platforms get enabled, device trees grow additional nodes and properties. DTs don't fall from skies in some final form for new SoCs. Especially not if they keep getting written by volunteers like me - I'm already enabling the fourth 96board because Linaro and its partners keep throwing ~3.10 kernels at users again and again and again, which as I've pointed out at BUD17 is highly annoying! Even more annoying every single time Linaro marketing asks people to join as paying members because Linaro supposedly does so awesome Open Source work and such great 96Boards. Just this Friday again. Nobody needs Reference Platform kernels if everything just timely gets merged into linux-next and mainline, where code belongs. Same for device trees, until the powers that be decide on a different location - which would not change the problem at all: Every review will be regarded as churn by someone else, and some people will always be lazy in submitting patches to whatever widely agreed-upon location, be it kernel drivers or DTs or U-Boot or EDK2 or ATF or something else. We wouldn't be having this argument if everything were great with the various non-central 96boards trees and downstream DTs. Regards, Andreas -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Andreas_F=c3=a4rber?= Subject: Re: [PATCH 3/5] dt-bindings: arm: Document Socionext MB86S71 and Fujitsu F-Cue Date: Sun, 5 Nov 2017 04:06:31 +0800 Message-ID: <4d589d7a-2035-085e-17c4-1b88785b59f9@suse.de> References: <20170625170020.11791-1-afaerber@suse.de> <20170625170020.11791-4-afaerber@suse.de> <20170628164605.2gnvrv4g7jluzyrm@rob-hp-laptop> <51221840-b08e-45f1-5601-937fb15f3947@suse.de> <3327258c-b222-248b-9550-7620a57328f5@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: Content-Language: en-US Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Ard Biesheuvel Cc: Leif Lindholm , Grant Likely , Masahiro Yamada , Satoru OKAMOTO , Arnd Bergmann , Olof Johansson , Mark Rutland , Rob Herring , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Linux Kernel Mailing List , Amit Kucheria , linux-arm-kernel , Yang Zhang List-Id: devicetree@vger.kernel.org Am 04.11.2017 um 23:39 schrieb Ard Biesheuvel: > On 4 November 2017 at 15:30, Andreas Färber wrote: >> Am 04.11.2017 um 22:57 schrieb Ard Biesheuvel: >>> On 4 November 2017 at 13:44, Andreas Färber wrote: >>>> Hi everyone, >>>> >>>> The non-building clk driver has been removed for 4.14, but this patchset >>>> seems stuck on matters of naming and maintenance... >>>> >>>> Am 30.06.2017 um 01:18 schrieb Masahiro Yamada: >>>>> Hi Andreas, >>>>> >>>>> 2017-06-29 21:53 GMT+09:00 Andreas Färber : >>>>>> Hi Masahiro-san, >>>>>> >>>>>> Am 29.06.2017 um 14:18 schrieb Masahiro Yamada: >>>>>>> 2017-06-29 1:46 GMT+09:00 Rob Herring : >>>>>>>> On Sun, Jun 25, 2017 at 07:00:18PM +0200, Andreas Färber wrote: >>>>>>>>> For consistency with existing SoC bindings, use "fujitsu,mb86s71" but >>>>>>>>> socionext.txt. >>>>>>>>> >>>>>>>>> Signed-off-by: Andreas Färber >>>>>>>>> --- >>>>>>>>> Documentation/devicetree/bindings/arm/socionext.txt | 17 +++++++++++++++++ >>>>>>>>> 1 file changed, 17 insertions(+) >>>>>>>>> create mode 100644 Documentation/devicetree/bindings/arm/socionext.txt >>>>>>>> >>>>>>>> Acked-by: Rob Herring >>>>>>>> -- >>>>>>> >>>>>>> I do not mind this, but >>>>>>> please note there are multiple product lines in Socionext >>>>>>> because Socionext merged LSI divisions from Panasonic and Fujitsu. >>>>>>> >>>>>>> I maintain documents for Socionext UniPhier SoC family >>>>>>> (which inherits SoC architecture of Panasonic) >>>>>>> in Documentation/devicetree/bindings/arm/uniphier/. >>>>>> >>>>>> Actually you seemed to be lacking bindings beyond the cache controller >>>>>> for Uniphier: >>>>>> >>>>>> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/Documentation/devicetree/bindings/arm/uniphier >>>>>> >>>>>> The SoC compatible, e.g. "socionext,uniphier-ld11", needs to be defined >>>>>> somewhere too, as done here. A git-grep for that particular compatible >>>>>> only finds derived clk and reset bindings. >>>>> >>>>> I can care to send a patch later, but it is off-topic here. >>>> >>>> [The relevance was that had there been any bindings precedence from >>>> UniPhier, it would've influenced my naming choices.] >>>> >>>>>> Using socionext.txt allows you to add those bindings to a shared file; >>>>>> if you prefer to host them separately below uniphier/ or as uniphier.txt >>>>> >>>>> I was thinking of this way. >>>>> >>>>> For example, TI has omap/, keystone/, davinci.txt, etc. >>>>> in this directory level. >>>>> >>>>>> do you have a better name suggestion for this one? I was trying to keep >>>>>> our options open to later add SC2A11 in socionext.txt, and I also saw >>>>>> some mb8ac300 or so (MB86S7x predecessor?) in downstream sources, so I >>>>>> don't know a good common name for the non-Panasonic parts. And if we >>>>>> take fujitsu.txt for MB86S7x to match the vendor prefix then we will >>>>>> need a separate file for the new SC2A11 IIUC. >>>>> >>>>> I have no idea. >>>>> Actually, I am not familiar with those SoCs. >>>>> >>>>> I am not sure if there exists a common name for those Fujitsu-derived SoCs. >>>>> I think a SoC family name will be helpful to avoid proliferating >>>>> arch/arm/mach-{mb86s7x,mb8ac300, ...}. >>>>> >>>>> I see some Socionext guys CC'ed in this mail, >>>>> somebody might have information about this. >>>>> >>>>> As I said before, I do not mind adding socionext.txt >>>>> and it seems reasonable enough >>>>> if there is no common name for those SoCs. >>>>> >>>>>> Also if you can tell us where the cut between Fujitsu and Socionext >>>>>> should be done, we can certainly adapt. NXP is still adding all their >>>>>> new SoCs in fsl.txt, it seems. >>>>>> (A similar naming issue exists for my not-yet-submitted FM4 patches, >>>>>> where it changed owners from Fujitsu to Spansion and then to Cypress.) >>>>> >>>>> Right, vendor names are not future-proof in some cases. >>>>> >>>>> We use "uniphier" because it is convenient to >>>>> make a group of SoCs with similar architecture, >>>>> and it will work even if UniPhier product lines are sold again in the >>>>> future. :-) >>>> >>>> Summarizing: Masahiro-san only wants to maintain the UniPhier family of >>>> Socionext SoCs, not this MB86S71. No one from Socionext or Linaro has >>>> volunteered as maintainer for these F-Cue MB86S71 patches - that seems >>>> to indicate I'll again have to set up a new repository and start >>>> maintaining it myself. >>>> >>>> Naming it linux-socionext.git wouldn't quite be right due to UniPhier >>>> also being Socionext. >>>> >>>> It's also unclear whether and by whom there may be SC2A11 patches - I >>>> hear for now Linaro are maintaining a SynQuacer DT in EDK2, rebelling >>>> against linux.git. >>> >>> Eh, wait, what? "Rebelling against linux.git"? What is that supposed >>> to mean exactly? >> >> Bindings must be submitted to the devicetree mailing list, acked by Rob >> and merged into the Linux tree before compatible strings may be used in >> Linux drivers or in-tree .dts[i] files. checkpatch.pl checks for that. > > OK, so where did we deviate from this in your opinion? I was very clear which new Socionext 96board platform my remark was about. There not being a socionext.txt file before this patch here hints at there being no official SoC binding defined for any. Adding one would require coordinating how to go about these platforms, as unsuccessfully attempted here. I was also referring to off-list remarks wrt EDK2 DT vs. Linux, which could've well come from you, given your rant. Note that both the bindings maintainer and one arm-soc maintainer are from Linaro afaik, so you're essentially fighting against your colleagues here... Last but not least pretty much every shipping 96Board to date had a pre-installed DT that did not have official bindings submitted (I don't count the Cello as shipping) and thus later changed incompatibly. >> U-Boot only allows import of new .dts files from Linux, too. >> >> So Linus' linux.git is the location to merge any vendor prefixes and >> device tree bindings, > > Agreed. > >> as well as the central location for device trees. > > Why should there be a central location for device trees? Because with a .dtsi for SoC and SoM we can share DT code across boards and bootloaders. And at least one .dts is needed for compile-testing it. >>From a central location files can be either individually copied or potentially aggregated as submodules. DT patch reviews have resulted in GIC nodes growing virtualization support for instance, and there have been in-tree refactorings fixing the arch timer's interrupt type iirc. Comparing modeling across vendors is also useful to not live in silos. Also considering that drivers are spread over subsystem rather than SoC directories these days, the central location being Linux facilitates checking which platforms have been enabled already and to which degree. >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts >> >> If you're unfamiliar with that, talk to your Linaro colleagues please! > > Please don't lecture me on this. If you ask questions, you may get answers. Blame yourself if you intended them as rhetorical questions. > The bindings are the contract between the OS and the platform, and I > agree that those need to be reviewed and maintained in a central > location, and the kernel tree, while not optimal, is a suitable place > for that. > > However, the existence of such contracts means that there is no need > to have a central location for device trees, nor should there be a > need for distros to ever ship device trees with the kernel. That > practice defeats the entire purpose of having contracts in the first > place, especially with the pathetic churn we are seeing in device > trees that are kept in the kernel. Please don't argue with me about these fundamentals. Not my decisions! This is not about distros shipping things; there is no openSUSE on these platforms precisely because code is not in central repositories. It's rather about three platforms by one vendor all going into different directions: SC2A11 into some seemingly non-mainline EDK2, MB86S71 as vendor kernel / U-Boot tarballs (and my kernel patches here), and UniPhier as only one in mainline kernel and mainline U-Boot. Have you ever tried to boot e.g. a HiKey with a DT not from the mainline kernel you are trying to boot? Good luck... Even server vendors occasionally change their device trees with firmware updates. Fact is, as platforms get enabled, device trees grow additional nodes and properties. DTs don't fall from skies in some final form for new SoCs. Especially not if they keep getting written by volunteers like me - I'm already enabling the fourth 96board because Linaro and its partners keep throwing ~3.10 kernels at users again and again and again, which as I've pointed out at BUD17 is highly annoying! Even more annoying every single time Linaro marketing asks people to join as paying members because Linaro supposedly does so awesome Open Source work and such great 96Boards. Just this Friday again. Nobody needs Reference Platform kernels if everything just timely gets merged into linux-next and mainline, where code belongs. Same for device trees, until the powers that be decide on a different location - which would not change the problem at all: Every review will be regarded as churn by someone else, and some people will always be lazy in submitting patches to whatever widely agreed-upon location, be it kernel drivers or DTs or U-Boot or EDK2 or ATF or something else. We wouldn't be having this argument if everything were great with the various non-central 96boards trees and downstream DTs. Regards, Andreas -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: afaerber@suse.de (=?UTF-8?Q?Andreas_F=c3=a4rber?=) Date: Sun, 5 Nov 2017 04:06:31 +0800 Subject: [PATCH 3/5] dt-bindings: arm: Document Socionext MB86S71 and Fujitsu F-Cue In-Reply-To: References: <20170625170020.11791-1-afaerber@suse.de> <20170625170020.11791-4-afaerber@suse.de> <20170628164605.2gnvrv4g7jluzyrm@rob-hp-laptop> <51221840-b08e-45f1-5601-937fb15f3947@suse.de> <3327258c-b222-248b-9550-7620a57328f5@suse.de> Message-ID: <4d589d7a-2035-085e-17c4-1b88785b59f9@suse.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Am 04.11.2017 um 23:39 schrieb Ard Biesheuvel: > On 4 November 2017 at 15:30, Andreas F?rber wrote: >> Am 04.11.2017 um 22:57 schrieb Ard Biesheuvel: >>> On 4 November 2017 at 13:44, Andreas F?rber wrote: >>>> Hi everyone, >>>> >>>> The non-building clk driver has been removed for 4.14, but this patchset >>>> seems stuck on matters of naming and maintenance... >>>> >>>> Am 30.06.2017 um 01:18 schrieb Masahiro Yamada: >>>>> Hi Andreas, >>>>> >>>>> 2017-06-29 21:53 GMT+09:00 Andreas F?rber : >>>>>> Hi Masahiro-san, >>>>>> >>>>>> Am 29.06.2017 um 14:18 schrieb Masahiro Yamada: >>>>>>> 2017-06-29 1:46 GMT+09:00 Rob Herring : >>>>>>>> On Sun, Jun 25, 2017 at 07:00:18PM +0200, Andreas F?rber wrote: >>>>>>>>> For consistency with existing SoC bindings, use "fujitsu,mb86s71" but >>>>>>>>> socionext.txt. >>>>>>>>> >>>>>>>>> Signed-off-by: Andreas F?rber >>>>>>>>> --- >>>>>>>>> Documentation/devicetree/bindings/arm/socionext.txt | 17 +++++++++++++++++ >>>>>>>>> 1 file changed, 17 insertions(+) >>>>>>>>> create mode 100644 Documentation/devicetree/bindings/arm/socionext.txt >>>>>>>> >>>>>>>> Acked-by: Rob Herring >>>>>>>> -- >>>>>>> >>>>>>> I do not mind this, but >>>>>>> please note there are multiple product lines in Socionext >>>>>>> because Socionext merged LSI divisions from Panasonic and Fujitsu. >>>>>>> >>>>>>> I maintain documents for Socionext UniPhier SoC family >>>>>>> (which inherits SoC architecture of Panasonic) >>>>>>> in Documentation/devicetree/bindings/arm/uniphier/. >>>>>> >>>>>> Actually you seemed to be lacking bindings beyond the cache controller >>>>>> for Uniphier: >>>>>> >>>>>> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/Documentation/devicetree/bindings/arm/uniphier >>>>>> >>>>>> The SoC compatible, e.g. "socionext,uniphier-ld11", needs to be defined >>>>>> somewhere too, as done here. A git-grep for that particular compatible >>>>>> only finds derived clk and reset bindings. >>>>> >>>>> I can care to send a patch later, but it is off-topic here. >>>> >>>> [The relevance was that had there been any bindings precedence from >>>> UniPhier, it would've influenced my naming choices.] >>>> >>>>>> Using socionext.txt allows you to add those bindings to a shared file; >>>>>> if you prefer to host them separately below uniphier/ or as uniphier.txt >>>>> >>>>> I was thinking of this way. >>>>> >>>>> For example, TI has omap/, keystone/, davinci.txt, etc. >>>>> in this directory level. >>>>> >>>>>> do you have a better name suggestion for this one? I was trying to keep >>>>>> our options open to later add SC2A11 in socionext.txt, and I also saw >>>>>> some mb8ac300 or so (MB86S7x predecessor?) in downstream sources, so I >>>>>> don't know a good common name for the non-Panasonic parts. And if we >>>>>> take fujitsu.txt for MB86S7x to match the vendor prefix then we will >>>>>> need a separate file for the new SC2A11 IIUC. >>>>> >>>>> I have no idea. >>>>> Actually, I am not familiar with those SoCs. >>>>> >>>>> I am not sure if there exists a common name for those Fujitsu-derived SoCs. >>>>> I think a SoC family name will be helpful to avoid proliferating >>>>> arch/arm/mach-{mb86s7x,mb8ac300, ...}. >>>>> >>>>> I see some Socionext guys CC'ed in this mail, >>>>> somebody might have information about this. >>>>> >>>>> As I said before, I do not mind adding socionext.txt >>>>> and it seems reasonable enough >>>>> if there is no common name for those SoCs. >>>>> >>>>>> Also if you can tell us where the cut between Fujitsu and Socionext >>>>>> should be done, we can certainly adapt. NXP is still adding all their >>>>>> new SoCs in fsl.txt, it seems. >>>>>> (A similar naming issue exists for my not-yet-submitted FM4 patches, >>>>>> where it changed owners from Fujitsu to Spansion and then to Cypress.) >>>>> >>>>> Right, vendor names are not future-proof in some cases. >>>>> >>>>> We use "uniphier" because it is convenient to >>>>> make a group of SoCs with similar architecture, >>>>> and it will work even if UniPhier product lines are sold again in the >>>>> future. :-) >>>> >>>> Summarizing: Masahiro-san only wants to maintain the UniPhier family of >>>> Socionext SoCs, not this MB86S71. No one from Socionext or Linaro has >>>> volunteered as maintainer for these F-Cue MB86S71 patches - that seems >>>> to indicate I'll again have to set up a new repository and start >>>> maintaining it myself. >>>> >>>> Naming it linux-socionext.git wouldn't quite be right due to UniPhier >>>> also being Socionext. >>>> >>>> It's also unclear whether and by whom there may be SC2A11 patches - I >>>> hear for now Linaro are maintaining a SynQuacer DT in EDK2, rebelling >>>> against linux.git. >>> >>> Eh, wait, what? "Rebelling against linux.git"? What is that supposed >>> to mean exactly? >> >> Bindings must be submitted to the devicetree mailing list, acked by Rob >> and merged into the Linux tree before compatible strings may be used in >> Linux drivers or in-tree .dts[i] files. checkpatch.pl checks for that. > > OK, so where did we deviate from this in your opinion? I was very clear which new Socionext 96board platform my remark was about. There not being a socionext.txt file before this patch here hints at there being no official SoC binding defined for any. Adding one would require coordinating how to go about these platforms, as unsuccessfully attempted here. I was also referring to off-list remarks wrt EDK2 DT vs. Linux, which could've well come from you, given your rant. Note that both the bindings maintainer and one arm-soc maintainer are from Linaro afaik, so you're essentially fighting against your colleagues here... Last but not least pretty much every shipping 96Board to date had a pre-installed DT that did not have official bindings submitted (I don't count the Cello as shipping) and thus later changed incompatibly. >> U-Boot only allows import of new .dts files from Linux, too. >> >> So Linus' linux.git is the location to merge any vendor prefixes and >> device tree bindings, > > Agreed. > >> as well as the central location for device trees. > > Why should there be a central location for device trees? Because with a .dtsi for SoC and SoM we can share DT code across boards and bootloaders. And at least one .dts is needed for compile-testing it. >>From a central location files can be either individually copied or potentially aggregated as submodules. DT patch reviews have resulted in GIC nodes growing virtualization support for instance, and there have been in-tree refactorings fixing the arch timer's interrupt type iirc. Comparing modeling across vendors is also useful to not live in silos. Also considering that drivers are spread over subsystem rather than SoC directories these days, the central location being Linux facilitates checking which platforms have been enabled already and to which degree. >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts >> >> If you're unfamiliar with that, talk to your Linaro colleagues please! > > Please don't lecture me on this. If you ask questions, you may get answers. Blame yourself if you intended them as rhetorical questions. > The bindings are the contract between the OS and the platform, and I > agree that those need to be reviewed and maintained in a central > location, and the kernel tree, while not optimal, is a suitable place > for that. > > However, the existence of such contracts means that there is no need > to have a central location for device trees, nor should there be a > need for distros to ever ship device trees with the kernel. That > practice defeats the entire purpose of having contracts in the first > place, especially with the pathetic churn we are seeing in device > trees that are kept in the kernel. Please don't argue with me about these fundamentals. Not my decisions! This is not about distros shipping things; there is no openSUSE on these platforms precisely because code is not in central repositories. It's rather about three platforms by one vendor all going into different directions: SC2A11 into some seemingly non-mainline EDK2, MB86S71 as vendor kernel / U-Boot tarballs (and my kernel patches here), and UniPhier as only one in mainline kernel and mainline U-Boot. Have you ever tried to boot e.g. a HiKey with a DT not from the mainline kernel you are trying to boot? Good luck... Even server vendors occasionally change their device trees with firmware updates. Fact is, as platforms get enabled, device trees grow additional nodes and properties. DTs don't fall from skies in some final form for new SoCs. Especially not if they keep getting written by volunteers like me - I'm already enabling the fourth 96board because Linaro and its partners keep throwing ~3.10 kernels at users again and again and again, which as I've pointed out at BUD17 is highly annoying! Even more annoying every single time Linaro marketing asks people to join as paying members because Linaro supposedly does so awesome Open Source work and such great 96Boards. Just this Friday again. Nobody needs Reference Platform kernels if everything just timely gets merged into linux-next and mainline, where code belongs. Same for device trees, until the powers that be decide on a different location - which would not change the problem at all: Every review will be regarded as churn by someone else, and some people will always be lazy in submitting patches to whatever widely agreed-upon location, be it kernel drivers or DTs or U-Boot or EDK2 or ATF or something else. We wouldn't be having this argument if everything were great with the various non-central 96boards trees and downstream DTs. Regards, Andreas -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg)