Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7D929C433EF for ; Wed, 15 Dec 2021 16:04:29 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BD74C83056; Wed, 15 Dec 2021 16:53:33 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="cgmEtBhY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7CF4780FD2; Wed, 15 Dec 2021 16:53:32 +0100 (CET) Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E6C9380FD2 for ; Wed, 15 Dec 2021 16:53:28 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seanga2@gmail.com Received: by mail-qk1-x736.google.com with SMTP id d2so20367680qki.12 for ; Wed, 15 Dec 2021 07:53:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:from:subject:cc:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=lK9vHceHs1RoyFf+XVO9Kojv+oAmM6alJazjmC71A7I=; b=cgmEtBhYeULRiFCwNbEOcJAI0XiN7370o5Ha7ZO0VbWR8YemtcQWg1/gwYraIYDhIa BOLXwMsYjPFbfR1cuGwpPIS0gZf1+YJKU2CeGrmmn9HfuMRgGUWhUNB7O3d2bVuhqA6Y gN5eM7lrC36NbzwtHn8E9fUPhryzM6Hse1yaAgbnwtqPFcXDnW8odeAU9LJOtkeM6K5Z qyLitlbAF/WNy1luMO1gfCHj4xjpFYTJ/eD3EWxoPiMd355+2xbSjxWPozhGly8XmYpL z+zW2Qa1mP++hvMWu5nMvnn7K3LmI8iuquS9vjzrPxxTTj0RzHqU4kb5eYHvLmVjN5gD jlrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:to:from:subject:cc:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=lK9vHceHs1RoyFf+XVO9Kojv+oAmM6alJazjmC71A7I=; b=LXUHFUyR4btBZCYLWN60v1aZ2WU9OZ+bgc12iDE4oDhJB3KS16KvDK1lXx4mvqAOhP sW3/5AMVeWCPHL9n/2sMT9N+CvIi/lBrr0egUZJczHcE8DigMBv5DUf0//Vaj91JcWxG Q4HGanloGt+tPbJpsH/QXaQwbYlA/qZ94nmYrvgU6FvNXxXPoVHf9BloGRwtqrq6SNLg eBm0sAsSBd0YEyRFQi+FB98skbBbdDJZdq1Kzdo0df37OSmY3DrpFMFPSclmd6HkySqs L+Ras2yMqfU3lFbmm1aVEYYgJsAEbtjUk8ocs+AKwxH6GMl7tSTvIrFI1Bs+KobTTk4t MOxg== X-Gm-Message-State: AOAM533aikSlbDHIT00wDH4K9PAnQdW3vMCZaTnQHXrobR5qfhnoVLLX 5lFsRZGi6gWPOdbUGITma7LDbDb0CRc= X-Google-Smtp-Source: ABdhPJwBEpTK9k9+KrmUvCwsalulRZa/RqQ9l0spO+cGgMxgHYOhByFaOk8hcOcOv9U/2zlThDxJbw== X-Received: by 2002:a05:620a:c47:: with SMTP id u7mr9167621qki.568.1639583607637; Wed, 15 Dec 2021 07:53:27 -0800 (PST) Received: from [192.168.1.201] (pool-108-18-207-184.washdc.fios.verizon.net. [108.18.207.184]) by smtp.googlemail.com with ESMTPSA id l25sm1231150qkk.48.2021.12.15.07.53.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Dec 2021 07:53:27 -0800 (PST) To: U Boot , Tom Rini , Simon Glass From: Sean Anderson Subject: Are dt-bindings headers part of the device tree spec? Cc: =?UTF-8?Q?Fran=c3=a7ois_Ozog?= , Mark Kettenis , Oleksandr Andrushchenko , Weijie Gao , Ilias Apalodimas , Heinrich Schuchardt Message-ID: Date: Wed, 15 Dec 2021 10:53:26 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hi all, I'm reviewing a clock driver [1], and the submitter has deviated from the defines used by Linux. For example, where Linux might have #define CLOCK_FOOBAR 5 his driver might have #define CLK_FUBAR 6 Which means that both the device tree source and the resulting device tree binary will be different. As I understand it, we try to be compatible with Linux on these things. However, it is unclear to me if include/dt-bindings is also part of this, or just the things in Documentation/devicetree/bindings. And if it is, do we need to have compatible sources, compatible binaries, or both? In general, I think we should try to have the same headers as well, but is it permitted to allow deviations with reasonable justification? --Sean [1] https://lore.kernel.org/u-boot/de6e75a083647dfeec3058dd4dcc0419b08e155c.1637285375.git.weijie.gao@mediatek.com/