ARM: dts: NSP: MX6X: get mac-address from eeprom
Subsystems (2)
PATCH 1/2 ARM: dts: NSP: MX6X: get mac-address from eeprom
The MAC address on the MX64/MX65 series is located on the AT24 EEPROM. This is the same as other Meraki devices such as the MR32 [1].
--- arch/arm/boot/dts/bcm958625-meraki-mx6x-common.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm/boot/dts/bcm958625-meraki-mx6x-common.dtsi +8 -0
@@ -39,6 +39,8 @@ led-3 { &amac2 { status = "okay"; + nvmem-cells = <&mac_address>; + nvmem-cell-names = "mac-address"; }; &ehci0 {
@@ -53,6 +55,12 @@ eeprom@50 { reg = <0x50>; pagesize = <32>; read-only; + #address-cells = <1>; + #size-cells = <1>; + + mac_address: mac-address@66 { + reg = <0x66 0x6>; + }; }; };
Signature · 1 line
2.27.0
PATCH 2/2 ARM: dts: NSP: MX6X: correct LED function types
Currently, the amber LED will remain always on. This is due to a misinterpretation of the LED sub-node properties, where-by "default-state" was used to indicate the initial state when powering on the device. When in use, however, this resulted in the amber LED always being on. Instead change this to only indicate a fault state.
Assign LED_FUNCTION_POWER to the green PWM LED.
These changes bring the MX64/65 in line with the MR32's devicetree.
--- arch/arm/boot/dts/bcm958625-meraki-alamo.dtsi | 3 +-- arch/arm/boot/dts/bcm958625-meraki-kingpin.dtsi | 3 +-- arch/arm/boot/dts/bcm958625-meraki-mx6x-common.dtsi | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-)
arch/arm/boot/dts/bcm958625-meraki-alamo.dtsi +1 -2
@@ -57,10 +57,9 @@ led-3 { led-4 { /* amber:power */ - function = LED_FUNCTION_POWER; + function = LED_FUNCTION_FAULT; color = <LED_COLOR_ID_AMBER>; gpios = <&gpioa 3 GPIO_ACTIVE_HIGH>; - default-state = "on"; }; led-5 {
arch/arm/boot/dts/bcm958625-meraki-kingpin.dtsi +1 -2
@@ -106,10 +106,9 @@ led-9 { led-a { /* amber:power */ - function = LED_FUNCTION_POWER; + function = LED_FUNCTION_FAULT; color = <LED_COLOR_ID_AMBER>; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; - default-state = "on"; }; led-b {
arch/arm/boot/dts/bcm958625-meraki-mx6x-common.dtsi +1 -1
@@ -22,7 +22,7 @@ led-1 { }; led-2 { - function = LED_FUNCTION_INDICATOR; + function = LED_FUNCTION_POWER; color = <LED_COLOR_ID_GREEN>; pwms = <&pwm 2 50000>; max-brightness = <255>;
Signature · 1 line
2.27.0
Florian Fainelli
AppliedRe: [PATCH 2/2] ARM: dts: NSP: MX6X: correct LED function types
Quoted 6 lines · Matthew Hagan
Currently, the amber LED will remain always on. This is due to a misinterpretation of the LED sub-node properties, where-by "default-state" was used to indicate the initial state when powering on the device. When in use, however, this resulted in the amber LED always being on. Instead change this to only indicate a fault state.
Quoted 6 lines
Assign
LED_FUNCTION_POWERto the green PWM LED.These changes bring the MX64/65 in line with the MR32's devicetree.
Signed-off-by Matthew Hagan <[email protected]>---
Applied to https://github.com/Broadcom/stblinux/commits/devicetree/next, thanks! --
Florian
Florian Fainelli
AppliedQuoted 7 lines · Matthew Hagan
The MAC address on the MX64/MX65 series is located on the AT24 EEPROM. This is the same as other Meraki devices such as the MR32 [1].
Signed-off-by Matthew Hagan <[email protected]>---
Applied to https://github.com/Broadcom/stblinux/commits/devicetree/next, thanks! --
Florian