Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp953110pxp; Wed, 16 Mar 2022 22:28:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZGxWdQaY3YQrQ3ftWwanCpSdD4lXncdLiF6RYTEEZvY25NURQkH0iNpiHmjQlTx0c6TCE X-Received: by 2002:a17:90a:5794:b0:1b9:8932:d475 with SMTP id g20-20020a17090a579400b001b98932d475mr3395049pji.24.1647494925579; Wed, 16 Mar 2022 22:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647494925; cv=none; d=google.com; s=arc-20160816; b=okePc4IbSY6O8Nl1U/w0838XFhVpqwtScMEFJtkV0G6fEfQuGj/xWmv/kEaJ1tHbQ/ YBKPQFX4Qt/4nTRnV6SV/e0CXdqu7whOJl0Svg1iSXD0RkRCMmkSe1DjTFVa5WEfyhjR YzvIsTuvA2A88CMawhS+9qLfRBoC6ZGDLqGHq4uOmwKvTyAUSiDyVPIYpuq5qANZHx92 Pt0Eyo7JPazi77/81EtvXpon0FA+nHzNKOGhhEvSkDyiQ0TK/sMOibvegrDeAv0M7BXq rHQjEM3uP6P3yvUf3qWbPGyIaR52QgWUXRgCf5jpobdw/XrS8Dyz1n3IXjyLlVKsUUtM QsHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=z9syfLAeUMuDCT7+k274ygLM02eVSibv/ExsyEoQU3A=; b=uW6JtwLQPJK1yGBRZz/KWQl/NWPlwnJXMzvUMBmroO5QRCsbAgPkwjwpizNuRi7jmU zq3oUtRB0daUxhzhOz6+PesCbfYgTteNIPEqD/SMKx4Luis4GGCd49ZZDYu/AfI0horc spZrM1oHeLucjc6X2jsKRENkjch+VykRWJmLiOfFALScqtnL8zbaZhcClzJYr9NOa28y heedKeapPwu+IvuK7pjW6yRvPN7fh7ev7d+4grBkPDZSc8cRUvG5cH/aoA8ctXc97hrv OQD1EKidC80UvwM4E6aoVmLiiF+80JflIezjWO3MYd3aslNMiPmGPNDmO6PM2+gY4I6t d9OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iX3HGOaO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i17-20020a17090332d100b00153b51aeb9fsi3825821plr.568.2022.03.16.22.28.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 22:28:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iX3HGOaO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9EF9222A2BF; Wed, 16 Mar 2022 21:30:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243150AbiCNQcQ (ORCPT + 99 others); Mon, 14 Mar 2022 12:32:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243057AbiCNQbk (ORCPT ); Mon, 14 Mar 2022 12:31:40 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37C3613CF7; Mon, 14 Mar 2022 09:30:22 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id r190-20020a1c2bc7000000b0038a1013241dso2070374wmr.1; Mon, 14 Mar 2022 09:30:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=z9syfLAeUMuDCT7+k274ygLM02eVSibv/ExsyEoQU3A=; b=iX3HGOaOAPz16P+P0rMVHT5Bp1G5WU4nZBYD67Np692jb74DZg28/d6GrE9SYA2abt KeqtmuioXOtxayGTMj5LBGlSuMhpBVLZb+XlZUxK2Lg2+OY3K8CXZCNRY0AJy6cXLC8M jB2WgINyoDzQxJktxaPaDsDtuvwg9ASq/d7OlZ6R4kL9Mg7JSavFzstyKK/PPSuR7ojk V7lRetzjzABB1wnyCN5KkJ8VMu7CaZnzAUAUM0419GWf3FC9tIUqmxgLx/QRRU+ysjQC nR0jrFl7UDHlB4qULsC+ibhEV0SAjF8Yx2RrvkET6cpzClfzTPWcGLSdoePoKvYtZsEu YoXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=z9syfLAeUMuDCT7+k274ygLM02eVSibv/ExsyEoQU3A=; b=viomEw1Fw6tu6YxaqgK4eNf+aja5zBJQC5sKvQNTQV20wc9TArSwHZEUYAy8Q5/wcB faJhWMit6PntMjGylcxEXl14YCVKS62ygyqiOex6xhcaDG2YVaRJPwa32+FM5ztrkk0r 1mNHfoF/4e1D+kFLYJaefviIBY36tfP3vjHYof72Ql2/74NgCzo6vGsYaOxEScNJ2XnK VPn1Ja595iaAzP/WNq7RhKvPsWXVc4Fk7jWXIFEBf5BWx2ghMNYudOs+FfuoeZ1Ta6aK Niar/7JJo3f5gP5J4cBPmpVGHdu22DokP9L0LkH8ImRFY//IyQLOjFMITFNCwhbSnNTk CQJA== X-Gm-Message-State: AOAM531bNZtIZCYwbUGwyyg004+fejr3p4MZ6f+5JNB1Ma3PXwPFKkns bOSHan3LZhxhma8UXjZXPbo= X-Received: by 2002:a05:600c:1550:b0:389:d623:cb7f with SMTP id f16-20020a05600c155000b00389d623cb7fmr19003928wmg.183.1647275420746; Mon, 14 Mar 2022 09:30:20 -0700 (PDT) Received: from linuxdev2.toradex.int (31-10-206-124.static.upc.ch. [31.10.206.124]) by smtp.gmail.com with ESMTPSA id w10-20020a5d680a000000b001f1dabec837sm13476817wru.113.2022.03.14.09.30.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Mar 2022 09:30:20 -0700 (PDT) From: Max Krummenacher X-Google-Original-From: Max Krummenacher To: max.krummenacher@toradex.com Cc: Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 06/14] ARM: dts: imx6dl-colibri: Disable add-on accessories Date: Mon, 14 Mar 2022 17:29:50 +0100 Message-Id: <20220314162958.40361-7-max.krummenacher@toradex.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220314162958.40361-1-max.krummenacher@toradex.com> References: <20220314162958.40361-1-max.krummenacher@toradex.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Toradex Colibri family is composed of SoM that can be plugged in various carrier board, with carrier boards allowing multiple optional add-on (e.g. display, camera, ...). Keep all the SoM specific part into the module .dtsi, disabling everything that is not self-contained on the board. The carrier board dts can reuse/enable anything that is defined in the module dtsi. Additional device tree overlays can be used for any accessories that are plugged in the carrier board. Disable parallel RGB: The parallel RGB interface (lcd_display) and all related nodes can be enabled in an overlay if used. Keep all nodes disabled in the module-level device tree. Rename display interface node to match imx6qdl-apalis to make it easier to use overlays. The pwm-backlight binding now requires the power-supply property, add it. Disable stmpe touchscreen: The touchscreen can be enabled in an overlay if used. Add labels to the stmpe sub nodes. Disable hdmi interface: HDMI can be enabled in an overlay if used. Update SPDX-License spelling to latest convention. Update Copyright year. Signed-off-by: Max Krummenacher --- arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts | 59 +------------------- arch/arm/boot/dts/imx6qdl-colibri.dtsi | 57 ++++++++++++++++++- 2 files changed, 56 insertions(+), 60 deletions(-) diff --git a/arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts b/arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts index 7da74e6f46d9..535b5c156229 100644 --- a/arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts +++ b/arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts @@ -1,6 +1,6 @@ -// SPDX-License-Identifier: GPL-2.0+ OR MIT +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT /* - * Copyright 2014-2020 Toradex + * Copyright 2014-2022 Toradex * Copyright 2012 Freescale Semiconductor, Inc. * Copyright 2011 Linaro Ltd. */ @@ -58,53 +58,6 @@ wakeup-source; }; }; - - lcd_display: disp0 { - compatible = "fsl,imx-parallel-display"; - #address-cells = <1>; - #size-cells = <0>; - interface-pix-fmt = "bgr666"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_ipu1_lcdif>; - status = "okay"; - - port@0 { - reg = <0>; - - lcd_display_in: endpoint { - remote-endpoint = <&ipu1_di0_disp0>; - }; - }; - - port@1 { - reg = <1>; - - lcd_display_out: endpoint { - remote-endpoint = <&lcd_panel_in>; - }; - }; - }; - - panel: panel { - /* - * edt,et057090dhu: EDT 5.7" LCD TFT - * edt,et070080dh6: EDT 7.0" LCD TFT - */ - compatible = "edt,et057090dhu"; - backlight = <&backlight>; - - port { - lcd_panel_in: endpoint { - remote-endpoint = <&lcd_display_out>; - }; - }; - }; -}; - -&backlight { - brightness-levels = <0 127 191 223 239 247 251 255>; - default-brightness-level = <1>; - status = "okay"; }; /* Colibri SSP */ @@ -122,10 +75,6 @@ }; }; -&hdmi { - status = "okay"; -}; - /* * Colibri I2C: I2C3_SDA/SCL on SODIMM 194/196 (e.g. RTC on carrier board) */ @@ -178,10 +127,6 @@ }; }; -&ipu1_di0_disp0 { - remote-endpoint = <&lcd_display_in>; -}; - &pwm1 { status = "okay"; }; diff --git a/arch/arm/boot/dts/imx6qdl-colibri.dtsi b/arch/arm/boot/dts/imx6qdl-colibri.dtsi index c92887f6af61..f6243762e918 100644 --- a/arch/arm/boot/dts/imx6qdl-colibri.dtsi +++ b/arch/arm/boot/dts/imx6qdl-colibri.dtsi @@ -13,13 +13,59 @@ backlight: backlight { compatible = "pwm-backlight"; + brightness-levels = <0 127 191 223 239 247 251 255>; + default-brightness-level = <1>; + enable-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* Colibri BL_ON */ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio_bl_on>; + power-supply = <®_module_3v3>; pwms = <&pwm3 0 5000000>; - enable-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* Colibri BL_ON */ status = "disabled"; }; + lcd_display: disp0 { + compatible = "fsl,imx-parallel-display"; + interface-pix-fmt = "bgr666"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ipu1_lcdif>; + status = "disabled"; + + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + lcd_display_in: endpoint { + remote-endpoint = <&ipu1_di0_disp0>; + }; + }; + + port@1 { + reg = <1>; + + lcd_display_out: endpoint { + remote-endpoint = <&lcd_panel_in>; + }; + }; + }; + + panel_dpi: panel-dpi { + /* + * edt,et057090dhu: EDT 5.7" LCD TFT + * edt,et070080dh6: EDT 7.0" LCD TFT + */ + compatible = "edt,et057090dhu"; + backlight = <&backlight>; + status = "disabled"; + + port { + lcd_panel_in: endpoint { + remote-endpoint = <&lcd_display_out>; + }; + }; + }; + reg_module_3v3: regulator-module-3v3 { compatible = "regulator-fixed"; regulator-name = "+V3.3"; @@ -476,7 +522,7 @@ /* ADC converstion time: 80 clocks */ st,sample-time = <4>; - stmpe_touchscreen { + stmpe_ts: stmpe_touchscreen { compatible = "st,stmpe-ts"; /* 8 sample average control */ st,ave-ctrl = <3>; @@ -491,9 +537,10 @@ st,settling = <3>; /* 5 ms touch detect interrupt delay */ st,touch-det-delay = <5>; + status = "disabled"; }; - stmpe_adc { + stmpe_adc: stmpe_adc { compatible = "st,stmpe-adc"; /* forbid to use ADC channels 3-0 (touch) */ st,norequest-mask = <0x0F>; @@ -514,6 +561,10 @@ status = "disabled"; }; +&ipu1_di0_disp0 { + remote-endpoint = <&lcd_display_in>; +}; + /* Colibri PWM */ &pwm1 { pinctrl-names = "default"; -- 2.20.1