Received: by 10.223.148.5 with SMTP id 5csp7520439wrq; Thu, 18 Jan 2018 06:30:00 -0800 (PST) X-Google-Smtp-Source: ACJfBosoMBPmfnHKKsVdQs8tAfKWcHqE+2SGrC/XrxSHiGzFvSneeNpNAVCSFHJNG30kj4JfiB4j X-Received: by 10.99.116.26 with SMTP id p26mr30104163pgc.320.1516285800566; Thu, 18 Jan 2018 06:30:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516285800; cv=none; d=google.com; s=arc-20160816; b=OsLrPEO1JCakq9mM59GaIAHFvmXpdpq9aR+rcDTSCs2bwtWsd1ITklkqSXeJyDkUdY oJ+9VHR8CM0nj6j6Cg89Qb2eiOI+6vEXBoc9AhRlAmgH5uKYDxQ37MZr2e8vjdo5zRbH UD3XuqFREz+G/RzOgkhzjHdZc50NhXZ8io1wKHVZ+FZM90rHmDzDhqvIU569pFMYvxiV NUgKrB01qmn3pH/7Rz1j6Y6krlKcBRKQQTnYI/CMmXKugSmwccDef3EZp0JRUxGIT3SE WjTh4AATnXB6XywCBnZ1m1VMAvX/jZjGFpteueEGMOJE7JrY4TGAKXf5vOenL7/1zxoP 8Miw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:arc-authentication-results; bh=B8H2Z+mgbHFT7Wcr3zN4YciGd/v9nHTdmgR8T8u46JY=; b=RNQOn4c2nX5ZmJDrKTDVr/Gwitd4SIfkN4433ygLncRUQ/3zOqkQLk6CTjeuHMndTn HC3YEeTPI9VGwi/TKQ42d2OKjJYPj1mvFv2ooHNHIFkoUT7H/EapTNgv0l1IajMckrgT K0iEoW7E9C13j/vnAHAqRTJ85G6fbmv7DXKwwwyd3tfTsOBgiF5i4IRzs04ntr8J2ghN Ely5vE9yRCFQZbiYyKfZSHVKgJW/DGfhmW1yYKRdShnUdVYFVwi8hRftz836wePbPdGM LHs6qiIuqVy8VMoR1sAVUHGB9B63s+Qkf+sPe3Ssx8khUMi40CEelJch5hXlQREOxT7f /eSw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3si6212235pgu.546.2018.01.18.06.29.45; Thu, 18 Jan 2018 06:30:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756459AbeARO3Q (ORCPT + 99 others); Thu, 18 Jan 2018 09:29:16 -0500 Received: from mail-wm0-f51.google.com ([74.125.82.51]:38210 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756358AbeARO3N (ORCPT ); Thu, 18 Jan 2018 09:29:13 -0500 Received: by mail-wm0-f51.google.com with SMTP id 141so23147648wme.3; Thu, 18 Jan 2018 06:29:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=B8H2Z+mgbHFT7Wcr3zN4YciGd/v9nHTdmgR8T8u46JY=; b=rnNVZt0VGUwSWFfBbHXcgh5r8JHGl3B3o2xstKnPlEGg+jGu0B9Gy1HjryksmV0hGu p/3vrJUelXZgEsCPPuQVmF3/FxwHcDU+A5RQdItyPC3+g04N0LjtrWBEP+COEB2mL87K LyV5Gkli2p5L4c9QRQhMXSSuMx4B5QPd5fdnixamLvoHrLGYZOdQXqPWZpLl7yBk+Tlv U6O/qdeWa+Dcj5RurmR3/DkkESsuOXMbIQqW/0czuNeUYz/LkZP1EHIi69xCjt3sYzLn USGwvOEoYC12j702TMUrhS0PrQMzmBk0+u0X+V5tvjIiwhRsvgjb+DIuaK5BQo3nDr/A 6CzA== X-Gm-Message-State: AKwxytd6Sd/jtjDVfqKSJ2MEkh6CD1zZpOVYVwdiUfP6JitdRMbtN1p+ i2tyOjKi82Ldy4NtSomh7HBjBQUC X-Received: by 10.80.179.193 with SMTP id t1mr8232818edd.96.1516285751994; Thu, 18 Jan 2018 06:29:11 -0800 (PST) Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com. [74.125.82.48]) by smtp.gmail.com with ESMTPSA id h56sm4586532ede.45.2018.01.18.06.29.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jan 2018 06:29:11 -0800 (PST) Received: by mail-wm0-f48.google.com with SMTP id i186so22280875wmi.4; Thu, 18 Jan 2018 06:29:10 -0800 (PST) X-Received: by 10.28.158.208 with SMTP id h199mr5206343wme.17.1516285750406; Thu, 18 Jan 2018 06:29:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.176.78 with HTTP; Thu, 18 Jan 2018 06:28:49 -0800 (PST) In-Reply-To: <20180118100745.y62adzvfnrzqkagd@flea.lan> References: <1515747666-6597-1-git-send-email-stefan@olimex.com> <20180115095031.pzsgrp3tdmemotrs@flea.lan> <1b9667a4-75de-4ece-069d-7ec33b7e2f8d@olimex.com> <20180118100745.y62adzvfnrzqkagd@flea.lan> From: Chen-Yu Tsai Date: Thu, 18 Jan 2018 22:28:49 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/1] ARM: dts: sunxi: Add Olimex A20-SOM204-EVB board To: Maxime Ripard Cc: Stefan Mavrodiev , Rob Herring , Mark Rutland , Russell King , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM PORT" , open list , linux-sunxi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 18, 2018 at 6:07 PM, Maxime Ripard wrote: > Hi! > > On Mon, Jan 15, 2018 at 12:07:34PM +0200, Stefan Mavrodiev wrote: >> > > +/dts-v1/; >> > > +#include "sun7i-a20.dtsi" >> > > +#include "sunxi-common-regulators.dtsi" >> > > + >> > > + >> > > +#include >> > > +#include >> > > +#include >> > > + >> > > +/ { >> > > + model = "Olimex A20-SOM204-EVB"; >> > > + compatible = "olimex,a20-olimex-som204-evb", "allwinner,sun7i-a20"; >> > > + >> > > + aliases { >> > > + serial0 = &uart0; >> > > + serial1 = &uart4; >> > > + serial2 = &uart7; >> > > + spi0 = &spi1; >> > > + spi1 = &spi2; >> > > + ethernet1 = &rtl8723bs; >> > >> > ethernet1? if there's a single network interface, it should be >> > ethernet0. >> >> I think this will conflict the gmac alias defined in sun7i-a20.dtsi: >> >> aliases { >> ethernet0 = &gmac; >> }; > > We have that? That's bad, but you're right :) > >> > > + stat { >> > > + label = "a20-som204:green:stat"; >> > > + gpios = <&pio 8 0 GPIO_ACTIVE_HIGH>; >> > > + default-state = "on"; >> > > + }; >> > > + >> > > + led1 { >> > > + label = "a20-som204-evb:green:led1"; >> > > + gpios = <&pio 8 10 GPIO_ACTIVE_HIGH>; >> > > + default-state = "on"; >> > > + }; >> > > + >> > > + led2 { >> > > + label = "a20-som204-evb:yellow:led2"; >> > > + gpios = <&pio 8 11 GPIO_ACTIVE_HIGH>; >> > > + default-state = "on"; >> > > + }; >> > >> > You don't have the same prefix between stat and led1/led2. I'm fine >> > with both, but you should be consistent :) >> >> STAT led is on the SOM204 module, while led1/2 on the EVB. Thats why >> they have different prefix. > > Still, the user and the system will see it as a single board, and the > documentation states that it should be the board name. I'm not quite > sure what a good rule would be here. Have you looked at how other > boards dealt with it? Chen-Yu, any opinion on this? Follow the bindings, I guess? I don't think we (sunxi) have dealt with modules that have LEDs or anything that needs to be named after the board. On a related topic, I don't know if you (Stefan / Olimex) want to split this into a .dtsi file for the SoM, and a .dts file for the EVB. It might help your customers? I've tried it previously, and it helps in some ways when you're matching the files to the schematics. But it is confusing when you want the big picture. On the other hand, this is not going to help with supporting different modules on the same baseboard, as the routing, peripherals and labels likely won't match up. Just my two cents. ChenYu