Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4267628rwl; Tue, 28 Mar 2023 05:08:58 -0700 (PDT) X-Google-Smtp-Source: AKy350aIDtwCYitxIJAd2KThdAha0ZbEjeSLFGSzhez3zEymRkdZqYll/+psWxNbT4gjIqZskFcX X-Received: by 2002:a17:90a:31c:b0:233:f394:d83 with SMTP id 28-20020a17090a031c00b00233f3940d83mr14915626pje.48.1680005338467; Tue, 28 Mar 2023 05:08:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680005338; cv=none; d=google.com; s=arc-20160816; b=iJMLDNtl09LkJao6a8b4WXpBT9OUOWMOh3Nut01SAkI1xoh7u5tsWpiJ3SMIta+EtQ iRxFaJK5/Sj91x7pc4qnbDHYy3rHnjxRuWinDNXNOL7KcuckCau3rK/eu/Al2KSBCnFJ yZRgXncenHEMsQr8MrsxvyUSCwfQbkoACxY87bWoMGJ/OTPBrqIMsiGbzH7NoQin59tJ QChqBnsX7DyelFgwHC9vNfRToRpSXWwArgY9A1SDoin7getPmM1zrJjxBN/Fs+U/pkoK q1hdb56s7uOR5cZ9BxMCgH7uNy2GjSLPi1+QJDCYSLP/U0NncpMyEzjsZnMFYC9a/MoG 779g== 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=InVcb9dEGuOqkJ5tQQiGYBoCBqQROtEgUWP5Mr1cBac=; b=Upex5CDthFoS4o87yhHAAGtyc3OLL81sgRjEEql0LSVrOEDFguXLOlyMpOf4uQXYHv NLn/074M6cLHVg8kvJ4TM9RC95dkuKLfMvL6MjHkl7YtrnQXzPdpYVKN6JO9oF/rHzT4 zW8U2DsDItk7A6gFHZa/TN+Xd5J5T27imSwd4FahoeHZOdRWbUeQ3+uZeMZuN+EmenLR GzrzP6b7Gv5dTaGYRnuF35MioBPp00TEVkeH7STUHJ5IaNR4ome6tblmb3h/9mG651Es dhJSv/k/7o3ch51wVKIrce/PFyvVFo2go+K/KSdfWMxgT730dCPI6zYdN7JZnqLtcPhj lD9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ijDg7+6b; 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 b17-20020a63eb51000000b00502ea3f3761si28619771pgk.199.2023.03.28.05.08.46; Tue, 28 Mar 2023 05:08:58 -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=20210112 header.b=ijDg7+6b; 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 S232484AbjC1MF5 (ORCPT + 99 others); Tue, 28 Mar 2023 08:05:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231987AbjC1MFt (ORCPT ); Tue, 28 Mar 2023 08:05:49 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77B9693C8; Tue, 28 Mar 2023 05:05:27 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id w4so11389716plg.9; Tue, 28 Mar 2023 05:05:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680005126; 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=InVcb9dEGuOqkJ5tQQiGYBoCBqQROtEgUWP5Mr1cBac=; b=ijDg7+6b3/4eD/hrDqw/dshDiZdKfi/l9LVbQa/VgmDkor0MZIR6CMxyufZ4dSlrKz MLqFIIuDE41e/wIv2/lL/IvuXqC8Yh4SN0idxNKRi0Mbbpq8NEEIXLfuLrLwMTJAG3Gp +Nnb7M4fly0m+xxTOE0mAuFGPLLVK8rYAvZOFfm4lAuMNs0FnX28UD70XxgkcuGZJYYQ IoPzuMigfSh2v+5mTUZumXPlIpnmj+zAHTgiHYORBvbcPA/jYfRv/0RmvtLmBZswLYPe kpzFlQ1/MAFeRvvlTHxutb7N8SsLV2o6cReMXNSL6pkr/9LAqf9ZCwn2tfsNZmQDQ/iR 2H5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680005126; 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=InVcb9dEGuOqkJ5tQQiGYBoCBqQROtEgUWP5Mr1cBac=; b=q2Htea2TrE0/KhLMSz2EkSRMBHbIxIl0i7CzenLnxW69VNGlpaYARjZiV+40NvFuEe 6jXg80MFQqPqlHTvKeBknGCnMljAfXfTf9OAFySg77Y6yakdjrhmHTKv0nU8kxIa7TvG CeegvGR7qoH1L2JOz4MM0836bbND0v9XBEFUeH6OveWTYgeSv1fdffhHtzSMX0Vp4K3c SYvQwGOFSTB5JFooLMdhBGluIYpHTei2h9aRulYR9yOdjaWhidK/O5Ak1Q99ov8SpWvu DldCUDK835TGURx7oA978MQHcNGrhy8LH+mwqktUuqn4XIMeef4Jc3aT+zT0YNftlCle hKrg== X-Gm-Message-State: AAQBX9feApyu8OgRhDeTUR9S418FN3xExoHjbVNipxrn13Agou0yuJ2F LnJ5zMn4o08qNhU+Mutu2jkFV02T5jlITQ== X-Received: by 2002:a17:902:e851:b0:1a0:549d:399e with SMTP id t17-20020a170902e85100b001a0549d399emr16605781plg.21.1680005126587; Tue, 28 Mar 2023 05:05:26 -0700 (PDT) Received: from kelvin-ThinkPad-L14-Gen-1.. (94.130.220.35.bc.googleusercontent.com. [35.220.130.94]) by smtp.gmail.com with ESMTPSA id ju10-20020a170903428a00b0019a83f2c99bsm21013956plb.28.2023.03.28.05.05.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 05:05:26 -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 2/3] dt-bindings: timer: Add Loongson-1 clocksource Date: Tue, 28 Mar 2023 20:05:05 +0800 Message-Id: <20230328120506.375864-3-keguang.zhang@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230328120506.375864-1-keguang.zhang@gmail.com> References: <20230328120506.375864-1-keguang.zhang@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: *** 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 devicetree binding document for Loongson-1 clocksource. Signed-off-by: Keguang Zhang --- .../timer/loongson,ls1x-pwmtimer.yaml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/loongson,ls1x-pwmtimer.yaml diff --git a/Documentation/devicetree/bindings/timer/loongson,ls1x-pwmtimer.yaml b/Documentation/devicetree/bindings/timer/loongson,ls1x-pwmtimer.yaml new file mode 100644 index 000000000000..c4771aab8d75 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/loongson,ls1x-pwmtimer.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timer/loongson,ls1x-pwmtimer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Loongson-1 PWM timer + +maintainers: + - Keguang Zhang + +description: + Loongson-1 PWM timer can be used for system clock source + and clock event timers. + +properties: + compatible: + const: loongson,ls1x-pwmtimer + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - interrupts + +additionalProperties: false + +examples: + - | + #include + #include + clocksource: timer@1fe5c030 { + compatible = "loongson,ls1x-pwmtimer"; + reg = <0x1fe5c030 0x10>; + + clocks = <&clkc LS1X_CLKID_APB>; + interrupt-parent = <&intc0>; + interrupts = <20 IRQ_TYPE_LEVEL_HIGH>; + }; -- 2.34.1