Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2657885pxb; Mon, 17 Jan 2022 03:06:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJxiuIXgfleTmNHWq5kW1dFXeDJ9fouWO6hhuUaNiSj2GQBLebKRuA+rD72p6vvaq0pYxJ0j X-Received: by 2002:a63:d003:: with SMTP id z3mr14995839pgf.158.1642417602957; Mon, 17 Jan 2022 03:06:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642417602; cv=none; d=google.com; s=arc-20160816; b=b8b6zQs5hYm2OXuQn19rwAN8j+gVgx3Ci9PYipw/HsN1k2cOZjYXDDjRhNSKQiErm9 lok7rx+Dofmdx/9IntteqFDuE3wXtocAnPNufasLcK8gd2MbLOpFwgXi8rL4Nm/Kgdlc a8EuE7spkfbGIC/LPhA7ChxHqpbeeFjJdeL5k7l8oGnkVJZbB47UXNsMwT5nCV4GBmeU eIjYoeSlmmUyiZ7lkTnsFyika+P8Qm7c2oiDO93zjm2MqzN8uz7/JYKl7YepIukgGldz WolNDp4WQ/7tNJ0ASd9CfAwrRNrnmmYKiFu2qjVVm2koMwdKTsXsW1wWPFY+s56kC+4s 12cQ== 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=9xSjeUcm7m23N21sPciuCTuwHGXybr2E95NnShlF2kA=; b=iBiGbEoe1sQCYl4skg/v+Nz7SbGOM4QoI41UDb4ThLm3p6u6hsS8m4Cw/3FFXyLvAS aeL+gXZ/SeI3P7ZTBcEQQxeA75g0us4BLPCDBKbdv/m5e0kGB668JT6r/lGGEym+V+L3 fG1f5LnWqyRUdulAjqD7fmD0zrkzzYBnFzuGNosEGdSQkEGyu6fcElLqNKBmO0Igr7Z8 bixJWin6C2mbjNRl2JBTYprbEm0gLEUb9+gesjlRaKa7G76CudxCRzigBFJIG9aLJzZm JOnb9YpcVsFztp2xib2hTrxvFkd/lOqcQqkMqWUat9f19BEwySe9bURbdKevg08k3Fqz AMvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svanheule.net header.s=mail1707 header.b="Y3R/n2t7"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=svanheule.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mn18si8455350pjb.159.2022.01.17.03.06.29; Mon, 17 Jan 2022 03:06:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@svanheule.net header.s=mail1707 header.b="Y3R/n2t7"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=svanheule.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236269AbiAPVjm (ORCPT + 99 others); Sun, 16 Jan 2022 16:39:42 -0500 Received: from polaris.svanheule.net ([84.16.241.116]:33522 "EHLO polaris.svanheule.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236244AbiAPVjg (ORCPT ); Sun, 16 Jan 2022 16:39:36 -0500 Received: from terra.local.svanheule.net (unknown [IPv6:2a02:a03f:eafe:c901:fcd:c16e:b544:6e84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sander@svanheule.net) by polaris.svanheule.net (Postfix) with ESMTPSA id 769DB292934; Sun, 16 Jan 2022 22:39:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1642369174; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9xSjeUcm7m23N21sPciuCTuwHGXybr2E95NnShlF2kA=; b=Y3R/n2t7NSzW3w/UqS31gbOEom9LPcFy+GI4U1fzulMl4pwSpEh4i731rdjKK/iMGvd4Is xPKcp6t3QRUuhQd1e75FHalkmYsuUBrYpUpataxPFDAUq2tlx8cjzL17DhQovZNFjlQnel Vq0DSaQb5DE4BSOYiJavII3isDqCGm11eWfHAR+25A07lIgJbMeX7TOyQzCe7CHpcoPz4G c3tstg2QcEjFzbC1CTaxmTasUJdsmu32qZDTGGFOPOJ7mSbQ6pLMsTc0s1zvhd5bXWj2xO bYca8IVhY0tnACvscwF1W8KVTOZTwY98HAb8lvaUFWU3f1jPKdxr549GhG1D1g== From: Sander Vanheule To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Daniel Lezcano , Thomas Gleixner , Rob Herring , Sander Vanheule Subject: [PATCH 1/2] dt-bindings: timer: Add realtek,otto-tc binding Date: Sun, 16 Jan 2022 22:39:24 +0100 Message-Id: <7c53821386b8f4c1c0ac440f1cd186e09f4a0456.1642369117.git.sander@svanheule.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org New binding for the timer/counter blocks found on the Realtek Otto MIPS platform. Signed-off-by: Sander Vanheule --- .../bindings/timer/realtek,otto-tc.yaml | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/realtek,otto-tc.yaml diff --git a/Documentation/devicetree/bindings/timer/realtek,otto-tc.yaml b/Documentation/devicetree/bindings/timer/realtek,otto-tc.yaml new file mode 100644 index 000000000000..12971b9ecdf5 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/realtek,otto-tc.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timer/realtek,otto-tc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Realtek Otto platform timer/counter bindings + +description: + "Up-counting 28-bit timer that can operate in oneshot or repeating mode, + providing an interrupt at roll-over. + + The timer is driven by a divided clock, derived from the bus clock. The clock + divisor is configurable from 2 to 65535. Divisor values of 0 and 1 disable + the timer clock. The timer can also be enabled or disabled independently from + the clock (divisor) selection. + + The number of timers supported by the different SoC families is: + - RTL8380: 5 timers + - RTL8390: 5 timers + - RTL9300: 6 timers + - RTL9310: 7 timers" + +maintainers: + - Sander Vanheule + +properties: + compatible: + const: realtek,otto-tc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: Parent clock from peripheral bus + + clock-names: + items: + - const: bus + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +examples: + - | + timer0: timer@3100 { + compatible = "realtek,otto-tc"; + reg = <0x3100 0x10>; + + interrupts = <29 4>; + + clocks = <&lx_clk>; + clock-names = "bus"; + }; -- 2.34.1