* [U-Boot] [PATCH RFC 6/7] OMAP3: Add SMSC9221 device tree for omap devices connected on GPMC.
@ 2017-04-10 22:13 Adam Ford
2017-04-11 2:04 ` Lokesh Vutla
0 siblings, 1 reply; 2+ messages in thread
From: Adam Ford @ 2017-04-10 22:13 UTC (permalink / raw)
To: u-boot
Some OMAP3 devices support an SMSC ethernet PHY connected to the GPMC bus.
This copies this device tree from Linux 4.9.y stable
Signed-off-by: Adam Ford <aford173@gmail.com>
diff --git a/arch/arm/dts/omap-gpmc-smsc9221.dtsi b/arch/arm/dts/omap-gpmc-smsc9221.dtsi
new file mode 100644
index 0000000..73e272f
--- /dev/null
+++ b/arch/arm/dts/omap-gpmc-smsc9221.dtsi
@@ -0,0 +1,58 @@
+/*
+ * Common file for GPMC connected smsc9221 on omaps
+ *
+ * Compared to smsc911x, smsc9221 (and others like smsc9217
+ * or smsc 9218) has faster timings, leading to higher
+ * bandwidth.
+ *
+ * Note that the board specifc DTS file needs to specify
+ * ranges, pinctrl, reg, interrupt parent and interrupts.
+ */
+
+/ {
+ vddvario: regulator-vddvario {
+ compatible = "regulator-fixed";
+ regulator-name = "vddvario";
+ regulator-always-on;
+ };
+
+ vdd33a: regulator-vdd33a {
+ compatible = "regulator-fixed";
+ regulator-name = "vdd33a";
+ regulator-always-on;
+ };
+};
+
+&gpmc {
+ ethernet at gpmc {
+ compatible = "smsc,lan9221","smsc,lan9115";
+ bank-width = <2>;
+
+ gpmc,mux-add-data;
+ gpmc,cs-on-ns = <0>;
+ gpmc,cs-rd-off-ns = <42>;
+ gpmc,cs-wr-off-ns = <36>;
+ gpmc,adv-on-ns = <6>;
+ gpmc,adv-rd-off-ns = <12>;
+ gpmc,adv-wr-off-ns = <12>;
+ gpmc,oe-on-ns = <0>;
+ gpmc,oe-off-ns = <42>;
+ gpmc,we-on-ns = <0>;
+ gpmc,we-off-ns = <36>;
+ gpmc,rd-cycle-ns = <60>;
+ gpmc,wr-cycle-ns = <54>;
+ gpmc,access-ns = <36>;
+ gpmc,page-burst-access-ns = <0>;
+ gpmc,bus-turnaround-ns = <0>;
+ gpmc,cycle2cycle-delay-ns = <0>;
+ gpmc,wr-data-mux-bus-ns = <18>;
+ gpmc,wr-access-ns = <42>;
+ gpmc,cycle2cycle-samecsen;
+ gpmc,cycle2cycle-diffcsen;
+
+ vddvario-supply = <&vddvario>;
+ vdd33a-supply = <&vdd33a>;
+ reg-io-width = <4>;
+ smsc,save-mac-address;
+ };
+};
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH RFC 6/7] OMAP3: Add SMSC9221 device tree for omap devices connected on GPMC.
2017-04-10 22:13 [U-Boot] [PATCH RFC 6/7] OMAP3: Add SMSC9221 device tree for omap devices connected on GPMC Adam Ford
@ 2017-04-11 2:04 ` Lokesh Vutla
0 siblings, 0 replies; 2+ messages in thread
From: Lokesh Vutla @ 2017-04-11 2:04 UTC (permalink / raw)
To: u-boot
On Tuesday 11 April 2017 03:43 AM, Adam Ford wrote:
> Some OMAP3 devices support an SMSC ethernet PHY connected to the GPMC bus.
> This copies this device tree from Linux 4.9.y stable
>
> Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Thanks and regards,
Lokesh
>
> diff --git a/arch/arm/dts/omap-gpmc-smsc9221.dtsi b/arch/arm/dts/omap-gpmc-smsc9221.dtsi
> new file mode 100644
> index 0000000..73e272f
> --- /dev/null
> +++ b/arch/arm/dts/omap-gpmc-smsc9221.dtsi
> @@ -0,0 +1,58 @@
> +/*
> + * Common file for GPMC connected smsc9221 on omaps
> + *
> + * Compared to smsc911x, smsc9221 (and others like smsc9217
> + * or smsc 9218) has faster timings, leading to higher
> + * bandwidth.
> + *
> + * Note that the board specifc DTS file needs to specify
> + * ranges, pinctrl, reg, interrupt parent and interrupts.
> + */
> +
> +/ {
> + vddvario: regulator-vddvario {
> + compatible = "regulator-fixed";
> + regulator-name = "vddvario";
> + regulator-always-on;
> + };
> +
> + vdd33a: regulator-vdd33a {
> + compatible = "regulator-fixed";
> + regulator-name = "vdd33a";
> + regulator-always-on;
> + };
> +};
> +
> +&gpmc {
> + ethernet at gpmc {
> + compatible = "smsc,lan9221","smsc,lan9115";
> + bank-width = <2>;
> +
> + gpmc,mux-add-data;
> + gpmc,cs-on-ns = <0>;
> + gpmc,cs-rd-off-ns = <42>;
> + gpmc,cs-wr-off-ns = <36>;
> + gpmc,adv-on-ns = <6>;
> + gpmc,adv-rd-off-ns = <12>;
> + gpmc,adv-wr-off-ns = <12>;
> + gpmc,oe-on-ns = <0>;
> + gpmc,oe-off-ns = <42>;
> + gpmc,we-on-ns = <0>;
> + gpmc,we-off-ns = <36>;
> + gpmc,rd-cycle-ns = <60>;
> + gpmc,wr-cycle-ns = <54>;
> + gpmc,access-ns = <36>;
> + gpmc,page-burst-access-ns = <0>;
> + gpmc,bus-turnaround-ns = <0>;
> + gpmc,cycle2cycle-delay-ns = <0>;
> + gpmc,wr-data-mux-bus-ns = <18>;
> + gpmc,wr-access-ns = <42>;
> + gpmc,cycle2cycle-samecsen;
> + gpmc,cycle2cycle-diffcsen;
> +
> + vddvario-supply = <&vddvario>;
> + vdd33a-supply = <&vdd33a>;
> + reg-io-width = <4>;
> + smsc,save-mac-address;
> + };
> +};
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-04-11 2:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-10 22:13 [U-Boot] [PATCH RFC 6/7] OMAP3: Add SMSC9221 device tree for omap devices connected on GPMC Adam Ford
2017-04-11 2:04 ` Lokesh Vutla
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.