Skip to contentSkip to conversation

of: Modify c_can binding documentation

PATCH Superseded AnilKumar Ch 3 participants 8 messages Sep 3, 2012 – Sep 6, 2012

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 of: Modify c_can binding documentation

Modify c_can binding documentation according to recent review comments on device tree data addition patches.

---
Changes from v1:
- Separated from "Add DT for AM33XX devices" patch series
- Incorporated Stephen Warren's review comments on v1
* Removed status and interrupt-parent description from c_can.txt file because these are device specific parameters.

 .../devicetree/bindings/net/can/c_can.txt          |   24 +++++++++++++++-----
 1 file changed, 18 insertions(+), 6 deletions(-)
Documentation/devicetree/bindings/net/can/c_can.txt +18 -6
index a43f083..2c420c2 100644
@@ -10,7 +10,6 @@ Required properties:
 			  number
 
 Optional properties:
-- interrupt-parent	: The parent interrupt controller
 - ti,hwmods		: Must be "d_can<n>" or "c_can<n>", n being the
 			  instance number
 
@@ -20,18 +19,31 @@ Future plan is to migrate hwmod data base contents into device tree
 blob so that, all the required data will be used from device tree dts
 file.
 
-Examples:
+Example:
 
-	d_can@481D0000 {
+Step1: SoC common .dtsi file
+
+	d_can1: d_can@481d0000 {
 		compatible = "bosch,d_can";
-		reg = <0x481D0000 0x1000>;
-		interrupts = <55 0x4>;
+		reg = <0x481d0000 0x2000>;
+		interrupts = <55>;
 		interrupt-parent = <&intc>;
+		status = "disabled";
 	};
 
 (or)
 
-	d_can@481D0000 {
+	d_can1: d_can@481d0000 {
 		compatible = "bosch,d_can";
 		ti,hwmods = "d_can1";
+		reg = <0x481d0000 0x2000>;
+		interrupts = <55>;
+		interrupt-parent = <&intc>;
+		status = "disabled";
+	};
+
+Step 2: board specific .dts file
+
+	&dcan1 {
+		status = "okay";
 	};
Signature · 1 line
1.7.9.5
#3 lore raw
Quoted 7 lines · Chimata

Marc,

Quoted 4 lines · Stephen Warren
Quoted 3 lines · AnilKumar Ch

Modify c_can binding documentation according to recent review comments on device tree data addition patches.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Can you queue this patch as well for 3.7?

Done. Still something missing?

Marc

Signature · 4 lines
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |
#4 lore raw
Quoted 10 lines · Marc Kleine-Budde
Quoted 9 lines · Chimata

Marc,

Quoted 6 lines · Stephen Warren
Quoted 4 lines · AnilKumar Ch

Modify c_can binding documentation according to recent review comments on device tree data addition patches.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Can you queue this patch as well for 3.7?

Done. Still something missing?

No, at this time only these are pending from my side.

Thanks
AnilKumar

#5 lore raw
In reply to AnilKumar Ch
Quoted 52 lines · AnilKumar Ch

Modify c_can binding documentation according to recent review comments on device tree data addition patches.

---
Changes from v1:
- Separated from "Add DT for AM33XX devices" patch series
- Incorporated Stephen Warren's review comments on v1
* Removed status and interrupt-parent description from c_can.txt file because these are device specific parameters.

 .../devicetree/bindings/net/can/c_can.txt          |   24 +++++++++++++++-----
 1 file changed, 18 insertions(+), 6 deletions(-)
Documentation/devicetree/bindings/net/can/c_can.txt +8 -6
index a43f083..2c420c2 100644
@@ -10,7 +10,6 @@ Required properties:
 			  number
 
 Optional properties:
-- interrupt-parent	: The parent interrupt controller
 - ti,hwmods		: Must be "d_can<n>" or "c_can<n>", n being the
 			  instance number
 
@@ -20,18 +19,31 @@ Future plan is to migrate hwmod data base contents into device tree
 blob so that, all the required data will be used from device tree dts
 file.
 
-Examples:
+Example:
 
-	d_can@481D0000 {
+Step1: SoC common .dtsi file
+
+	d_can1: d_can@481d0000 {
 		compatible = "bosch,d_can";
-		reg = <0x481D0000 0x1000>;
-		interrupts = <55 0x4>;
+		reg = <0x481d0000 0x2000>;
+		interrupts = <55>;
 		interrupt-parent = <&intc>;
+		status = "disabled";
 	};
 
 (or)
 
-	d_can@481D0000 {
+	d_can1: d_can@481d0000 {
 		compatible = "bosch,d_can";

Documentation/devicetree/bindings/net/can/c_can.txt Future plan is to migrate hwmod data base contents into device tree · line 47

Quoted 10 lines
Documentation/devicetree/bindings/net/can/c_can.txt +9 -0
 		ti,hwmods = "d_can1";
+		reg = <0x481d0000 0x2000>;
+		interrupts = <55>;
+		interrupt-parent = <&intc>;
+		status = "disabled";
+	};
+
+Step 2: board specific .dts file
+
+	&dcan1 {
        ^^^^^^

Is there an alias for dcan1 == d_can1 or is this a typo?

Marc

Quoted 3 lines
Documentation/devicetree/bindings/net/can/c_can.txt +1 -0
+		status = "okay";
 	};
Signature · 4 lines
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |
#6 lore raw
Quoted 48 lines · Marc Kleine-Budde
Quoted 47 lines · AnilKumar Ch

Modify c_can binding documentation according to recent review comments on device tree data addition patches.

---
Changes from v1:
- Separated from "Add DT for AM33XX devices" patch series
- Incorporated Stephen Warren's review comments on v1
* Removed status and interrupt-parent description from c_can.txt file because these are device specific parameters.

 .../devicetree/bindings/net/can/c_can.txt          |   24 +++++++++++++++-----
 1 file changed, 18 insertions(+), 6 deletions(-)
Documentation/devicetree/bindings/net/can/c_can.txt +7 -5
index a43f083..2c420c2 100644
@@ -10,7 +10,6 @@ Required properties:
 			  number
 
 Optional properties:
-- interrupt-parent	: The parent interrupt controller
 - ti,hwmods		: Must be "d_can<n>" or "c_can<n>", n being the
 			  instance number
 
@@ -20,18 +19,31 @@ Future plan is to migrate hwmod data base contents into device tree
 blob so that, all the required data will be used from device tree dts
 file.
 
-Examples:
+Example:
 
-	d_can@481D0000 {
+Step1: SoC common .dtsi file
+
+	d_can1: d_can@481d0000 {
 		compatible = "bosch,d_can";
-		reg = <0x481D0000 0x1000>;
-		interrupts = <55 0x4>;
+		reg = <0x481d0000 0x2000>;
+		interrupts = <55>;
 		interrupt-parent = <&intc>;
+		status = "disabled";
 	};
 
Quoted 4 lines

Documentation/devicetree/bindings/net/can/c_can.txt Future plan is to migrate hwmod data base contents into device tree · line 36

Quoted 4 lines
Documentation/devicetree/bindings/net/can/c_can.txt +1 -1
 (or)
 
-	d_can@481D0000 {
+	d_can1: d_can@481d0000 {
        ^^^^^^

This is the typo then? You just posted this patch against arch/arm/boot/dts/am33xx.dtsi:

+ dcan0: d_can@481cc000 {
+ compatible = "bosch,d_can";
+ ti,hwmods = "d_can0";
+ reg = <0x481cc000 0x2000>;
+ interrupts = <52>;
+ interrupt-parent = <&intc>;
+ status = "disabled";
+ };

Quoted 13 lines

Documentation/devicetree/bindings/net/can/c_can.txt Future plan is to migrate hwmod data base contents into device tree · line 47

Quoted 11 lines
Documentation/devicetree/bindings/net/can/c_can.txt +9 -0
 		compatible = "bosch,d_can";
 		ti,hwmods = "d_can1";
+		reg = <0x481d0000 0x2000>;
+		interrupts = <55>;
+		interrupt-parent = <&intc>;
+		status = "disabled";
+	};
+
+Step 2: board specific .dts file
+
+	&dcan1 {
        ^^^^^^
Quoted 6 lines

Is there an alias for dcan1 == d_can1 or is this a typo?

Marc

Documentation/devicetree/bindings/net/can/c_can.txt Future plan is to migrate hwmod data base contents into device tree · line 49

Quoted 2 lines
Documentation/devicetree/bindings/net/can/c_can.txt +1 -0
+		status = "okay";
 	};

Marc

Signature · 4 lines
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |
#7 lore raw
In reply to Marc Kleine-Budde
Quoted 65 lines · Marc Kleine-Budde
Quoted 52 lines · AnilKumar Ch

Modify c_can binding documentation according to recent review comments on device tree data addition patches.

---
Changes from v1:
- Separated from "Add DT for AM33XX devices" patch series
- Incorporated Stephen Warren's review comments on v1
* Removed status and interrupt-parent description from c_can.txt file because these are device specific parameters.

 .../devicetree/bindings/net/can/c_can.txt          |   24 +++++++++++++++-----
 1 file changed, 18 insertions(+), 6 deletions(-)
Documentation/devicetree/bindings/net/can/c_can.txt +8 -6
index a43f083..2c420c2 100644
@@ -10,7 +10,6 @@ Required properties:
 			  number
 
 Optional properties:
-- interrupt-parent	: The parent interrupt controller
 - ti,hwmods		: Must be "d_can<n>" or "c_can<n>", n being the
 			  instance number
 
@@ -20,18 +19,31 @@ Future plan is to migrate hwmod data base contents into device tree
 blob so that, all the required data will be used from device tree dts
 file.
 
-Examples:
+Example:
 
-	d_can@481D0000 {
+Step1: SoC common .dtsi file
+
+	d_can1: d_can@481d0000 {
 		compatible = "bosch,d_can";
-		reg = <0x481D0000 0x1000>;
-		interrupts = <55 0x4>;
+		reg = <0x481d0000 0x2000>;
+		interrupts = <55>;
 		interrupt-parent = <&intc>;
+		status = "disabled";
 	};
 
 (or)
 
-	d_can@481D0000 {
+	d_can1: d_can@481d0000 {
 		compatible = "bosch,d_can";

Documentation/devicetree/bindings/net/can/c_can.txt Future plan is to migrate hwmod data base contents into device tree · line 47

Quoted 10 lines
Documentation/devicetree/bindings/net/can/c_can.txt +9 -0
 		ti,hwmods = "d_can1";
+		reg = <0x481d0000 0x2000>;
+		interrupts = <55>;
+		interrupt-parent = <&intc>;
+		status = "disabled";
+	};
+
+Step 2: board specific .dts file
+
+	&dcan1 {
        ^^^^^^
Quoted 2 lines

Is there an alias for dcan1 == d_can1 or is this a typo?

Oh! This is a typo, could you please fix that or else I will end a patch.

Thanks
AnilKumar