Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp575222rwr; Wed, 26 Apr 2023 03:34:43 -0700 (PDT) X-Google-Smtp-Source: AKy350bC+irPjoZcZkvA2j8PEUfwd0j2hx7DNxtrOYYk9BhA+Qvc5f6HX4jxe2FA77+iGZ6P/cDz X-Received: by 2002:a05:6a20:4406:b0:f4:4ff5:11af with SMTP id ce6-20020a056a20440600b000f44ff511afmr14382620pzb.14.1682505282846; Wed, 26 Apr 2023 03:34:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682505282; cv=none; d=google.com; s=arc-20160816; b=kP+JgvtjWrDLuv+U8nlUA6Tw1/bUMjA+da9mqkLFqQt+MHuMFVM/Ld719g0P6V8hx4 RA/031Ctn8tYKNmqfiIXlY0vOt5GIxx68bITdThzAzwMMyKjltLU2bY2YIaAhRXCrhzP SMxEJ5M0sbygl4tcvbf0cPuUpLewDSF2/RhAy1F/HXpxjxzee9nHCdKOCET/gQipAaGx Wgsw3ivnIB65ORDfM5c6pSA2qHCRdH0K4Nh7CnPU+XY9HzbHWY1sQry6ahCEImYmXb5r AEppb/PW0xEtto+OY5171IcyDoigBrOhyR6WdzCum1ysS7DnUS/FxcnV/M88dNSoTtjw Lf4g== 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=waGw9Blth8eqen3IxADKOrXO/8la1G/GfpzU9XVAG54=; b=wRcOVqz6XFGUF/pueCLWDz3cQQzmXzCDsDbqoXlj5N4+F1+giJew+vIK4a/uOlvRT0 s01FyxHN9MpJEKqir9IoWOaE01rYYTwlDwjXgYmrVjMDDSbjSS+2J0FmHPkwqIbD0vjm 3vJHBkw+CYaAtLkw1Can9JQKr+SRHluujwwMUh23ge24N6ShFplzWq3AXH9jvou9yihH oSGMnicyEgE1O+GUynWfPPBxQqd4+a9bkS40E79d4/csXfnsrH0uvmvM/8JpuzlmxPwo 8+ehm2CEW+hlp6bCI6XQPbGaxHbRqLHtVgjo/y+6zB3BwYWwRDB88TUamqa4vryPIogT QPWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Tu5DWMEL; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x63-20020a638642000000b0051b7f451cc6si6433485pgd.539.2023.04.26.03.34.29; Wed, 26 Apr 2023 03:34:42 -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=Tu5DWMEL; 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 S240488AbjDZKd3 (ORCPT + 99 others); Wed, 26 Apr 2023 06:33:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240181AbjDZKdK (ORCPT ); Wed, 26 Apr 2023 06:33:10 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F140525A; Wed, 26 Apr 2023 03:32:49 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 33QAWY9B059994; Wed, 26 Apr 2023 05:32:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1682505154; bh=waGw9Blth8eqen3IxADKOrXO/8la1G/GfpzU9XVAG54=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Tu5DWMELx0PV0C1pUK/+GIA/Z8WNUp7fHapE2wyK574wYdYpcSg4ylwBESOcF/Ui3 Qv1t6I49EXdgKx0GJQJiVhlMDGCrGxCUza+fRwwQ4uw0pti5jO8V8axyYE08b0mi1D K4bYpL4iGlEsH8h60G2yctKUWta65fWbJuFjZ5qs= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 33QAWYm8112864 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 26 Apr 2023 05:32:34 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE104.ent.ti.com (10.64.6.25) 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 05:32:33 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) 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.16 via Frontend Transport; Wed, 26 Apr 2023 05:32:33 -0500 Received: from udit-HP-Z2-Tower-G9-Workstation-Desktop-PC.dhcp.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 33QAWLRU036567; Wed, 26 Apr 2023 05:32:30 -0500 From: Udit Kumar To: , , , , , , , , , CC: Udit Kumar , Tony Lindgren Subject: [PATCH 2/5] arm64: dts: ti: k3-j7200: Configure pinctrl for timer IO Date: Wed, 26 Apr 2023 16:02:16 +0530 Message-ID: <20230426103219.1565266-3-u-kumar1@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230426103219.1565266-1-u-kumar1@ti.com> References: <20230426103219.1565266-1-u-kumar1@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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 There are timer IO pads in the MCU domain, and in the MAIN domain. These pads can be muxed for the related timers. There are timer IO control registers for input and output. The registers for CTRLMMR_TIMER*_CTRL and CTRLMMR_MCU_TIMER*_CTRL are used to control the input. The registers for CTCTRLMMR_TIMERIO*_CTRL and CTRLMMR_MCU_TIMERIO*_CTRL the output. The multiplexing is documented in TRM "5.1.2.3.1.4 Timer IO Muxing Control Registers" and "5.1.3.3.1.5 Timer IO Muxing Control Registers", and the CASCADE_EN bit is documented in TRM "12.6.3.1 Timers Overview". For chaining timers, the timer IO control registers also have a CASCADE_EN input bit in the CTRLMMR_TIMER*_CTRL in the registers. The CASCADE_EN bit muxes the previous timer output, or possibly and external TIMER_IO pad source, to the input clock of the selected timer instance for odd numered timers. For the even numbered timers, the CASCADE_EN bit does not do anything. The timer cascade input routing options are shown in TRM "Figure 12-3224. Timers Overview". For handling beyond multiplexing, the driver support for timer cascading should be likely be handled via the clock framework. Cc: Nishanth Menon Cc: Vignesh Raghavendra Cc: Tony Lindgren Signed-off-by: Udit Kumar --- arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 18 ++++++++++++++++++ .../arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi b/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi index 555bde0e7fda..56a793d50a1d 100644 --- a/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi @@ -392,6 +392,24 @@ cpts@3d000 { }; }; + /* TIMERIO pad input CTRLMMR_TIMER*_CTRL registers */ + main_timerio_input: pinctrl@104200 { + compatible = "pinctrl-single"; + reg = <0x0 0x104200 0x0 0x50>; + #pinctrl-cells = <1>; + pinctrl-single,register-width = <32>; + pinctrl-single,function-mask = <0x000001ff>; + }; + + /* TIMERIO pad output CTCTRLMMR_TIMERIO*_CTRL registers */ + main_timerio_output: pinctrl@104280 { + compatible = "pinctrl-single"; + reg = <0x0 0x104280 0x0 0x20>; + #pinctrl-cells = <1>; + pinctrl-single,register-width = <32>; + pinctrl-single,function-mask = <0x0000001f>; + }; + main_pmx0: pinctrl@11c000 { compatible = "pinctrl-single"; /* Proxy 0 addressing */ diff --git a/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi index 1c09e442b379..abf88238f019 100644 --- a/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi @@ -173,6 +173,24 @@ chipid@43000014 { reg = <0x00 0x43000014 0x00 0x4>; }; + /* MCU_TIMERIO pad input CTRLMMR_MCU_TIMER*_CTRL registers */ + mcu_timerio_input: pinctrl@40f04200 { + compatible = "pinctrl-single"; + reg = <0x0 0x40f04200 0x0 0x28>; + #pinctrl-cells = <1>; + pinctrl-single,register-width = <32>; + pinctrl-single,function-mask = <0x0000000F>; + }; + + /* MCU_TIMERIO pad output CTRLMMR_MCU_TIMERIO*_CTRL registers */ + mcu_timerio_output: pinctrl@40f04280 { + compatible = "pinctrl-single"; + reg = <0x0 0x40f04280 0x0 0x28>; + #pinctrl-cells = <1>; + pinctrl-single,register-width = <32>; + pinctrl-single,function-mask = <0x0000000F>; + }; + wkup_pmx0: pinctrl@4301c000 { compatible = "pinctrl-single"; /* Proxy 0 addressing */ -- 2.34.1