From nobody Mon Nov 25 02:54:59 2024 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 75DDC207A03; Tue, 12 Nov 2024 03:10:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731381018; cv=none; b=sgi8hL8W/paZHNlgJIq3IcD4pwD0zYiquHn5AtQmMHlnWcPn7bv/v8QBKWbLskMT+4APaj8njazFAq7duB4ZQJE6Hsxc9mXx71nlW8+BiqTspvkITJZU3Vl20BMRukufcoBuywRRg7nnLKPPeER6rUmvw14Nb1nhEOuHEwVUad8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731381018; c=relaxed/simple; bh=HJE0pA+74tCzliJNJXQ3Kg9jGHLW4xMEmX5HYgB7ZDs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HEF8MiGvOlhV2gHGGnhkyY/wdqx3G1HOePszF4wdy9VLlKajuWIxOSZotgjgDCAQxMwo2q4LlKazjvPCSfzWoAQU7k1X4qIr+r3QGhpmo1vHGDRwXROnF9CYxcRUZ1mvDfyY59d985QlJioF3oOMseeMoR4AXyfGfcgnR+MxhYc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nPr5HCxs; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nPr5HCxs" Received: by smtp.kernel.org (Postfix) with ESMTPS id 14BA4C4CED5; Tue, 12 Nov 2024 03:10:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731381018; bh=HJE0pA+74tCzliJNJXQ3Kg9jGHLW4xMEmX5HYgB7ZDs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=nPr5HCxsQ+y3O2cGZvkbzY9oCsyZx+/OhUxLcKKdd6C8bWSdgoV4Z4+CrEA+a2FV/ z6abTi6K4TJ9UEQaVa+LWxJ0zZv7jGDQL1qmYquZPTCatUvS1Q1+rVQFGV01xv/atZ UMVWu6wKpp13nPYtwdFow/92HzlfQJg3zRLo9CerKavxgRJL+JD9pbFvN7P8xDiPqI 2DtddizFxdgX055gbmpAwq/HHh/PIkUqQpshulH1wx0GZYCjoGff5HE4rzNWZasbie tFSfNV5+sBtu9A0GC1I91e2n1vTS4wx5pu3OiGrpmJukVslPH/a027W/HbegRhqJqR dOguo6uvF0iuQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04C10D41D44; Tue, 12 Nov 2024 03:10:18 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Tue, 12 Nov 2024 11:10:14 +0800 Subject: [PATCH v6 1/3] dt-bindings: rtc: Add Amlogic A4 and A5 RTC Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241112-rtc-v6-1-a71b60d2f354@amlogic.com> References: <20241112-rtc-v6-0-a71b60d2f354@amlogic.com> In-Reply-To: <20241112-rtc-v6-0-a71b60d2f354@amlogic.com> To: Yiting Deng , Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-amlogic@lists.infradead.org, linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Xianwei Zhao , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1731381015; l=2146; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=SnfWHSIVk7X6HuExSpIoFJO0hQjcCpxtc5dtKXQKyis=; b=ARyRjGQBigrOHawyvYihlaq+QPQMdFvObHVumkJjjR07eDzlV0/z5lY9omeWLJxA3S1mMEIyz Agc312FFxZuB6Yr6GlmpxflTkX3QurKNjusSNwkwEqeGVMZ2xWP/W8R X-Developer-Key: i=xianwei.zhao@amlogic.com; a=ed25519; pk=o4fDH8ZXL6xQg5h17eNzRljf6pwZHWWjqcOSsj3dW24= X-Endpoint-Received: by B4 Relay for xianwei.zhao@amlogic.com/20231208 with auth_id=107 X-Original-From: Xianwei Zhao Reply-To: xianwei.zhao@amlogic.com From: Yiting Deng Add documentation describing the Amlogic A4(A113L2) and A5(A113X2) RTC. Signed-off-by: Yiting Deng Reviewed-by: Krzysztof Kozlowski Signed-off-by: Xianwei Zhao --- .../devicetree/bindings/rtc/amlogic,a4-rtc.yaml | 63 ++++++++++++++++++= ++++ 1 file changed, 63 insertions(+) diff --git a/Documentation/devicetree/bindings/rtc/amlogic,a4-rtc.yaml b/Do= cumentation/devicetree/bindings/rtc/amlogic,a4-rtc.yaml new file mode 100644 index 000000000000..5d3ac737abcb --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/amlogic,a4-rtc.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2024 Amlogic, Inc. All rights reserved +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/amlogic,a4-rtc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic A4 and A5 RTC + +maintainers: + - Yiting Deng + - Xianwei Zhao + +allOf: + - $ref: rtc.yaml# + +properties: + compatible: + enum: + - amlogic,a4-rtc + - amlogic,a5-rtc + + reg: + maxItems: 1 + + clocks: + items: + - description: RTC clock source, available 24M or 32K crystal + oscillator source. when using 24M, need to divide 24M into 32K. + - description: RTC module accesses the clock of the apb bus. + + clock-names: + items: + - const: osc + - const: sys + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + +additionalProperties: false + +examples: + - | + #include + apb { + #address-cells =3D <2>; + #size-cells =3D <2>; + + rtc@8e600 { + compatible =3D "amlogic,a4-rtc"; + reg =3D <0x0 0x8e600 0x0 0x38>; + clocks =3D <&xtal_32k>, <&clkc_periphs 1>; + clock-names =3D "osc", "sys"; + interrupts =3D ; + }; + }; --=20 2.37.1