From patchwork Fri Aug 4 10:38:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 131096 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:44a:b0:3f2:4152:657d with SMTP id ez10csp180412vqb; Fri, 4 Aug 2023 04:04:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHXgBHY9DTUtb1uMmVedubSQZjK3lXmT0oRrcOdiXMU+EsvxY/Neyf5zw1M6OpIHfckqKtA X-Received: by 2002:a05:6a20:a129:b0:132:86ea:4725 with SMTP id q41-20020a056a20a12900b0013286ea4725mr1287213pzk.45.1691147095299; Fri, 04 Aug 2023 04:04:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691147095; cv=none; d=google.com; s=arc-20160816; b=veHyRrpQh+zuxGZObqtN85POKWrwQWlA3zstzK1cIWXUn42xR2b/jZFdlFr0PYHK06 XYWvlqGzPkvsXGksTe21nIh6TgWNJ2ccuDXG3475VgSsJkq3OiAJPd7fXI6jdCofPMIk humw6JaQ9OPjYAMg9QiWm9G2C25Lqf5ILdbsKfH2tI4/tT564PtFUySrAuCN5Ug8tYod UBjOFUAEbQF2Hq0reaxsMxrino2ZhgYqZoWI9IwHwVLGZa1gc9y/KSK3m2GGRKthcH8R bECCn3Ae97BZKHScfvwC8j9dtazT0MjmSyUtJNF26VE36j54Vxktz6ZrWTMbhEeXSHCc FYig== 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; bh=6C/Qbli2Zycify8wDh3ADSZttDDgo+5kPxc6Fh/TjmA=; fh=XxaTlmIpB8G5M8cXR44Z9VEvqpqe6YzQ/MRJDhKrirA=; b=lYVc+RNcapw/fnFvRDhSf531m6GJenpfO+pCnt02ZhZFJ4svW1s7722c4rpwhFv8TU 1aSumTuyDNUcQOTN7uww9g8skAyt81Cmrszy4x6j93i74dW5/dd8nPv+ur5fRyUSc/+X Y8cnUUqztcNR9ZlrEiFuai+jTcMF9lptNxN+ZDtLk0DGUaZzKBAj/SlleYfocP1lKuWN NVCPPecc1teIahxtRbCMpiNY8TcyRnOsPgcAVEBIEeEA6dbdvF8rhrrh5JRJDYEThO71 DZLiijwVeadMkAIZbUDNfQIrUviXi5KkVGvh3V+iqF0dWP3TySIJ8OvHUddEtNfulCeV HY3Q== ARC-Authentication-Results: i=1; mx.google.com; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i23-20020aa78d97000000b006768627bc5asi1448238pfr.199.2023.08.04.04.04.30; Fri, 04 Aug 2023 04:04:55 -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; 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 S231442AbjHDKjJ (ORCPT + 99 others); Fri, 4 Aug 2023 06:39:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229791AbjHDKjH (ORCPT ); Fri, 4 Aug 2023 06:39:07 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9FCD646B3; Fri, 4 Aug 2023 03:39:06 -0700 (PDT) Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id AF63880F7; Fri, 4 Aug 2023 10:39:04 +0000 (UTC) From: Tony Lindgren To: linux-omap@vger.kernel.org Cc: Dave Gerlach , Dhruva Gole , Faiz Abbas , Greg Kroah-Hartman , Keerthy , Kevin Hilman , Nishanth Menon , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/3] bus: ti-sysc: Fix build warning for 64-bit build Date: Fri, 4 Aug 2023 13:38:57 +0300 Message-ID: <20230804103859.57458-1-tony@atomide.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE 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: INBOX X-GMAIL-THRID: 1773296256632784776 X-GMAIL-MSGID: 1773296256632784776 Fix "warning: cast from pointer to integer of different size" on 64-bit builds. Note that this is a cosmetic fix at this point as the driver is not yet used for 64-bit systems. Fixes: feaa8baee82a ("bus: ti-sysc: Implement SoC revision handling") Signed-off-by: Tony Lindgren Reviewed-by: Dhruva Gole --- drivers/bus/ti-sysc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -3104,7 +3104,7 @@ static int sysc_init_static_data(struct sysc *ddata) match = soc_device_match(sysc_soc_match); if (match && match->data) - sysc_soc->soc = (int)match->data; + sysc_soc->soc = (unsigned long)match->data; /* * Check and warn about possible old incomplete dtb. We now want to see From patchwork Fri Aug 4 10:38:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 131089 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:44a:b0:3f2:4152:657d with SMTP id ez10csp173682vqb; Fri, 4 Aug 2023 03:51:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHGZyWhW/OIKMG6plRXJxDp7D5OHE+4Zajadnlg7PRHLMK7ILn2n2XqZPLvjVbOL6h4mpDh X-Received: by 2002:aca:1007:0:b0:3a7:372f:c1b1 with SMTP id 7-20020aca1007000000b003a7372fc1b1mr1683195oiq.48.1691146305916; Fri, 04 Aug 2023 03:51:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691146305; cv=none; d=google.com; s=arc-20160816; b=uBPY91chtDd1W/8ZIGGlOYN/0Uf7oW/lbGRkj7wtfjQyXPhuq16HpWMldQWJCJWA98 CHxkpd1WWHZkwwhMxlg4jsN/+Tnqqko85ke05ltVnSB3SHV7mdHQvfSP5uGZ6/3SVBq7 lQS44kg4LXHa8kYAIycnOfo+L7VZhAdIerzzgXJR3aRrLthBorIa6WPkSCFPeLKhmCdP a6yNkHKo1CkacFgw9lJklS3q2ZJ5IQwj4C9wbTn+B18pvYV5+quBCDAOaTB5CTzM20B5 iU8Q8jhNYevixhSXehLd4SjjekFg/gCudtDWrWu17jBArdjq7Vr484CrIYcPQGPculBH 7Jbg== 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; bh=kxF7OqhnRu4VXM5HeF3Hz0VwU2ejTIcP1iB4sc0cfr0=; fh=XxaTlmIpB8G5M8cXR44Z9VEvqpqe6YzQ/MRJDhKrirA=; b=1EbrdFcHPSdOY32k8f86xdk25SVrGsf+kIF14d+L1mnF6FoCvGH8IesPFrHVDf/VWd wyAgbNT70W5W7I0UF7N2Hdb5pcWQkjtiGYRCcxiwVgkCFnM76AEaRhQO7VpvD1soZkJA GiPmMvyBZ+WFIjO29Smg0OGUmz2D8ajfb1x07DPLRXA4ZR2LegP94WiLk7DWvJOJW0ya tEUBURWOTXrYg5tAzPRz3yQheZHd/kZm4wLgADKf3ces9I6zMJ8XbshDZHL3FqJatlxP DFuPSC/Kz/SJOPqhsb3V25ODT9PVLxiCsAl+hS9OA2ftbnYUJOQFAdSPEdWqjOCKZcdK M7Ig== ARC-Authentication-Results: i=1; mx.google.com; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw5-20020a056a00450500b006871527e5cdsi1518700pfb.345.2023.08.04.03.51.32; Fri, 04 Aug 2023 03:51:45 -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; 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 S231466AbjHDKjN (ORCPT + 99 others); Fri, 4 Aug 2023 06:39:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229791AbjHDKjL (ORCPT ); Fri, 4 Aug 2023 06:39:11 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 93C0D46B2; Fri, 4 Aug 2023 03:39:10 -0700 (PDT) Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 8D2C58140; Fri, 4 Aug 2023 10:39:08 +0000 (UTC) From: Tony Lindgren To: linux-omap@vger.kernel.org Cc: Dave Gerlach , Dhruva Gole , Faiz Abbas , Greg Kroah-Hartman , Keerthy , Kevin Hilman , Nishanth Menon , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/3] bus: ti-sysc: Build driver for TI K3 SoCs Date: Fri, 4 Aug 2023 13:38:58 +0300 Message-ID: <20230804103859.57458-2-tony@atomide.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230804103859.57458-1-tony@atomide.com> References: <20230804103859.57458-1-tony@atomide.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE 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: INBOX X-GMAIL-THRID: 1773295428674955990 X-GMAIL-MSGID: 1773295428674955990 Allow building ti-sysc also for K3 SoCs. This allows configuring the wkup domain devices for SYSCONFIG register wake-up events in a generic way. Signed-off-by: Tony Lindgren Reviewed-by: Dhruva Gole --- drivers/bus/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/bus/Kconfig b/drivers/bus/Kconfig --- a/drivers/bus/Kconfig +++ b/drivers/bus/Kconfig @@ -210,7 +210,8 @@ config TI_PWMSS config TI_SYSC bool "TI sysc interconnect target module driver" - depends on ARCH_OMAP2PLUS + depends on ARCH_OMAP2PLUS || ARCH_K3 + default y help Generic driver for Texas Instruments interconnect target module found on many TI SoCs. From patchwork Fri Aug 4 10:38:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 131093 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:44a:b0:3f2:4152:657d with SMTP id ez10csp176618vqb; Fri, 4 Aug 2023 03:59:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEr72HJ1Dt2k1WzLfNp3A/1ekk00kQRaG3Fdcpa5yMIJjNqNXRY5zvxRZCVx7T3pFgUcIBA X-Received: by 2002:a05:6512:158f:b0:4fb:cff5:3963 with SMTP id bp15-20020a056512158f00b004fbcff53963mr1181249lfb.60.1691146742323; Fri, 04 Aug 2023 03:59:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691146742; cv=none; d=google.com; s=arc-20160816; b=KhsTvLL7ivwv/NLzjuajQXk2fslGbNuVXUH+FFrcuHy493zf/Pz7hSy9mXg72Wbl4A TfWwswAchlFdolw8hTkoSmph/hGUe+G7mrZ9VlM5Hc0RhKAiK6XjXdWadyRZeSZ8CiA1 yULy8MSkJurRw1duRnEJYvDP5mfTjcqczjXxna/PVglZXfN6bCpJy7HiC0UUGLFAhEEN 5Z0fNltJE8GQEyDpELRfloQPJN7NW38cHx9J7buVeJv5esqdB1+cC6byb8WcTpBPOiVP gsqSniWW0sGUrNJrOQK2Zxp0+xzY5cVUQ9CZ8y2UjoQrtlHbNVKooN33g+WD8OfUYyO2 EIMg== 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; bh=KM+PnVByUlQDwL0Uf9NeK+RtlrNMTpSVj0p13/EunF4=; fh=XxaTlmIpB8G5M8cXR44Z9VEvqpqe6YzQ/MRJDhKrirA=; b=JgsthMi0GsVNh8yWN28Er8713nViOpIJmsVKG+HHMU3hvFUr/NBKFoE5RUy28C1Cp0 EaDRBCZ49twlhBgyK2qXdWfvQTP9gOQ3F92etqqvgmgZoLvMZCwEx8ZQWqJxC4ORZhpQ 9rzY7e8UMC4d2SSjqDmMLlE01Qx0SbGINZpYggBZeS2BFJDwuebFPXm6a0cb+Sy9+4N4 eYkoQxujpQwpZddVtuAwvT8DnEwWlJmsyObqXUdG3cJeQv13ed3TUMIj9lI+0oi91+VA YyHXCL40pHRULxe+NQ1swRgIG8Q8yq7hCaV5fgYMkat7IPkjz4O09qpJgIrc9ORcgGa+ nlfg== ARC-Authentication-Results: i=1; mx.google.com; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z25-20020aa7cf99000000b00522ac23622dsi1454462edx.168.2023.08.04.03.58.37; Fri, 04 Aug 2023 03:59: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; 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 S231490AbjHDKjR (ORCPT + 99 others); Fri, 4 Aug 2023 06:39:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231481AbjHDKjO (ORCPT ); Fri, 4 Aug 2023 06:39:14 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0F5C346B3; Fri, 4 Aug 2023 03:39:14 -0700 (PDT) Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 0C3488150; Fri, 4 Aug 2023 10:39:11 +0000 (UTC) From: Tony Lindgren To: linux-omap@vger.kernel.org Cc: Dave Gerlach , Dhruva Gole , Faiz Abbas , Greg Kroah-Hartman , Keerthy , Kevin Hilman , Nishanth Menon , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/3] bus: ti-sysc: Configure uart quirks for k3 SoC Date: Fri, 4 Aug 2023 13:38:59 +0300 Message-ID: <20230804103859.57458-3-tony@atomide.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230804103859.57458-1-tony@atomide.com> References: <20230804103859.57458-1-tony@atomide.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE 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: INBOX X-GMAIL-THRID: 1773295886838115559 X-GMAIL-MSGID: 1773295886838115559 Enable the uart quirks similar to the earlier SoCs. Let's assume we are likely going to need a k3 specific quirk mask separate from the earlier SoCs, so let's not start changing the revision register mask at this point. Note that SYSC_QUIRK_LEGACY_IDLE will be needed until we can remove the need for pm_runtime_irq_safe() from 8250_omap driver. Signed-off-by: Tony Lindgren --- drivers/bus/ti-sysc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -1525,6 +1525,8 @@ static const struct sysc_revision_quirk sysc_revision_quirks[] = { SYSC_QUIRK_SWSUP_SIDLE | SYSC_QUIRK_LEGACY_IDLE), SYSC_QUIRK("uart", 0, 0x50, 0x54, 0x58, 0x47422e03, 0xffffffff, SYSC_QUIRK_SWSUP_SIDLE | SYSC_QUIRK_LEGACY_IDLE), + SYSC_QUIRK("uart", 0, 0x50, 0x54, 0x58, 0x47424e03, 0xffffffff, + SYSC_QUIRK_SWSUP_SIDLE | SYSC_QUIRK_LEGACY_IDLE), /* Quirks that need to be set based on the module address */ SYSC_QUIRK("mcpdm", 0x40132000, 0, 0x10, -ENODEV, 0x50000800, 0xffffffff,