Add Actions Semi Owl family S700 I2C support
v3 cover Add Actions Semi Owl family S700 I2C support
This patch series adds support for Actions Semi Owl SoC family S700 I2C controller. S700 provides 4 I2C masters and with cubieboard7 2 (I2C0 and I2C1) are exposed.
Added pinctrl definition for I2C controllers in cubieboard7. This patch depends on s700 pinctrl driver support (yet to be merged),
https://lkml.org/lkml/2018/11/19/514
https://lore.kernel.org/patchwork/patch/1012859/
Changelog in v3:
- re-ordering I2C and pinctrl nodes alphabetically in board DTS
- re-orderng of patch
- Typo and nitpick corrections
Changelog in v2:
- Initial version https://lore.kernel.org/patchwork/patch/1011911/ only added the I2C nodes using s900 compatible property. Now, new s700 compatiable string is added and used for S700
- Device tree bindings added with s700 compatible string
- pinctrl definition for cubieboard7
Parthiban Nallathambi (4):
dt-bindings: i2c: Add S700 support for Actions Semi Soc's
arm64: dts: actions: s700: Add I2C controller nodes
i2c: Add Actions Semiconductor Owl family S700 I2C support
arm64: dts: actions: s700-cubieboard7: Enable I2C0 and I2C1
.../devicetree/bindings/i2c/i2c-owl.txt | 4 +- .../boot/dts/actions/s700-cubieboard7.dts | 53 +++++++++++++++++++ arch/arm64/boot/dts/actions/s700.dtsi | 40 ++++++++++++++ drivers/i2c/busses/i2c-owl.c | 1 + 4 files changed, 97 insertions(+), 1 deletion(-)
Signature · 1 line
2.17.2
PATCH v3 1/4 dt-bindings: i2c: Add S700 support for Actions Semi Soc's
Add s700 compatible string to Actions Semi SoC dt-bindings.
--- Documentation/devicetree/bindings/i2c/i2c-owl.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/i2c/i2c-owl.txt +3 -1
@@ -2,7 +2,9 @@ Actions Semiconductor Owl I2C controller Required properties: -- compatible : Should be "actions,s900-i2c". +- compatible : Should be one of the following: + - "actions,s700-i2c" for S700 SoC + - "actions,s900-i2c" for S900 SoC - reg : Offset and length of the register set for the device. - #address-cells : Should be 1. - #size-cells : Should be 0.
Signature · 1 line
2.17.2
Re: [PATCH v3 1/4] dt-bindings: i2c: Add S700 support for Actions Semi Soc's
Quoted 7 lines · Parthiban Nallathambi
Add s700 compatible string to Actions Semi SoC dt-bindings.
Signed-off-by Parthiban Nallathambi <[email protected]>--- Documentation/devicetree/bindings/i2c/i2c-owl.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Wolfram Sang
AppliedRe: [PATCH v3 1/4] dt-bindings: i2c: Add S700 support for Actions Semi Soc's
In reply to Parthiban NallathambiQuoted 3 lines · Parthiban Nallathambi
Add s700 compatible string to Actions Semi SoC dt-bindings.
Signed-off-by Parthiban Nallathambi <[email protected]>
Applied to for-next, thanks!
PATCH v3 2/4 arm64: dts: actions: s700: Add I2C controller nodes
In reply to Parthiban NallathambiAdd I2C controller nodes for Actions Semiconductor S700 SoC.
--- arch/arm64/boot/dts/actions/s700.dtsi | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+)
arch/arm64/boot/dts/actions/s700.dtsi +40 -0
@@ -174,6 +174,46 @@ #clock-cells = <1>; }; + i2c0: i2c@e0170000 { + compatible = "actions,s700-i2c"; + reg = <0 0xe0170000 0 0x1000>; + clocks = <&cmu CLK_I2C0>; + interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c1: i2c@e0174000 { + compatible = "actions,s700-i2c"; + reg = <0 0xe0174000 0 0x1000>; + clocks = <&cmu CLK_I2C1>; + interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c2: i2c@e0178000 { + compatible = "actions,s700-i2c"; + reg = <0 0xe0178000 0 0x1000>; + clocks = <&cmu CLK_I2C2>; + interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c3: i2c@e017c000 { + compatible = "actions,s700-i2c"; + reg = <0 0xe017c000 0 0x1000>; + clocks = <&cmu CLK_I2C3>; + interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + sps: power-controller@e01b0100 { compatible = "actions,s700-sps"; reg = <0x0 0xe01b0100 0x0 0x100>;
Signature · 1 line
2.17.2
Manivannan Sadhasivam
AppliedRe: [PATCH v3 2/4] arm64: dts: actions: s700: Add I2C controller nodes
Quoted 4 lines · Parthiban Nallathambi
Add I2C controller nodes for Actions Semiconductor S700 SoC.
Signed-off-by Parthiban Nallathambi <[email protected]>Reviewed-by Manivannan Sadhasivam <[email protected]>
Applied to dt-next branch where I have been collecting patches for Andreas.
Thanks,
Mani
Quoted 58 lines
--- arch/arm64/boot/dts/actions/s700.dtsi | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+)arch/arm64/boot/dts/actions/s700.dtsi +40
-0@@ -174,6 +174,46 @@ #clock-cells = <1>; }; + i2c0: i2c@e0170000 { + compatible = "actions,s700-i2c"; + reg = <0 0xe0170000 0 0x1000>; + clocks = <&cmu CLK_I2C0>; + interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c1: i2c@e0174000 { + compatible = "actions,s700-i2c"; + reg = <0 0xe0174000 0 0x1000>; + clocks = <&cmu CLK_I2C1>; + interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c2: i2c@e0178000 { + compatible = "actions,s700-i2c"; + reg = <0 0xe0178000 0 0x1000>; + clocks = <&cmu CLK_I2C2>; + interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c3: i2c@e017c000 { + compatible = "actions,s700-i2c"; + reg = <0 0xe017c000 0 0x1000>; + clocks = <&cmu CLK_I2C3>; + interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + sps: power-controller@e01b0100 { compatible = "actions,s700-sps"; reg = <0x0 0xe01b0100 0x0 0x100>;Signature · 1 line
2.17.2
PATCH v3 3/4 i2c: Add Actions Semiconductor Owl family S700 I2C support
In reply to Parthiban NallathambiAdd S700 to the list of devices supported by Owl I2C driver.
Add Actions Semiconductor Owl family S700 I2C driver.
--- drivers/i2c/busses/i2c-owl.c | 1 + 1 file changed, 1 insertion(+)
drivers/i2c/busses/i2c-owl.c +1 -0
@@ -475,6 +475,7 @@ static int owl_i2c_probe(struct platform_device *pdev) }static const struct of_device_id owl_i2c_of_match[] = { + { .compatible ="actions,s700-i2c" }, { .compatible ="actions,s900-i2c" }, {/* sentinel */ } };
Signature · 1 line
2.17.2
Re: [PATCH v3 3/4] i2c: Add Actions Semiconductor Owl family S700 I2C support
Quoted 6 lines · Parthiban Nallathambi
Add S700 to the list of devices supported by Owl I2C driver.
Add Actions Semiconductor Owl family S700 I2C driver.
Signed-off-by Parthiban Nallathambi <[email protected]>Reviewed-by Manivannan Sadhasivam <[email protected]>
Rob, is this okay or should we drop this patch and update the DT to contain first the s700 compatible and then s900 as fallback?
Quoted 19 lines
--- drivers/i2c/busses/i2c-owl.c | 1 + 1 file changed, 1 insertion(+)drivers/i2c/busses/i2c-owl.c +1
-0@@ -475,6 +475,7 @@ static int owl_i2c_probe(struct platform_device *pdev) }static const struct of_device_id owl_i2c_of_match[] = { + { .compatible ="actions,s700-i2c" }, { .compatible ="actions,s900-i2c" }, {/* sentinel */ } };Signature · 1 line
2.17.2
Wolfram Sang
AppliedRe: [PATCH v3 3/4] i2c: Add Actions Semiconductor Owl family S700 I2C support
In reply to Parthiban NallathambiQuoted 6 lines · Parthiban Nallathambi
Add S700 to the list of devices supported by Owl I2C driver.
Add Actions Semiconductor Owl family S700 I2C driver.
Signed-off-by Parthiban Nallathambi <[email protected]>Reviewed-by Manivannan Sadhasivam <[email protected]>
Applied to for-next, thanks!
PATCH v3 4/4 arm64: dts: actions: s700-cubieboard7: Enable I2C0 and I2C1
In reply to Parthiban NallathambiAdd pinctrl definitions for Actions Semiconductor S700 I2C controllers. Pinctrl definitions are only available for I2C0, I2C1 and I2C2. Enable I2C0 (PMIC), I2C1 (gyro, touchscreen) in cubieboard7.
--- .../boot/dts/actions/s700-cubieboard7.dts | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+)
arch/arm64/boot/dts/actions/s700-cubieboard7.dts +53 -0
@@ -30,6 +30,59 @@ }; }; +&i2c0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_default>; +}; + +&i2c1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_default>; +}; + +&i2c2 { + status = "disabled"; + pinctrl-names = "default"; + pinctrl-0 = <&i2c2_default>; +}; + +&pinctrl { + i2c0_default: i2c0_default { + pinmux { + groups = "i2c0_mfp"; + function = "i2c0"; + }; + pinconf { + pins = "i2c0_sclk", "i2c0_sdata"; + bias-pull-up; + }; + }; + + i2c1_default: i2c1_default { + pinmux { + groups = "i2c1_dummy"; + function = "i2c1"; + }; + pinconf { + pins = "i2c1_sclk", "i2c1_sdata"; + bias-pull-up; + }; + }; + + i2c2_default: i2c2_default { + pinmux { + groups = "i2c2_dummy"; + function = "i2c2"; + }; + pinconf { + pins = "i2c2_sclk", "i2c2_sdata"; + bias-pull-up; + }; + }; +}; + &timer { clocks = <&hosc>; };
Signature · 1 line
2.17.2
kbuild test robot
build botRe: [PATCH v3 4/4] arm64: dts: actions: s700-cubieboard7: Enable I2C0 and I2C1
Thank you for the patch! Yet something to improve:
Hi Parthiban,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on robh/for-next]
[also build test ERROR on v4.20-rc6]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Parthiban-Nallathambi/dt-bindings-i2c-Add-S700-support-for-Actions-Semi-Soc-s/20181212-050535 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next config: arm64-allyesconfig (attached as .config) compiler: aarch64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=arm64
All errors (new ones prefixed by >>):
>> Error: arch/arm64/boot/dts/actions/s700-cubieboard7.dts:51.1-9 Label or path pinctrl not found >> FATAL ERROR: Syntax error parsing input tree
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Manivannan Sadhasivam
AppliedRe: [PATCH v3 4/4] arm64: dts: actions: s700-cubieboard7: Enable I2C0 and I2C1
In reply to Parthiban NallathambiQuoted 5 lines · Parthiban Nallathambi
Add pinctrl definitions for Actions Semiconductor S700 I2C controllers. Pinctrl definitions are only available for I2C0, I2C1 and I2C2. Enable I2C0 (PMIC), I2C1 (gyro, touchscreen) in cubieboard7.
Signed-off-by Parthiban Nallathambi <[email protected]>
Applied to dt-next branch where I have been collecting patches for Andreas.
Thanks,
Mani
Quoted 71 lines
--- .../boot/dts/actions/s700-cubieboard7.dts | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+)arch/arm64/boot/dts/actions/s700-cubieboard7.dts +53
-0@@ -30,6 +30,59 @@ }; }; +&i2c0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_default>; +}; + +&i2c1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_default>; +}; + +&i2c2 { + status = "disabled"; + pinctrl-names = "default"; + pinctrl-0 = <&i2c2_default>; +}; + +&pinctrl { + i2c0_default: i2c0_default { + pinmux { + groups = "i2c0_mfp"; + function = "i2c0"; + }; + pinconf { + pins = "i2c0_sclk", "i2c0_sdata"; + bias-pull-up; + }; + }; + + i2c1_default: i2c1_default { + pinmux { + groups = "i2c1_dummy"; + function = "i2c1"; + }; + pinconf { + pins = "i2c1_sclk", "i2c1_sdata"; + bias-pull-up; + }; + }; + + i2c2_default: i2c2_default { + pinmux { + groups = "i2c2_dummy"; + function = "i2c2"; + }; + pinconf { + pins = "i2c2_sclk", "i2c2_sdata"; + bias-pull-up; + }; + }; +}; + &timer { clocks = <&hosc>; };Signature · 1 line
2.17.2