From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5F408C43331 for ; Wed, 1 Apr 2020 18:15:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2EE722063A for ; Wed, 1 Apr 2020 18:15:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730420AbgDASPw (ORCPT ); Wed, 1 Apr 2020 14:15:52 -0400 Received: from sibelius.xs4all.nl ([83.163.83.176]:59370 "EHLO sibelius.xs4all.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727723AbgDASPw (ORCPT ); Wed, 1 Apr 2020 14:15:52 -0400 X-Greylist: delayed 399 seconds by postgrey-1.27 at vger.kernel.org; Wed, 01 Apr 2020 14:15:52 EDT Received: from localhost (bloch.sibelius.xs4all.nl [local]) by bloch.sibelius.xs4all.nl (OpenSMTPD) with ESMTPA id 988688a7; Wed, 1 Apr 2020 20:09:11 +0200 (CEST) Date: Wed, 1 Apr 2020 20:09:11 +0200 (CEST) From: Mark Kettenis To: Michal Simek CC: robh@kernel.org, devicetree@vger.kernel.org, u-boot@lists.denx.de, trini@konsulko.com, loic.poulain@linaro.org In-reply-to: <6cdf20c3-7b74-679c-0e6f-4d385d12f9fe@xilinx.com> (message from Michal Simek on Wed, 1 Apr 2020 11:23:13 +0200) Subject: Re: u-boot DT configuration node References: <6cdf20c3-7b74-679c-0e6f-4d385d12f9fe@xilinx.com> Message-ID: <016159802e74c8a2@bloch.sibelius.xs4all.nl> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org > From: Michal Simek > Date: Wed, 1 Apr 2020 11:23:13 +0200 > > Hi Rob and others, > > for couple of years already u-boot is using config node in root DT for > u-boot configuration. > > Here is one example in u-boot source code. > https://gitlab.denx.de/u-boot/u-boot/-/blob/master/arch/arm/dts/exynos5250-spring.dts#L47 > > And here is dt binding description > https://gitlab.denx.de/u-boot/u-boot/-/blob/master/doc/device-tree-bindings/config.txt > > I was checking dt binding specification and there no such a thing > described there. It means I expect this is more adhoc u-boot solution. > We have reached the point where could be beneficial to put some u-boot > specific configurations to DT. > > Actually I have done similar thing some time ago too by using chosen > node and add xilinx specific property there to point to eeprom. > https://gitlab.denx.de/u-boot/u-boot/-/blob/master/arch/arm/dts/zynqmp-zcu102-revA.dts#L39 > > I think it is a time to discuss it and do it properly. > > First of all my question is where we could list SW prefixes to make sure > that they are listed and everybody is aware about it. We have > vendor-prefixes and we should have a way to record also prefixes for sw > projects. U-Boot is using u-boot. Xen has file in the kernel with using > xen prefix. At least these two should be listed. OpenBSD is using "openbsd," as a prefix. I've always thought it would be good to have it listed in the list of vendor prefixes there. In an open source world it shouldn't matter whether an entity sells something or not. And in fact "inux," is already there. And so is "qemu,". > Next my question is what is the recommended way to pass sw specific > parameters via DT? I think using chosen node is more appropriate then > adhoc config node. Or is there a better way how this should be done? On OpenBSD we do indeed use the the chosen node to pass information between the bootloader and the kernel. Cheers, Mark