lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAKuRcO+Wq8Gwe+ds38=-Nb3mYxdiDAn_h9iTjuGj2EZAtup0nQ@mail.gmail.com>
Date:	Fri, 22 Nov 2013 11:31:50 +0530
From:	Yuvaraj Kumar <yuvaraj.cd@...il.com>
To:	Kishon Vijay Abraham I <kishon@...com>,
	"kgene.kim@...sung.com" <kgene.kim@...sung.com>,
	linux-kernel@...r.kernel.org,
	"linux-arm-kernel@...ts.infradead.org" 
	<linux-arm-kernel@...ts.infradead.org>,
	"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
	linux-doc@...r.kernel.org
Cc:	Grant Likely <grant.likely@...aro.org>,
	Rob Herring <rob.herring@...xeda.com>,
	Stephen Warren <swarren@...dotorg.org>,
	Mark Rutland <mark.rutland@....com>, sachin.kamat@...aro.org,
	Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>,
	Jingoo Han <jg1.han@...sung.com>,
	Tomasz Figa <t.figa@...sung.com>,
	Christoffer Dall <christoffer.dall@...aro.org>,
	aditya.ps@...sung.com, Yuvaraj Kumar C D <yuvaraj.cd@...sung.com>
Subject: Re: [PATCH V2 2/2] ARM: dts: Enable ahci sata and sata phy

Any comments on this patch?

