Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp10103736rwr; Fri, 12 May 2023 04:01:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ50Sp8SNOZV/+fyyscNooMaJ55bjNfenr9JEK0Ysl3rBrN6BYzxEoft/GuTjvKZlCiqZbbK X-Received: by 2002:a17:90b:ecd:b0:252:a7b3:c24c with SMTP id gz13-20020a17090b0ecd00b00252a7b3c24cmr3241293pjb.20.1683889302002; Fri, 12 May 2023 04:01:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683889301; cv=none; d=google.com; s=arc-20160816; b=Ji5fbARASYVlZTv6iGAlRKd1/9WoUw4rV0HlV3LZRzH05EdFmH6fwkTIcfl+SuNwAG T//eC2Al+uSVtF0re9C2/O+8ViX7CPiRHTcY7OXqHtO+JGAKNAEB3XAkweR0hXWUi5IT MA+nzgc1YJLpFlv5z3JPZDI7pZFORAH07eMkbgZ8G0y7rD1E6SENem2CnZOgxd58VSiu fPlQ0nNCNy5AzdODResxGWXei4sj89mg6vkI6Xf9MwMlRCOqZ4mnqEMnuA9unSue5dKN Tg6i0CDPXAV7hCv9I1aE4L8lF0fBfgBKl3VSdBJDXc8TEYLKzNupfQb6LiXZlvTh5Nrt QoPg== 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:dkim-signature; bh=IgQuUXmZ4WixIr+d0XxzAxPcJbzSxGbi2RXLR6xLwjE=; b=OzdVFEW31m5cx3V9rkJand9iibqbBEl4T+rEwGk2MKY+G1kVDj11P+b+hoc7XL7wRT x1B41AJahy1NgPQ41CA/q5V538POZTZFd1KICQsq5uqKs0dOmursI1JLozmGja4rz7hF mDevarmT1MB4niegbUmhws/zMErtEcbLVm6o3sDx6cA3ipp1bd5j9zwFdGyAxOqk5a3P bP2TAeV2yM7qnCBZVSqtJv/XvaM1HBL0vnn1wshKYcLwwpkJo7DTMI5Ke0arQWmrBSER LbwP79+1NGFLdhPFR+47JcE+OPTU6ZGhBTCinKCgrhl8cNVnIth7LWkPJCSIxZMahSi7 tAng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=LsZnkVp2; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020a63e855000000b0050f817c6c82si9017293pgk.232.2023.05.12.04.01.27; Fri, 12 May 2023 04:01:41 -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=@gmail.com header.s=20221208 header.b=LsZnkVp2; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240096AbjELKiH (ORCPT + 99 others); Fri, 12 May 2023 06:38:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240319AbjELKiF (ORCPT ); Fri, 12 May 2023 06:38:05 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C62C2173F; Fri, 12 May 2023 03:37:32 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-64395e2a715so9825416b3a.3; Fri, 12 May 2023 03:37:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683887851; x=1686479851; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=IgQuUXmZ4WixIr+d0XxzAxPcJbzSxGbi2RXLR6xLwjE=; b=LsZnkVp2z5gmBN59ZR6NmCkIlcYpFR+zYSP8VdW0xUsUued/kO7rFSV40YrS/rVOoa o0cER8YR4yfJKbI3cRE5nCX8gBkMs72tcNKfgzwHO4LCiXniphKa8IqWPFQy+sbxtN/M NegSZrFMIJHKY/5WCPDJLUaHpam+Ke3UQtsFskWqF+AXXqx01LWEV2bRlU9TItWG043w sabR8m3ldxyJgFuyQB+uCOWzR6cxU7PmiHb4s8mjlIkdimL/0zFHlpdsZkgstC28WSel awXDU7wZUkiRfT3AO9oGv8TkBBiSsXYwob3lDvzN7OR9KxCkbEAq4eWgqQBxTNtqb+fw ovJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683887851; x=1686479851; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IgQuUXmZ4WixIr+d0XxzAxPcJbzSxGbi2RXLR6xLwjE=; b=bGih5u31i8chjFPtjBe7o1npu/YWaFjaR9YYcg07Tc8CL9hY5by5zwZm8vSGkNrTe8 /GNwbTDO5kHD5QO1WQ4s5g1HTQ5+vTWvCwWNnTesp0jqEKZ38BNhWbEe+9T0uTdlAhyU Y/nf2H+GkmomK7y/umNP9GBQlJPIycTOmHcMb86o6ikNR7JbXtiQYKniQ6Rde5pypMQN 16/P0nKpQ5qt7R0vNVgNHIb9f2PB2ejm6cRNPnKB6yU+mpxhf1MX9e+zapKpmbMhUgl2 ARNTA76MicqO8cKmsbbQIh0IPM970YSI7CyNXamCGn7MckyLX9IbuCeCBQ/kTum9v8ac xYHQ== X-Gm-Message-State: AC+VfDxK2NKrf8r7yaID9F6m/Bl864wbJ508wLRelmAiTwFZomQ0em5N Fcqs4t0JE32tQm5jRD0JSFV481lu/ZBBYn/p X-Received: by 2002:a05:6a00:b55:b0:648:c1be:496 with SMTP id p21-20020a056a000b5500b00648c1be0496mr11634178pfo.22.1683887850992; Fri, 12 May 2023 03:37:30 -0700 (PDT) Received: from kelvin-ThinkPad-L14-Gen-1.lan ([103.184.129.7]) by smtp.gmail.com with ESMTPSA id k5-20020aa792c5000000b0063b89300347sm7009485pfa.142.2023.05.12.03.37.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 03:37:30 -0700 (PDT) From: Keguang Zhang To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org Cc: Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Thomas Bogendoerfer , Stephen Boyd , Keguang Zhang Subject: [PATCH v4 0/3] Move Loongson1 PWM timer to clocksource framework Date: Fri, 12 May 2023 18:37:21 +0800 Message-Id: <20230512103724.587760-1-keguang.zhang@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Move Loongson1 PWM timer to clocksource framework. Adapt the driver to clocksource framework with devicetree support. Update the Kconfig/Makefile options accordingly. Changelog V3 -> V4: Replaced the wildcard compatible string with specific one V2 -> V3: Remove the reference to regs-pwm.h V1 -> V2: Delete the obsolete header file regs-pwm.h Keguang Zhang (3): MIPS: Loongson32: Remove deprecated PWM timer clocksource dt-bindings: timer: Add Loongson-1 clocksource clocksource: loongson1: Move PWM timer to clocksource framework .../timer/loongson,ls1x-pwmtimer.yaml | 48 ++++ .../include/asm/mach-loongson32/loongson1.h | 1 - .../include/asm/mach-loongson32/regs-pwm.h | 25 -- arch/mips/loongson32/Kconfig | 37 --- arch/mips/loongson32/common/time.c | 210 ---------------- drivers/clocksource/Kconfig | 9 + drivers/clocksource/Makefile | 1 + drivers/clocksource/timer-loongson1-pwm.c | 236 ++++++++++++++++++ 8 files changed, 294 insertions(+), 273 deletions(-) create mode 100644 Documentation/devicetree/bindings/timer/loongson,ls1x-pwmtimer.yaml delete mode 100644 arch/mips/include/asm/mach-loongson32/regs-pwm.h create mode 100644 drivers/clocksource/timer-loongson1-pwm.c base-commit: 31c6ed4e89187beef8fe2f979c8881ca94839427 -- 2.39.2