About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Documentation / devicetree / bindings / i2c / i2c-sunxi-p2wi.txt


Based on kernel version 4.16.1. Page generated on 2018-04-09 11:52 EST.

1	
2	* Allwinner P2WI (Push/Pull 2 Wire Interface) controller
3	
4	Required properties :
5	
6	 - reg             : Offset and length of the register set for the device.
7	 - compatible      : Should one of the following:
8	                     - "allwinner,sun6i-a31-p2wi"
9	 - interrupts      : The interrupt line connected to the P2WI peripheral.
10	 - clocks          : The gate clk connected to the P2WI peripheral.
11	 - resets          : The reset line connected to the P2WI peripheral.
12	
13	Optional properties :
14	
15	 - clock-frequency : Desired P2WI bus clock frequency in Hz. If not set the
16	default frequency is 100kHz
17	
18	A P2WI may contain one child node encoding a P2WI slave device.
19	
20	Slave device properties:
21	  Required properties:
22	   - reg           : the I2C slave address used during the initialization
23	                     process to switch from I2C to P2WI mode
24	
25	Example:
26	
27		p2wi@1f03400 {
28			compatible = "allwinner,sun6i-a31-p2wi";
29			reg = <0x01f03400 0x400>;
30			interrupts = <0 39 4>;
31			clocks = <&apb0_gates 3>;
32			clock-frequency = <6000000>;
33			resets = <&apb0_rst 3>;
34	
35			axp221: pmic@68 {
36				compatible = "x-powers,axp221";
37				reg = <0x68>;
38	
39				/* ... */
40			};
41		};
Hide Line Numbers


About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog