Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5243489pxu; Wed, 21 Oct 2020 18:29:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRnkbiiUsWpA+l2+hjPJHrEaKaD+LVL+SeEOQInWMioYyK3tSGSTEcbYDQKR6svvvnNXOb X-Received: by 2002:a17:906:dc9:: with SMTP id p9mr119220eji.403.1603330199687; Wed, 21 Oct 2020 18:29:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603330199; cv=none; d=google.com; s=arc-20160816; b=X7ayDuX2JgC2u3EC0dMSQjCO/Z4CbIQsfo2Ig5cjXGr/UtTSLHSOow5vMx49bQjX/o 8Yoa/rgL6iiWhlIR2+E9JbtKMEw2v43E1tpWF+UEQ93xS7NexNMsxoZyMixFEWITcTXn Z3ouikjbCOwxZ/opAck5uMdrD0gy1uQKBKRwEJPBOOMotAIBw6Yei64XqA87CuT5+A5H 5fqjAp4x6TT9NuGUGD6QSMzrsUpqJYguLbb4NUJU8nXLVATVdbeztlJ4ZQuNEV+/Bs6b soapk89k7WSnc/OTsuiKnxni+xvnSrLymCjHZyFHqsxZW36DVlipwixZJaMQCPdAF9b2 o6Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=sgvb0QermxEsfEaijdapUaWIAXlaPvAunzMG259XAK4=; b=CSANaXzTygt+Yo6N+z3Tl4db9Q90Wal+11QQcs2p6yEUxqRadBfldyKChYInGQ+kYr YTMH6XElu2kRKuqyHnySnF3Kyirq4hVBnZKCxhWRxjqhU4cqJIG2AuMUYeba2/heEebe 1h4vgB+jUkHkYDraKaYGpS9cjRSSntzDkp0PPTl4GrO/jnkZDT8tvWksBOESSruwrkN8 RXzhM40ymBctmi9Ifqxwb0zTLv1PgpSS8bfgGql4+G/w7LxbVOtEmIaQNjxiliPNxHkG oQ12vnTrfjQDRui4b7OjK0VRLeEix/PyD7PAmbWxLFXHI2ICwLO12XpAa5DVP8VeLT1o fyYg== ARC-Authentication-Results: i=1; mx.google.com; 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 qn8si2695684ejb.74.2020.10.21.18.29.37; Wed, 21 Oct 2020 18:29:59 -0700 (PDT) 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; 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 S2441505AbgJUNYr (ORCPT + 99 others); Wed, 21 Oct 2020 09:24:47 -0400 Received: from mail-ej1-f67.google.com ([209.85.218.67]:46580 "EHLO mail-ej1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440861AbgJUNYp (ORCPT ); Wed, 21 Oct 2020 09:24:45 -0400 Received: by mail-ej1-f67.google.com with SMTP id t25so3164012ejd.13; Wed, 21 Oct 2020 06:24:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=sgvb0QermxEsfEaijdapUaWIAXlaPvAunzMG259XAK4=; b=kA6kFu4fNmWjJnuOUHFjfiYTiEtZNmakJaki0zssGeXvfCPN7zhmO5wWuYsOd0DbH9 ScpJhcdHsmVO76wc4mdjVelOOfPciSQq/ZajYoBfkcti/+fFBKTQd//gCaschRlrXije jDm1PCJj88k3cPS/4Da0l4a7bhIpGSxcNeh/+ZD1uvUHoC2r79BkmrRbyZNqiDDGrkG7 U5CX0wbLz9v/CcRLMGsym+hADAflaCON20zt6S3HXCTgKSSR4Ep6axi/0R6Vu1MyWp5e dR921cXk0b13NFQqglyp5r1NgWVCjEoWCHUNYWtno3IzrQu+WTzjANJXZJ+NUSPzkqOy VkQA== X-Gm-Message-State: AOAM5330es1JTVJKBEza1O4J7ivxgtQrhzlUsfsMHv54n8i4R8KrBAXN /oJtKDqGe9jedq5s8KIEJFc= X-Received: by 2002:a17:906:360b:: with SMTP id q11mr3635507ejb.259.1603286681576; Wed, 21 Oct 2020 06:24:41 -0700 (PDT) Received: from kozik-lap ([194.230.155.171]) by smtp.googlemail.com with ESMTPSA id y32sm2044311edy.4.2020.10.21.06.24.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2020 06:24:40 -0700 (PDT) Date: Wed, 21 Oct 2020 15:24:31 +0200 From: Krzysztof Kozlowski To: Oleksij Rempel Cc: Mark Rutland , Rob Herring , Sascha Hauer , Shawn Guo , Robin van der Gracht , devicetree@vger.kernel.org, Fabio Estevam , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, NXP Linux Team , Pengutronix Kernel Team , David Jander Subject: Re: [PATCH v2 3/3] ARM: dts: add Van der Laan LANMCU board Message-ID: <20201021132431.GA31878@kozik-lap> References: <20201015090924.6185-1-o.rempel@pengutronix.de> <20201015090924.6185-4-o.rempel@pengutronix.de> <20201020102355.GB118941@kozik-lap> <20201021124825.yjbcdyy7dyuhvexl@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201021124825.yjbcdyy7dyuhvexl@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 21, 2020 at 02:48:25PM +0200, Oleksij Rempel wrote: > Hello Krzysztof, > > On Tue, Oct 20, 2020 at 12:23:55PM +0200, Krzysztof Kozlowski wrote: > > On Thu, Oct 15, 2020 at 11:09:24AM +0200, Oleksij Rempel wrote: > > > Van der Laan LANMCU is a module for the food storage rooms to control > > > proper gas composition. > > > > > > Co-Developed-by: Robin van der Gracht > > > Signed-off-by: Robin van der Gracht > > > Signed-off-by: Oleksij Rempel > > > --- > > > arch/arm/boot/dts/Makefile | 1 + > > > arch/arm/boot/dts/imx6dl-lanmcu.dts | 469 ++++++++++++++++++++++++++++ > > > 2 files changed, 470 insertions(+) > > > create mode 100644 arch/arm/boot/dts/imx6dl-lanmcu.dts > > > > > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > > > index 2289a28c0ff6..dc2543a7b7e9 100644 > > > --- a/arch/arm/boot/dts/Makefile > > > +++ b/arch/arm/boot/dts/Makefile > > > @@ -447,6 +447,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \ > > > imx6dl-icore.dtb \ > > > imx6dl-icore-mipi.dtb \ > > > imx6dl-icore-rqs.dtb \ > > > + imx6dl-lanmcu.dtb \ > > > imx6dl-mamoj.dtb \ > > > imx6dl-nit6xlite.dtb \ > > > imx6dl-nitrogen6x.dtb \ > > > diff --git a/arch/arm/boot/dts/imx6dl-lanmcu.dts b/arch/arm/boot/dts/imx6dl-lanmcu.dts > > > new file mode 100644 > > > index 000000000000..36c029dcc832 > > > --- /dev/null > > > +++ b/arch/arm/boot/dts/imx6dl-lanmcu.dts > > > @@ -0,0 +1,469 @@ > > > +// SPDX-License-Identifier: GPL-2.0-or-later > > > +/* > > > + * Copyright (c) 2019 Protonic Holland > > > + * Copyright (c) 2020 Oleksij Rempel , Pengutronix > > > + */ > > > + > > > +/dts-v1/; > > > +#include > > > +#include > > > +#include "imx6dl.dtsi" > > > + > > > +/ { > > > + model = "Van der Laan LANMCU"; > > > + compatible = "vdl,lanmcu", "fsl,imx6dl"; > > > + > > > + chosen { > > > + stdout-path = &uart4; > > > + }; > > > + > > > + clock_ksz8081: clock-ksz8081 { > > > + compatible = "fixed-clock"; > > > + #clock-cells = <0>; > > > + clock-frequency = <50000000>; > > > + }; > > > + > > > + backlight: backlight { > > > + compatible = "pwm-backlight"; > > > + pwms = <&pwm1 0 5000000 0>; > > > + brightness-levels = <0 1000>; > > > + num-interpolated-steps = <20>; > > > + default-brightness-level = <19>; > > > + }; > > > + > > > + display { > > > + compatible = "fsl,imx-parallel-display"; > > > + pinctrl-0 = <&pinctrl_ipu1_disp>; > > > + pinctrl-names = "default"; > > > + #address-cells = <1>; > > > + #size-cells = <0>; > > > + > > > + port@0 { > > > + reg = <0>; > > > + > > > + display_in: endpoint { > > > + remote-endpoint = <&ipu1_di0_disp0>; > > > + }; > > > + }; > > > + > > > + port@1 { > > > + reg = <1>; > > > + > > > + display_out: endpoint { > > > + remote-endpoint = <&panel_in>; > > > + }; > > > + }; > > > + }; > > > + > > > + leds { > > > + compatible = "gpio-leds"; > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_leds>; > > > + > > > + led-debug { > > > > led-0 (dt spec naming requirement, upcomming dtschema as well) and add a > > label if you want it to be nicely labeled for user-space. > > ok, done > > > > + function = LED_FUNCTION_STATUS; > > > + gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; > > > + linux,default-trigger = "heartbeat"; > > > + }; > > > + }; > > > + > > > + panel { > > > + compatible = "edt,etm0700g0bdh6"; > > > + backlight = <&backlight>; > > > + > > > + port { > > > + panel_in: endpoint { > > > + remote-endpoint = <&display_out>; > > > + }; > > > + }; > > > + }; > > > + > > > + reg_otg_vbus: regulator-otg-vbus { > > > + compatible = "regulator-fixed"; > > > + regulator-name = "otg-vbus"; > > > + regulator-min-microvolt = <5000000>; > > > + regulator-max-microvolt = <5000000>; > > > + gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>; > > > + enable-active-high; > > > + }; > > > + > > > + usdhc2_wifi_pwrseq: usdhc2-wifi-pwrseq { > > > + compatible = "mmc-pwrseq-simple"; > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_wifi_npd>; > > > + reset-gpios = <&gpio6 10 GPIO_ACTIVE_LOW>; > > > + }; > > > + > > > +}; > > > + > > > +&can1 { > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_can1>; > > > + status = "okay"; > > > +}; > > > + > > > +&can2 { > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_can2>; > > > + status = "okay"; > > > +}; > > > + > > > +&fec { > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_enet>; > > > + phy-mode = "rmii"; > > > + clocks = <&clks IMX6QDL_CLK_ENET>, > > > + <&clks IMX6QDL_CLK_ENET>, > > > + <&clock_ksz8081>; > > > + clock-names = "ipg", "ahb", "ptp"; > > > + phy-handle = <&rgmii_phy>; > > > + status = "okay"; > > > + > > > + mdio { > > > + #address-cells = <1>; > > > + #size-cells = <0>; > > > + > > > + /* Microchip KSZ8081RNA PHY */ > > > + rgmii_phy: ethernet-phy@0 { > > > + reg = <0>; > > > + interrupts-extended = <&gpio5 23 IRQ_TYPE_LEVEL_LOW>; > > > + reset-gpios = <&gpio5 22 GPIO_ACTIVE_LOW>; > > > + reset-assert-us = <10000>; > > > + reset-deassert-us = <300>; > > > + }; > > > + }; > > > +}; > > > + > > > +&gpio1 { > > > + gpio-line-names = > > > + "", "SD1_CD", "", "", "", "", "", "", > > > + "DEBUG_0", "BL_PWM", "", "", "", "", "", "", > > > + "", "", "", "", "", "", "", "ENET_LED_GREEN", > > > + "", "", "", "", "", "", "", ""; > > > +}; > > > + > > > +&gpio3 { > > > + gpio-line-names = > > > + "", "", "", "", "", "", "", "", > > > + "", "", "", "", "", "", "", "", > > > + "", "", "", "", "TS_INT", "USB_OTG1_OC", "USB_OTG1_PWR", "", > > > + "", "", "", "", "UART2_CTS", "", "UART3_CTS", ""; > > > +}; > > > + > > > +&gpio5 { > > > + gpio-line-names = > > > + "", "", "", "", "", "", "", "", > > > + "", "", "", "", "", "", "", "", > > > + "", "", "", "", "", "", "ENET_RST", "ENET_INT", > > > + "", "", "I2C1_SDA", "I2C1_SCL", "", "", "", ""; > > > +}; > > > + > > > +&gpio6 { > > > + gpio-line-names = > > > + "", "", "", "", "", "", "", "", > > > + "", "", "WLAN_REG_ON", "", "", "", "", "", > > > + "", "", "", "", "", "", "", "", > > > + "", "", "", "", "", "", "", ""; > > > +}; > > > + > > > +&gpio7 { > > > + gpio-line-names = > > > + "", "", "", "", "", "", "", "", > > > + "EMMC_RST", "", "", "", "", "", "", "", > > > + "", "", "", "", "", "", "", "", > > > + "", "", "", "", "", "", "", ""; > > > +}; > > > + > > > +&i2c1 { > > > + clock-frequency = <100000>; > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_i2c1>; > > > + status = "okay"; > > > + > > > + /* additional i2c devices are added automatically by the boot loader */ > > > +}; > > > + > > > +&i2c3 { > > > + clock-frequency = <100000>; > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_i2c3>; > > > + status = "okay"; > > > + > > > + touchscreen@38 { > > > + compatible = "edt,edt-ft5406"; > > > + reg = <0x38>; > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_ts_edt>; > > > + interrupts-extended = <&gpio3 20 IRQ_TYPE_EDGE_FALLING>; > > > + > > > + touchscreen-size-x = <1792>; > > > + touchscreen-size-y = <1024>; > > > + > > > + touchscreen-fuzz-x = <0>; > > > + touchscreen-fuzz-y = <0>; > > > + > > > + /* Touch screen calibration */ > > > + threshold = <50>; > > > + gain = <5>; > > > + offset = <10>; > > > + }; > > > + > > > + rtc@51 { > > > + compatible = "nxp,pcf8563"; > > > + reg = <0x51>; > > > + }; > > > +}; > > > + > > > +&ipu1_di0_disp0 { > > > + remote-endpoint = <&display_in>; > > > +}; > > > + > > > +&pwm1 { > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_pwm1>; > > > + status = "okay"; > > > +}; > > > + > > > +&uart2 { > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_uart2>; > > > + linux,rs485-enabled-at-boot-time; > > > + uart-has-rtscts; > > > + status = "okay"; > > > +}; > > > + > > > +&uart3 { > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_uart3>; > > > + linux,rs485-enabled-at-boot-time; > > > + uart-has-rtscts; > > > + status = "okay"; > > > +}; > > > + > > > +&uart4 { > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_uart4>; > > > + status = "okay"; > > > +}; > > > + > > > +&usbotg { > > > + vbus-supply = <®_otg_vbus>; > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_usbotg>; > > > + phy_type = "utmi"; > > > + dr_mode = "host"; > > > + status = "okay"; > > > +}; > > > + > > > +&usdhc1 { > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_usdhc1>; > > > + cd-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; > > > + no-1-8-v; > > > + disable-wp; > > > + cap-sd-highspeed; > > > + no-mmc; > > > + no-sdio; > > > + status = "okay"; > > > +}; > > > + > > > +&usdhc2 { > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_usdhc2>; > > > + no-1-8-v; > > > + non-removable; > > > + mmc-pwrseq = <&usdhc2_wifi_pwrseq>; > > > + #address-cells = <1>; > > > + #size-cells = <0>; > > > + status = "okay"; > > > + > > > + brcmf: bcrmf@1 { > > > > node name "wifi"? Or "wifi-bt"? DT spec requires nodes to have more or > > less generic names. > > I'll take wifi@ it is mostly used pattern. > > > Best regards, > > Krzysztof > > Thx for review, > > should I add your Reviewed-by? With the changes, can be: Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof