From mboxrd@z Thu Jan 1 00:00:00 1970 From: Caesar Wang Subject: Re: [PATCH v2 3/3] ARM: dts: rockchip: fixes the spi compatible for rk3036 Date: Fri, 20 May 2016 20:57:03 +0800 Message-ID: <573F099F.1020603@rock-chips.com> References: <1463702182-5188-1-git-send-email-wxt@rock-chips.com> <1463702182-5188-3-git-send-email-wxt@rock-chips.com> <8f662b3b-e359-efdf-72e5-c4f862dd1cf6@kernel-upstream.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <8f662b3b-e359-efdf-72e5-c4f862dd1cf6@kernel-upstream.org> Sender: linux-kernel-owner@vger.kernel.org To: Shawn Lin Cc: Heiko Stuebner , Mark Brown , shawn.lin@rock-chips.com, Mark Rutland , devicetree@vger.kernel.org, Pawel Moll , Ian Campbell , linux-kernel@vger.kernel.org, Russell King , linux-rockchip@lists.infradead.org, Rob Herring , Kumar Gala , linux-arm-kernel@lists.infradead.org List-Id: linux-rockchip.vger.kernel.org =E4=BA=8E 2016=E5=B9=B405=E6=9C=8820=E6=97=A5 20:35, Shawn Lin =E5=86=99= =E9=81=93: > =E5=9C=A8 2016/5/20 7:56, Caesar Wang =E5=86=99=E9=81=93: >> That's seem the incorrect string to match the spi driver. >> > > Will it break the backward compatibility for some dtb if not > falling back to "rockchip,rockchip-spi" ? The rk3036 shouldn't work if you read the driver/spi/spi-rockchip.c. since the "rockchip,rockchip-spi" is *not* exist in linux kernel. =2E. static const struct of_device_id rockchip_spi_dt_match[] =3D { { .compatible =3D "rockchip,rk3066-spi", }, { .compatible =3D "rockchip,rk3188-spi", }, { .compatible =3D "rockchip,rk3288-spi", }, { .compatible =3D "rockchip,rk3399-spi", }, { }, } =2E. -Caesar > >> Fixes commit f629fcfab2cd >> ("ARM: dts: rockchip: support the spi for rk3036") >> >> Signed-off-by: Caesar Wang >> Cc: Heiko Stuebner >> Cc: linux-rockchip@lists.infradead.org >> >> --- >> >> Changes in v2: None >> >> arch/arm/boot/dts/rk3036.dtsi | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/arch/arm/boot/dts/rk3036.dtsi=20 >> b/arch/arm/boot/dts/rk3036.dtsi >> index d0f4bb7..a30700a 100644 >> --- a/arch/arm/boot/dts/rk3036.dtsi >> +++ b/arch/arm/boot/dts/rk3036.dtsi >> @@ -431,7 +431,7 @@ >> }; >> >> spi: spi@20074000 { >> - compatible =3D "rockchip,rockchip-spi"; >> + compatible =3D "rockchip,rk3036-spi"; >> reg =3D <0x20074000 0x1000>; >> interrupts =3D ; >> clocks =3D<&cru PCLK_SPI>, <&cru SCLK_SPI>; >> > > > > --=20 caesar wang | software engineer | wxt@rock-chip.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: wxt@rock-chips.com (Caesar Wang) Date: Fri, 20 May 2016 20:57:03 +0800 Subject: [PATCH v2 3/3] ARM: dts: rockchip: fixes the spi compatible for rk3036 In-Reply-To: <8f662b3b-e359-efdf-72e5-c4f862dd1cf6@kernel-upstream.org> References: <1463702182-5188-1-git-send-email-wxt@rock-chips.com> <1463702182-5188-3-git-send-email-wxt@rock-chips.com> <8f662b3b-e359-efdf-72e5-c4f862dd1cf6@kernel-upstream.org> Message-ID: <573F099F.1020603@rock-chips.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org ? 2016?05?20? 20:35, Shawn Lin ??: > ? 2016/5/20 7:56, Caesar Wang ??: >> That's seem the incorrect string to match the spi driver. >> > > Will it break the backward compatibility for some dtb if not > falling back to "rockchip,rockchip-spi" ? The rk3036 shouldn't work if you read the driver/spi/spi-rockchip.c. since the "rockchip,rockchip-spi" is *not* exist in linux kernel. .. static const struct of_device_id rockchip_spi_dt_match[] = { { .compatible = "rockchip,rk3066-spi", }, { .compatible = "rockchip,rk3188-spi", }, { .compatible = "rockchip,rk3288-spi", }, { .compatible = "rockchip,rk3399-spi", }, { }, } .. -Caesar > >> Fixes commit f629fcfab2cd >> ("ARM: dts: rockchip: support the spi for rk3036") >> >> Signed-off-by: Caesar Wang >> Cc: Heiko Stuebner >> Cc: linux-rockchip at lists.infradead.org >> >> --- >> >> Changes in v2: None >> >> arch/arm/boot/dts/rk3036.dtsi | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/arch/arm/boot/dts/rk3036.dtsi >> b/arch/arm/boot/dts/rk3036.dtsi >> index d0f4bb7..a30700a 100644 >> --- a/arch/arm/boot/dts/rk3036.dtsi >> +++ b/arch/arm/boot/dts/rk3036.dtsi >> @@ -431,7 +431,7 @@ >> }; >> >> spi: spi at 20074000 { >> - compatible = "rockchip,rockchip-spi"; >> + compatible = "rockchip,rk3036-spi"; >> reg = <0x20074000 0x1000>; >> interrupts = ; >> clocks =<&cru PCLK_SPI>, <&cru SCLK_SPI>; >> > > > > -- caesar wang | software engineer | wxt at rock-chip.com