From patchwork Thu Apr 27 13:23:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aradhya Bhatia X-Patchwork-Id: 88259 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp267781vqo; Thu, 27 Apr 2023 06:28:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7aDd730J648EN4Gu0sSwpdZ6pcDr87XNiZIL6yB+F47RQXm2atqrKy31vOkLxDvB1XXt9b X-Received: by 2002:a17:903:230e:b0:1a9:7424:7758 with SMTP id d14-20020a170903230e00b001a974247758mr1800572plh.0.1682602091774; Thu, 27 Apr 2023 06:28:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682602091; cv=none; d=google.com; s=arc-20160816; b=xppqqGzXkXUxVtYBriFyQw6e/ZwFyf06v/VMXy2d9Um/yOHgOckTDzkqCjoKhEzOKR FlOw57S/OB90m0Z+flBZLhNAk1UnF0eVFpBLT+T3stv1QKSNjQ/PGNsH1NwaDcobWxJx 62+WvixCkgg203fMVTJlvekxHpduObNrDF2s0r2t3veC6I/2WRKyoBWeFnnu+xauDWpW lPvqL7zYCFO6bYUHM2TuUyoZi79Q8XNoUC5DbZDUD1xDC0lhDtfZVBOB9NR1DO9hOA9D 6ZtnpJQX9spDiUjx6y8S0ejsOF3zCDgdIZbCO+OGNr3YiRlMC+0hwHotn/ZBzsm3Ol/B nwxQ== 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=1l4QNovdGo7sGp0REDGOcRrLHb/yFwHLCC/66R47Bxo=; b=eQ+mluIMFJ+hpNmPno3Ts02LuAT0wSKq97sJZ/EbsqTPgIoRTiTxtVWSOvLxx8WTVf klTkvC50TmH+3f/6n4rlDqnVYla9eGMcghjctdXsCst40fZpvZrtoQO8jv5u9GSzRGfH M9K8gCagrWN2nTNdm8+kPXaMBPtWjrvcIMx/Zf+b9MSkavJ8STeXabPZVwWFJW0DEUWW ZiIkyOuOe/upXsFMNQaSVmJ3+ZP1NKXuA3ix4910zVnQM2kW5KZRWR7jOo57FeBjr6YU IgO/ELawxh1Dr+8BIworzmy+lRmzZLRfQSswlT7gRkk++u1V8FEWMLR2yk7iVNoJxCfK F+8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=zRgm4dWG; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u2-20020a17090341c200b001a96b39bb35si13221239ple.439.2023.04.27.06.27.58; Thu, 27 Apr 2023 06:28:11 -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 header.i=@ti.com header.s=ti-com-17Q1 header.b=zRgm4dWG; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243488AbjD0NXk (ORCPT + 99 others); Thu, 27 Apr 2023 09:23:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243409AbjD0NXg (ORCPT ); Thu, 27 Apr 2023 09:23:36 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE27844A0; Thu, 27 Apr 2023 06:23:34 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 33RDN7J7021257; Thu, 27 Apr 2023 08:23:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1682601787; bh=1l4QNovdGo7sGp0REDGOcRrLHb/yFwHLCC/66R47Bxo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=zRgm4dWGyIJX+shR3nndqqxCMXWe+NElypSnjRjr+eB3/TM+tIKHxAqqBZ5rxxdxI RQBiMKOCs+42b+CGrcCdMjpeYk41bc9+Vre7nYPHxDE8gStFAgqaTvjinx0P7MqvhT IsSto4dx8dfACpOVKJ04PlZmYfZfEhIzA7wDScIU= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 33RDN7mO116147 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 27 Apr 2023 08:23:07 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 27 Apr 2023 08:23:07 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 27 Apr 2023 08:23:07 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 33RDN6EF109819; Thu, 27 Apr 2023 08:23:07 -0500 From: Aradhya Bhatia To: Nishanth Menon , Vignesh Raghavendra , Andrew Davis , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon CC: Devicetree List , Linux Kernel List , Linux ARM Kernel List , Jyri Sarha , Tomi Valkeinen , Praneeth Bajjuri , Rahul T R , Devarsh Thakkar , Jai Luthra , Jayesh Choudhary , Aradhya Bhatia Subject: [PATCH v3 1/2] arm64: dts: ti: am65x: Add Rocktech OLDI panel DT overlay Date: Thu, 27 Apr 2023 18:53:03 +0530 Message-ID: <20230427132304.6857-2-a-bhatia1@ti.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230427132304.6857-1-a-bhatia1@ti.com> References: <20230427132304.6857-1-a-bhatia1@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764336170854926456?= X-GMAIL-MSGID: =?utf-8?q?1764336170854926456?= From: Jyri Sarha The OLDI-LCD1EVM add on board has Rocktech RK101II01D-CT panel[1] with integrated touch screen. The integrated touch screen is Goodix GT928. Add DT nodes for these and connect the endpoint nodes with DSS. [1]: Product link https://www.digimax.it/en/tft-lcd/20881-RK101II01D-CT Signed-off-by: Jyri Sarha Signed-off-by: Nikhil Devshatwar [abhatia1@ti.com: Make cosmetic and 6.1 DTSO syntax changes] Signed-off-by: Aradhya Bhatia Reviewed-by: Tomi Valkeinen Reviewed-by: Andrew Davis --- arch/arm64/boot/dts/ti/Makefile | 2 + ...am654-base-board-rocktech-rk101-panel.dtso | 70 +++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am654-base-board-rocktech-rk101-panel.dtso diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile index c83c9d772b81..47b0d257b508 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -22,12 +22,14 @@ dtb-$(CONFIG_ARCH_K3) += k3-am642-phyboard-electra-rdk.dtb dtb-$(CONFIG_ARCH_K3) += k3-am642-sk.dtb # Boards with AM65x SoC +k3-am654-gp-evm-dtbs := k3-am654-base-board.dtb k3-am654-base-board-rocktech-rk101-panel.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am6528-iot2050-basic.dtb dtb-$(CONFIG_ARCH_K3) += k3-am6528-iot2050-basic-pg2.dtb 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-gp-evm.dtb # Boards with J7200 SoC k3-j7200-evm-dtbs := k3-j7200-common-proc-board.dtb k3-j7200-evm-quad-port-eth-exp.dtbo diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board-rocktech-rk101-panel.dtso b/arch/arm64/boot/dts/ti/k3-am654-base-board-rocktech-rk101-panel.dtso new file mode 100644 index 000000000000..0342225d6be3 --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am654-base-board-rocktech-rk101-panel.dtso @@ -0,0 +1,70 @@ +// SPDX-License-Identifier: GPL-2.0 +/** + * OLDI-LCD1EVM Rocktech integrated panel and touch DT overlay for AM654-EVM. + * Panel Link: https://www.digimax.it/en/tft-lcd/20881-RK101II01D-CT + * + * 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>; + + touchscreen@14 { + 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>; + }; +}; From patchwork Thu Apr 27 13:24:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aradhya Bhatia X-Patchwork-Id: 88261 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp271957vqo; Thu, 27 Apr 2023 06:34:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4GIhyEG0k+cjyy3MkIcPyRLJNLDnTCn3rDdnQ4qyuC1UpSwRIMz+z5BQTA2gv4POaH8YfT X-Received: by 2002:a17:90a:dc18:b0:247:20e9:1a1a with SMTP id i24-20020a17090adc1800b0024720e91a1amr1978728pjv.5.1682602458660; Thu, 27 Apr 2023 06:34:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682602458; cv=none; d=google.com; s=arc-20160816; b=VFGktPNF80J7n3MXki91yG4ZsGr6UP9BOIZeMm3+r1Gvh0sBTacGoz4PhCpA8EUzy2 xqaw49bOuU7j+Yi1qzaRulD0wYGBewfn+gqFgM/t6I93Jcwv+u+5pGxsY7BZcnYcyWh0 SkRwDEQsfJAisivvrPryadMnC9jyeJNbpISpqKgp1pJgr84BWGugVNiCae/vuk75Hoid E+Ryq5974oorf7zEGYJPfz0PLEiOGCVqX/Qmm+V1IuFv9tlQ/5kTHppHWypXqkaEHX8J ClrDI2nQfbVMIJwzSZjrgkqiM9YGfMYhT1Wq51yvs7TbswvxMeIWGiIPyTF8xlVvISAB cfNQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=YfkFnETWuFrg9hQNbNpmCO9kyEuDvJSIwYu1G/FpBag=; b=oADje1XEt6wYTRVdOF9fzn1G7EeUh+n8Gp1zqu+gf0WNAa3wJpS+gTfziy93PUD3EF GduLITs5dYYFl+2/R9LGqZREB34WF9SfEGJRi4pPXvwa018JGYBIJLKQgTxks9EWP9Yn bnH0xeNVPEyXcZYSwa51HZUpJ04qItnpt1aJ4xOjcgLMYL4ER/6bzyutFGFrb350cehe MI4EFMbKJ8zccXbI9YCpnvuToZY4um7mE+ZZYSU0ibRPzqfVcmv3tfm/aviu50x4LFkj PS9f5w/pMzxMa3w4r2whEIn5j3milGw8WVxJYQfr1Ej0Sw2Sgzu1U7XCu69KIEL4YHav kQuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=CUtml96Z; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bf1-20020a17090b0b0100b0022915b6dd7asi18526720pjb.145.2023.04.27.06.34.06; Thu, 27 Apr 2023 06:34:18 -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 header.i=@ti.com header.s=ti-com-17Q1 header.b=CUtml96Z; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243481AbjD0NZJ (ORCPT + 99 others); Thu, 27 Apr 2023 09:25:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243334AbjD0NZH (ORCPT ); Thu, 27 Apr 2023 09:25:07 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 504F844A0; Thu, 27 Apr 2023 06:25:05 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 33RDOcnX057380; Thu, 27 Apr 2023 08:24:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1682601878; bh=YfkFnETWuFrg9hQNbNpmCO9kyEuDvJSIwYu1G/FpBag=; h=From:To:CC:Subject:Date; b=CUtml96Z34l8lbSMpeUYAJs8Y+0+CngwUNpxsEbxXVnvL05ZhlruPZmQGxajHXtr1 vgD+Td3Zzv2IzXcX9AhodtuPHeU6o5cL5N/CFCd/FltrrWqu0K9tQmd/RqjFTfOy1J JJ/4Oukm5jiWUITw9lwltHgaRCMmke3JES27sNWI= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 33RDOcwe117058 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 27 Apr 2023 08:24:38 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 27 Apr 2023 08:24:37 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 27 Apr 2023 08:24:37 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 33RDObpj028897; Thu, 27 Apr 2023 08:24:37 -0500 From: Aradhya Bhatia To: Nishanth Menon , Vignesh Raghavendra , Andrew Davis , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon CC: Devicetree List , Linux Kernel List , Linux ARM Kernel List , Jyri Sarha , Tomi Valkeinen , Praneeth Bajjuri , Rahul T R , Devarsh Thakkar , Jai Luthra , Jayesh Choudhary , Aradhya Bhatia Subject: [PATCH v3 2/2] arm64: defconfig: Enable PWM drivers for TI ECAP and EHRPWM Date: Thu, 27 Apr 2023 18:54:36 +0530 Message-ID: <20230427132436.7418-1-a-bhatia1@ti.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764336556092746224?= X-GMAIL-MSGID: =?utf-8?q?1764336556092746224?= TI's K3 SoCs uses the Enhanced high resolution PWM (EHRPWM) and the ECAP modules for generating PWM signals, used in various application. One such example is controlling the backlight power of the display panels connected to the EVMs. Enable these modules. Signed-off-by: Aradhya Bhatia --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index a24609e14d50..08679650644d 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -1319,6 +1319,8 @@ CONFIG_PWM_SAMSUNG=y CONFIG_PWM_SL28CPLD=m CONFIG_PWM_SUN4I=m CONFIG_PWM_TEGRA=m +CONFIG_PWM_TIECAP=m +CONFIG_PWM_TIEHRPWM=m CONFIG_PWM_VISCONTI=m CONFIG_SL28CPLD_INTC=y CONFIG_QCOM_PDC=y