Re: [PATCH 1/2] arm64: dts: ti: k3-am654: Add McSPI DT nodes

From: Vignesh R
Date: Thu Dec 13 2018 - 10:03:47 EST




On 13-Dec-18 8:29 PM, Tero Kristo wrote:
> On 09/12/2018 12:22, Vignesh R wrote:
>> There are 3 instances of McSPI in MCU domain and 4 instances in Main
>> domain.
>> Add DT nodes for all McSPI instances present on AM654 SoC.
>>
>> Signed-off-by: Vignesh R <vigneshr@xxxxxx>
>> ---
>> Â arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 52 ++++++++++++++++++++++++
>>  arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi | 30 ++++++++++++++
>> Â 2 files changed, 82 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
>> b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
>> index 0a0a8fc5df64..6c71e67b8988 100644
>> --- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
>> +++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
>> @@ -138,4 +138,56 @@
>> ÂÂÂÂÂÂÂÂÂ clocks = <&k3_clks 39 0>;
>> ÂÂÂÂÂÂÂÂÂ clock-names = "fck";
>> ÂÂÂÂÂ };
>> +
>> +ÂÂÂ main_spi0: spi@2100000 {
>> +ÂÂÂÂÂÂÂ compatible = "ti,am654-mcspi","ti,omap4-mcspi";
>
> WARNING: DT compatible string "ti,am654-mcspi" appears un-documented --
> check ../../Documentation/devicetree/bindings/
> #63: FILE: arch/arm64/boot/dts/ti/k3-am65-main.dtsi:143:
> +ÂÂÂÂÂÂÂ compatible = "ti,am654-mcspi","ti,omap4-mcspi";
>
> Same for the rest of the nodes.
>
> Did you forget documentation part?
>

Documentation patch as been accepted into SPI tree and part of linux-next:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=abc61f47a70f7c8331f00eff1ccb6557a9d4c224

Regards
Vignesh

> -Tero
>
>> +ÂÂÂÂÂÂÂ reg = <0x0 0x2100000 0x0 0x400>;
>> +ÂÂÂÂÂÂÂ interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
>> +ÂÂÂÂÂÂÂ clocks = <&k3_clks 137 1>;
>> +ÂÂÂÂÂÂÂ power-domains = <&k3_pds 137>;
>> +ÂÂÂÂÂÂÂ #address-cells = <1>;
>> +ÂÂÂÂÂÂÂ #size-cells = <0>;
>> +ÂÂÂ };
>> +
>> +ÂÂÂ main_spi1: spi@2110000 {
>> +ÂÂÂÂÂÂÂ compatible = "ti,am654-mcspi","ti,omap4-mcspi";
>> +ÂÂÂÂÂÂÂ reg = <0x0 0x2110000 0x0 0x400>;
>> +ÂÂÂÂÂÂÂ interrupts = <GIC_SPI 185 IRQ_TYPE_LEVEL_HIGH>;
>> +ÂÂÂÂÂÂÂ clocks = <&k3_clks 138 1>;
>> +ÂÂÂÂÂÂÂ power-domains = <&k3_pds 138>;
>> +ÂÂÂÂÂÂÂ #address-cells = <1>;
>> +ÂÂÂÂÂÂÂ #size-cells = <0>;
>> +ÂÂÂÂÂÂÂ assigned-clocks = <&k3_clks 137 1>;
>> +ÂÂÂÂÂÂÂ assigned-clock-rates = <48000000>;
>> +ÂÂÂ };
>> +
>> +ÂÂÂ main_spi2: spi@2120000 {
>> +ÂÂÂÂÂÂÂ compatible = "ti,am654-mcspi","ti,omap4-mcspi";
>> +ÂÂÂÂÂÂÂ reg = <0x0 0x2120000 0x0 0x400>;
>> +ÂÂÂÂÂÂÂ interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>;
>> +ÂÂÂÂÂÂÂ clocks = <&k3_clks 139 1>;
>> +ÂÂÂÂÂÂÂ power-domains = <&k3_pds 139>;
>> +ÂÂÂÂÂÂÂ #address-cells = <1>;
>> +ÂÂÂÂÂÂÂ #size-cells = <0>;
>> +ÂÂÂ };
>> +
>> +ÂÂÂ main_spi3: spi@2130000 {
>> +ÂÂÂÂÂÂÂ compatible = "ti,am654-mcspi","ti,omap4-mcspi";
>> +ÂÂÂÂÂÂÂ reg = <0x0 0x2130000 0x0 0x400>;
>> +ÂÂÂÂÂÂÂ interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>;
>> +ÂÂÂÂÂÂÂ clocks = <&k3_clks 140 1>;
>> +ÂÂÂÂÂÂÂ power-domains = <&k3_pds 140>;
>> +ÂÂÂÂÂÂÂ #address-cells = <1>;
>> +ÂÂÂÂÂÂÂ #size-cells = <0>;
>> +ÂÂÂ };
>> +
>> +ÂÂÂ main_spi4: spi@2140000 {
>> +ÂÂÂÂÂÂÂ compatible = "ti,am654-mcspi","ti,omap4-mcspi";
>> +ÂÂÂÂÂÂÂ reg = <0x0 0x2140000 0x0 0x400>;
>> +ÂÂÂÂÂÂÂ interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
>> +ÂÂÂÂÂÂÂ clocks = <&k3_clks 141 1>;
>> +ÂÂÂÂÂÂÂ power-domains = <&k3_pds 141>;
>> +ÂÂÂÂÂÂÂ #address-cells = <1>;
>> +ÂÂÂÂÂÂÂ #size-cells = <0>;
>> +ÂÂÂ };
>> Â };
>> diff --git a/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
>> b/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
>> index 1fd027748e1f..1aeae52fb239 100644
>> --- a/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
>> +++ b/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
>> @@ -26,4 +26,34 @@
>> ÂÂÂÂÂÂÂÂÂ clocks = <&k3_clks 114 1>;
>> ÂÂÂÂÂÂÂÂÂ power-domains = <&k3_pds 114>;
>> ÂÂÂÂÂ };
>> +
>> +ÂÂÂ mcu_spi0: spi@40300000 {
>> +ÂÂÂÂÂÂÂ compatible = "ti,am654-mcspi","ti,omap4-mcspi";
>> +ÂÂÂÂÂÂÂ reg = <0x0 0x40300000 0x0 0x400>;
>> +ÂÂÂÂÂÂÂ interrupts = <GIC_SPI 560 IRQ_TYPE_LEVEL_HIGH>;
>> +ÂÂÂÂÂÂÂ clocks = <&k3_clks 142 1>;
>> +ÂÂÂÂÂÂÂ power-domains = <&k3_pds 142>;
>> +ÂÂÂÂÂÂÂ #address-cells = <1>;
>> +ÂÂÂÂÂÂÂ #size-cells = <0>;
>> +ÂÂÂ };
>> +
>> +ÂÂÂ mcu_spi1: spi@40310000 {
>> +ÂÂÂÂÂÂÂ compatible = "ti,am654-mcspi","ti,omap4-mcspi";
>> +ÂÂÂÂÂÂÂ reg = <0x0 0x40310000 0x0 0x400>;
>> +ÂÂÂÂÂÂÂ interrupts = <GIC_SPI 561 IRQ_TYPE_LEVEL_HIGH>;
>> +ÂÂÂÂÂÂÂ clocks = <&k3_clks 143 1>;
>> +ÂÂÂÂÂÂÂ power-domains = <&k3_pds 143>;
>> +ÂÂÂÂÂÂÂ #address-cells = <1>;
>> +ÂÂÂÂÂÂÂ #size-cells = <0>;
>> +ÂÂÂ };
>> +
>> +ÂÂÂ mcu_spi2: spi@40320000 {
>> +ÂÂÂÂÂÂÂ compatible = "ti,am654-mcspi","ti,omap4-mcspi";
>> +ÂÂÂÂÂÂÂ reg = <0x0 0x40320000 0x0 0x400>;
>> +ÂÂÂÂÂÂÂ interrupts = <GIC_SPI 562 IRQ_TYPE_LEVEL_HIGH>;
>> +ÂÂÂÂÂÂÂ clocks = <&k3_clks 144 1>;
>> +ÂÂÂÂÂÂÂ power-domains = <&k3_pds 144>;
>> +ÂÂÂÂÂÂÂ #address-cells = <1>;
>> +ÂÂÂÂÂÂÂ #size-cells = <0>;
>> +ÂÂÂ };
>> Â };
>>
>
> --
> Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
> Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki