Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | Epson RX6110 Real Time Clock |
| 2 | ============================ |
| 3 | |
| 4 | The Epson RX6110 can be used with SPI or I2C busses. The kind of |
| 5 | bus depends on the SPISEL pin and can not be configured via software. |
| 6 | |
| 7 | I2C mode |
| 8 | -------- |
| 9 | |
| 10 | Required properties: |
| 11 | - compatible: should be: "epson,rx6110" |
| 12 | - reg : the I2C address of the device for I2C |
| 13 | |
| 14 | Example: |
| 15 | |
| 16 | rtc: rtc@32 { |
| 17 | compatible = "epson,rx6110" |
| 18 | reg = <0x32>; |
| 19 | }; |
| 20 | |
| 21 | SPI mode |
| 22 | -------- |
| 23 | |
| 24 | Required properties: |
| 25 | - compatible: should be: "epson,rx6110" |
| 26 | - reg: chip select number |
| 27 | - spi-cs-high: RX6110 needs chipselect high |
| 28 | - spi-cpha: RX6110 works with SPI shifted clock phase |
| 29 | - spi-cpol: RX6110 works with SPI inverse clock polarity |
| 30 | |
| 31 | Example: |
| 32 | |
| 33 | rtc: rtc@3 { |
| 34 | compatible = "epson,rx6110" |
| 35 | reg = <3> |
| 36 | spi-cs-high; |
| 37 | spi-cpha; |
| 38 | spi-cpol; |
| 39 | }; |