Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6610681rwr; Tue, 25 Apr 2023 00:41:02 -0700 (PDT) X-Google-Smtp-Source: AKy350ZN1r8QPTr3mqnas6nwwbd6yKUy5ZCFDpUg/4/aqGcXb4pNuxrgct8ONTriSKqUb59HnnP0 X-Received: by 2002:a17:902:868b:b0:1a6:3af1:9c3a with SMTP id g11-20020a170902868b00b001a63af19c3amr16000606plo.22.1682408462067; Tue, 25 Apr 2023 00:41:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682408462; cv=none; d=google.com; s=arc-20160816; b=aS5VZGdYb5wJGY50Y5UyaZdKA12MBzroDGXeU/tEWL1u7p8N67C7heCqWuEMl0lgOH uRObyC5N0HzGrnpdHPiK6eluQZ4R+MRWO8Ms0YRyTTZ2QvUi9Gkq0j/VZXfl48P61jB6 Z/YqrNVqYoL7vhAvPXOdvnGKY5ctJHj+GgrnHIiXhSOr6q93I2mgVT7XQA8djlYhr6gT O0hyfX6u0DUNLyaoXWoRyma1ljw4Yv0jLAQaeny97QPjJymVxTSSYHL8rI1Sau136Y0z Qpz7cGSf3BjgkCAK7QpyUVfPcqFWb39/qzk1eKnfBZ87ilAGsqKOW1uBWDOAhg0bysw7 rxlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=h0BAwmqjmFUHdy9C7P+T2mKXMwHyFd5AI/PSPNMWeaE=; b=CLxBoJn2G1BEJQ29Lk0s5uckI5Qlh3H9TO9n35j8b6w+Af6jFyp2IMANVO8QZuZOCM D7DRghPkwMHS6KWd3iHXN5U/cNxQLJUnvsajxKk0usCoDypI3LMWYWkudDXXeO9lFfrr Stsvayhy+7ZuW+M2h8Va4plUFgvyc/EnFic5T4PVLsXxBV6Uru1AQBgVXQ0luHRLfeYZ JbDtcf2sEZgPbZcpyA01HOv3XGxZ+o4/yNWT/+MUT3Oq58KtQ3rWoLrqAQe8+1H9/4Md 0UrV+oyhsTfUY2Rwe/irkJU8pxmAcuFKWe5JNOR3djYvxchaxaSMGWRH/AhSZrrIX0S4 lI5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=HlterMRh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l16-20020a170902f69000b001a6a636eb6dsi14438928plg.215.2023.04.25.00.40.51; Tue, 25 Apr 2023 00:41:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=HlterMRh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233580AbjDYHgA (ORCPT + 99 others); Tue, 25 Apr 2023 03:36:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233567AbjDYHfY (ORCPT ); Tue, 25 Apr 2023 03:35:24 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78367D30E; Tue, 25 Apr 2023 00:35:19 -0700 (PDT) Received: from [192.168.88.20] (91-154-35-171.elisa-laajakaista.fi [91.154.35.171]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 58CFBAB; Tue, 25 Apr 2023 09:35:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1682408107; bh=ipYHM2TMHh8mOltD733No+AnX1CuUoxSHuYan1Ob8hc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=HlterMRhxAKE1xBSZDjuQxrK7DSLCnNNXBRpLad3hWl+xQybQFVoh5GXGUOGJvzTg wChVkaQc7H1Dpzw2q9w3B4WOLcTwhBlbQo9KMoOa4rLT5wKm2FwCLE0gOiO+7WkE8B f6t6DYD6QkkYZ6OgamaiSHQVC1ySqI+nuyE/1TsU= Message-ID: <1478ab6c-5a2b-6177-d909-925f63383c41@ideasonboard.com> Date: Tue, 25 Apr 2023 10:35:13 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH 1/2] arm64: dts: ti: Add overlay for OLDI-LCD1EVM Display and touch screen To: Aradhya Bhatia , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon Cc: Devicetree List , Linux Kernel List , Linux ARM Kernel List , Jyri Sarha , Praneeth Bajjuri , Rahul T R , Devarsh Thakkar , Jai Luthra , Jayesh Choudhary References: <20230425051235.15533-1-a-bhatia1@ti.com> <20230425051235.15533-2-a-bhatia1@ti.com> Content-Language: en-US From: Tomi Valkeinen In-Reply-To: <20230425051235.15533-2-a-bhatia1@ti.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 On 25/04/2023 08:12, Aradhya Bhatia wrote: > From: Jyri Sarha > > The OLDI-LCD1EVM add on board has Rocktech RK101II01D-CT panel with > integrated touch screen. The integrated touch screen is Goodix GT928. > Add DT nodes for these and connect the endpoint nodes with DSS. > > This patch was picked from TI's public tree based on 5.10 LTS kernel. > > Signed-off-by: Jyri Sarha > Signed-off-by: Nikhil Devshatwar > [abhatia1@ti.com: Make syntax changes to support 6.1 DTSO format] > Signed-off-by: Aradhya Bhatia > --- > arch/arm64/boot/dts/ti/Makefile | 2 + > .../dts/ti/k3-am654-evm-oldi-lcd1evm.dtso | 70 +++++++++++++++++++ > 2 files changed, 72 insertions(+) > create mode 100644 arch/arm64/boot/dts/ti/k3-am654-evm-oldi-lcd1evm.dtso > > diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile > index 6acd12409d59..8956b19e587a 100644 > --- a/arch/arm64/boot/dts/ti/Makefile > +++ b/arch/arm64/boot/dts/ti/Makefile > @@ -26,6 +26,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced.dtb > dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced-m2.dtb > dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced-pg2.dtb > dtb-$(CONFIG_ARCH_K3) += k3-am654-base-board.dtb > +dtb-$(CONFIG_ARCH_K3) += k3-am654-evm-oldi-lcd1evm.dtbo > > # Boards with J7200 SoC > dtb-$(CONFIG_ARCH_K3) += k3-j7200-common-proc-board.dtb > @@ -45,3 +46,4 @@ dtb-$(CONFIG_ARCH_K3) += k3-j784s4-evm.dtb > > # Enable support for device-tree overlays > DTC_FLAGS_k3-am6548-iot2050-advanced-m2 += -@ > +DTC_FLAGS_k3-am654-base-board += -@ > diff --git a/arch/arm64/boot/dts/ti/k3-am654-evm-oldi-lcd1evm.dtso b/arch/arm64/boot/dts/ti/k3-am654-evm-oldi-lcd1evm.dtso > new file mode 100644 > index 000000000000..b2c790b314cf > --- /dev/null > +++ b/arch/arm64/boot/dts/ti/k3-am654-evm-oldi-lcd1evm.dtso > @@ -0,0 +1,70 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/** > + * OLDI-LCD1EVM Rocktech integrated panel and touch DT overlay for AM654-EVM. > + * > + * Copyright (C) 2023 Texas Instruments Incorporated - http://www.ti.com/ > + */ > + > +/dts-v1/; > +/plugin/; > + > +#include > +#include > +#include > + > +&{/} { > + display0 { > + compatible = "rocktech,rk101ii01d-ct"; > + backlight = <&lcd_bl>; > + enable-gpios = <&pca9555 8 GPIO_ACTIVE_HIGH>; > + port { > + lcd_in0: endpoint { > + remote-endpoint = <&oldi_out0>; > + }; > + }; > + }; > + > + lcd_bl: backlight { > + compatible = "pwm-backlight"; > + pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>; > + brightness-levels = > + <0 32 64 96 128 160 192 224 255>; > + default-brightness-level = <8>; > + }; > +}; > + > +&dss { > + status = "okay"; > +}; > + > +&dss_ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + > + oldi_out0: endpoint { > + remote-endpoint = <&lcd_in0>; > + }; > + }; > +}; > + > +&main_i2c1 { > + #address-cells = <1>; > + #size-cells = <0>; > + > + gt928: touchscreen@14 { I don't see the 'gt928' label used for anything. Reviewed-by: Tomi Valkeinen Tomi > + status = "okay"; > + compatible = "goodix,gt928"; > + reg = <0x14>; > + > + interrupt-parent = <&pca9554>; > + interrupts = <3 IRQ_TYPE_EDGE_FALLING>; > + touchscreen-size-x = <1280>; > + touchscreen-size-y = <800>; > + > + reset-gpios = <&pca9555 9 GPIO_ACTIVE_HIGH>; > + irq-gpios = <&pca9554 3 GPIO_ACTIVE_HIGH>; > + }; > +};