On Mon, Nov 11, 2013 at 2:02 PM, Yuvaraj Kumar C D <yuvaraj.cd@...il.com> wrote:
> This patch adds dt entry for ahci sata controller and its
> corresponding phy controller.phy node has been added w.r.t
> new generic phy framework.
>
> Changes since V1:
>         1.Minor changes to node name convention
>         2.Updated binding document.
>
> Signed-off-by: Yuvaraj Kumar C D <yuvaraj.cd@...sung.com>
> ---
>  .../devicetree/bindings/ata/exynos-sata-phy.txt    |   19 +++++++++++++-----
>  .../devicetree/bindings/ata/exynos-sata.txt        |   17 +++++++++++-----
>  arch/arm/boot/dts/exynos5250-arndale.dts           |    9 ++++++++-
>  arch/arm/boot/dts/exynos5250-smdk5250.dts          |    8 ++------
>  arch/arm/boot/dts/exynos5250.dtsi                  |   21 ++++++++++++++++----
>  5 files changed, 53 insertions(+), 21 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/ata/exynos-sata-phy.txt b/Documentation/devicetree/bindings/ata/exynos-sata-phy.txt
> index 37824fa..a679e17 100644
> --- a/Documentation/devicetree/bindings/ata/exynos-sata-phy.txt
> +++ b/Documentation/devicetree/bindings/ata/exynos-sata-phy.txt
> @@ -4,11 +4,20 @@ SATA PHY nodes are defined to describe on-chip SATA Physical layer controllers.
>  Each SATA PHY controller should have its own node.
>
>  Required properties:
> -- compatible        : compatible list, contains "samsung,exynos5-sata-phy"
> +- compatible        : compatible list, contains "samsung,exynos5250-sata-phy"
>  - reg               : <registers mapping>
>
>  Example:
> -        sata@...07000 {
> -                compatible = "samsung,exynos5-sata-phy";
> -                reg = <0xffe07000 0x1000>;
> -        };
> +       sata_phy: sata-phy@...70000 {
> +               compatible = "samsung,exynos5250-sata-phy";
> +               reg = <0x12170000 0x1ff>;
> +               clocks = <&clock 287>;
> +               clock-names = "sata_phyctrl";
> +               #phy-cells = <0>;
> +               #address-cells = <1>;
> +               #size-cells = <1>;
> +               ranges;
> +               sataphy-pmu {
> +                       reg = <0x10040724 0x4>;
> +                       };
> +       };
> diff --git a/Documentation/devicetree/bindings/ata/exynos-sata.txt b/Documentation/devicetree/bindings/ata/exynos-sata.txt
> index 0849f10..8ec7327 100644
> --- a/Documentation/devicetree/bindings/ata/exynos-sata.txt
> +++ b/Documentation/devicetree/bindings/ata/exynos-sata.txt
> @@ -8,10 +8,17 @@ Required properties:
>  - interrupts        : <interrupt mapping for SATA IRQ>
>  - reg               : <registers mapping>
>  - samsung,sata-freq : <frequency in MHz>
> +- phys              : as mentioned in phy-bindings.txt
> +- phy-names         : as mentioned in phy-bindings.txt
>
>  Example:
> -        sata@...08000 {
> -                compatible = "samsung,exynos5-sata";
> -                reg = <0xffe08000 0x1000>;
> -                interrupts = <115>;
> -        };
> +       sata@...F0000 {
> +               compatible = "snps,dwc-ahci";
> +               samsung,sata-freq = <66>;
> +               reg = <0x122F0000 0x1ff>;
> +               interrupts = <0 115 0>;
> +               clocks = <&clock 277>, <&clock 143>;
> +               clock-names = "sata", "sclk_sata";
> +               phys = <&sata_phy>;
> +               phy-names = "sata-phy";
> +       };
> diff --git a/arch/arm/boot/dts/exynos5250-arndale.dts b/arch/arm/boot/dts/exynos5250-arndale.dts
> index b77a37e..434e4f3 100644
> --- a/arch/arm/boot/dts/exynos5250-arndale.dts
> +++ b/arch/arm/boot/dts/exynos5250-arndale.dts
> @@ -381,7 +381,14 @@
>         };
>
>         i2c@...D0000 {
> -               status = "disabled";
> +               samsung,i2c-sda-delay = <100>;
> +               samsung,i2c-max-bus-freq = <40000>;
> +               samsung,i2c-slave-addr = <0x38>;
> +
> +               sata-phy {
> +                       compatible = "sata-phy-i2c";
> +                       reg = <0x38>;
> +               };
>         };
>
>         mmc_0: mmc@...00000 {
> diff --git a/arch/arm/boot/dts/exynos5250-smdk5250.dts b/arch/arm/boot/dts/exynos5250-smdk5250.dts
> index 13746df..eeeeef9 100644
> --- a/arch/arm/boot/dts/exynos5250-smdk5250.dts
> +++ b/arch/arm/boot/dts/exynos5250-smdk5250.dts
> @@ -90,16 +90,12 @@
>                 samsung,i2c-max-bus-freq = <40000>;
>                 samsung,i2c-slave-addr = <0x38>;
>
> -               sata-phy {
> -                       compatible = "samsung,sata-phy";
> +               sata-phy@38 {
> +                       compatible = "sata-phy-i2c";
>                         reg = <0x38>;
>                 };
>         };
>
> -       sata@...F0000 {
> -               samsung,sata-freq = <66>;
> -       };
> -
>         i2c@...80000 {
>                 samsung,i2c-sda-delay = <100>;
>                 samsung,i2c-max-bus-freq = <66000>;
> diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi
> index 80b5df5..d24db31 100644
> --- a/arch/arm/boot/dts/exynos5250.dtsi
> +++ b/arch/arm/boot/dts/exynos5250.dtsi
> @@ -46,6 +46,7 @@
>                 i2c6 = &i2c_6;
>                 i2c7 = &i2c_7;
>                 i2c8 = &i2c_8;
> +               i2c9 = &i2c_9;
>                 pinctrl0 = &pinctrl_0;
>                 pinctrl1 = &pinctrl_1;
>                 pinctrl2 = &pinctrl_2;
> @@ -216,16 +217,28 @@
>         };
>
>         sata@...F0000 {
> -               compatible = "samsung,exynos5-sata-ahci";
> +               compatible = "snps,dwc-ahci";
> +               samsung,sata-freq = <66>;
>                 reg = <0x122F0000 0x1ff>;
>                 interrupts = <0 115 0>;
>                 clocks = <&clock 277>, <&clock 143>;
>                 clock-names = "sata", "sclk_sata";
> +               phys = <&sata_phy>;
> +               phy-names = "sata-phy";
>         };
>
> -       sata-phy@...70000 {
> -               compatible = "samsung,exynos5-sata-phy";
> +       sata_phy: sata-phy@...70000 {
> +               compatible = "samsung,exynos5250-sata-phy";
>                 reg = <0x12170000 0x1ff>;
> +               clocks = <&clock 287>;
> +               clock-names = "sata_phyctrl";
> +               #phy-cells = <0>;
> +               #address-cells = <1>;
> +               #size-cells = <1>;
> +               ranges;
> +               sataphy-pmu {
> +                       reg = <0x10040724 0x4>;
> +                       };
>         };
>
>         i2c_0: i2c@...60000 {
> @@ -334,7 +347,7 @@
>                 clock-names = "i2c";
>         };
>
> -       i2c@...D0000 {
> +       i2c_9: i2c@...D0000 {
>                  compatible = "samsung,exynos5-sata-phy-i2c";
>                  reg = <0x121D0000 0x100>;
>                  #address-cells = <1>;
> --
> 1.7.9.5
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