[PATCH u-boot v2019.04-aspeed-openbmc v2] ARM: dts: aspeed: add Qualcomm DC-SCM V1

Jae Hyun Yoo quic_jaehyoo at quicinc.com
Wed Jun 8 00:03:43 AEST 2022


On 6/7/2022 12:43 AM, Cédric Le Goater wrote:
> On 6/7/22 03:05, Joel Stanley wrote:
>> On Mon, 6 Jun 2022 at 13:56, Jae Hyun Yoo <quic_jaehyoo at quicinc.com> 
>> wrote:
>>>
>>> Ping
>>>
>>> On 5/19/2022 11:53 AM, Jae Hyun Yoo wrote:
>>>> From: Graeme Gregory <quic_ggregory at quicinc.com>
>>>>
>>>> Add initial version of device tree for Qualcomm DC-SCM V1 BMC which is
>>>> equipped with Aspeed AST2600 BMC SoC.
>>>>
>>>> Signed-off-by: Graeme Gregory <quic_ggregory at quicinc.com>
>>>> Signed-off-by: Jae Hyun Yoo <quic_jaehyoo at quicinc.com>
>>>> ---
>>>> Changes in v2:
>>>> * Changed vendor name from Nuvia to Qualcomm.
>>>>
>>>>    arch/arm/dts/Makefile                   |   1 +
>>>>    arch/arm/dts/ast2600-qcom-dc-scm-v1.dts | 208 
>>>> ++++++++++++++++++++++++
>>>>    2 files changed, 209 insertions(+)
>>>>    create mode 100644 arch/arm/dts/ast2600-qcom-dc-scm-v1.dts
>>>>
>>>> diff --git a/arch/arm/dts/ast2600-qcom-dc-scm-v1.dts 
>>>> b/arch/arm/dts/ast2600-qcom-dc-scm-v1.dts
>>>> new file mode 100644
>>>> index 000000000000..e966f739b708
>>>> --- /dev/null
>>>> +++ b/arch/arm/dts/ast2600-qcom-dc-scm-v1.dts

[...]

>>>> +&fmc {
>>>> +     status = "okay";
>>>> +
>>>> +     pinctrl-names = "default";
>>>> +     pinctrl-0 = <&pinctrl_fmcquad_default>;
>>>> +
>>>> +     flash at 0 {
>>>> +             compatible = "spi-flash", "sst,w25q256";
>>
>> Compatible strings should go from the most general to the most
>> specific, so these are around the wrong way. I see you've probably
>> just copied the ast2600-evb which makes the same mistake.
>>
>> In the dtsi we have jedec,spi-nor which you overwrite here.
>>
>> u-boot has spi-flash but Linux uses jedec,spi-nor. I wonder if we
>> should update the aspeed driver to use that?
>>
>> Cédric, do you have thoughts here?
> 
> Yes. The closer we are to the Linux DT the better.
> 
> The "spi-flash" and "jedec,spi-nor" compatibles are equivalent for
> the SF driver in U-Boot. I think we can remove all the :
> 
>     compatible = "spi-flash", "sst,w25q256";
> 
> from the Aspeed dts files.
> 
> This fits what the latest U-Boot does.

I checked that it works without the compatible string. I'll drop the
line in v3.

Thanks,
Jae



More information about the openbmc mailing list