Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2482442rwb; Sat, 29 Jul 2023 07:39:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlGspAjE3SEHvUJe9hMx9GkY6PVgJcgt1q4vwDx3NtpEjFs1NgR4x7zD1jFGRqPurqJFDR0v X-Received: by 2002:a05:6a00:23cc:b0:668:82fe:16e2 with SMTP id g12-20020a056a0023cc00b0066882fe16e2mr6011690pfc.16.1690641594652; Sat, 29 Jul 2023 07:39:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690641594; cv=none; d=google.com; s=arc-20160816; b=0pQazu/Mi4HBfkfqshlriBaQ9ZPWPQfJ+plFiMV4NgiU7UzvYRvl+i/K8qgYeEAD3E SlNszZVQs90UMd+huXYCWJeytp1IljezQ4OVI5VLLInqIwr5i+CnJ102D57BPnBvjwDM mh9nL40lJjYBsHKd1oDZDtmyvOLgNJs2yqtFPkn4gwx7qU5FibIFZkJC8ivuKYD//e+D YI+ey7H/skXCAvuV+yXhbQEECMHTnxnF0nCpeYdcUzOobTwyiXMqP11OQGHhoBz1yymV dBiCBkMpqsGWYe/xL9xAN2KQ00luDCo2KV9ZohXa3JgaEgH+pETBmvGI2G7jo8oj0oR+ UrJQ== 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=1yDKZhSFyl6Vqkq5lJY1PJ7SBhTOo01CltEmeQrjW88=; fh=ifpYacT0KZQ30J86Uul59nuvdyFO+Oov/r6N4ooDcgc=; b=LAQFPoNbKzPKXQKGSpsiXQM6+SGGahHPvUIpwgGFxDa9maa0OzwMBQl62MrGdWS9AY rj/QGHv/dqTCLheQIKUpEFPhqvWwTShtBWd0cDwrWJacpo1cChs46UXQShjX83RV/FEU aaoThpKRH43PJ5U5bH+VRNQ98cPEnINTePIZyMT85Dsf5ns1G3HWxkJj61zrnCmL15tA 9pQ+xxlo4IUJ/h0CBrUcroYM/X9VqGGJ2z0copmePPnLFSzoyPIL4Lo05zj3ejHEDsFb HTaYTdqxo6lxmdkqoX+pJnpm1q0tcA/xi/JfZwJNsTSYf3IvhKGE0F2qeoRO+TnjKr5x 7C8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Ck9iXAzL; 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 s20-20020a632c14000000b0055c96379d00si2964762pgs.710.2023.07.29.07.39.41; Sat, 29 Jul 2023 07:39:54 -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=Ck9iXAzL; 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 S231316AbjG2NpU (ORCPT + 99 others); Sat, 29 Jul 2023 09:45:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231326AbjG2NpK (ORCPT ); Sat, 29 Jul 2023 09:45:10 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F38D44B9; Sat, 29 Jul 2023 06:44:40 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-68706b39c4cso1554310b3a.2; Sat, 29 Jul 2023 06:44:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690638260; x=1691243060; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1yDKZhSFyl6Vqkq5lJY1PJ7SBhTOo01CltEmeQrjW88=; b=Ck9iXAzLlAoDyGGjv9AB+7dbgnS2JB2RNp0Qyttqmrn8JhrM3rIjphTHjFLcNbjZwR r6ZTVLu+xcJ4Aod11ETn/2aAEOD5P2ioHHkVd5TX6GSBJ1GGUGcUsQvT75ueTm+ku3EQ NwmcADS4onEuUT58X0rZotXzVJfDc1/sPRNEWB11KMUNr6TmZQPwoh3vhkQUdsokGXL2 CbQ36pb2NdNXkALC9MDly9myERrSC+vHx4q6rFRKoR9KRFc7/hrA7RWqOXjHVJ3pZa7o dIdgf92FDXc0eiXM0e3oMFiLF+X38tc+DVU7heh89hv7Rqy0MzeoA0eHv6RAh4kRyxKy 9nqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690638260; x=1691243060; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1yDKZhSFyl6Vqkq5lJY1PJ7SBhTOo01CltEmeQrjW88=; b=SYWS7+SBbRUXgt7s9KzhtFRQTyu+5RLGQI4bT7d9AHZalG2HHRsahCrKyir4U+rql4 D47RU1aLmr3nPRrKNf474Pfi3CAkAeGMDMlgAxHyyAtQ32WponfHYoMf9RUWdD4Y4Gfy WaKbuygNWjFCiEOX6feHcQste5rD2EygrGKUzBjCzP33WR0H5TXzu0DguiS2HfLN3xFs vtS1hVyzLICj6Eq1OQXRVo5Wy125wTAAzpEqd51AViU5HVL74SEH3CkRpScbU7diP2Yr po8jBlGNNjwQE6QVPBY3ituo/kLShL1KyI0DxeBSFH29lDZBTZ2OdfUFtCDr/5FsIfXD BFfQ== X-Gm-Message-State: ABy/qLa9l+08HhnRAPzRBKpKuJw0H01GXKUIxzeNPM6fRfuSlTllAe3N CFaBQW0iVZREQe1xOCv/RKSyPMfgV+Ox1g== X-Received: by 2002:a05:6a00:1150:b0:675:ef91:7922 with SMTP id b16-20020a056a00115000b00675ef917922mr4952193pfm.4.1690638259866; Sat, 29 Jul 2023 06:44:19 -0700 (PDT) Received: from kelvin-ThinkPad-L14-Gen-1.. ([38.114.108.131]) by smtp.gmail.com with ESMTPSA id x13-20020aa793ad000000b006871bea2eeesm1257166pff.34.2023.07.29.06.44.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jul 2023 06:44:19 -0700 (PDT) From: Keguang Zhang To: linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Thomas Bogendoerfer , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Keguang Zhang Subject: [PATCH 14/17] mips: dts: loongson1b: Add PWM timer clocksource Date: Sat, 29 Jul 2023 21:43:15 +0800 Message-Id: <20230729134318.1694467-15-keguang.zhang@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230729134318.1694467-1-keguang.zhang@gmail.com> References: <20230729134318.1694467-1-keguang.zhang@gmail.com> 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 Add the device node of PWM timer clocksource for Loongson-1B boards. Signed-off-by: Keguang Zhang --- arch/mips/boot/dts/loongson/loongson1b.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/mips/boot/dts/loongson/loongson1b.dtsi b/arch/mips/boot/dts/loongson/loongson1b.dtsi index d7f5cebae0a9..624eb179b6f5 100644 --- a/arch/mips/boot/dts/loongson/loongson1b.dtsi +++ b/arch/mips/boot/dts/loongson/loongson1b.dtsi @@ -79,6 +79,16 @@ clkc: clock-controller@1fe78030 { clocks = <&xtal>; #clock-cells = <1>; }; + + clocksource: timer@1fe5c030 { + compatible = "loongson,ls1b-pwmtimer"; + reg = <0x1fe5c030 0x10>; + + clocks = <&clkc LS1X_CLKID_APB>; + + interrupt-parent = <&intc0>; + interrupts = <20 IRQ_TYPE_LEVEL_HIGH>; + }; }; &ahb { -- 2.39.2