From patchwork Wed Aug 9 09:27:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 133143 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2678625vqr; Wed, 9 Aug 2023 02:45:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHGHBl1HC3DGKyi3qJr5ehGGE4wucBmpkcgpLC+i7iBjMRvE9bbP1N0sX/vne3bnCDhEfK+ X-Received: by 2002:a05:6a21:2783:b0:12c:b10d:693d with SMTP id rn3-20020a056a21278300b0012cb10d693dmr1590654pzb.6.1691574302114; Wed, 09 Aug 2023 02:45:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691574302; cv=none; d=google.com; s=arc-20160816; b=xxUz5fgSSQI980/Fq/6DLlwiZ6T7J+rIJ+a2k9fkFF/8MgN2890OMHsLmtGn8uvmFy jzmk/WIrZDSnNYpphE45h26Q6S6lftRWqHr6El4XClkX4DMFHbDCrpWCBzOxlSEq4maq 6Bj/qraj5WtCpOqIjFUW+zQbejxl61CEutqwt3hzM/gcFKL4hh+fZ9CKrLbWmAD06vLG cIYg+YjYKPGnJa0sembV/NClDOvBU12DpOCKWMSc7mcbygsd7IbgbBZwF5Lxuxt9PCt3 JCkyu6CRV6k7VySVYetvVRV04SFlF701/6ogylAgQKbc1eBBcix797qIL601FVFPrz3b 43bw== 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=e/nnkvtaOZ4ysg5K9fZQnsJBqZ43AmRedjxMODdyPSQ=; fh=XxaTlmIpB8G5M8cXR44Z9VEvqpqe6YzQ/MRJDhKrirA=; b=C7/3tHT1b2oa9sqaHW5fmamMaKyxqfKlbS+o5dzV5JD6EF4AG0yILsY9idsV13+IZ/ 70TIOeDP7Qtd51bDQI2VikyxAYOOJEFLpJgbwxWCpKU50jfM/yVfdj+U0YZmaXK7jpLT D3ozpfbJg6F+zJQOOXaUAJ8owtQWzmWo2wX3kFDGfFTIMwW2DQ9gRQfcKpiAMIZ3gEpC eCp+V/8QpQiiInTMDlGRmEYdhrwvnzdkbOjCjVUTy3NRQaXB9Kv3UwiQksTLWZzwfSpf P2AzqG5EmLr1NWuM3x7EYqllCdFu9LA6v9UF8pHNBCt56b62Gu3eBiDAKH/qA8cS1SoH eiuw== 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 o5-20020a170902d4c500b001b9e8ebe5a0si9259183plg.613.2023.08.09.02.44.48; Wed, 09 Aug 2023 02:45: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 S230245AbjHIJ1d (ORCPT + 99 others); Wed, 9 Aug 2023 05:27:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230147AbjHIJ1a (ORCPT ); Wed, 9 Aug 2023 05:27:30 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 56E1719BC; Wed, 9 Aug 2023 02:27:30 -0700 (PDT) Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 5A4548105; Wed, 9 Aug 2023 09:27:28 +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 v2 1/3] bus: ti-sysc: Fix build warning for 64-bit build Date: Wed, 9 Aug 2023 12:27:20 +0300 Message-ID: <20230809092722.11000-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: 1773744215238501729 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 Reviewed-by: Nishanth Menon --- 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 = (enum sysc_soc)match->data; /* * Check and warn about possible old incomplete dtb. We now want to see From patchwork Wed Aug 9 09:27:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 133146 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2690447vqr; Wed, 9 Aug 2023 03:11:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHwQw400h/geXCtKAxun9XeBhMrA12VZNrdTBHL3f2g+N98IRMQVSqwxD/Vv2ImGbCVIADi X-Received: by 2002:a17:907:7788:b0:99b:507d:dc05 with SMTP id ky8-20020a170907778800b0099b507ddc05mr2057389ejc.16.1691575885319; Wed, 09 Aug 2023 03:11:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691575885; cv=none; d=google.com; s=arc-20160816; b=Lu5d4TzHjmQXYC/UAnVcIAyeQ3uojABEz+xhwa3MCPqFI64p59y/W2MAp9pxRZ4Qf3 VFxTJAxYNbjuzkzC6x8Hd19moNpoh0Lh5maqkYlqgfVYJP1sW6OxhF1ZJbFh8nBfs23Y ej/G11AXh2yZm9spLA/E+6Wrm9FH40MFToIm33mX6j06QIpL2oBPA/davT8dxI7urIYC UATd1r4ElS45iJx9QPnnDSVExYKzA4ZET7OYBrAuYjC+2Os0uPJT6ojHvLFq7wNaiepA I5qTM3OPqF+L3TeQJWhd6f+c2Q5qU7+P2ffozhOpYdSvsipwcOwnSGmC59AtmH+p0674 +ZRw== 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=iODZTOMFkINgzVq5IjJo9hFrgN/IxA56+dHo3SZwy64=; fh=XxaTlmIpB8G5M8cXR44Z9VEvqpqe6YzQ/MRJDhKrirA=; b=TW77YVp7X4ctOHN1o9cv1WmQ2QrNGy8nAYJNLqaSkQlcfp6D5gk2pFoP9AYD/eugiI OgYqGmiw9twuEmL1YL/zRATbbHP1BO9xqN4WRe+DFFuUzQLUyrzUBmjp0rjTr3J9VIN2 qa1RjIuGjalyqNIZrOnALiebjVoob71jXVj9dLw4zysoQMLFNVH8GPjRNlzZj31s5Xg8 De6kiEDbrVHhqIyrZ6S9F5JYj5Y90CbDKD5O05DM24URHVn3xw4holkv4Gn39bOIpVeV GzNE62R365aJDxW+bNKVp8bSwEOCtREAiw0pROaUPsERZlfo4YTMVPafrioV0LoQ+HOc 2s7Q== 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 h2-20020a17090634c200b00991cbb3d4a6si4933058ejb.115.2023.08.09.03.11.01; Wed, 09 Aug 2023 03:11:25 -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 S230434AbjHIJ1g (ORCPT + 99 others); Wed, 9 Aug 2023 05:27:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230323AbjHIJ1e (ORCPT ); Wed, 9 Aug 2023 05:27:34 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D1E1A19BC; Wed, 9 Aug 2023 02:27:33 -0700 (PDT) Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id B7E9B816A; Wed, 9 Aug 2023 09:27:31 +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 v2 2/3] bus: ti-sysc: Build driver for TI K3 SoCs Date: Wed, 9 Aug 2023 12:27:21 +0300 Message-ID: <20230809092722.11000-2-tony@atomide.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230809092722.11000-1-tony@atomide.com> References: <20230809092722.11000-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: 1773745875164213787 X-GMAIL-MSGID: 1773745875164213787 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. As this is an interconnect level driver, default to built-in on K3 SoCs to probe the devices connected to the wkup domain like gpio, uart and timers. Reviewed-by: Dhruva Gole Signed-off-by: Tony Lindgren Reviewed-by: Nishanth Menon --- 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 Wed Aug 9 09:27:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 133149 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2698817vqr; Wed, 9 Aug 2023 03:29:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH4nL+PTuDOhINstqSleg1qYhFoSUS93SPbulE7Bvdjnfdt45+tAfqubbrhNDNmrlRfLjI5 X-Received: by 2002:aa7:c2cd:0:b0:523:437b:44ff with SMTP id m13-20020aa7c2cd000000b00523437b44ffmr1751390edp.12.1691576982748; Wed, 09 Aug 2023 03:29:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691576982; cv=none; d=google.com; s=arc-20160816; b=TLpMtUNsWgJc5Q1Qg5I3i7JNyBYe1zgY4YQc8qblnWEix25NnuQxWqxplcG9nW4s/F 6Y6lAaMdEwPyoIEQZTc/x5xkKD9HIwz3m7I+1G2LPpoexhuu5gG1zOriX4akuepjVr/x iMNE5fjBUKxwycnvh6rHzsLxHzXC6A6eNgk6xg8i5IyVLLr7TLKJsA5Eyhe7YA/B5tpS ypvJhGTMIyzAqRLaLSKLGJ12g4Ax/olRRKF8z8pY1Tep/RnQrjc8l4LDha8NOO504lFQ sCGu6Fu5hgdQYYOFnwjTaJVhX5g8OIA3npRSy+IrtyXUZmID+vb7CsyyVJ849WHk694S MJmA== 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=sfIMfO50grwmAIJg3/uaL3vX+kOEjxBSpfeHOPyC+fJMCS75lT1BOHbqFt0lAmt08i Vqkn78XOMgxss+yuR15b/Kgy8myxBiQbXpQfe5umzSXjT2HaVfE8sHBEbdKb1t6Xelzc LuVapgqQ69b/mqde/XwuD4Xr+5SBdYOIKjq7tFwGNQN17Olz/gjTfKdqDAa6yV80yl+X B1W/GBBuTZwc1743c5fEPvfqsKWo3DgxiNZzyZuHkS7kcl54RqUstv8JuIZx6NUkbXYq tKDtkGEMePYSgOn/t7r0PmELMOTGbaoaOn1yXpEghY8YtstpaUChCCf72abeQKV0oKAr cT8g== 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 u11-20020a05640207cb00b00522d86e9357si8469022edy.228.2023.08.09.03.29.19; Wed, 09 Aug 2023 03:29: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; 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 S231454AbjHIJ1k (ORCPT + 99 others); Wed, 9 Aug 2023 05:27:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230480AbjHIJ1i (ORCPT ); Wed, 9 Aug 2023 05:27:38 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4BA7A19BC; Wed, 9 Aug 2023 02:27:37 -0700 (PDT) Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 315B6810A; Wed, 9 Aug 2023 09:27:35 +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 v2 3/3] bus: ti-sysc: Configure uart quirks for k3 SoC Date: Wed, 9 Aug 2023 12:27:22 +0300 Message-ID: <20230809092722.11000-3-tony@atomide.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230809092722.11000-1-tony@atomide.com> References: <20230809092722.11000-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: 1773747026198261577 X-GMAIL-MSGID: 1773747026198261577 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 Reviewed-by: Nishanth Menon --- 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,