Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3916247ybl; Mon, 9 Dec 2019 02:16:16 -0800 (PST) X-Google-Smtp-Source: APXvYqwad2ijVv+Sm6Ma3rocaC7fRf9pcl4luIgAVYKseJcqcRYhtm8u/y7iy0F0NPqesgEUM8Hg X-Received: by 2002:a9d:67c1:: with SMTP id c1mr19924466otn.20.1575886576143; Mon, 09 Dec 2019 02:16:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575886576; cv=none; d=google.com; s=arc-20160816; b=zpQtFXqx1r1Ch1hvLpPAZn3BmJeS96E/E0T9qJT7v0ZYdJWGMkF+jRGebz+DublY+K Rt2woJFe5vsZG/Da2YfIB/iYP/tiW5HdhdyIsADJSDxckZO2ZhMbhvBOWXZXbXwMiPMD x764HRdRWOjwj5cqmz15Lr4rYKRrCPFcQTie03eCmv6VclU4V7jX0PuAGIopUSaAgXg/ 7zh+T8H7XoNLfWzX8B+XbJMMoS3gwM1RZAflaNKMB8pW3pGZp5IcY/b8V9PJza/fa/vo v//qcuG0YoRYXFynpBAhmbLVEhy3IrT/xJB8/uik75P3o9YUrXCR1wJ1+Q/WsheXnegh uTmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references:dkim-signature; bh=TcyeAKWxbs45jp/CfRj2pE3INadVkQJZA/zsi4FujnU=; b=veh6US65/pXdosyNaPv9ntNRFtrNjKERFhcdzuwKf8K0kNxPppy5hTSYrsEX1gqyzN BEmrIZTj9kZCbcvf0Qug3oUZK4zAdMi7uoJJZTAZENwcz1dZeN//depRumdT2O4bKWvW gO+R5zgBzPyqs1WzESADyze33v6hQeIp9xcHEPxbli+xx2v1Bky77DrLGjvCqWWbpXlS Hr30ZS9yxsGZm3inNeOiJrHcA+UGPIYZ64cvstc1vxrabpkHuiUVoubVHiAWg2XzGBA4 pvhfE4drNNxAZ6m9Q9NP6DToh2kXsj4z4WZsxrio2m1r7PFQyTySQb6daLA6FwnymLvM SD5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=HwguWYyp; 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 j24si11988401oie.176.2019.12.09.02.16.04; Mon, 09 Dec 2019 02:16:16 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=HwguWYyp; 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 S1727305AbfLIKPb (ORCPT + 99 others); Mon, 9 Dec 2019 05:15:31 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:37951 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726279AbfLIKPa (ORCPT ); Mon, 9 Dec 2019 05:15:30 -0500 Received: by mail-wm1-f65.google.com with SMTP id p17so14263336wmi.3 for ; Mon, 09 Dec 2019 02:15:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=TcyeAKWxbs45jp/CfRj2pE3INadVkQJZA/zsi4FujnU=; b=HwguWYypGOrERHEKBqG6yBbaJtfalNYU6k6DcWv9kigbL85xY7HsZi3xywYDWTsVPp KHf8pD/KhFroU7HAsUnm2fBOM0AvcAvKvhu6/lw/osI1eThQuEYsWRCbc0md14+6/sOq 1joqtMyTmfJuvipkL29zWET0eVNo1c3yy2/3ljQvhH3ASCsNjbQMQSO9Kj6FmKNW/fQX KV+B99rwc7GY2Wwq7u46yCEDyWODY2ilmw8zJgQv6ZerL90rUqepxVETfAvJjbcQDH9r OtCPoqZUH8BufkBmygWVHZ81g70kFqvS/SfVSaOPjTllBJ6BHTE5wU3Iea6lugKB9Fhw xvwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=TcyeAKWxbs45jp/CfRj2pE3INadVkQJZA/zsi4FujnU=; b=U1HexoTyr5W5qHxaiqGMANozSY3Bwvfsr5t4iI7CO2fL0Ewb3s86u817eT1KMpetJu 32butky0tM7MxuPK5XGgYsV6Slcszu2/4FaSAFrn1Yn+Wj2SN9IqjeeK5yGFQ0BdibBe DgeqTpDJYwdtId3R2ZOgAOQTtABk9GQaFXAvlYrJNL2Rgf8CY/V4Iiv0vey2SVh0FSZn x6cImXEtY/M8VAQghuYIaJy+LWVcnsUa9RMBfTPBi5Gc7afor/YM7hvavFb1uoJfnnf9 cTAPDoJORoW0RxI7j3rXQWb6V2jwGlYlXnLkwDkw+jI3VQB6+MYyk3OR9EE2tH8FzodV KOmg== X-Gm-Message-State: APjAAAUhWpSdMVVxdp+kJTxo6q9MQJfCcgWhNg4JsZ66p9tspUv4kA44 gCcpgVC9xjdoIHMKBGevQTLaGw== X-Received: by 2002:a1c:2155:: with SMTP id h82mr24577971wmh.21.1575886527834; Mon, 09 Dec 2019 02:15:27 -0800 (PST) Received: from localhost (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id s82sm13064173wms.28.2019.12.09.02.15.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2019 02:15:27 -0800 (PST) References: <20191206100218.480348-1-jbrunet@baylibre.com> <20191206100218.480348-5-jbrunet@baylibre.com> User-agent: mu4e 1.3.3; emacs 26.2 From: Jerome Brunet To: Martin Blumenstingl Cc: Kevin Hilman , linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/4] arm64: dts: meson: add libretech-pc boards support In-reply-to: Date: Mon, 09 Dec 2019 11:15:26 +0100 Message-ID: <1jmuc1erep.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun 08 Dec 2019 at 19:05, Martin Blumenstingl wrote: > 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? > My bad - The button is labeled with "UPDATE" ... nothing really matches in the KEYs ... so VENDOR it is. I have just copy/pasted the section and forgot to update the rest > [...] >> + 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 The CVBS output could be provided on one the GPIO header. Since it is not really standard, I prefer to keep off and leave to option to easily turn it on if someone wants to use it. I'll had a comment for that. > > [...] >> + 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 > This is at least tied to the related device. I have discussed "hog" vs "pinctrl" matter with Bartosz Golaszewski and we could not find any reason not proceed with pinctrl when possible. > [...] >> +&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? No. It is just making sure the pin is claimed and properly configured. Since our interrupt and gpio controller are completly de-coupled it is not necessarily the case without it (... and yes, the same is true for the other device using gpio 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