From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) (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 07D613921D6 for ; Sat, 9 May 2026 09:58:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778320701; cv=none; b=jXlhT5Ua7sH6g6u/b7N6sFmi+OKMAih2j4rMrPtruOS6k/3/3BVqDPDKCHvANXS8/XXpqey+bU+Qfr7FaXJYXNefQnXx4Shz2hj3g9sK52Vc4zniAPSPl7B0UszQmadymkGh04aoSw0UjSYAvv96smnz5xWU7sjgAroNJH53jBE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778320701; c=relaxed/simple; bh=OSgeigJrC/LmOWDzFokC2wzqJC4CmOLy+39xvEvBcu8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iP31e8ZHqo6d/WCjGwCfvH4xiLcCgtpYvcbhr7VG0rv4cxC8HVNQ2oP7V2wyQ+6IBe2O3Nbyco3Z6CiJxjVmmDzyUIVye68kllLqI3Cpe6pdelOSDuH0Jj4vVKNaoRnagYcPLGSBhm/pRCKCTm6L1Msu0LXWhxnBls2AITh1dNI= 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=V/pnS9rC; arc=none smtp.client-ip=209.85.215.176 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="V/pnS9rC" Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-c70e27e2b74so1067033a12.0 for ; Sat, 09 May 2026 02:58:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778320699; x=1778925499; 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=BGnEaNywaaQdrKkMOeCsl1nlp6Rj/8u/91oXFsfmlSA=; b=V/pnS9rCmd9xZnlfR3WdAzetEpTI6s6CNnltiLtC8WBSST//VxYwgS/AJoKFAowATa 1wFq01CiUmgpfalHMQ69+Or6203W9xsdwo3BFQojmo1uL3GWfxxDd7GWMgxEHoWhff2q pddSzCwyat2DXSNA6U71EvQUEdsKL8GdKAGa8o8JAywrSD143Qt9nAAcbFkaR3vFM8SI DXTQCJcVWA3xGUfL9oCA3cLbJm4iDzKKkX4/svwfpnb6oNuNEl1m7FUU8jyf0XMBdyJj /aieB4oScdM5dpYx8jyXLSM3TnO6sP3h/U0gouTKm04NumwRmXPqgflZkE6icimV8Wd2 /pWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778320699; x=1778925499; 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=BGnEaNywaaQdrKkMOeCsl1nlp6Rj/8u/91oXFsfmlSA=; b=soSrmEhbE+XRTYAluMp/HcLllExlE3/IyGKYr1Wi/3z+26478tYskUREQfYw+XE+Mv pOB06AZgr/QiZfEUXnHnAwY/wmGILftgSsULZpRQbMSVHjgmBfLRRVMpmSkLRO/KDRi1 zrE9rHqfZCODzllv1z3htBG+7XRS0P2eupmVr9mTSZ0TD9M/kFiw82tBcA5DLgRK/jCg gGarUZQWmFSYr1jZaMJkidn+d6XeGiT3+gQoth6/ULP+X9TwNNKbt0pTfdvIpHo7mLb3 Pq+D5ChRBfhTiF9CavRWYrqJmYLV5vyP7qBMP2XURxbKZxUtYWa3AxUU4m921BCHR3UJ oMeQ== X-Forwarded-Encrypted: i=1; AFNElJ8isXp/8nbo8cXAPMmEnm3hrrW7I+cb6Yv9iYnMhjOnZTkQyOtCekdX2iwrPNOGcnGuasuZrp4HEYAZBbs=@vger.kernel.org X-Gm-Message-State: AOJu0YwCMm+6HfmjXb+L77y2QL+MHKHoGdXajO7Ll83EiXvDd5//ZJAV 2LrLNGkDj1LUBMFXafWZ2BxEyKxx1tpyOQuaTzvsiP1mWQ5Pm16WnVR4 X-Gm-Gg: Acq92OGhW8+c6zwz1TFEGrn5LvtuyWIbZO1RtBdBoF58VY3kkhCYk0/Tf3MdFnv+fX4 z1laCVxl1rxH9Di12ZtxXk1R3ZEAEWBMf5qKBikoW+HjrzwD8bAfg6BOGmsOfayyzJl/WDj7iiL AUxjjvYB+jDpV0xBoot6JTNu1dvoEx84K7mn41h0at5LhzuvMXnAElp6sTVmzZ6vtqA40ktzb/V RgVld4TOFXVFbl32QtOPcpvXfuvXEZMK/bNZrmfvVO4ir3s1iIpcmsPr9IBm4e2Rl2lCZ+KQ3TP 4sNyWGuFViYr809OPgbqtWl96IfyHy8e1LzuZbwFvJ9+9dUhqAfKops/Ol3t7naFf22Y1rKIZfv rYGu++tLpgbKOeluh3VbrzcrO6CMLU+nkdwAS2WGprBjXz0eDFKvHYcQdUbtatMFVHXX1wC7Ul7 r4SWZYDMdCoNjwZlcKylEPxQ2EkLTO1NDFlI5UJA== X-Received: by 2002:a05:6a20:3c90:b0:3a1:90fd:dcd6 with SMTP id adf61e73a8af0-3aab16e9e2bmr7224406637.31.1778320699201; Sat, 09 May 2026 02:58:19 -0700 (PDT) Received: from ultimate.. ([58.84.60.186]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c826767be55sm4045885a12.1.2026.05.09.02.58.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 May 2026 02:58:18 -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 v2] dt-bindings: rtc: epson,rx6110: Convert to DT Schema Date: Sat, 9 May 2026 15:17:41 +0530 Message-ID: <20260509095713.5818-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 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 | 62 +++++++++++++++++++ 2 files changed, 62 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..b51d39ef75e4 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/epson,rx6110.yaml @@ -0,0 +1,62 @@ +# 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: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + const: epson,rx6110 + + reg: + maxItems: 1 + + spi-cpha: true + spi-cpol: true + +required: + - compatible + - reg + +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