From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) (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 0544E3612D8 for ; Sat, 9 May 2026 18:19:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778350794; cv=none; b=ZyYlRDz6weTovdtxFcGCuIVZdDKDl5FnyCeBoaDusmL4yjkMzwkl2ihWeWnZLqdWzvTGpVRoEQFByl8vACXceZCJDTAM95kXYy9MKqCrD5b8TScI9d8wC6wWP6BSBWoHivUntYmYUQ6+vzrIPCWQC6dPUEQk60IPPGxb1qmPI08= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778350794; c=relaxed/simple; bh=czzcavk29id9M4UhdT5VweJ32WxTo3MgrbsazJMzg0M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ahS71shc+Hw1qIRHeFgb0mrPv7/Ca9rEVRkloBBpuKJJ4q5AleqNezzeq+kUuj6KcK2D5WsEjA4Ay7l64FE3sTofsCpqcPrDfb0elWIPOYD+4zkCSqFaLcdj/ND4vc00jqzrxq4s4+UUp2bma28tShLGnqsmYYCUiDJFIPVY1Ho= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=X319pr1C; arc=none smtp.client-ip=209.85.216.54 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="X319pr1C" Received: by mail-pj1-f54.google.com with SMTP id 98e67ed59e1d1-36627a0ea23so1148501a91.0 for ; Sat, 09 May 2026 11:19:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778350792; x=1778955592; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=frOdwOepJTp+ZENuZWChoJcmDuk9+nILW6mXjQtPtmw=; b=X319pr1CNBcamLZ2TfgHkdXcXfU6V+1eWBcEdGe+9QsY6wl3fmFsBvnpi+MAgLHHtp zfCaZmFcprbAOO+pfPbKQ/fdU+UJuiKH+aRBznjs+nvwM2CQNeF763oiyJuxw0NekBLM B+96vRgGnTTJEuAmtazWWMGoU98bYra36YVbCFKhoo4RfCET5VYfToZB+rwNVca5ul9r axjWgtkhBd+Ng16RCxRGBVCbycNHWJICpxiPXORrbMKtEg9fQp06+FhKFtsqKrR+39Z9 +ByF2Kb7mhnBbCQ+8mqwSVmfa3LBZdDSS5P7NFRPwklI3pBEefS1eu4NONVFEhtb3veQ 40Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778350792; x=1778955592; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=frOdwOepJTp+ZENuZWChoJcmDuk9+nILW6mXjQtPtmw=; b=aXIuMcIy9nnMQZdvoHTN2jvoKVCVYulD3HW7U+JlkqVImhbd/Gn3JjXn0jZpadR/Ew UsguO3dbEHhd1dSXmt+plnvwkixoRiltNP5JXuz0wxhYYDLz3lwTcnqCDYQB8YfCxeHi cD3AecEATmJWbHO8bEUc6v6ehw9kIvY4Oac5kbItcwBYAaj8ynK/mFx7PcKMIMUZbwMW 7mPA3LMUnBpIpIbg4FEzLGXaPFgMlbZjgOxIqjaFfVmItJcSYJcwd7+ixNYWan402zq4 R4+GTrnnPV/MIG1ZwC+uq+xwXUQOvSZU8CdKjdKLT3v6RUz0g+a/aT2ODwAjttqlK6mu 5gFw== X-Forwarded-Encrypted: i=1; AFNElJ+t+GJgezmCaUN5VZefPtM9fagSzbbK5LAOToSw8NEBschsCPi44TufGhCoXw4A/N+5S7/y4empdik/WMM=@vger.kernel.org X-Gm-Message-State: AOJu0YwmbJIP502CY8PoAOjIdvE9/wWZN14RvHsScKIs3ftIN4IG9fej +3vGyTfQbv43jKcJ3rigKCdZO9rx/FXPIP3ZYhPqeoBmMWfNvQ4ffvJA X-Gm-Gg: Acq92OG+PuDyNSYJLexitawC7y7TRmHAbN1baPH5QJJNExgG/TQaAjdq2vko34LJimo pcsl/PbMvHNIKCRNPo7ypIOtmrZx6xU3jtpaascM/hVL5OuuS0coeZA5IRfs68dbjXC8RlllxSk G1zuTbZwdS4W60WYpdxGw05SDHF0V6MTIyrvNJ3pFJqk+OCbH2n+yVVCo8FEEaKLBGscjMkPTYS ohAHATWCu5UBpQzhHnAQAhS0rKyWa29mw2HEEOQcmxcJi2jgiMd+B0MIOScLh0XLrWu4ixICs8Y CCu081ROzhaWso7WdR4A2LLspY+Bhdgai6bOG3nSWs0KDJeDgwml8hYk9ih5k8E22WpZWDXuYaP 423zn6NkHHmxgrKADMgM8gqn7AGshCAHiiC9ZccO0TrW3wqjGRb0qq3KMN3OVglTufBibQ6isf8 E4qVjN7Vzt5jd9rMm9pEco2uzU+S7k5t47K6Y= X-Received: by 2002:a17:90b:1c0a:b0:366:479e:63a5 with SMTP id 98e67ed59e1d1-3664c8db251mr8171762a91.2.1778350792243; Sat, 09 May 2026 11:19:52 -0700 (PDT) Received: from ultimate.. ([58.84.60.2]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-367d63bad27sm3414683a91.10.2026.05.09.11.19.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 May 2026 11:19:51 -0700 (PDT) From: Udaya Kiran Challa To: alexandre.belloni@bootlin.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: skhan@linuxfoundation.org, me@brighamcampbell.com, linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Udaya Kiran Challa Subject: [PATCH v3] dt-bindings: rtc: epson,rx6110: Convert to DT Schema Date: Sat, 9 May 2026 23:48:08 +0530 Message-ID: <20260509181909.21871-1-challauday369@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Convert the Epson RX6110 Real Time Clock devicetree binding from the legacy text format to DT schema. Signed-off-by: Udaya Kiran Challa --- Changelog: Changes since v2: - Reference rtc.yaml for common RTC properties - Add conditional validation for SPI mode properties Link to v2:https://lore.kernel.org/all/20260509095713.5818-1-challauday369@gmail.com/ Changes since v1: - Reuse common SPI peripheral properties - Drop redundant SPI-specific comment - Remove unused labels from examples Link to v1:https://lore.kernel.org/all/20260504183728.27412-1-challauday369@gmail.com/ --- .../devicetree/bindings/rtc/epson,rx6110.txt | 39 --------- .../devicetree/bindings/rtc/epson,rx6110.yaml | 79 +++++++++++++++++++ 2 files changed, 79 insertions(+), 39 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rtc/epson,rx6110.txt create mode 100644 Documentation/devicetree/bindings/rtc/epson,rx6110.yaml diff --git a/Documentation/devicetree/bindings/rtc/epson,rx6110.txt b/Documentation/devicetree/bindings/rtc/epson,rx6110.txt deleted file mode 100644 index 3dc313e01f77..000000000000 --- a/Documentation/devicetree/bindings/rtc/epson,rx6110.txt +++ /dev/null @@ -1,39 +0,0 @@ -Epson RX6110 Real Time Clock -============================ - -The Epson RX6110 can be used with SPI or I2C busses. The kind of -bus depends on the SPISEL pin and can not be configured via software. - -I2C mode --------- - -Required properties: - - compatible: should be: "epson,rx6110" - - reg : the I2C address of the device for I2C - -Example: - - rtc: rtc@32 { - compatible = "epson,rx6110" - reg = <0x32>; - }; - -SPI mode --------- - -Required properties: - - compatible: should be: "epson,rx6110" - - reg: chip select number - - spi-cs-high: RX6110 needs chipselect high - - spi-cpha: RX6110 works with SPI shifted clock phase - - spi-cpol: RX6110 works with SPI inverse clock polarity - -Example: - - rtc: rtc@3 { - compatible = "epson,rx6110" - reg = <3> - spi-cs-high; - spi-cpha; - spi-cpol; - }; diff --git a/Documentation/devicetree/bindings/rtc/epson,rx6110.yaml b/Documentation/devicetree/bindings/rtc/epson,rx6110.yaml new file mode 100644 index 000000000000..09578de45d8d --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/epson,rx6110.yaml @@ -0,0 +1,79 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/epson,rx6110.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Epson RX6110 Real Time Clock + +description: | + The Epson RX6110 can be used with SPI or I2C busses. + The kind of bus depends on the SPISEL pin and can not be + configured via software. + +maintainers: + - Alexandre Belloni + +allOf: + - $ref: rtc.yaml# + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + const: epson,rx6110 + + reg: + maxItems: 1 + + spi-cs-high: true + spi-cpha: true + spi-cpol: true + +required: + - compatible + - reg + +if: + oneOf: + - required: + - spi-cs-high + - required: + - spi-cpha + - required: + - spi-cpol + +then: + required: + - spi-cs-high + - spi-cpha + - spi-cpol + +unevaluatedProperties: false + +examples: + # I2C mode + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + rtc@32 { + compatible = "epson,rx6110"; + reg = <0x32>; + }; + }; + + # SPI mode + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + rtc@3 { + compatible = "epson,rx6110"; + reg = <3>; + spi-cs-high; + spi-cpha; + spi-cpol; + }; + }; -- 2.43.0