Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1674630 > unrolled thread
| Started by | Baolin Wang <baolin.wang@spreadtrum.com> |
|---|---|
| First post | 2017-06-26 12:40 +0200 |
| Last post | 2017-06-27 10:10 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH v3 1/2] dt-bindings: i2c: Add Spreadtrum I2C controller documentation Baolin Wang <baolin.wang@spreadtrum.com> - 2017-06-26 12:40 +0200
Re: [PATCH v3 1/2] dt-bindings: i2c: Add Spreadtrum I2C controller documentation Rob Herring <robh+dt@kernel.org> - 2017-06-26 16:10 +0200
Re: [PATCH v3 1/2] dt-bindings: i2c: Add Spreadtrum I2C controller documentation Baolin Wang <baolin.wang@spreadtrum.com> - 2017-06-27 10:10 +0200
| From | Baolin Wang <baolin.wang@spreadtrum.com> |
|---|---|
| Date | 2017-06-26 12:40 +0200 |
| Subject | [PATCH v3 1/2] dt-bindings: i2c: Add Spreadtrum I2C controller documentation |
| Message-ID | <tWzB0-1cf-11@gated-at.bofh.it> |
This patch adds the binding documentation for Spreadtrum I2C
controller device.
Signed-off-by: Baolin Wang <baolin.wang@spreadtrum.com>
---
Changes since v2:
- Change compatible strings to be SoC specific.
Changes since v1:
- No updates.
---
Documentation/devicetree/bindings/i2c/i2c-sprd.txt | 31 ++++++++++++++++++++
1 file changed, 31 insertions(+)
create mode 100644 Documentation/devicetree/bindings/i2c/i2c-sprd.txt
diff --git a/Documentation/devicetree/bindings/i2c/i2c-sprd.txt b/Documentation/devicetree/bindings/i2c/i2c-sprd.txt
new file mode 100644
index 0000000..60b7cda
--- /dev/null
+++ b/Documentation/devicetree/bindings/i2c/i2c-sprd.txt
@@ -0,0 +1,31 @@
+I2C for Spreadtrum platforms
+
+Required properties:
+- compatible: Should be "sprd,sc9860-i2c".
+- reg: Specify the physical base address of the controller and length
+ of memory mapped region.
+- interrupts: Should contain I2C interrupt.
+- clock-names: Should contain following entries:
+ "i2c" for I2C clock,
+ "source" for I2C source (parent) clock,
+ "enable" for I2C module enable clock.
+- clocks: Should contain a clock specifier for each entry in clock-names.
+- clock-frequency: Constains desired I2C bus clock frequency in Hz.
+- #address-cells: Should be 1 to describe address cells for I2C device address.
+- #size-cells: Should be 0 means no size cell for I2C device address.
+
+Optional properties:
+- Child nodes conforming to I2C bus binding
+
+Examples:
+i2c0: i2c@70500000 {
+ compatible = "sprd,sc9860-i2c";
+ reg = <0 0x70500000 0 0x1000>;
+ interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
+ clock-names = "i2c", "source", "enable";
+ clocks = <&clk_i2c3>, <&ext_26m>, <&clk_ap_apb_gates 11>;
+ clock-frequency = <400000>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+};
+
--
1.7.9.5
[toc] | [next] | [standalone]
| From | Rob Herring <robh+dt@kernel.org> |
|---|---|
| Date | 2017-06-26 16:10 +0200 |
| Message-ID | <tWCSe-3mD-13@gated-at.bofh.it> |
| In reply to | #1674630 |
On Mon, Jun 26, 2017 at 5:28 AM, Baolin Wang <baolin.wang@spreadtrum.com> wrote: > This patch adds the binding documentation for Spreadtrum I2C > controller device. > > Signed-off-by: Baolin Wang <baolin.wang@spreadtrum.com> > --- > Changes since v2: > - Change compatible strings to be SoC specific. > > Changes since v1: > - No updates. > --- > Documentation/devicetree/bindings/i2c/i2c-sprd.txt | 31 ++++++++++++++++++++ > 1 file changed, 31 insertions(+) > create mode 100644 Documentation/devicetree/bindings/i2c/i2c-sprd.txt Acked-by: Rob Herring <robh@kernel.org>
[toc] | [prev] | [next] | [standalone]
| From | Baolin Wang <baolin.wang@spreadtrum.com> |
|---|---|
| Date | 2017-06-27 10:10 +0200 |
| Subject | Re: [PATCH v3 1/2] dt-bindings: i2c: Add Spreadtrum I2C controller documentation |
| Message-ID | <tWTJn-69e-3@gated-at.bofh.it> |
| In reply to | #1674808 |
On 一, 6月 26, 2017 at 09:05:39上午 -0500, Rob Herring wrote: > On Mon, Jun 26, 2017 at 5:28 AM, Baolin Wang <baolin.wang@spreadtrum.com> wrote: > > This patch adds the binding documentation for Spreadtrum I2C > > controller device. > > > > Signed-off-by: Baolin Wang <baolin.wang@spreadtrum.com> > > --- > > Changes since v2: > > - Change compatible strings to be SoC specific. > > > > Changes since v1: > > - No updates. > > --- > > Documentation/devicetree/bindings/i2c/i2c-sprd.txt | 31 ++++++++++++++++++++ > > 1 file changed, 31 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/i2c/i2c-sprd.txt > > Acked-by: Rob Herring <robh@kernel.org> Thanks Rob.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web