From patchwork Wed Apr 26 06:06:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aradhya Bhatia X-Patchwork-Id: 87622 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp38008vqo; Tue, 25 Apr 2023 23:26:15 -0700 (PDT) X-Google-Smtp-Source: AKy350bHWMc70U5MRa91OmzNLU1ll/Ba870XtLs3RpbLtyUB1ESdU7r9hN1P8Evo/hpN9xCBxOai X-Received: by 2002:a05:6a00:1823:b0:63b:4313:f8b5 with SMTP id y35-20020a056a00182300b0063b4313f8b5mr29176038pfa.23.1682490374769; Tue, 25 Apr 2023 23:26:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682490374; cv=none; d=google.com; s=arc-20160816; b=xchZfmrAbwpk2lMQecrk3Y65nvHcNL1PkLSnaKaENnqCDjJlxKheE20JDY9tcD+k6N ZdrVRazCM7HWNbR1XwHwyZSL7RhiWgy+0dwin7yADRJvPtIJCfNUkTQBJuei3x+Duj7J zE7ip9pYKBZZGxuy8sv5t150OpCqjm8tCd0GmoQgzq2dp2m9pUQvRbY+PKWESYNWKuqI UXRtv/EHdLgtOnp5EVPfjz+vR/J8gPiphjfwMJbUDpLxltCuYiQ+0qAOFj/+YYg6nJzg Tk+BmEhAuS8W9EMxc0gYQIdUubAtxDauT83joBsdy+3HZ1CzT3G8alFl1L/ACCISzhwi ZqGg== 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=TxVq+Vq2+FxY2NTgtQslEaG70KbJjS8E/AQ7b5gYUGs=; b=li4Ly/X9JBaBzH076memiURUXOFeykU4johECijeVpz1B/whqyDRDKXiJ8edbX2jVH N7YnZ6RNj3l0ojc2d56VDNEJR3YXrkPIL79plG6bruORW8n/H7a1fbN/8BEPs8QH6DaX YhplehKf0O/eT2HOln5PMdRbFlW8qCKMp7XIKFg5IDnLjcNzlCwdcIC7MjTH2gXUPgCO EcVicqNnMWzR2nnTPcVxHXflto1r4ZfZINDfxlLPLysxY/ZDnC75Go7apqw2D7v/RXtB 6upPjPIYMGeYE0c/YR6KRWrYxN9k8JEp1O94YBC4d/YFXRCUvvebi9MFgV+5g+t7LAb3 hDKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=mzJIChlC; 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 l69-20020a638848000000b0051a788417e3si16578248pgd.466.2023.04.25.23.25.58; Tue, 25 Apr 2023 23:26:14 -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=mzJIChlC; 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 S239533AbjDZGHO (ORCPT + 99 others); Wed, 26 Apr 2023 02:07:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239530AbjDZGHG (ORCPT ); Wed, 26 Apr 2023 02:07:06 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 459612718; Tue, 25 Apr 2023 23:07:00 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 33Q66Q7j080649; Wed, 26 Apr 2023 01:06:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1682489186; bh=TxVq+Vq2+FxY2NTgtQslEaG70KbJjS8E/AQ7b5gYUGs=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=mzJIChlC10AtIf8tnmmVvRmbZKNuhLiNGaxwHOHARmmpROywzDARv/O4LBVuzhh63 HbEl+/ZeeZ5+vEQGmpz2rtvSGEQWDUQMh+aRHczgb6rUrcAH68wIexUi+IA+stlHYz T3CDGUTAQaTnxf+TdSzlYVtWrqJuXIooydsoozEg= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 33Q66QeO078544 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 26 Apr 2023 01:06:26 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Wed, 26 Apr 2023 01:06:25 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) 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 via Frontend Transport; Wed, 26 Apr 2023 01:06:25 -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 33Q66O1K073547; Wed, 26 Apr 2023 01:06:25 -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 v2 1/2] arm64: dts/ti: am65x: Add Rocktech OLDI panel DT overlay Date: Wed, 26 Apr 2023 11:36:11 +0530 Message-ID: <20230426060612.19271-2-a-bhatia1@ti.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230426060612.19271-1-a-bhatia1@ti.com> References: <20230426060612.19271-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?1764219027189877222?= X-GMAIL-MSGID: =?utf-8?q?1764219027189877222?= 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 datasheet https://www.digimax.it/media_import/DISPLAY/ROCKTECH/TFT%20LCD/RK101II01D-CT/RK101II01D-CT_DS_001.pdf 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 | 69 +++++++++++++++++++ 2 files changed, 71 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 6acd12409d59..3e6c4aa24f85 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -20,12 +20,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 dtb-$(CONFIG_ARCH_K3) += k3-j7200-common-proc-board.dtb 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..aed6dcf3bd7d --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am654-base-board-rocktech-rk101-panel.dtso @@ -0,0 +1,69 @@ +// 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>; + + 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 Wed Apr 26 06:06:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aradhya Bhatia X-Patchwork-Id: 87618 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp31928vqo; Tue, 25 Apr 2023 23:09:27 -0700 (PDT) X-Google-Smtp-Source: AKy350bn7Xwf590wK19jpQVeyWmdvTY0x9BI0BeicJYvFSTlsIC9eI51KtMIGiwzuKOKy325Gcf/ X-Received: by 2002:a05:6a20:54a4:b0:db:7055:d4e9 with SMTP id i36-20020a056a2054a400b000db7055d4e9mr25879510pzk.27.1682489367318; Tue, 25 Apr 2023 23:09:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682489367; cv=none; d=google.com; s=arc-20160816; b=0NcVBOCD3A6UWGs8TcXFxgA2tXs9RV121sQwBveZl4lRF1LZxSMFugw7qyiGuoFLeo Jm9v2/LH+tHpltY4pXNQ07yBntCCrE3U85cjZEKWgwp2i5eaWhqyoJhNl14/3PcXLLpk Odbp7JOLcOyIaKM4LK9BVX6Xpda0O8aoTZ7ELSOOYtfe+6OSBJrYeOS/Dnpap6w3aSpx HHozBbITCQvjryXPyg95/ozYxnx/Ly7upABEmKjYttgvAEcCmhDrx3/qkqHlF+783YYi qcvtMGNgIiQUzesuFGNlrORW+DI2DehlF3C07lxptv8BiRUBLwlDH0nnqV9CNbJf1NNc 3OCQ== 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=YbZmWLi/jLQu4c/gKl90t1nWZqWJIMN59l0ceKEuEbXVT0nhCZQ+xxFLIMOPUQjP1I Ja7tpSkXU62PJilJJa5rqKqzl9c2ldGWMiotxHy40gkGNHsDQ2tE/R1zGknwFp3exbHB fQhl13PEtUWhWCtJrs5mpPAzfZBDi3Q9gGMZVww56qDKLYbAJJKDM6RdlZueIAVHiUrk 2GlEJ9mQ6NFnaTBEp2uIZJ0wgKMnBvXUNIXiv1WWFOZxr/R5vTQXKGFXkAxBe3IUMW+c O+9Q4+P31qZ0xrtN7qE9zbbHNm/ooOWqSkgr3oKuYlqLRxJbNGO8cFjuQ27ckmyEyI1K 8iaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=qeKJaFgI; 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 d32-20020a631d60000000b00502d825633asi11743592pgm.639.2023.04.25.23.09.10; Tue, 25 Apr 2023 23:09:27 -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=qeKJaFgI; 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 S239523AbjDZGHK (ORCPT + 99 others); Wed, 26 Apr 2023 02:07:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231316AbjDZGHG (ORCPT ); Wed, 26 Apr 2023 02:07:06 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 481B5269E; Tue, 25 Apr 2023 23:07:03 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 33Q66R2b080658; Wed, 26 Apr 2023 01:06:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1682489187; bh=NobemyBvtwjcU/aS5ZCzDkB7/FGzb5hRLrC1qI4I3KY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=qeKJaFgIxXLvNp2SXhBsgXIIxMusoMEK4AKQQQm1hSyY48WwePnKFu4hJF2L2WYD3 URjabiCWBCY7mxcKppBI/65UQODoRR+6m5P0bE/GpAqK3mDyW3d54+vy0xFDATQmrm f3Qntjrjy9oZnS6tNtMnjhdelokvflAwtQ+c/OtQ= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 33Q66RlK026577 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 26 Apr 2023 01:06:27 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Wed, 26 Apr 2023 01:06:27 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE112.ent.ti.com (10.64.6.33) 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; Wed, 26 Apr 2023 01:06:27 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 33Q66QTH073579; Wed, 26 Apr 2023 01:06:26 -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 v2 2/2] arm64: defconfig: Enable PWM drivers for TI ECAP and EHRPWM Date: Wed, 26 Apr 2023 11:36:12 +0530 Message-ID: <20230426060612.19271-3-a-bhatia1@ti.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230426060612.19271-1-a-bhatia1@ti.com> References: <20230426060612.19271-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?1764217971022267623?= X-GMAIL-MSGID: =?utf-8?q?1764217971022267623?= 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