Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp620934rdb; Mon, 15 Jan 2024 08:06:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IHaKYorC6CIKpYMGaP2ac5w5KMH+UNiS9JAn9fX86+sOur0NilHmKR3opoWmlOd1kDBMC2I X-Received: by 2002:a67:edc3:0:b0:467:bf69:eac9 with SMTP id e3-20020a67edc3000000b00467bf69eac9mr4046257vsp.19.1705334790149; Mon, 15 Jan 2024 08:06:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705334790; cv=none; d=google.com; s=arc-20160816; b=UMqF+RB1Y6O1inD/YnLBgAxQ7/IgGhronP+YczQgtQm/ZwA/OYRkNpgZDExt7kNg4M ZLI1t4MadaoTss8uvxqIUXFJ7egVOszH/1Qw5boimZfcW7x9Vt/GzpKtnWpNOnb0zded x1BqSMNYf41VuRvN4UeCxRtmd4N/vTrPvki8NAXvQDn2jp9bQ+yUClumKon9puVUq+/a n/XJYtr08U5qwZqmnB2SD4rfaKIYMxuFsS4/guK0o9LYTopTHs8WTutlQs7yXbA2g9F4 afMVTdqiJyjWE2dwQTbEkwbfQ9C4a0UxRJnxQ2SsAXkjUi83S4LhRiPEF/RMdmf95QnM FVVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ixPkXzb9IeR/hF0U1QATiBKY+/dWLZ8JkGr38j+7Zxk=; fh=ZTpimPyezwn7X4jNfyAyLdd0OphhH9/hrkpDcGbHxtc=; b=qY7p+WNvjs6gOs0B8ubLSaFNqpc9+ODbSxGRvI8dcKIfpI6eEkDcTq86f/eY3gItGI BIXuX6hsPZBW6fZchl3j3HhRMhyvTqnuVGIFTmuWkV2dV8G0TbSYpC5Nq28vK/cB0/FF sEkduXUd33sYNAnND924LWfstodmVRTY5acTdRcEIQxWlGFOdLgDJwfdDC542Re78UgE Bb0I+/2HTFhPC2bC/Evo3pMIP1jrsYNZ8CAt++iSHcdsUGbM7aS/F06nVCFpW/Bl8euQ 2RL+RV/ayFtQATzuKxcLp2/F3NzuZ6mrYdmcNnQ1Oe3fSmmjxZJE5JmrSoZt0yT2aTpi aOgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CGpFg7WZ; spf=pass (google.com: domain of linux-kernel+bounces-26215-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26215-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id dx4-20020a056102458400b00466f683fa77si937036vsb.498.2024.01.15.08.06.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 08:06:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26215-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CGpFg7WZ; spf=pass (google.com: domain of linux-kernel+bounces-26215-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26215-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C162D1C21CFD for ; Mon, 15 Jan 2024 16:06:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2666F1799E; Mon, 15 Jan 2024 16:06:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CGpFg7WZ" Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F71F17BA8; Mon, 15 Jan 2024 16:06:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6db82a57c50so538634b3a.2; Mon, 15 Jan 2024 08:06:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705334771; x=1705939571; darn=vger.kernel.org; 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=ixPkXzb9IeR/hF0U1QATiBKY+/dWLZ8JkGr38j+7Zxk=; b=CGpFg7WZ7/20/GuFyRskIoAk/nC1hjutJaFRD6Zyy4SDi73bGFE9JuL/G+lLUrqxvU mFwgaNunsg+mi9KqmJrCespOXTHOao+WaCKZ1k3eTX/dhNnWrJdhyHb321EVNVUNeOlA 0LOWVu4NYpvTbLBrKKBEjc/8fJCSKm4yl6qrOP2GpIf0HUjgFFtFFgfAcbLQnlR4C2jI lF7Lnx0dFfRUgXq9cRbgGUrfu3c3c5n4ItUANuCRb6OkLHvmx4vX1lKCYs4VUwP1rLIF w8X2xNXtubKFwBbibVClAXQGSXCN+Yx55Tke5KAQeXTWUUb9TE1sORZWI+Y29TEO2aBg yZCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705334771; x=1705939571; 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=ixPkXzb9IeR/hF0U1QATiBKY+/dWLZ8JkGr38j+7Zxk=; b=Uhg0fTJHWFnSiIhPNRTzi5aGsQtVq/8H2wiG025Qfc2S6R+CUBOUhX4ju5JY4Cpnzc FSheyUK/soS1zjSkBNw+x/iivT6DvS2j8vUxVtiCSIXEhl/79XOc30OJzDHv0pHyO+Fv aP0REoouBuFftmlv7CH8PRCyd0xTb38mYrA30aAYl6nvtUxdFWIiXEolkDuYCi5jTc1t VEn0VPocIcuWEbyVVtw60Lf/yWD419cdt61NZ0/FIEk7zzVEuQ/S1Fb97/gkfXkEnJ/5 fGtH2Cf29TCXW81mWMu2hFBpQdL0sC4C5V0ntY0Y5zCImg5Q+c9Ip1/v0uD/OvSSpm11 TTiw== X-Gm-Message-State: AOJu0YzV2II8I/IvfAMvHsGFnDDL003QLPDgyNdAwZYZt0aW378upHKU NWUsg9rhPmf4nbGfHRmQ/tw= X-Received: by 2002:a05:6a20:2d29:b0:19a:bbd0:a314 with SMTP id g41-20020a056a202d2900b0019abbd0a314mr1679742pzl.23.1705334771009; Mon, 15 Jan 2024 08:06:11 -0800 (PST) Received: from localhost ([124.131.233.112]) by smtp.gmail.com with ESMTPSA id fb10-20020a056a002d8a00b006d9bb4400f0sm7755351pfb.88.2024.01.15.08.06.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 08:06:10 -0800 (PST) From: Jingbao Qiu To: alexandre.belloni@bootlin.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, chao.wei@sophgo.com, unicorn_wang@outlook.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, dlan@gentoo.org, inochiama@outlook.com Subject: [PATCH v6 1/3] dt-bindings: rtc: sophgo: add RTC support for Sophgo CV1800 series SoC Date: Tue, 16 Jan 2024 00:05:58 +0800 Message-ID: <20240115160600.5444-2-qiujingbao.dlmu@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240115160600.5444-1-qiujingbao.dlmu@gmail.com> References: <20240115160600.5444-1-qiujingbao.dlmu@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add RTC devicetree binding for Sophgo CV1800 SoC. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Jingbao Qiu --- .../bindings/rtc/sophgo,cv1800-rtc.yaml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/sophgo,cv1800-rtc.yaml diff --git a/Documentation/devicetree/bindings/rtc/sophgo,cv1800-rtc.yaml b/Documentation/devicetree/bindings/rtc/sophgo,cv1800-rtc.yaml new file mode 100644 index 000000000000..e54abd59c193 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/sophgo,cv1800-rtc.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/sophgo,cv1800-rtc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Real Time Clock of the Sophgo CV1800 SoC + +description: + Real Time Clock (RTC) is an independently powered module + within the chip, which includes a 32KHz oscillator and a + Power On Reset/POR submodule. It can be used for time display + and timed alarm generation. In addition, the hardware state + machine provides triggering and timing control for chip + power on, off, and reset. + +maintainers: + - Jingbao Qiu + +allOf: + - $ref: rtc.yaml# + +properties: + compatible: + items: + - const: sophgo,cv1800-rtc + - const: syscon + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + +unevaluatedProperties: false + +examples: + - | + #include + + rtc@5025000 { + compatible = "sophgo,cv1800-rtc", "syscon"; + reg = <0x5025000 0x2000>; + interrupts = <17 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&osc>; + }; -- 2.43.0