Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3225580ybl; Sun, 8 Dec 2019 10:06:18 -0800 (PST) X-Google-Smtp-Source: APXvYqzjz5N6IAWxhnBBSypjtqzbJGDMsbZ5exKeFWsri27fvguyslhUcqA5yadbjy3ZpVOFlwiw X-Received: by 2002:a9d:2f0:: with SMTP id 103mr13963842otl.218.1575828378762; Sun, 08 Dec 2019 10:06:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575828378; cv=none; d=google.com; s=arc-20160816; b=xNGrJWs4yU+K9MDYsqi9FQR6Blf5odnewj5UEPvErP0gtE8VvbdQVyuq913tyZ0Ulf EQk8JVLkVeA5HVpAyruy5l7j/FcrOUGJXW2/5vJD2n7zGc+8zfNoQKDaLQNr0blBVPMK DwBZCbCr6PnMvHDixXwc1ixk/+hiKwaLlJzf1GdMm8Z8+/DaK6TXaI7l3PFIn5kOBxzm Fd02QANch7mdbucZdxP5aR5C68MEFkKKxG6yagAPxiHbBHsWC5zpVcbYGPZiNc//OCoD bKWrohMg1AqP+ZwX4fJcyzla9MHATlrzWfADrUpggBSdO3YJ75YCgkLOjynDfnHT+bi7 B4uw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=mTKk2xaW6izThy3AlF0F8z6eeCX0vy7qq8T/sGHhvO8=; b=O0la1RWFkdGBmQgZH5zRNWxQ/4PjDy7gTYQtsPO/jkgszWLYsxBdwpVVUfN8CZtGdT 2Ken6l4d4FkapHQdbyPJC90H17A6B52DlFyp6AO3n6qAnnVyDdtMt81DvewuzoWQeD5A Tj/TqtjCDQanB1w50TLOgJuDA8NwPUrJXULZWY7Gt/7elvETJIjIqn5KtvnKP3ckNKQQ ws5Yubl5NrLcDFjCMi8mXpGZ9Mo1V8g0uQzPyMlnR5hpzERrrNGg2CtJOn+Qs6rcGHAO YO9OZA7v+FMIlakNtune0QbZAj8eGZPobdRXp+6wwjSs2Npb95sh0V+QwcGRHemMgqMu hLTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=K319RU8L; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y198si11163965oia.163.2019.12.08.10.06.07; Sun, 08 Dec 2019 10:06:18 -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; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=K319RU8L; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726589AbfLHSF3 (ORCPT + 99 others); Sun, 8 Dec 2019 13:05:29 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:38854 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726220AbfLHSF3 (ORCPT ); Sun, 8 Dec 2019 13:05:29 -0500 Received: by mail-oi1-f194.google.com with SMTP id b8so4365669oiy.5; Sun, 08 Dec 2019 10:05:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mTKk2xaW6izThy3AlF0F8z6eeCX0vy7qq8T/sGHhvO8=; b=K319RU8L98AdTYk+TFFH07liuRfMqrUGSHeB1yVizEaZI6tXBYIJ9U1sVAHlpPqkeV 8tT9kA6NvUJ6/a38fuTRpRIzIrjkaJosKJZy9PLidQKCmNHsJCabru0flsca74oTBtSs IdKJzEC3hiUvqROeWgwGkV7LfATiSnJNBePgk8ilsolml224mUrQI9KxGk0LZjn+LhSs nQl2G+dPsJAnsQj4j67dwKHH+6DyM17L2T76Gf9zhNekSINUnp0fNEZAwe4r4PtxmZGC /CP1KywXsi2+YdqjsISyMOiL3rx8neF68UBtXhPwFwdg2qVq9WgHkxHgr8jmC26B4+4S 3CRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mTKk2xaW6izThy3AlF0F8z6eeCX0vy7qq8T/sGHhvO8=; b=XEMwn+6chDA7Ui2F68+if5B07OrMQsExONFOcuE1j1MLutDfjv+iQakpWK6v3wZBMt cwaqcZobWehTvDdgrONXntpd6Mpqfran3c2JZ74+TRT4V5zkh9I0LbfuPzU0Mf5q1HUs dgXQ5B8GmdvZG8b9vwhcdLX6J6jwqvRwm6DIcSkuDwDR55tEc2yr3gGIlXgJCYANoZ0q rCxq2aonE5O33KBiKkPTFyoH+9W4J80I08WzsWhXjRJF56Oes7KKI9WPoPwdojzaqVPE cpVjLrsFYPkbc8SdvlVU7lRK2bsrztkB6g02kNNbmAgMIJKkkzOb/GW8h6Ge5flSG5BN 53mg== X-Gm-Message-State: APjAAAWtxbTkR685KXHE0m6BPWz0f3dkndb9SbqFc4YbU8S7kCtPDJOo Bw0o+oIvGpmhzRb86auR0OsR0ceeQey02mB8xXQ9pmS9 X-Received: by 2002:aca:dc45:: with SMTP id t66mr15872202oig.39.1575828327856; Sun, 08 Dec 2019 10:05:27 -0800 (PST) MIME-Version: 1.0 References: <20191206100218.480348-1-jbrunet@baylibre.com> <20191206100218.480348-5-jbrunet@baylibre.com> In-Reply-To: <20191206100218.480348-5-jbrunet@baylibre.com> From: Martin Blumenstingl Date: Sun, 8 Dec 2019 19:05:16 +0100 Message-ID: Subject: Re: [PATCH 4/4] arm64: dts: meson: add libretech-pc boards support To: Jerome Brunet Cc: Kevin Hilman , linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org 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 Hi Jerome, this is looking good overall - I have some questions / nit-picks below On Fri, Dec 6, 2019 at 11:02 AM Jerome Brunet wrote: [...] > + adc_keys { on most boards we use "adc-keys" instead of "adc_keys" [...] > + button-onoff { > + label = "On/Off"; > + linux,code = ; based on the label I assumed that the code is KEY_POWER why is KEY_VENDOR the better choice here? [...] > + cvbs-connector { > + compatible = "composite-video-connector"; > + status = "disabled"; is there CVBS on the board? if I remember correctly the VPU driver works fine when omitting the CVBS connector so if the board doesn't have it you may drop the whole node instead of keeping it disabled [...] > + leds { > + compatible = "gpio-leds"; > + > + green { > + label = "librecomputer:green:disk"; you can use the "function" and "color" properties instead of the (now deprecated) "label" [...] > +&external_mdio { > + external_phy: ethernet-phy@0 { > + reg = <0>; it would be great to have a comment above which PHY is used on this board > + max-speed = <1000>; > + reset-assert-us = <10000>; > + reset-deassert-us = <30000>; > + reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>; > + interrupt-parent = <&gpio_intc>; a comment like /* MAC_INTR on GPIOZ_15 */ would be great here > + interrupts = <25 IRQ_TYPE_LEVEL_LOW>; [...] > +&pinctrl_periphs { > + /* > + * Make sure the reset pin of the usb HUB is driven high to take > + * it out of reset. > + */ > + usb1_rst_pins: usb1_rst_irq { > + mux { > + groups = "GPIODV_3"; > + function = "gpio_periphs"; > + bias-disable; > + output-high; > + }; > + }; on other boards (like Odroid-C2) we use a GPIO hog for this. I'm not sure which one is better [...] > +&pinctrl_periphs { > + /* > + * Make sure the irq pin of the TYPE C controller is not driven > + * by the SoC. is this because the SoC default configuration pulls the IRQ line LOW, which then generates "phantom" IRQs? [...] > + fusb302@22 { typec-portc@22 [...] > + interrupt-parent = <&gpio_intc>; > + interrupts = <59 IRQ_TYPE_LEVEL_LOW>; a comment above with the GPIO number would be great Martin