[PATCH 2/4] ARM: dts: imx6ull-dhcom: Add DH electronics DHCOM i.MX6ULL SoM and PDK2 board

Krzysztof Kozlowski krzysztof.kozlowski at linaro.org
Thu Nov 17 06:38:32 PST 2022


On 17/11/2022 15:11, Christoph Niedermaier wrote:
>>> +&fec2 { /* DHCOM ETH2 */
>>> +     phy-handle = <&mdio2_phy1>;
>>> +     phy-mode = "rmii";
>>> +     pinctrl-0 = <&pinctrl_fec2>;
>>> +     pinctrl-names = "default";
>>> +     status = "okay";
>>> +
>>> +     mdio {
>>> +             #address-cells = <1>;
>>> +             #size-cells = <0>;
>>> +
>>> +             mdio2_phy0: ethernet-phy at 0 { /* SMSC LAN8710Ai */
>>> +                     clock-names = "rmii-ref";
>>> +                     clocks = <&clks IMX6UL_CLK_ENET_REF>;
>>> +                     compatible = "ethernet-phy-id0007.c0f0",
>>> +                                  "ethernet-phy-ieee802.3-c22";
>>> +                     interrupt-parent = <&gpio5>;
>>> +                     interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
>>> +                     pinctrl-0 = <&pinctrl_fec1_phy &pinctrl_snvs_fec1_phy>;
>>> +                     pinctrl-names = "default";
>>> +                     reg = <0>;
>>
>> compatible first, reg second, then the rest of properties. Same in other
>> places.
> 
> Sorry, I have sorted it alphabetically.
> Should the status property be sorted at the end or also alphabetically?

You do not have status here. For the cases where it is present, depends
on the preferences of subarch maintainer. Usually it also goes to the
end, but not always.

> 
>>> +                     reset-assert-us = <500>;
>>> +                     reset-deassert-us = <500>;
>>> +                     reset-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
>>> +                     smsc,disable-energy-detect; /* Make plugin detection reliable */
>>> +             };
>>> +


Best regards,
Krzysztof




More information about the linux-arm-kernel mailing list