xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/rtc/epson,rx6110.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunEpson RX6110 Real Time Clock
2*4882a593Smuzhiyun============================
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunThe Epson RX6110 can be used with SPI or I2C busses. The kind of
5*4882a593Smuzhiyunbus depends on the SPISEL pin and can not be configured via software.
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunI2C mode
8*4882a593Smuzhiyun--------
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunRequired properties:
11*4882a593Smuzhiyun  - compatible: should be: "epson,rx6110"
12*4882a593Smuzhiyun  - reg : the I2C address of the device for I2C
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunExample:
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun	rtc: rtc@32 {
17*4882a593Smuzhiyun		compatible = "epson,rx6110"
18*4882a593Smuzhiyun		reg = <0x32>;
19*4882a593Smuzhiyun	};
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunSPI mode
22*4882a593Smuzhiyun--------
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunRequired properties:
25*4882a593Smuzhiyun  - compatible: should be: "epson,rx6110"
26*4882a593Smuzhiyun  - reg: chip select number
27*4882a593Smuzhiyun  - spi-cs-high: RX6110 needs chipselect high
28*4882a593Smuzhiyun  - spi-cpha: RX6110 works with SPI shifted clock phase
29*4882a593Smuzhiyun  - spi-cpol: RX6110 works with SPI inverse clock polarity
30*4882a593Smuzhiyun
31*4882a593SmuzhiyunExample:
32*4882a593Smuzhiyun
33*4882a593Smuzhiyun	rtc: rtc@3 {
34*4882a593Smuzhiyun		compatible = "epson,rx6110"
35*4882a593Smuzhiyun		reg = <3>
36*4882a593Smuzhiyun		spi-cs-high;
37*4882a593Smuzhiyun		spi-cpha;
38*4882a593Smuzhiyun		spi-cpol;
39*4882a593Smuzhiyun	};
40