Re: [PATCH v3 1/2] dts: vt8500: Add SDHC node to DTS file for WM8650
Hello. On 03/01/2015 10:49 PM, Roman Volkov wrote: Since WM8650 has the same 'WMT' SDHC controller as WM8505, and the driver is already in the kernel, this node enables the controller support for WM8650 Signed-off-by: Roman Volkov Reviewed-by: Alexey Charkov --- arch/arm/boot/dts/wm8650.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/wm8650.dtsi b/arch/arm/boot/dts/wm8650.dtsi index b1c59a7..e12213d 100644 --- a/arch/arm/boot/dts/wm8650.dtsi +++ b/arch/arm/boot/dts/wm8650.dtsi @@ -187,6 +187,15 @@ interrupts = <43>; }; + sdhc@d800a000 { According to the ePAPR standard, the device nodes should have generic names according to their functions, so this node should be named just "sd@d800a000". WBR, Sergei Sergei, Why not "sdmmc" or "sdhci" or "sdio" then? It would be great to name SDHCI is the SD host controller standard, while the names should describe "the function of the device and not its precise programming model". SDIO isn't the physical interface name, the physical interface underneath is still SD. "mmcsd" or "mmc-sd" would be appropriate, however just "mmc" is typically used. nodes in same way, but there is no exact requirement in ePAPR v1.1 regarding SD/MMC controllers. Yes, MMC/SD node names are not yet standardized. Also, in Linux I don't see that someone strictly follows this requirement. Because people for the most part are not aware of it, despite http://www.devicetree.org/Device_Tree_Usage points to ePAPR and the section 2.4 of this page also tells to use generic names. This renaming will affect driver, since .compatible strings likely also need changing. Why on earth they'll need change?! Roman WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v3 1/2] dts: vt8500: Add SDHC node to DTS file for WM8650
В Sun, 01 Mar 2015 20:59:13 +0300 Sergei Shtylyov пишет: > On 3/1/2015 7:06 PM, Roman Volkov wrote: > > > Since WM8650 has the same 'WMT' SDHC controller as WM8505, and the > > driver is already in the kernel, this node enables the controller > > support for WM8650 > > > Signed-off-by: Roman Volkov > > Reviewed-by: Alexey Charkov > > --- > > arch/arm/boot/dts/wm8650.dtsi | 9 + > > 1 file changed, 9 insertions(+) > > > diff --git a/arch/arm/boot/dts/wm8650.dtsi > > b/arch/arm/boot/dts/wm8650.dtsi index b1c59a7..e12213d 100644 > > --- a/arch/arm/boot/dts/wm8650.dtsi > > +++ b/arch/arm/boot/dts/wm8650.dtsi > > @@ -187,6 +187,15 @@ > > interrupts = <43>; > > }; > > > > + sdhc@d800a000 { > > According to the ePAPR standard, the device nodes should have > generic names according to their functions, so this node should be > named just "sd@d800a000". > > WBR, Sergei > Sergei, Why not "sdmmc" or "sdhci" or "sdio" then? It would be great to name nodes in same way, but there is no exact requirement in ePAPR v1.1 regarding SD/MMC controllers. Also, in Linux I don't see that someone strictly follows this requirement. This renaming will affect driver, since .compatible strings likely also need changing. Roman -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v3 1/2] dts: vt8500: Add SDHC node to DTS file for WM8650
On 3/1/2015 7:06 PM, Roman Volkov wrote: Since WM8650 has the same 'WMT' SDHC controller as WM8505, and the driver is already in the kernel, this node enables the controller support for WM8650 Signed-off-by: Roman Volkov Reviewed-by: Alexey Charkov --- arch/arm/boot/dts/wm8650.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/wm8650.dtsi b/arch/arm/boot/dts/wm8650.dtsi index b1c59a7..e12213d 100644 --- a/arch/arm/boot/dts/wm8650.dtsi +++ b/arch/arm/boot/dts/wm8650.dtsi @@ -187,6 +187,15 @@ interrupts = <43>; }; + sdhc@d800a000 { According to the ePAPR standard, the device nodes should have generic names according to their functions, so this node should be named just "sd@d800a000". WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH v3 1/2] dts: vt8500: Add SDHC node to DTS file for WM8650
Since WM8650 has the same 'WMT' SDHC controller as WM8505, and the driver is already in the kernel, this node enables the controller support for WM8650 Signed-off-by: Roman Volkov Reviewed-by: Alexey Charkov --- arch/arm/boot/dts/wm8650.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/wm8650.dtsi b/arch/arm/boot/dts/wm8650.dtsi index b1c59a7..e12213d 100644 --- a/arch/arm/boot/dts/wm8650.dtsi +++ b/arch/arm/boot/dts/wm8650.dtsi @@ -187,6 +187,15 @@ interrupts = <43>; }; + sdhc@d800a000 { + compatible = "wm,wm8505-sdhc"; + reg = <0xd800a000 0x400>; + interrupts = <20>, <21>; + clocks = <&clksdhc>; + bus-width = <4>; + sdon-inverted; + }; + fb: fb@d8050800 { compatible = "wm,wm8505-fb"; reg = <0xd8050800 0x200>; -- 2.3.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html