Skip to contentSkip to conversation

arm64: dts: broadcom: bcm4908: add I2C block

PATCH Superseded Rafał Miłecki 3 participants 5 messages Feb 11, 2022 – Feb 15, 2022 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: broadcom: bcm4908: add I2C block

From: Rafał Miłecki <[email protected]>

BCM4908 uses the same I2C hw as BCM63xx / BCM67xx / BCM68xx SoCs.

---
 arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi +9 -0
index b0bc5262beca..9ae298e7d6cf 100644
@@ -464,6 +464,15 @@ nandcs: nand@0 {
 			};
 		};
 
+		i2c@2100 {
+			compatible = "brcm,brcmstb-i2c";
+			reg = <0x2100 0x58>;
+			clock-frequency = <97500>;
+			pinctrl-names = "default";
+			pinctrl-0 = <&pins_i2c_a>;
+			status = "disabled";
+		};
+
 		misc@2600 {
 			compatible = "brcm,misc", "simple-mfd";
 			reg = <0x2600 0xe4>;
Signature · 1 line
2.34.1
#1 lore raw

+Kamal,

Quoted 14 lines · Rafał Miłecki

From: Rafał Miłecki <[email protected]>

BCM4908 uses the same I2C hw as BCM63xx / BCM67xx / BCM68xx SoCs.

---
 arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi +0 -0
index b0bc5262beca..9ae298e7d6cf 100644

arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi nandcs: nand@0 { · line 468

Quoted 5 lines
arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi +2 -0
@@ -464,6 +464,15 @@ nandcs: nand@0 {
 			};
 		};
 
+		i2c@2100 {
+			compatible = "brcm,brcmstb-i2c";

We should be making it clearer in the DT binding, but this should be brcm,brcmper-i2c since that was the compatible string added for the DSL class of chips, I forgot whether Kamal had to key off that compatible or not, it does not look it.

Signature · 1 line
Florian
#2 lore raw
In reply to Rafał Miłecki
I love your patch! Yet something to improve:

Hi "Rafał,

I love your patch! Yet something to improve:

[auto build test ERROR on robh/for-next]
[also build test ERROR on v5.17-rc3 next-20220211]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Rafa-Mi-ecki/arm64-dts-broadcom-bcm4908-add-I2C-block/20220211-183501
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: arm64-buildonly-randconfig-r002-20220211 (https://download.01.org/0day-ci/archive/20220212/202202120351.wtC4mGGp-lkp(a)intel.com/config)
compiler: aarch64-linux-gcc (GCC) 11.2.0

reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/c8d35bb0208d7f22714ce0b4f505b3fc0c2f0ee8
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Rafa-Mi-ecki/arm64-dts-broadcom-bcm4908-add-I2C-block/20220211-183501 git checkout c8d35bb0208d7f22714ce0b4f505b3fc0c2f0ee8
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate

All errors (new ones prefixed by >>):

>> ERROR: Input tree has errors, aborting (use -f to force output)

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

#3 lore raw

PATCH v2 1/1 arm64: dts: broadcom: bcm4908: add I2C block

In reply to Rafał Miłecki

From: Rafał Miłecki <[email protected]>

BCM4908 uses the same I2C hw as BCM63xx / BCM67xx / BCM68xx SoCs.

---
This patch is based on (and targets):
https://github.com/Broadcom/stblinux.git devicetree-arm64/next

V2: Use correct binding that implies 8 B max transfer size. See commit
e2e5a2c61837 ("i2c: brcmstb: Adding support for CM and DSL SoCs") for details.

---
 arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi +9 -0
index b0bc5262beca..5158143a9018 100644
@@ -464,6 +464,15 @@ nandcs: nand@0 {
 			};
 		};
 
+		i2c@2100 {
+			compatible = "brcm,brcmper-i2c";
+			reg = <0x2100 0x58>;
+			clock-frequency = <97500>;
+			pinctrl-names = "default";
+			pinctrl-0 = <&pins_i2c_a>;
+			status = "disabled";
+		};
+
 		misc@2600 {
 			compatible = "brcm,misc", "simple-mfd";
 			reg = <0x2600 0xe4>;
Signature · 1 line
2.34.1