From patchwork Tue Apr 25 05:12:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aradhya Bhatia X-Patchwork-Id: 87249 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3182685vqo; Mon, 24 Apr 2023 22:20:16 -0700 (PDT) X-Google-Smtp-Source: AKy350YtEN5+kIB2FFCR19hbAqaMW5l2YfU5URXxbGN+LHXLoesZPB5fi4h2jCCzZ4U70p13vK88 X-Received: by 2002:a17:902:7611:b0:1a6:8ee3:4e2e with SMTP id k17-20020a170902761100b001a68ee34e2emr15370312pll.33.1682400015723; Mon, 24 Apr 2023 22:20:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682400015; cv=none; d=google.com; s=arc-20160816; b=tAJ+l8MgtQEntQ7uIKjjd6c++luzuHsGk0pUx8eCdBEg+m1J6JRVrJP+QK5hlCdAwU pzl46MnRg+nUJkC/Ckl4LE22kHtDMbb7xVEZXbDbrDPujnx92MiFjgTtDuytwNcvX9Sd kab9BBCAYLA/FUfLu/wWy9KovxPdvQyunTpCQUBRzqZcfDH+cIRAFM3AJDYy+uGPUhOx opxBC0S/Ykm3WVdl1QB9yLuinQiO73oXiGEU+dMOijoqQol0BURyWar+Gj6VKiXpBfaq isEpoFPic7YWGNXmYd9b1D8LQOB1Ce0VgFOHYCMocv9oAlz3rjQYD6LTwZ1Y6BjDCYM5 NzeA== 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=bwztQ+OeoGKrgUDzIjhpOSpxWAx9fpeCzU0PjjP/hwM=; b=eaCXFRX4KUCY/9el9y5S0AC26RUKL7Sw56qN2+aSGjbgn7fbZznky15M1S2SFBlVuM 9InuFvqi3i/TQXDU+xcum3wjmQuhr/jmcw3HKCzuByLbShT+pXrhTpy3HyrCvItcHclT eXcy27+DoVXPb8ChoDahnzGr+u+An6mIQvdOVsZwWFGwrd6YAVTtoIG9cBk+pjP5IoTF jUrxgFRAiJmWEJcOaJqsXDqWaoxvr5GNkujfEE061VjzyzWajo40FrYvaQEq+ceGXR6+ L0WAs1LWui/gWYqc8Pu95beDF4W6sJDFb7m3yZ7nQAm0MMRThBwThQZSL1ixrFzh43o8 8HmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=g5iMs+ea; 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 jg6-20020a17090326c600b001a1f44d31b5si12208212plb.565.2023.04.24.22.19.59; Mon, 24 Apr 2023 22:20:15 -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=g5iMs+ea; 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 S233020AbjDYFNH (ORCPT + 99 others); Tue, 25 Apr 2023 01:13:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232741AbjDYFNC (ORCPT ); Tue, 25 Apr 2023 01:13:02 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 721DE83CB; Mon, 24 Apr 2023 22:13:01 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 33P5CdEi062308; Tue, 25 Apr 2023 00:12:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1682399559; bh=bwztQ+OeoGKrgUDzIjhpOSpxWAx9fpeCzU0PjjP/hwM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=g5iMs+eacRCT/8HlY9F89iXct+N3wvt3CbFpRYlEZ9oQmFxisBSSq5Ut7nK+IHSic Gs6aCX+0MCupVVZFrNh1p4qs3FwmV8Vz0t/9RO3T7AMY+82IP2VT1EFa81tJ4SOJ8/ i1TLve93YEMdX4xoQbKbi6s8h/j6N51atREDJjq8= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 33P5CdvO000985 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 25 Apr 2023 00:12:39 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 25 Apr 2023 00:12:39 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Tue, 25 Apr 2023 00:12:39 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 33P5CcNF022844; Tue, 25 Apr 2023 00:12:38 -0500 From: Aradhya Bhatia To: 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 , Tomi Valkeinen , Praneeth Bajjuri , Rahul T R , Devarsh Thakkar , Jai Luthra , Jayesh Choudhary , Aradhya Bhatia Subject: [PATCH 1/2] arm64: dts: ti: Add overlay for OLDI-LCD1EVM Display and touch screen Date: Tue, 25 Apr 2023 10:42:34 +0530 Message-ID: <20230425051235.15533-2-a-bhatia1@ti.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230425051235.15533-1-a-bhatia1@ti.com> References: <20230425051235.15533-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,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764124278839220761?= X-GMAIL-MSGID: =?utf-8?q?1764124278839220761?= 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 Reviewed-by: Tomi Valkeinen --- 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 { + 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>; + }; +}; From patchwork Tue Apr 25 05:12:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aradhya Bhatia X-Patchwork-Id: 87248 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3180858vqo; Mon, 24 Apr 2023 22:14:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6sNC/WNS/d7TgN3zXzJjdAIK58WyEJ/P6+DQPm45jSJJrCdFOwCf+JFUXCJlzTjhqAcGUv X-Received: by 2002:a17:903:1109:b0:1a9:7b5e:14ba with SMTP id n9-20020a170903110900b001a97b5e14bamr5562261plh.29.1682399664496; Mon, 24 Apr 2023 22:14:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682399664; cv=none; d=google.com; s=arc-20160816; b=AUYZ3KX9/K/VQgwLrD++vgTQH3t0Urdo3uQiss0FJ8W7IXM2t4l4eOq1O/2TdoZAl8 E6bQ7RnlCIYLHPTDUnZkvJE04FBSfib71uKZm/Hjyo0kitOMB4H2x61AeEJxbHcBOSnL bOLRzYj6dDOpCDehxTtWDY4qFcTHwjAjSbKAddFMNxc7Dr3lCIml1HnCAQhnx6WalWl0 S+e6iKi4uXufwTO7wGAN9I3D7KHRY7fa4/zcNt6cpmHi1m5T/YxYhuGJ95FTz6eiTETa lQ78oRq43cBalK4S1WpLkZOXoA8gm6NgZOYiPCM3RCTtJmirYCObaNrEbXc4vmbcq/ey UMMg== 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=NobemyBvtwjcU/aS5ZCzDkB7/FGzb5hRLrC1qI4I3KY=; b=OhGTO7jhDTV5H9MRqtF7joo4Jj19BFTt1qlGHQJAg7bxqV0xXdTPc0zkX/NkZLjV9c YHVkNSTWFBPM53OAUqU/2ACi2+Tnd+fA96GsRr7zlzRxd8faoXzzj318CvfJR6I2g15W Vbh5hlhPGeToYdgiTMn+oBhQG2nUpg8CDIULiSUnIIMW3WCWeE03pkL1xX8YIKjDXxss sziq1tqDH23S77IMB4t9Xd2VjmPmrO61tQVYZTlRMNXZuQc/zNPwNJA1nTynkFZvZHnw 90c41oVLaTCF2v5Bp0aYmEvSa8hHuWZw3LMOas/mAvkRGcbsh1X4K8+pICwXLF6sERdj xAaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Sr0zAQJb; 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 kd16-20020a17090313d000b0019e6d854facsi12980621plb.349.2023.04.24.22.14.11; Mon, 24 Apr 2023 22:14:24 -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=Sr0zAQJb; 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 S232815AbjDYFNC (ORCPT + 99 others); Tue, 25 Apr 2023 01:13:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230195AbjDYFNA (ORCPT ); Tue, 25 Apr 2023 01:13:00 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FA7383CB; Mon, 24 Apr 2023 22:12:57 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 33P5CfM7058004; Tue, 25 Apr 2023 00:12:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1682399561; bh=NobemyBvtwjcU/aS5ZCzDkB7/FGzb5hRLrC1qI4I3KY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Sr0zAQJb71xT6CMtuQNEsJBNavS2l9lRKVemBXud2lOCSFIKY0EWqzXqLTsSjqfps UDAVqoKTGYOnBGhnEZBXGnb7XqpKC/8z+pVeX0EWvhpPVK1clEOmY53C+tTg13xRsS 0/wxO8Owj97aBkaD++yPTPsQdg7ddru6QB9rTqqU= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 33P5CfjO130682 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 25 Apr 2023 00:12:41 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 25 Apr 2023 00:12:40 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Tue, 25 Apr 2023 00:12:40 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 33P5Cehj092621; Tue, 25 Apr 2023 00:12:40 -0500 From: Aradhya Bhatia To: 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 , Tomi Valkeinen , Praneeth Bajjuri , Rahul T R , Devarsh Thakkar , Jai Luthra , Jayesh Choudhary , Aradhya Bhatia Subject: [PATCH 2/2] arm64: defconfig: Enable PWM drivers for TI ECAP and EHRPWM Date: Tue, 25 Apr 2023 10:42:35 +0530 Message-ID: <20230425051235.15533-3-a-bhatia1@ti.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230425051235.15533-1-a-bhatia1@ti.com> References: <20230425051235.15533-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,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764123910220340748?= X-GMAIL-MSGID: =?utf-8?q?1764123910220340748?= 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 7790ee42c68a..dd8094eef17f 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -1283,6 +1283,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