Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1549463ybt; Thu, 18 Jun 2020 11:15:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNfg15M2wqx/gkI9F9IGlb4nk4N1R1Es/cM+3xhPqtf2dNpf7QjgXUtki0OkvIYo2U7cL2 X-Received: by 2002:a05:6402:206e:: with SMTP id bd14mr5385999edb.105.1592504109605; Thu, 18 Jun 2020 11:15:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592504109; cv=none; d=google.com; s=arc-20160816; b=qDyM0Yue6ouzHJt2W0NQotpu5r939UpGU7d+hSydTI8VNQT+ntNlkO7ygVR0vvvlzU r5VCqvIuRbfXYYGVoWp5zBCqQmLdlNLnLPyOcazcu8VcCD3e5WRGD7/KgnbuDvBn6ys8 Ri7tC3VO4X7IESpXvBm0tH28GgCvrfJL5oQ6MYhOrLV5OqE7p04hGTZJuhnYIiQUrHme 8oenv6y0BUBDIFDz1eTC39dRLJ2bWpsSwXYBtv7+RAwo083dmNhZchUYoccXw68KvOnc CvNBZNLzDW4cOuyjchlNqnyuPU2s80WH3iAnMQVqmIe4adxOQPgZzOxpumx2aQZ7GQp+ vB4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=IQVy3JZJvCFDNY3y9O6QUb5PL4FPIIs0sm1Ma7z4EeU=; b=L7SfMHA61voz+orbcrcFMUG/KoR619JdXxPTG04VhNVKovxIhFP+fH+bo/mPqubTYD iro/oBxo08mpyJdchmcO99ImhtmnTiuzfE2F4HrbWe+dEHjZAU8Ryl3LyJdhIx+k1LmI kNkGKEsygugQBhVscaycAK/Qs8U98IJ7sjw9Ot4ILlbjX2vkFTGVqTNJqZBUF6Naj13m 07AiQBPuQEWKki/mqM5mFPAGerBAhFd0c1fVWZ0jlAyzUZvNNqV7rIyJ8sWagGjXNvEw upy8ee3cDkZ6BMCSaBloGPZLgj0Xl6UgidZMO5A3byMqdKmA+P2nwSTDtorhu0TXqlzI R/Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HehRiI53; 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 r25si2548195edi.172.2020.06.18.11.14.47; Thu, 18 Jun 2020 11:15:09 -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; dkim=pass header.i=@kernel.org header.s=default header.b=HehRiI53; 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 S1730747AbgFROa7 (ORCPT + 99 others); Thu, 18 Jun 2020 10:30:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:53840 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730675AbgFROa6 (ORCPT ); Thu, 18 Jun 2020 10:30:58 -0400 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2E017207E8; Thu, 18 Jun 2020 14:30:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592490657; bh=brw71XX4d+JNpP8PyluoqT7z2wKSTWbK+Owz8yHdP2U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HehRiI53p8iqMztOESCidHAdiTm6X2Rhs6+p+L48epllysX45B3LS94TM5WQjIk/B iYw5XEuCx+sFPzFWxucuxaukk8WgaP8ohizjBZncCQeVGmnsnExaG1dLiZaLCqQtoE CNi824DNhskcSzFTlzfutZBkfKky5nHVkcOdnLL8= Date: Thu, 18 Jun 2020 22:30:50 +0800 From: Shawn Guo To: Oleksij Rempel Cc: Mark Rutland , Rob Herring , Sascha Hauer , Rob Herring , Robin van der Gracht , David Jander , devicetree@vger.kernel.org, Fabio Estevam , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, NXP Linux Team , Pengutronix Kernel Team Subject: Re: [PATCH v8 3/5] ARM: dts: add Protonic VT7 board Message-ID: <20200618143045.GC464@dragon> References: <20200520154116.12909-1-o.rempel@pengutronix.de> <20200520154116.12909-4-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200520154116.12909-4-o.rempel@pengutronix.de> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 20, 2020 at 05:41:14PM +0200, Oleksij Rempel wrote: > The Protonic VT7 is a mid-class ISObus Virtual Terminal with a 7 inch > touchscreen display. > > Reviewed-by: Rob Herring > Signed-off-by: Robin van der Gracht > Signed-off-by: David Jander > Signed-off-by: Oleksij Rempel > --- > arch/arm/boot/dts/Makefile | 1 + > arch/arm/boot/dts/imx6dl-prtvt7.dts | 411 ++++++++++++++++++++++++++++ > 2 files changed, 412 insertions(+) > create mode 100644 arch/arm/boot/dts/imx6dl-prtvt7.dts > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index 8ce744f1cbfc9..66ee89e7929f9 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -450,6 +450,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \ > imx6dl-pico-hobbit.dtb \ > imx6dl-pico-nymph.dtb \ > imx6dl-pico-pi.dtb \ > + imx6dl-prtvt7.dtb \ > imx6dl-rex-basic.dtb \ > imx6dl-riotboard.dtb \ > imx6dl-sabreauto.dtb \ > diff --git a/arch/arm/boot/dts/imx6dl-prtvt7.dts b/arch/arm/boot/dts/imx6dl-prtvt7.dts > new file mode 100644 > index 0000000000000..083eb72f5fc3d > --- /dev/null > +++ b/arch/arm/boot/dts/imx6dl-prtvt7.dts > @@ -0,0 +1,411 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT > +/* > + * Copyright (c) 2016 Protonic Holland > + */ > + > +/dts-v1/; > +#include "imx6dl.dtsi" > +#include "imx6qdl-prti6q.dtsi" > +#include > +#include > +#include > + > +/ { > + model = "Protonic VT7"; > + compatible = "prt,prtvt7", "fsl,imx6dl"; > + > + memory@10000000 { > + device_type = "memory"; > + reg = <0x10000000 0x20000000>; > + }; > + > + backlight_lcd: backlight-lcd { > + compatible = "pwm-backlight"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_backlight>; > + pwms = <&pwm1 0 500000>; > + brightness-levels = <0 20 81 248 1000>; > + default-brightness-level = <20>; > + num-interpolated-steps = <21>; > + power-supply = <®_bl_12v0>; > + enable-gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>; > + }; > + > + keys { > + compatible = "gpio-keys"; > + autorepeat; > + > + esc { > + label = "GPIO Key ESC"; > + linux,code = ; > + gpios = <&gpio_pca 0 GPIO_ACTIVE_LOW>; > + }; > + > + up { > + label = "GPIO Key UP"; > + linux,code = ; > + gpios = <&gpio_pca 1 GPIO_ACTIVE_LOW>; > + }; > + > + down { > + label = "GPIO Key DOWN"; > + linux,code = ; > + gpios = <&gpio_pca 4 GPIO_ACTIVE_LOW>; > + }; > + > + enter { > + label = "GPIO Key Enter"; > + linux,code = ; > + gpios = <&gpio_pca 3 GPIO_ACTIVE_LOW>; > + }; > + > + cycle { > + label = "GPIO Key CYCLE"; > + linux,code = ; > + gpios = <&gpio_pca 2 GPIO_ACTIVE_LOW>; > + }; > + > + f1 { > + label = "GPIO Key F1"; > + linux,code = ; > + gpios = <&gpio_pca 14 GPIO_ACTIVE_LOW>; > + }; > + > + f2 { > + label = "GPIO Key F2"; > + linux,code = ; > + gpios = <&gpio_pca 13 GPIO_ACTIVE_LOW>; > + }; > + > + f3 { > + label = "GPIO Key F3"; > + linux,code = ; > + gpios = <&gpio_pca 12 GPIO_ACTIVE_LOW>; > + }; > + > + f4 { > + label = "GPIO Key F4"; > + linux,code = ; > + gpios = <&gpio_pca 11 GPIO_ACTIVE_LOW>; > + }; > + > + f5 { > + label = "GPIO Key F5"; > + linux,code = ; > + gpios = <&gpio_pca 10 GPIO_ACTIVE_LOW>; > + }; > + > + f6 { > + label = "GPIO Key F6"; > + linux,code = ; > + gpios = <&gpio_pca 5 GPIO_ACTIVE_LOW>; > + }; > + > + f7 { > + label = "GPIO Key F7"; > + linux,code = ; > + gpios = <&gpio_pca 6 GPIO_ACTIVE_LOW>; > + }; > + > + f8 { > + label = "GPIO Key F8"; > + linux,code = ; > + gpios = <&gpio_pca 7 GPIO_ACTIVE_LOW>; > + }; > + > + f9 { > + label = "GPIO Key F9"; > + linux,code = ; > + gpios = <&gpio_pca 8 GPIO_ACTIVE_LOW>; > + }; > + > + f10 { > + label = "GPIO Key F10"; > + linux,code = ; > + gpios = <&gpio_pca 9 GPIO_ACTIVE_LOW>; > + }; > + }; > + > + leds { > + compatible = "gpio-leds"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_leds>; > + > + led-debug0 { > + function = LED_FUNCTION_STATUS; > + gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; > + linux,default-trigger = "heartbeat"; > + }; > + }; > + > + reg_bl_12v0: regulator-bl-12v0 { > + compatible = "regulator-fixed"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_reg_bl_12v0>; > + regulator-name = "bl-12v0"; > + regulator-min-microvolt = <12000000>; > + regulator-max-microvolt = <12000000>; > + gpio = <&gpio1 7 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + }; > + > + reg_1v8: regulator-1v8 { > + compatible = "regulator-fixed"; > + regulator-name = "1v8"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-always-on; > + }; > + > + sound { > + compatible = "simple-audio-card"; > + simple-audio-card,name = "prti6q-sgtl5000"; > + simple-audio-card,format = "i2s"; > + simple-audio-card,widgets = > + "Microphone", "Microphone Jack", > + "Line", "Line In Jack", > + "Headphone", "Headphone Jack", > + "Speaker", "External Speaker"; > + simple-audio-card,routing = > + "MIC_IN", "Microphone Jack", > + "LINE_IN", "Line In Jack", > + "Headphone Jack", "HP_OUT", > + "External Speaker", "LINE_OUT"; > + > + simple-audio-card,cpu { > + sound-dai = <&ssi1>; > + system-clock-frequency = <0>; > + }; > + > + simple-audio-card,codec { > + sound-dai = <&sgtl5000>; > + bitclock-master; > + frame-master; > + }; > + }; > +}; > + > +&audmux { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_audmux>; > + status = "okay"; > + > + mux_ssi1 { > + fsl,audmux-port = <0>; > + fsl,port-config = < > + IMX_AUDMUX_V2_PTCR_SYN 0 > + IMX_AUDMUX_V2_PTCR_TFSEL(2) 0 > + IMX_AUDMUX_V2_PTCR_TCSEL(2) 0 > + IMX_AUDMUX_V2_PTCR_TFSDIR 0 > + IMX_AUDMUX_V2_PTCR_TCLKDIR IMX_AUDMUX_V2_PDCR_RXDSEL(2) > + >; > + }; > + > + mux_pins3 { > + fsl,audmux-port = <2>; > + fsl,port-config = < > + IMX_AUDMUX_V2_PTCR_SYN IMX_AUDMUX_V2_PDCR_RXDSEL(0) > + 0 IMX_AUDMUX_V2_PDCR_TXRXEN > + >; > + }; > +}; > + > +&can1 { > + pinctrl-0 = <&pinctrl_can1 &pinctrl_can1phy>; > +}; > + > +&clks { > + assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>; > + assigned-clock-parents = <&clks IMX6QDL_CLK_PLL5_VIDEO_DIV>; > +}; > + > +&ecspi2 { > + cs-gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_ecspi2>; > + status = "okay"; > +}; > + > +&i2c1 { > + sgtl5000: codec@a { audio-codec > + compatible = "fsl,sgtl5000"; > + reg = <0xa>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_codec>; > + #sound-dai-cells = <0>; > + clocks = <&clks 201>; > + VDDA-supply = <®_3v3>; > + VDDIO-supply = <®_3v3>; > + VDDD-supply = <®_1v8>; > + }; > +}; > + > +&i2c3 { > + rtc@51 { > + compatible = "nxp,pcf8563"; > + reg = <0x51>; > + }; > + > + gpio_pca: gpio@74 { > + compatible = "nxp,pca9539"; > + reg = <0x74>; > + interrupts-extended = <&gpio4 5 IRQ_TYPE_LEVEL_LOW>; > + #gpio-cells = <2>; > + gpio-controller; > + }; > +}; > + > +&ipu1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_ipu1_csi0>; > + status = "okay"; > +}; > + > +&pwm1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_pwm1>; > + status = "okay"; > +}; > + > +&snvs_poweroff { > + status = "okay"; > +}; > + > +&snvs_pwrkey { > + status = "okay"; > +}; > + > +&ssi1 { > + #sound-dai-cells = <0>; > + fsl,mode = "i2s-slave"; Check bindings doc please. Shawn > + status = "okay"; > +}; > + > +&usbh1 { > + status = "disabled"; > +}; > + > +&vpu { > + status = "disabled"; > +}; > + > +&iomuxc { > + pinctrl_audmux: audmuxgrp { > + fsl,pins = < > + MX6QDL_PAD_CSI0_MCLK__CCM_CLKO1 0x030b0 > + MX6QDL_PAD_CSI0_DAT7__AUD3_RXD 0x130b0 > + MX6QDL_PAD_CSI0_DAT4__AUD3_TXC 0x130b0 > + MX6QDL_PAD_CSI0_DAT5__AUD3_TXD 0x110b0 > + MX6QDL_PAD_CSI0_DAT6__AUD3_TXFS 0x130b0 > + >; > + }; > + > + pinctrl_backlight: backlightgrp { > + fsl,pins = < > + MX6QDL_PAD_DISP0_DAT7__GPIO4_IO28 0x1b0b0 > + >; > + }; > + > + pinctrl_can1phy: can1phy { > + fsl,pins = < > + /* CAN1_SR */ > + MX6QDL_PAD_KEY_COL3__GPIO4_IO12 0x13070 > + /* CAN1_TERM */ > + MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x1b0b0 > + >; > + }; > + > + pinctrl_codec: codecgrp { > + fsl,pins = < > + /* AUDIO_nRESET */ > + MX6QDL_PAD_CSI0_VSYNC__GPIO5_IO21 0x1f0b0 > + >; > + }; > + > + pinctrl_ecspi2: ecspi2grp { > + fsl,pins = < > + MX6QDL_PAD_EIM_OE__ECSPI2_MISO 0x100b1 > + MX6QDL_PAD_EIM_CS0__ECSPI2_SCLK 0x100b1 > + MX6QDL_PAD_EIM_CS1__ECSPI2_MOSI 0x100b1 > + MX6QDL_PAD_EIM_RW__GPIO2_IO26 0x000b1 > + >; > + }; > + > + pinctrl_ipu1_csi0: ipu1csi0grp { > + fsl,pins = < > + MX6QDL_PAD_CSI0_DAT12__IPU1_CSI0_DATA12 0x1b0b0 > + MX6QDL_PAD_CSI0_DAT13__IPU1_CSI0_DATA13 0x1b0b0 > + MX6QDL_PAD_CSI0_DAT14__IPU1_CSI0_DATA14 0x1b0b0 > + MX6QDL_PAD_CSI0_DAT15__IPU1_CSI0_DATA15 0x1b0b0 > + MX6QDL_PAD_CSI0_DAT16__IPU1_CSI0_DATA16 0x1b0b0 > + MX6QDL_PAD_CSI0_DAT17__IPU1_CSI0_DATA17 0x1b0b0 > + MX6QDL_PAD_CSI0_DAT18__IPU1_CSI0_DATA18 0x1b0b0 > + MX6QDL_PAD_CSI0_DAT19__IPU1_CSI0_DATA19 0x1b0b0 > + MX6QDL_PAD_CSI0_PIXCLK__IPU1_CSI0_PIXCLK 0x1b0b0 > + /* ITU656_nRESET */ > + MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x1b0b0 > + /* ITU656_nPDN */ > + MX6QDL_PAD_CSI0_DATA_EN__GPIO5_IO20 0x1b0b0 > + >; > + }; > + > + pinctrl_ipu1_disp: ipudisp1grp { > + fsl,pins = < > + MX6QDL_PAD_DI0_DISP_CLK__IPU1_DI0_DISP_CLK 0xb0 > + MX6QDL_PAD_DI0_PIN15__IPU1_DI0_PIN15 0xb0 > + > + MX6QDL_PAD_DISP0_DAT0__IPU1_DISP0_DATA00 0xb0 > + MX6QDL_PAD_DISP0_DAT1__IPU1_DISP0_DATA01 0xb0 > + MX6QDL_PAD_DISP0_DAT2__IPU1_DISP0_DATA02 0xb0 > + MX6QDL_PAD_DISP0_DAT3__IPU1_DISP0_DATA03 0xb0 > + MX6QDL_PAD_DISP0_DAT4__IPU1_DISP0_DATA04 0xb0 > + MX6QDL_PAD_DISP0_DAT5__IPU1_DISP0_DATA05 0xb0 > + MX6QDL_PAD_DISP0_DAT6__IPU1_DISP0_DATA06 0xb0 > + MX6QDL_PAD_DISP0_DAT7__IPU1_DISP0_DATA07 0xb0 > + > + MX6QDL_PAD_DISP0_DAT8__IPU1_DISP0_DATA08 0xb0 > + MX6QDL_PAD_DISP0_DAT9__IPU1_DISP0_DATA09 0xb0 > + MX6QDL_PAD_DISP0_DAT10__IPU1_DISP0_DATA10 0xb0 > + MX6QDL_PAD_DISP0_DAT11__IPU1_DISP0_DATA11 0xb0 > + MX6QDL_PAD_DISP0_DAT12__IPU1_DISP0_DATA12 0xb0 > + MX6QDL_PAD_DISP0_DAT13__IPU1_DISP0_DATA13 0xb0 > + MX6QDL_PAD_DISP0_DAT14__IPU1_DISP0_DATA14 0xb0 > + MX6QDL_PAD_DISP0_DAT15__IPU1_DISP0_DATA15 0xb0 > + > + MX6QDL_PAD_DISP0_DAT16__IPU1_DISP0_DATA16 0xb0 > + MX6QDL_PAD_DISP0_DAT17__IPU1_DISP0_DATA17 0xb0 > + MX6QDL_PAD_DISP0_DAT18__IPU1_DISP0_DATA18 0xb0 > + MX6QDL_PAD_DISP0_DAT19__IPU1_DISP0_DATA19 0xb0 > + MX6QDL_PAD_DISP0_DAT20__IPU1_DISP0_DATA20 0xb0 > + MX6QDL_PAD_DISP0_DAT21__IPU1_DISP0_DATA21 0xb0 > + MX6QDL_PAD_DISP0_DAT22__IPU1_DISP0_DATA22 0xb0 > + MX6QDL_PAD_DISP0_DAT23__IPU1_DISP0_DATA23 0xb0 > + >; > + }; > + > + pinctrl_leds: ledsgrp { > + fsl,pins = < > + MX6QDL_PAD_GPIO_8__GPIO1_IO08 0x1b0b0 > + >; > + }; > + > + pinctrl_pwm1: pwm1grp { > + fsl,pins = < > + MX6QDL_PAD_GPIO_9__PWM1_OUT 0x1b0b0 > + >; > + }; > + > + pinctrl_reg_bl_12v0: 12blgrp { > + fsl,pins = < > + MX6QDL_PAD_GPIO_7__GPIO1_IO07 0x1b0b0 > + >; > + }; > + > + pinctrl_tsc: tscgrp { > + > + fsl,pins = < > + MX6QDL_PAD_EIM_D20__GPIO3_IO20 0x1b0b0 > + MX6QDL_PAD_EIM_EB2__GPIO2_IO30 0x1b0b0 > + >; > + }; > +}; > -- > 2.26.2 >