Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1705303 > unrolled thread
| Started by | Ryder Lee <ryder.lee@mediatek.com> |
|---|---|
| First post | 2017-08-07 12:00 +0200 |
| Last post | 2017-08-11 06:00 +0200 |
| Articles | 4 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v2 2/2] dt-bindings: ata: add DT bindings for MediaTek SATA controller Ryder Lee <ryder.lee@mediatek.com> - 2017-08-07 12:00 +0200
Re: [PATCH v2 2/2] dt-bindings: ata: add DT bindings for MediaTek SATA controller Rob Herring <robh@kernel.org> - 2017-08-10 23:00 +0200
Re: [PATCH v2 2/2] dt-bindings: ata: add DT bindings for MediaTek SATA controller Ryder Lee <ryder.lee@mediatek.com> - 2017-08-11 04:30 +0200
Re: [PATCH v2 2/2] dt-bindings: ata: add DT bindings for MediaTek SATA controller Ryder Lee <ryder.lee@mediatek.com> - 2017-08-11 06:00 +0200
| From | Ryder Lee <ryder.lee@mediatek.com> |
|---|---|
| Date | 2017-08-07 12:00 +0200 |
| Subject | [PATCH v2 2/2] dt-bindings: ata: add DT bindings for MediaTek SATA controller |
| Message-ID | <ubMZj-6zu-1@gated-at.bofh.it> |
Add DT bindings for the onboard SATA controller present on the MediaTek
SoCs.
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
---
Documentation/devicetree/bindings/ata/ahci-mtk.txt | 50 ++++++++++++++++++++++
1 file changed, 50 insertions(+)
create mode 100644 Documentation/devicetree/bindings/ata/ahci-mtk.txt
diff --git a/Documentation/devicetree/bindings/ata/ahci-mtk.txt b/Documentation/devicetree/bindings/ata/ahci-mtk.txt
new file mode 100644
index 0000000..ed04dfc
--- /dev/null
+++ b/Documentation/devicetree/bindings/ata/ahci-mtk.txt
@@ -0,0 +1,50 @@
+MediaTek Seria ATA controller
+
+Required properties:
+ - compatible : Must be "mediatek,ahci".
+ - reg : Physical base addresses and length of register sets.
+ - interrupts : Interrupt associated with the SATA device.
+ - interrupt-names : Associated name must be: "hostc".
+ - clocks : A list of phandle and clock specifier pairs, one for each
+ entry in clock-names.
+ - clock-names : Associated names must be: "ahb", "axi", "asic", "rbc", "pm".
+ - phys : A phandle and PHY specifier pair for the PHY port.
+ - phy-names : Associated name must be: "sata-phy".
+ - ports-implemented : Mask that indicates which ports that the HBA supports
+ are available for software to use. Useful if PORTS_IMPL
+ is not programmed by the BIOS, which is true with some
+ embedded SOC's.
+
+Optional properties:
+ - power-domains : A phandle and power domain specifier pair to the power
+ domain which is responsible for collapsing and restoring
+ power to the peripheral.
+ - resets : Must contain an entry for each entry in reset-names.
+ See ../reset/reset.txt for details.
+ - reset-names : Associated names must be: "axi", "sw", "reg".
+ - mediatek,phy-mode : A phandle to the system controller, used to enable
+ SATA function.
+
+Example:
+
+ sata: sata@1a200000 {
+ compatible = "mediatek,ahci";
+ reg = <0 0x1a200000 0 0x1100>;
+ interrupts = <GIC_SPI 233 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "hostc";
+ clocks = <&pciesys CLK_SATA_AHB_EN>,
+ <&pciesys CLK_SATA_AXI_EN>,
+ <&pciesys CLK_SATA_ASIC_EN>,
+ <&pciesys CLK_SATA_RBC_EN>,
+ <&pciesys CLK_SATA_PM_EN>;
+ clock-names = "ahb", "axi", "asic", "rbc", "pm";
+ phys = <&u3port1 PHY_TYPE_SATA>;
+ phy-names = "sata-phy";
+ ports-implemented = <0x1>;
+ power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>;
+ resets = <&pciesys MT7622_SATA_AXI_BUS_RST>,
+ <&pciesys MT7622_SATA_PHY_SW_RST>,
+ <&pciesys MT7622_SATA_PHY_REG_RST>;
+ reset-names = "axi", "sw", "reg";
+ mediatek,phy-mode = <&pciesys>;
+ };
--
1.9.1
[toc] | [next] | [standalone]
| From | Rob Herring <robh@kernel.org> |
|---|---|
| Date | 2017-08-10 23:00 +0200 |
| Subject | Re: [PATCH v2 2/2] dt-bindings: ata: add DT bindings for MediaTek SATA controller |
| Message-ID | <ud2IG-2zc-9@gated-at.bofh.it> |
| In reply to | #1705303 |
On Mon, Aug 07, 2017 at 05:52:21PM +0800, Ryder Lee wrote:
> Add DT bindings for the onboard SATA controller present on the MediaTek
> SoCs.
>
> Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
> ---
> Documentation/devicetree/bindings/ata/ahci-mtk.txt | 50 ++++++++++++++++++++++
> 1 file changed, 50 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/ata/ahci-mtk.txt
>
> diff --git a/Documentation/devicetree/bindings/ata/ahci-mtk.txt b/Documentation/devicetree/bindings/ata/ahci-mtk.txt
> new file mode 100644
> index 0000000..ed04dfc
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/ata/ahci-mtk.txt
> @@ -0,0 +1,50 @@
> +MediaTek Seria ATA controller
s/Seria/Serial/
> +
> +Required properties:
> + - compatible : Must be "mediatek,ahci".
SoC specific compatible strings please.
> + - reg : Physical base addresses and length of register sets.
> + - interrupts : Interrupt associated with the SATA device.
> + - interrupt-names : Associated name must be: "hostc".
> + - clocks : A list of phandle and clock specifier pairs, one for each
> + entry in clock-names.
> + - clock-names : Associated names must be: "ahb", "axi", "asic", "rbc", "pm".
> + - phys : A phandle and PHY specifier pair for the PHY port.
> + - phy-names : Associated name must be: "sata-phy".
> + - ports-implemented : Mask that indicates which ports that the HBA supports
> + are available for software to use. Useful if PORTS_IMPL
> + is not programmed by the BIOS, which is true with some
> + embedded SOC's.
Do you have a variable number of ports and need this in DT? Because it
looks like you only define having a single phy.
But this is a standard prop, so you can just say "see
./ahci-platform.txt"
> +
> +Optional properties:
> + - power-domains : A phandle and power domain specifier pair to the power
> + domain which is responsible for collapsing and restoring
> + power to the peripheral.
> + - resets : Must contain an entry for each entry in reset-names.
> + See ../reset/reset.txt for details.
> + - reset-names : Associated names must be: "axi", "sw", "reg".
> + - mediatek,phy-mode : A phandle to the system controller, used to enable
> + SATA function.
> +
> +Example:
> +
> + sata: sata@1a200000 {
> + compatible = "mediatek,ahci";
> + reg = <0 0x1a200000 0 0x1100>;
> + interrupts = <GIC_SPI 233 IRQ_TYPE_LEVEL_HIGH>;
> + interrupt-names = "hostc";
> + clocks = <&pciesys CLK_SATA_AHB_EN>,
> + <&pciesys CLK_SATA_AXI_EN>,
> + <&pciesys CLK_SATA_ASIC_EN>,
> + <&pciesys CLK_SATA_RBC_EN>,
> + <&pciesys CLK_SATA_PM_EN>;
> + clock-names = "ahb", "axi", "asic", "rbc", "pm";
> + phys = <&u3port1 PHY_TYPE_SATA>;
> + phy-names = "sata-phy";
> + ports-implemented = <0x1>;
> + power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>;
> + resets = <&pciesys MT7622_SATA_AXI_BUS_RST>,
> + <&pciesys MT7622_SATA_PHY_SW_RST>,
> + <&pciesys MT7622_SATA_PHY_REG_RST>;
> + reset-names = "axi", "sw", "reg";
> + mediatek,phy-mode = <&pciesys>;
> + };
> --
> 1.9.1
>
[toc] | [prev] | [next] | [standalone]
| From | Ryder Lee <ryder.lee@mediatek.com> |
|---|---|
| Date | 2017-08-11 04:30 +0200 |
| Subject | Re: [PATCH v2 2/2] dt-bindings: ata: add DT bindings for MediaTek SATA controller |
| Message-ID | <ud7S1-62F-1@gated-at.bofh.it> |
| In reply to | #1709024 |
On Thu, 2017-08-10 at 15:51 -0500, Rob Herring wrote:
> On Mon, Aug 07, 2017 at 05:52:21PM +0800, Ryder Lee wrote:
> > Add DT bindings for the onboard SATA controller present on the MediaTek
> > SoCs.
> >
> > Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
> > ---
> > Documentation/devicetree/bindings/ata/ahci-mtk.txt | 50 ++++++++++++++++++++++
> > 1 file changed, 50 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/ata/ahci-mtk.txt
> >
> > diff --git a/Documentation/devicetree/bindings/ata/ahci-mtk.txt b/Documentation/devicetree/bindings/ata/ahci-mtk.txt
> > new file mode 100644
> > index 0000000..ed04dfc
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/ata/ahci-mtk.txt
> > @@ -0,0 +1,50 @@
> > +MediaTek Seria ATA controller
>
> s/Seria/Serial/
Okay.
> > +
> > +Required properties:
> > + - compatible : Must be "mediatek,ahci".
>
> SoC specific compatible strings please.
Okay.
> > + - reg : Physical base addresses and length of register sets.
> > + - interrupts : Interrupt associated with the SATA device.
> > + - interrupt-names : Associated name must be: "hostc".
> > + - clocks : A list of phandle and clock specifier pairs, one for each
> > + entry in clock-names.
> > + - clock-names : Associated names must be: "ahb", "axi", "asic", "rbc", "pm".
> > + - phys : A phandle and PHY specifier pair for the PHY port.
> > + - phy-names : Associated name must be: "sata-phy".
> > + - ports-implemented : Mask that indicates which ports that the HBA supports
> > + are available for software to use. Useful if PORTS_IMPL
> > + is not programmed by the BIOS, which is true with some
> > + embedded SOC's.
>
> Do you have a variable number of ports and need this in DT? Because it
> looks like you only define having a single phy.
We use this property to set PORTS_IMPL register value to 0x1, or there
is no available port for use.
> But this is a standard prop, so you can just say "see
> ./ahci-platform.txt"
Okay.
> > +
> > +Optional properties:
> > + - power-domains : A phandle and power domain specifier pair to the power
> > + domain which is responsible for collapsing and restoring
> > + power to the peripheral.
> > + - resets : Must contain an entry for each entry in reset-names.
> > + See ../reset/reset.txt for details.
> > + - reset-names : Associated names must be: "axi", "sw", "reg".
> > + - mediatek,phy-mode : A phandle to the system controller, used to enable
> > + SATA function.
> > +
> > +Example:
> > +
> > + sata: sata@1a200000 {
> > + compatible = "mediatek,ahci";
> > + reg = <0 0x1a200000 0 0x1100>;
> > + interrupts = <GIC_SPI 233 IRQ_TYPE_LEVEL_HIGH>;
> > + interrupt-names = "hostc";
> > + clocks = <&pciesys CLK_SATA_AHB_EN>,
> > + <&pciesys CLK_SATA_AXI_EN>,
> > + <&pciesys CLK_SATA_ASIC_EN>,
> > + <&pciesys CLK_SATA_RBC_EN>,
> > + <&pciesys CLK_SATA_PM_EN>;
> > + clock-names = "ahb", "axi", "asic", "rbc", "pm";
> > + phys = <&u3port1 PHY_TYPE_SATA>;
> > + phy-names = "sata-phy";
> > + ports-implemented = <0x1>;
> > + power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>;
> > + resets = <&pciesys MT7622_SATA_AXI_BUS_RST>,
> > + <&pciesys MT7622_SATA_PHY_SW_RST>,
> > + <&pciesys MT7622_SATA_PHY_REG_RST>;
> > + reset-names = "axi", "sw", "reg";
> > + mediatek,phy-mode = <&pciesys>;
> > + };
> > --
> > 1.9.1
> >
[toc] | [prev] | [next] | [standalone]
| From | Ryder Lee <ryder.lee@mediatek.com> |
|---|---|
| Date | 2017-08-11 06:00 +0200 |
| Subject | Re: [PATCH v2 2/2] dt-bindings: ata: add DT bindings for MediaTek SATA controller |
| Message-ID | <ud9h7-6MB-1@gated-at.bofh.it> |
| In reply to | #1709174 |
Hi Rob,
Sorry for the noise letter.
On Fri, 2017-08-11 at 10:25 +0800, Ryder Lee wrote:
> > > +Required properties:
> > > + - compatible : Must be "mediatek,ahci".
> >
> > SoC specific compatible strings please.
>
> Okay.
I took a look at ./ahci-platform.txt. Could we just add a generic
compatible string as below:
compatible: Must be "mediatek,soc-model-ahci", "mediatek,mtk-ahci"
In doing so, we can avoid having an endless list of compatibles for
those MTK SoCs with the same IP block.
> > > +
> > > +Optional properties:
> > > + - power-domains : A phandle and power domain specifier pair to the power
> > > + domain which is responsible for collapsing and restoring
> > > + power to the peripheral.
> > > + - resets : Must contain an entry for each entry in reset-names.
> > > + See ../reset/reset.txt for details.
> > > + - reset-names : Associated names must be: "axi", "sw", "reg".
> > > + - mediatek,phy-mode : A phandle to the system controller, used to enable
> > > + SATA function.
> > > +
> > > +Example:
> > > +
> > > + sata: sata@1a200000 {
> > > + compatible = "mediatek,ahci";
MT7622 should be:
compatible = "mediatek,mt7622-ahci",
"mediatek,mtk-ahci";
Ryder
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web