Received: by 10.223.176.46 with SMTP id f43csp998979wra; Fri, 19 Jan 2018 05:29:10 -0800 (PST) X-Google-Smtp-Source: ACJfBos6/0/KJLaiZtxTCsj9AtlEjt9q58DmtMkV1msqZeVvwJQWrccmrKNO3h0yG0t/F1dDC6Y2 X-Received: by 2002:a17:902:bd47:: with SMTP id b7-v6mr1596265plx.300.1516368550564; Fri, 19 Jan 2018 05:29:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516368550; cv=none; d=google.com; s=arc-20160816; b=xN08ikIkJ6ywvVPJI6QxkqtV4a5UrB2Es1X2thAqTiEQRZXK+XKlg4ApHAthCrS4JT I/9cgw+428NBpTGu9TJO1JvVKYlqvt/WKGLfczCcUflUZoppbYS/CcaLIB1Dm9JKg8nf 0PArawTKXc8YvmOmqRkStvPY5pgDzSLrlUWpjgEYGmsdDrwNRUlitU1QTJte+cHUBT6E gxRbgw1oq0/T7IYFLIs1nki5Cs07e6SjRwbANt5gfY0sjpGxZlzyFsuD+4jPxJAmxmwg 2BP7LAks0UYucY2861WGImiIBqUOVfW/ePZ3jApT/UdLMjw5WKCDy7dmD20PmerdeiO2 kuyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=/EpPSXmO0eOn0P+2oZXFPvO4eMxSYc8pe+xunANtXJ8=; b=ALF0ct1E9ej1YjHAY7+lzZcOIVRNb5/YxnKW7qnZyeFxqNjjUS0PymW+bCX06ik8Hm O8wmdmE0lLKORarHOqhluv8MaiQtKjR94e2SkaC1r1ySwwuJO4hrriO8eX8ta+nOAUig OjfjylgwD9Ajgu8FcXaGrK/T+ct6Wk6nzC9nhR8qGPVu+qiEYtUGVt6bUzptdP+OofRN 7/p5a5QBH5EhHlW0aINQwJSADircDUfonDaF/NeFxJgiBScOxiMYTEev9a7mVnnjKAC1 RhgrWJhQrchlrDd6IO/Ioal/rQk4ofWSLqmVhzWaRitjqspojr8+Ygr+yDYM+MhVXrwV RBFg== 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 k139si3541560pfd.282.2018.01.19.05.28.56; Fri, 19 Jan 2018 05:29:10 -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 S1755360AbeASN1w (ORCPT + 99 others); Fri, 19 Jan 2018 08:27:52 -0500 Received: from olimex.com ([184.105.72.32]:59769 "EHLO olimex.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754771AbeASN1o (ORCPT ); Fri, 19 Jan 2018 08:27:44 -0500 Received: from 195.238.85.143 ([195.238.85.143]) by olimex.com with ESMTPSA (ECDHE-RSA-AES128-GCM-SHA256:TLSv1.2:Kx=ECDH:Au=RSA:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username stefan@olimex.com, mechanism PLAIN) for ; Fri, 19 Jan 2018 05:27:33 -0800 Subject: Re: [PATCH 1/1] ARM: dts: sunxi: Add Olimex A20-SOM204-EVB board To: Chen-Yu Tsai , 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 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: Stefan Mavrodiev Message-ID: <548d57b7-4db1-a9ee-369e-9067f981162d@olimex.com> Date: Fri, 19 Jan 2018 15:27:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/18/2018 04:28 PM, Chen-Yu Tsai wrote: > 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'm not sure this will be good ideal. We will have one EVB with all possible peripheries. On the other hand, we are planning 3-4 different SOM204 modules (A20, A64, RK....). I think this will make the dtsi incompatible. Maybe if there is one dtsi for the base SOM204 module (one for each arch) and multiple dts for boards with additional features. But this will generate 10-20 dts files. I think this will be better handled using overlays in the uboot. About the leds, I'm ok to be named after full board name (a20-som204-evb). > 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 Regards, Stefan Mavrodiev