arm/dts: AM33XX: Set the default status of module to "disabled" state
PATCH 1/1 arm/dts: AM33XX: Set the default status of module to "disabled" state
Ideally in common SoC dtsi file we should set all modules to "disabled" state and it should get enabled in respective EVM/Board dts file as per usage.
This patch sets default status of all modules to "disabled" state in am33xx.dtsi file, and as per board requirement, enabled in board dts file (like, bone, evm, etc...).
---
This patch is tested on BeagleBone platform.
arch/arm/boot/dts/am335x-bone.dts | 6 ++++++ arch/arm/boot/dts/am335x-evm.dts | 6 ++++++ arch/arm/boot/dts/am33xx.dtsi | 9 +++++++++ 3 files changed, 21 insertions(+), 0 deletions(-)
arch/arm/boot/dts/am335x-bone.dts +6 -0
@@ -17,4 +17,10 @@ device_type = "memory"; reg = <0x80000000 0x10000000>; /* 256 MB */ }; + + ocp { + uart1: serial at 44E09000 { + status = "okay"; + }; + }; };
arch/arm/boot/dts/am335x-evm.dts +6 -0
@@ -17,4 +17,10 @@ device_type = "memory"; reg = <0x80000000 0x10000000>; /* 256 MB */ }; + + ocp { + uart1: serial at 44E09000 { + status = "okay"; + }; + }; };
arch/arm/boot/dts/am33xx.dtsi +9 -0
@@ -102,36 +102,42 @@ compatible = "ti,omap3-uart"; ti,hwmods = "uart1"; clock-frequency = <48000000>; + status = "disabled"; }; uart2: serial at 48022000 { compatible = "ti,omap3-uart"; ti,hwmods = "uart2"; clock-frequency = <48000000>; + status = "disabled"; }; uart3: serial at 48024000 { compatible = "ti,omap3-uart"; ti,hwmods = "uart3"; clock-frequency = <48000000>; + status = "disabled"; }; uart4: serial at 481A6000 { compatible = "ti,omap3-uart"; ti,hwmods = "uart4"; clock-frequency = <48000000>; + status = "disabled"; }; uart5: serial at 481A8000 { compatible = "ti,omap3-uart"; ti,hwmods = "uart5"; clock-frequency = <48000000>; + status = "disabled"; }; uart6: serial at 481AA000 { compatible = "ti,omap3-uart"; ti,hwmods = "uart6"; clock-frequency = <48000000>; + status = "disabled"; }; i2c1: i2c at 44E0B000 {
@@ -139,6 +145,7 @@ #address-cells = <1>; #size-cells = <0>; ti,hwmods = "i2c1"; + status = "disabled"; }; i2c2: i2c at 4802A000 {
@@ -146,6 +153,7 @@ #address-cells = <1>; #size-cells = <0>; ti,hwmods = "i2c2"; + status = "disabled"; }; i2c3: i2c at 4819C000 {
@@ -153,6 +161,7 @@ #address-cells = <1>; #size-cells = <0>; ti,hwmods = "i2c3"; + status = "disabled"; }; }; };
--
1.7.0.4
PATCH 1/1 arm/dts: AM33XX: Set the default status of module to "disabled" state
Quoted 8 lines · Vaibhav Hiremath
Ideally in common SoC dtsi file we should set all modules to "disabled" state and it should get enabled in respective EVM/Board dts file as per usage.
This patch sets default status of all modules to "disabled" state in
am33xx.dtsifile, and as per board requirement, enabled in board dts file (like, bone, evm, etc...).
Quoted 5 lines
Signed-off-by Vaibhav Hiremath <[email protected]>Cc Benoit Cousson <[email protected]>Cc Grant Likely <[email protected]>Cc Arnd Bergmann <[email protected]>CC Tony Lindgren <[email protected]>
PATCH 1/1 arm/dts: AM33XX: Set the default status of module to "disabled" state
In reply to Vaibhav HiremathHi Vaibhav,
Quoted 26 lines · Vaibhav
Ideally in common SoC dtsi file we should set all modules to "disabled" state and it should get enabled in respective EVM/Board dts file as per usage.
This patch sets default status of all modules to "disabled" state in
am33xx.dtsifile, and as per board requirement, enabled in board dts file (like, bone, evm, etc...).Signed-off-by Vaibhav Hiremath <[email protected]>Cc Benoit Cousson <[email protected]>Cc Grant Likely <[email protected]>Cc Arnd Bergmann <[email protected]>CC Tony Lindgren <[email protected]>---
This patch is tested on BeagleBone platform.arch/arm/boot/dts/am335x-bone.dts | 6 ++++++ arch/arm/boot/dts/am335x-evm.dts | 6 ++++++ arch/arm/boot/dts/am33xx.dtsi | 9 +++++++++ 3 files changed, 21 insertions(+), 0 deletions(-)arch/arm/boot/dts/am335x-bone.dts +0
-0
arch/arm/boot/dts/am335x-bone.dts line 24
Quoted 8 lines
arch/arm/boot/dts/am335x-bone.dts +5
-0@@ -17,4 +17,10 @@ device_type = "memory"; reg = <0x80000000 0x10000000>; /* 256 MB */ }; + + ocp { + uart1: serial at 44E09000 { + status = "okay"; + };
Minor change, correct indentation here.
Quoted 7 lines
arch/arm/boot/dts/am335x-bone.dts +1
-0+ }; };arch/arm/boot/dts/am335x-evm.dts +0
-0
arch/arm/boot/dts/am335x-evm.dts line 24
Quoted 8 lines
arch/arm/boot/dts/am335x-evm.dts +5
-0@@ -17,4 +17,10 @@ device_type = "memory"; reg = <0x80000000 0x10000000>; /* 256 MB */ }; + + ocp { + uart1: serial at 44E09000 { + status = "okay"; + };
ditto
Regards
AnilKumar
PATCH 1/1 arm/dts: AM33XX: Set the default status of module to "disabled" state
Quoted 24 lines · Chimata
Hi Vaibhav,
Quoted 21 lines · Vaibhav
Ideally in common SoC dtsi file we should set all modules to "disabled" state and it should get enabled in respective EVM/Board dts file as per usage.
This patch sets default status of all modules to "disabled" state in
am33xx.dtsifile, and as per board requirement, enabled in board dts file (like, bone, evm, etc...).Signed-off-by Vaibhav Hiremath <[email protected]>Cc Benoit Cousson <[email protected]>Cc Grant Likely <[email protected]>Cc Arnd Bergmann <[email protected]>CC Tony Lindgren <[email protected]>---
This patch is tested on BeagleBone platform.arch/arm/boot/dts/am335x-bone.dts | 6 ++++++ arch/arm/boot/dts/am335x-evm.dts | 6 ++++++ arch/arm/boot/dts/am33xx.dtsi | 9 +++++++++ 3 files changed, 21 insertions(+), 0 deletions(-)
Quoted 16 lines
arch/arm/boot/dts/am335x-bone.dts line 24
Quoted 13 lines
arch/arm/boot/dts/am335x-bone.dts +5
-0@@ -17,4 +17,10 @@ device_type = "memory"; reg = <0x80000000 0x10000000>; /* 256 MB */ }; + + ocp { + uart1: serial at 44E09000 { + status = "okay"; + };Minor change, correct indentation here.
Thanks Anil for pointing me to this, my vi rules screwed up here, I will correct it and send next version with Ack-by Arnd.
Thanks,
Vaibhav
Quoted 21 lines
Quoted 7 lines
arch/arm/boot/dts/am335x-bone.dts +1
-0+ }; };arch/arm/boot/dts/am335x-evm.dts +0
-0arch/arm/boot/dts/am335x-evm.dts line 24
Quoted 8 lines
arch/arm/boot/dts/am335x-evm.dts +5
-0@@ -17,4 +17,10 @@ device_type = "memory"; reg = <0x80000000 0x10000000>; /* 256 MB */ }; + + ocp { + uart1: serial at 44E09000 { + status = "okay"; + };ditto
Regards
AnilKumar