Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp408043pxb; Thu, 21 Jan 2021 09:51:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1znjUvMC5TpLlvZcmiWe9gsih8C8BvSqY5OTDR1PNcmW1YaqL3YllLX5b9CifS2WAkPY+ X-Received: by 2002:a17:906:2a42:: with SMTP id k2mr434444eje.118.1611251509745; Thu, 21 Jan 2021 09:51:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611251509; cv=none; d=google.com; s=arc-20160816; b=yhhDtI0OKM7eNm9vfp3RQnqxqo3iznVhaoWvOrSfm+VutGKk6V+6MzPRd71rZ5nM8J 8kkdrzHme3OIu6InbMZYrLeRMD3aMzZJA+r0gXC72l5KcqenUAJ/hhFo/ZYUOtoWmkES Hoa3FSlKDYYGbGfe49V6IL/9ORCk9qyoTW+Xa52px5vM+HgPIebQ+ENEBdOMtOMA5yR3 +ee2jTc3dc+900UEr6cZEbPCcuyQz47fPeirG7BUq6Uk0+LiKRPfy5gahTnqJxSQIMxJ VaYIfsMS6emvULILF7oxr1KFaaxyTPWpUkCmJe3B7Lq2fsgoB721C2xl1JpNvmFAUjEM sEpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=+yRgCGwU4qvTiri9HEO5550lzK384m7vlNIqwfA5WCw=; b=xpGdkEUY0ObtR+7QJX52DpuxK8ohtAJnablKP9ob7bZhYPc0jR60Mzlw/Mzcg6IjbL jOTaP68kLNhvaUqJjNKMILFx8Ls0JDn6BzOrtG1jIY9g0l4OEiZzLianl+tIfjltLmRP RNWlZAMZgCHLfmmHtANRwzReVqNsWUgqScVtAhpb0IX5gt0nYMT9ECXlZtbigisvaFFC KSqYjLmhZAY+a8YE/TAkpEItFmIEvT9m+KhfW8X/9irjrUkguk7QQ78hG0rhyCdb9Aai uWkVccsRTUE2upLghm53O7Kz13IbMPphtfJvdqJKjZ1jvBBHliOhwhQbs7NtukmwdfwH VW3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bkWwKqyD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id de13si1873129edb.279.2021.01.21.09.51.26; Thu, 21 Jan 2021 09:51:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bkWwKqyD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389221AbhAURsR (ORCPT + 99 others); Thu, 21 Jan 2021 12:48:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:52352 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389053AbhAURqy (ORCPT ); Thu, 21 Jan 2021 12:46:54 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3D3CB22A85 for ; Thu, 21 Jan 2021 17:46:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611251166; bh=8Vgfa2YyRq9M4HMsdg2N5RVEwQqUfKMIoedhRicA3i8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=bkWwKqyDQSQzUF6c3Ef+beGqDZgdJ+B0m3wmkPCJ4O3ZYxcMtFZj3Iag4w3ZAH+48 +ROPQCn1WTVgOXiIxKphyFKnFnQnFLr0GakCHkSxPb7WtdA9laaYWfnB0v+huoVDLe H94YYxtTu5voA/u+stvcD0aeJoKeEuEMycFpPhUr4I32wg1G6NXW9F28Kpk3QQP9I7 CmXDVQ8BF3BpZKg6G3YynU5QNWyRKDdNAyq0N98XKUVi0I9oFnMBWPdHQrwibqOcrO XwUbGTWE13Mh3SbVYfjdSFnSVS3vX4j6EWl4SjkibF9Wy58a4F953+ucZRDEer6AAY MkcZEPrL9zUzg== Received: by mail-ej1-f44.google.com with SMTP id r12so3815544ejb.9 for ; Thu, 21 Jan 2021 09:46:06 -0800 (PST) X-Gm-Message-State: AOAM533acx3+C62aj4Icqo3EYVnpL4BI1XLo+hq/qs70o1lDlOU2Ts8h yxCG6gyzm4G7p9Erk0zBjEfnHyhNA4wI2YMMJw== X-Received: by 2002:a17:906:25c4:: with SMTP id n4mr395803ejb.359.1611251164737; Thu, 21 Jan 2021 09:46:04 -0800 (PST) MIME-Version: 1.0 References: <20210120132717.395873-1-mohamed.mediouni@caramail.com> <20210120132717.395873-5-mohamed.mediouni@caramail.com> In-Reply-To: From: Rob Herring Date: Thu, 21 Jan 2021 11:45:51 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 4/7] irqchip/apple-aic: Add support for Apple AIC To: Arnd Bergmann Cc: Linus Walleij , Mark Rutland , Marc Zyngier , Hector Martin , "linux-kernel@vger.kernel.org" , Catalin Marinas , Mohamed Mediouni , Will Deacon , Linux ARM , Stan Skowronek Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 21, 2021 at 4:38 AM Arnd Bergmann wrote: > > On Thu, Jan 21, 2021 at 10:48 AM Linus Walleij wrote: > > > > Hi Mohamed, > > > > thanks for your patch! > > > > On Wed, Jan 20, 2021 at 2:31 PM Mohamed Mediouni > > wrote: > > > > > +properties: > > > + compatible: > > > + items: > > > + - const: apple,aic > > > > However weird it may seem, Apple is not in the file > > Documentation/devicetree/bindings/vendor-prefixes.yaml > > > > (I think it's weird because I remember clearly that they have been > > using device tree for PPC since ages.) > > > > Could you add this 2-liner to that file and send it directly to > > DT binding maintainers as a single patch as a preparation? > > Choosing the vendor prefix here is going to be a little tricky > and non-obvious. > > Background: > > Traditionally, it should have been the stock ticker symbol of the > company (clearly only publicly traded companies would be able > to produce a Unix capable computer, right?), but there were > already inconsistent: IBM used "ibm" (in small letters), Sun > used "SUNW" (in capitals) but in 2007 changed the stock ticker > symbol to "JAVA", obviously without changing the firmware bindings. > > Apple traditionally used "AAPL" (also in caps) in the device tree, > and there is one remnant of that in the M1 device tree, in the form > of the "AAPL,phandle" property in each node, which corresponds > to our "linux,phandle". (phandles were introduced as properties in > both of the flattened DT formats, .dtb and apple's own format). > There are also "AAPL,unit-string properties and some device_type > strings (AAPL,display-crossbar, AAPL,atc-dpxbar, ...) in the M1 DT, > and the CPU nodes (and only those) use "apple" in small letters > as in "apple,icestorm","ARM,v8". The other nodes tend to not have > a vendor prefix, but a lot use a subsystem name as the prefix, such > as compatible="gpio,t8101" or compatible="tempsensor,t8020". > > Since Apple are already using both the "AAPL" and the "apple" > prefix themselves, I have a bad feeling about reusing either of > them for defining the devicetree.org bindings that we add to > linux/Documentation/devicetree/bindings. The question is: if > not "apple", what else should we use here? IMO, 'AAPL' as that is what is already in use in the kernel. I don't see why it matters at all what Apple is using. It might if we used any of the ADT as-is, but I don't see that happening from what I've seen. Rob