Skip to contentSkip to conversation

arm64: dts: zynqmp: Add compatible strings for si5328

PATCH In review [email protected] 3 participants 5 messages Mar 8, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: zynqmp: Add compatible strings for si5328

From: Quanyang Wang <[email protected]>

The function of_i2c_get_board_info will call of_modalias_node to check if a device_node contains "compatible" string. So let's assign the proper string "silabs,si5328" to clock-generator@69's compatible property to eliminate the error info as below:

i2c i2c-10: of_i2c: modalias failure on /axi/i2c@ff030000/i2c-mux@74/i2c@4/clock-generator@69 i2c i2c-10: Failed to create I2C device for /axi/i2c@ff030000/i2c-mux@74/i2c@4/clock-generator@69

Fixes 82a7ebf00224 ("arm64: dts: zynqmp: Add DT description for si5328 for zcu102/zcu106")
---
 arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts | 1 +
 arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts | 1 +
 2 files changed, 2 insertions(+)
arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts +1 -0
index 12e8bd48dc8c..a73841ad24ce 100644
@@ -590,6 +590,7 @@ si5328: clock-generator@69 {/* SI5328 - u20 */
 				#address-cells = <1>;
 				#size-cells = <0>;
 				#clock-cells = <1>;
+				compatible = "silabs,si5328";
 				clocks = <&refhdmi>;
 				clock-names = "xtal";
 				clock-output-names = "si5328";
arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts +1 -0
index 18771e868399..24ce64364d63 100644
@@ -591,6 +591,7 @@ si5328: clock-generator@69 {/* SI5328 - u20 */
 				#address-cells = <1>;
 				#size-cells = <0>;
 				#clock-cells = <1>;
+				compatible = "silabs,si5328";
 				clocks = <&refhdmi>;
 				clock-names = "xtal";
 				clock-output-names = "si5328";
Signature · 1 line
2.25.1
#1 lore raw

Hi Quanyang,

Thank you for the patch.

Quoted 6 lines · On Mon, Mar 08, 2021 at 03:08:43PM +0800, [email protected] wrote:

From: Quanyang Wang <[email protected]>

The function of_i2c_get_board_info will call of_modalias_node to check if a device_node contains "compatible" string. So let's assign the proper string "silabs,si5328" to clock-generator@69's compatible property to eliminate the error info as below:

As far as I can tell, "silabs,si5328" isn't documented in Documentation/devicetree/bindings/. We need DT bindings before making use of the compatible string.

Quoted 34 lines

i2c i2c-10: of_i2c: modalias failure on /axi/i2c@ff030000/i2c-mux@74/i2c@4/clock-generator@69 i2c i2c-10: Failed to create I2C device for /axi/i2c@ff030000/i2c-mux@74/i2c@4/clock-generator@69

Fixes 82a7ebf00224 ("arm64: dts: zynqmp: Add DT description for si5328 for zcu102/zcu106")
---
 arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts | 1 +
 arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts | 1 +
 2 files changed, 2 insertions(+)
arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts +1 -0
index 12e8bd48dc8c..a73841ad24ce 100644
@@ -590,6 +590,7 @@ si5328: clock-generator@69 {/* SI5328 - u20 */
 				#address-cells = <1>;
 				#size-cells = <0>;
 				#clock-cells = <1>;
+				compatible = "silabs,si5328";
 				clocks = <&refhdmi>;
 				clock-names = "xtal";
 				clock-output-names = "si5328";
arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts +1 -0
index 18771e868399..24ce64364d63 100644
@@ -591,6 +591,7 @@ si5328: clock-generator@69 {/* SI5328 - u20 */
 				#address-cells = <1>;
 				#size-cells = <0>;
 				#clock-cells = <1>;
+				compatible = "silabs,si5328";
 				clocks = <&refhdmi>;
 				clock-names = "xtal";
 				clock-output-names = "si5328";
Signature · 3 lines
Regards,

Laurent Pinchart
#2 lore raw

Hi,

Quoted 7 lines · Laurent Pinchart

Hi Quanyang,

Thank you for the patch.

Quoted 2 lines · On Mon, Mar 08, 2021 at 03:08:43PM +0800, [email protected] wrote:

From: Quanyang Wang <[email protected]>

Quoted 9 lines
Quoted 4 lines

The function of_i2c_get_board_info will call of_modalias_node to check if a device_node contains "compatible" string. So let's assign the proper string "silabs,si5328" to clock-generator@69's compatible property to eliminate the error info as below:

As far as I can tell, "silabs,si5328" isn't documented in Documentation/devicetree/bindings/. We need DT bindings before making use of the compatible string.

the second option is to remove/comment this node.

Thanks,
Michal

#3 lore raw

Hi Michal,

Quoted 14 lines · Michal Simek

Hi,

Quoted 11 lines · Laurent Pinchart

Hi Quanyang,

Thank you for the patch.

Quoted 6 lines · On Mon, Mar 08, 2021 at 03:08:43PM +0800, [email protected] wrote:

From: Quanyang Wang <[email protected]>

The function of_i2c_get_board_info will call of_modalias_node to check if a device_node contains "compatible" string. So let's assign the proper string "silabs,si5328" to clock-generator@69's compatible property to eliminate the error info as below:

Quoted 5 lines
Quoted 4 lines

As far as I can tell, "silabs,si5328" isn't documented in Documentation/devicetree/bindings/. We need DT bindings before making use of the compatible string.

the second option is to remove/comment this node.

Thank you for your suggestion.

 I will send a new patch to delete these nodes and add some comments there.

Best Regards

Quanyang

Quoted 3 lines

Thanks,
Michal

#4 lore raw
In reply to Laurent Pinchart

Hi Laurent,

Quoted 7 lines · Laurent Pinchart

Hi Quanyang,

Thank you for the patch.

Quoted 2 lines · On Mon, Mar 08, 2021 at 03:08:43PM +0800, [email protected] wrote:

From: Quanyang Wang <[email protected]>

Quoted 7 lines
Quoted 4 lines

The function of_i2c_get_board_info will call of_modalias_node to check if a device_node contains "compatible" string. So let's assign the proper string "silabs,si5328" to clock-generator@69's compatible property to eliminate the error info as below:

As far as I can tell, "silabs,si5328" isn't documented in Documentation/devicetree/bindings/. We need DT bindings before making use of the compatible string.

Thank you for your review.

I will send a new patch to delete these device nodes.

Best Regards

Quanyang

Quoted 35 lines
Quoted 35 lines

i2c i2c-10: of_i2c: modalias failure on /axi/i2c@ff030000/i2c-mux@74/i2c@4/clock-generator@69 i2c i2c-10: Failed to create I2C device for /axi/i2c@ff030000/i2c-mux@74/i2c@4/clock-generator@69

Fixes 82a7ebf00224 ("arm64: dts: zynqmp: Add DT description for si5328 for zcu102/zcu106")
---
  arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts | 1 +
  arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts | 1 +
  2 files changed, 2 insertions(+)
arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts +1 -0
index 12e8bd48dc8c..a73841ad24ce 100644
@@ -590,6 +590,7 @@ si5328: clock-generator@69 {/* SI5328 - u20 */
  				#address-cells = <1>;
  				#size-cells = <0>;
  				#clock-cells = <1>;
+				compatible = "silabs,si5328";
  				clocks = <&refhdmi>;
  				clock-names = "xtal";
  				clock-output-names = "si5328";
arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts +1 -0
index 18771e868399..24ce64364d63 100644
@@ -591,6 +591,7 @@ si5328: clock-generator@69 {/* SI5328 - u20 */
  				#address-cells = <1>;
  				#size-cells = <0>;
  				#clock-cells = <1>;
+				compatible = "silabs,si5328";
  				clocks = <&refhdmi>;
  				clock-names = "xtal";
  				clock-output-names = "si5328";