arm64: dts: meson: g12a board node order
Subsystems (2)
Jerome Brunet
reviewercover arm64: dts: meson: g12a board node order
The order of the nodes in the u200 and sei510 is bit fancy. Order nodes by address, then node name, then aliases.
This makes rebasing is little less painful
Jerome Brunet (2):
arm64: dts: meson: sei510: consistently order nodes
arm64: dts: meson: u200: consistently order nodes
.../boot/dts/amlogic/meson-g12a-sei510.dts | 92 +++++++++---------- .../boot/dts/amlogic/meson-g12a-u200.dts | 50 +++++----- 2 files changed, 72 insertions(+), 70 deletions(-)
Signature · 1 line
2.20.1
Jerome Brunet
reviewerPATCH 1/2 arm64: dts: meson: sei510: consistently order nodes
Like order boards, order nodes by address then node names then aliases.
--- .../boot/dts/amlogic/meson-g12a-sei510.dts | 92 +++++++++---------- 1 file changed, 46 insertions(+), 46 deletions(-)
arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts +46 -46
@@ -14,10 +14,6 @@ compatible = "seirobotics,sei510", "amlogic,g12a"; model = "SEI Robotics SEI510"; - aliases { - serial0 = &uart_AO; - }; - adc_keys { compatible = "adc-keys"; io-channels = <&saradc 0>;
@@ -31,13 +27,8 @@ }; }; - ao_5v: regulator-ao_5v { - compatible = "regulator-fixed"; - regulator-name = "AO_5V"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - vin-supply = <&dc_in>; - regulator-always-on; + aliases { + serial0 = &uart_AO; }; chosen {
@@ -54,23 +45,6 @@ }; }; - dc_in: regulator-dc_in { - compatible = "regulator-fixed"; - regulator-name = "DC_IN"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - regulator-always-on; - }; - - emmc_1v8: regulator-emmc_1v8 { - compatible = "regulator-fixed"; - regulator-name = "EMMC_1V8"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - vin-supply = <&vddao_3v3>; - regulator-always-on; - }; - hdmi-connector { compatible = "hdmi-connector"; type = "a";
@@ -87,12 +61,30 @@ reg = <0x0 0x0 0x0 0x40000000>; }; - reserved-memory { - /* TEE Reserved Memory */ - bl32_reserved: bl32@5000000 { - reg = <0x0 0x05300000 0x0 0x2000000>; - no-map; - }; + ao_5v: regulator-ao_5v { + compatible = "regulator-fixed"; + regulator-name = "AO_5V"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&dc_in>; + regulator-always-on; + }; + + dc_in: regulator-dc_in { + compatible = "regulator-fixed"; + regulator-name = "DC_IN"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; + + emmc_1v8: regulator-emmc_1v8 { + compatible = "regulator-fixed"; + regulator-name = "EMMC_1V8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vddao_3v3>; + regulator-always-on; }; vddao_3v3: regulator-vddao_3v3 {
@@ -122,6 +114,14 @@ vin-supply = <&vddao_3v3>; regulator-always-on; }; + + reserved-memory { + /* TEE Reserved Memory */ + bl32_reserved: bl32@5000000 { + reg = <0x0 0x05300000 0x0 0x2000000>; + no-map; + }; + }; }; &cec_AO {
@@ -144,6 +144,18 @@ }; }; +&hdmi_tx { + status = "okay"; + pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>; + pinctrl-names = "default"; +}; + +&hdmi_tx_tmds_port { + hdmi_tx_tmds_out: endpoint { + remote-endpoint = <&hdmi_connector_in>; + }; +}; + &saradc { status = "okay"; vref-supply = <&vddio_ao1v8>;
@@ -161,18 +173,6 @@ }; }; -&hdmi_tx { - status = "okay"; - pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>; - pinctrl-names = "default"; -}; - -&hdmi_tx_tmds_port { - hdmi_tx_tmds_out: endpoint { - remote-endpoint = <&hdmi_connector_in>; - }; -}; - &uart_AO { status = "okay"; pinctrl-0 = <&uart_ao_a_pins>;
Signature · 1 line
2.20.1
Kevin Hilman
maintainerRe: [PATCH 1/2] arm64: dts: meson: sei510: consistently order nodes
Quoted 26 lines · Jerome Brunet
Like order boards, order nodes by address then node names then aliases.
Signed-off-by Jerome Brunet <[email protected]>--- .../boot/dts/amlogic/meson-g12a-sei510.dts | 92 +++++++++---------- 1 file changed, 46 insertions(+), 46 deletions(-)arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts +0
-4@@ -14,10 +14,6 @@ compatible = "seirobotics,sei510", "amlogic,g12a"; model = "SEI Robotics SEI510"; - aliases { - serial0 = &uart_AO; - }; - adc_keys { compatible = "adc-keys"; io-channels = <&saradc 0>;@@ -31,13 +27,8 @@ }; };
arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts line 32
Quoted 10 lines
arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts +2
-7- ao_5v: regulator-ao_5v { - compatible = "regulator-fixed"; - regulator-name = "AO_5V"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - vin-supply = <&dc_in>; - regulator-always-on; + aliases { + serial0 = &uart_AO; };
minor nit: I kind of like "aliases" and "chosen" at the top since they are kind of special nodes, but honestly, I can't think of a really good reason other than personal preference, so keeping things sorted as you've done here is probably better.
Kevin
Jerome Brunet
reviewerRe: [PATCH 1/2] arm64: dts: meson: sei510: consistently order nodes
Quoted 5 lines · Kevin Hilman
minor nit: I kind of like "aliases" and "chosen" at the top since they are kind of special nodes, but honestly, I can't think of a really good reason other than personal preference, so keeping things sorted as you've done here is probably better.
You thought the same, then thought maybe memory was important too. But going down that path, you end up sorting by feeling. It is going to be difficult to all agree on which nodes are special.
In the end, we just want/need something that is easy to respect and verify.
Quoted 1 line
Kevin
Re: [PATCH 1/2] arm64: dts: meson: sei510: consistently order nodes
Quoted 7 lines · Jerome Brunet
Quoted 5 lines · Kevin Hilman
minor nit: I kind of like "aliases" and "chosen" at the top since they are kind of special nodes, but honestly, I can't think of a really good reason other than personal preference, so keeping things sorted as you've done here is probably better.
Quoted 5 lines
You thought the same, then thought maybe memory was important too. But going down that path, you end up sorting by feeling. It is going to be difficult to all agree on which nodes are special.
In the end, we just want/need something that is easy to respect and verify.
I think it would be better to have the same layout for aliases and memory over all the amlogic DTS, it's common over all socs to have these nodes on top.
Neil
Quoted 10 lines
Quoted 2 lines
Kevin
_______________________________________________
linux-amlogic mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-amlogic
Kevin Hilman
maintainerRe: [PATCH 1/2] arm64: dts: meson: sei510: consistently order nodes
Quoted 8 lines · Neil Armstrong
Quoted 7 lines · Jerome Brunet
Quoted 5 lines · Kevin Hilman
minor nit: I kind of like "aliases" and "chosen" at the top since they are kind of special nodes, but honestly, I can't think of a really good reason other than personal preference, so keeping things sorted as you've done here is probably better.
Quoted 8 lines
Quoted 5 lines
You thought the same, then thought maybe memory was important too. But going down that path, you end up sorting by feeling. It is going to be difficult to all agree on which nodes are special.
In the end, we just want/need something that is easy to respect and verify.
I think it would be better to have the same layout for aliases and memory over all the amlogic DTS, it's common over all socs to have these nodes on top.
aliases, chosen, memory and reserved-memory are ones that are typically on the top for convience sake, but looking around we have not been terribly consistent there either.
At this point, to continue the tradition, I'm not going to be too picky about enforcing "standards" that are loosely defined (or undefined) and will generally accept cleanups that are moving us towards consistency and ease of rebasing.
Kevin
Jerome Brunet
reviewerPATCH 2/2 arm64: dts: meson: u200: consistently order nodes
In reply to Jerome BrunetLike order boards, order nodes by address then node names then aliases.
--- .../boot/dts/amlogic/meson-g12a-u200.dts | 50 ++++++++++--------- 1 file changed, 26 insertions(+), 24 deletions(-)
arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts +26 -24
@@ -16,13 +16,10 @@ aliases { serial0 = &uart_AO; }; + chosen { stdout-path = "serial0:115200n8"; }; - memory@0 { - device_type = "memory"; - reg = <0x0 0x0 0x0 0x40000000>; - }; cvbs-connector { compatible = "composite-video-connector";
@@ -34,15 +31,6 @@ }; }; - flash_1v8: regulator-flash_1v8 { - compatible = "regulator-fixed"; - regulator-name = "FLASH_1V8"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - vin-supply = <&vcc_3v3>; - regulator-always-on; - }; - hdmi-connector { compatible = "hdmi-connector"; type = "a";
@@ -54,6 +42,20 @@ }; }; + memory@0 { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x40000000>; + }; + + flash_1v8: regulator-flash_1v8 { + compatible = "regulator-fixed"; + regulator-name = "FLASH_1V8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vcc_3v3>; + regulator-always-on; + }; + main_12v: regulator-main_12v { compatible = "regulator-fixed"; regulator-name = "12V";
@@ -62,6 +64,17 @@ regulator-always-on; }; + usb_pwr_en: regulator-usb_pwr_en { + compatible = "regulator-fixed"; + regulator-name = "USB_PWR_EN"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&vcc_5v>; + + gpio = <&gpio GPIOH_6 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + vcc_1v8: regulator-vcc_1v8 { compatible = "regulator-fixed"; regulator-name = "VCC_1V8";
@@ -92,17 +105,6 @@ enable-active-high; }; - usb_pwr_en: regulator-usb_pwr_en { - compatible = "regulator-fixed"; - regulator-name = "USB_PWR_EN"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - vin-supply = <&vcc_5v>; - - gpio = <&gpio GPIOH_6 GPIO_ACTIVE_HIGH>; - enable-active-high; - }; - vddao_1v8: regulator-vddao_1v8 { compatible = "regulator-fixed"; regulator-name = "VDDAO_1V8";
Signature · 1 line
2.20.1
Quoted 4 lines · Jerome Brunet
The order of the nodes in the u200 and sei510 is bit fancy. Order nodes by address, then node name, then aliases.
This makes rebasing is little less painful
Fully agree. Thanks for the cleanup.
Queued for v5.3 (branch: v5.3/dt64)
Kevin