arm: dts: tl1: add spi-nor node for tl1 [1/1]
authorYi Zeng <yi.zeng@amlogic.com>
Wed, 17 Oct 2018 09:21:24 +0000 (17:21 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Fri, 26 Oct 2018 11:48:19 +0000 (04:48 -0700)
PD#172587

Problem:
Bringup spi-nor for TL1.

Solution:
Add spi-nor node into dts file, default disabled.

Verify:
Verified on PXP.

Change-Id: I9edd358d41b052b7ecae47a550dcacbc27353955
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
arch/arm/boot/dts/amlogic/mesontl1.dtsi
arch/arm/boot/dts/amlogic/tl1_pxp.dts

index 2dea874..183fc8f 100644 (file)
                         */
                };
        };
+
+       spifc: spifc@ffd14000 {
+               compatible = "amlogic,aml-spi-nor";
+               status = "disabled";
+
+               reg = <0x0 0xffd14000 0x0 0x80>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&spifc_all_pins>;
+               clock-names = "core";
+               clocks = <&clkc CLKID_CLK81>;
+
+               spi-nor@0 {
+                       compatible = "jedec,spi-nor";
+                       spifc-frequency = <40000000>;
+                       read-capability = <4>;/* dual read 1_1_2 */
+                       spifc-io-width = <4>;
+               };
+       };
 }; /* end of / */
 
 &pinctrl_aobus {
                };
        };
 
+       spifc_cs_pin:spifc_cs_pin {
+               mux {
+                       groups = "nor_cs";
+                       function = "nor";
+                       bias-pull-up;
+               };
+       };
+
+       spifc_pulldown: spifc_pulldown {
+               mux {
+                       groups = "nor_d",
+                               "nor_q",
+                               "nor_c";
+                       function = "nor";
+                       bias-pull-down;
+               };
+       };
+
+       spifc_pullup: spifc_pullup {
+               mux {
+                       groups = "nor_cs";
+                       function = "nor";
+                       bias-pull-up;
+               };
+       };
+
+       spifc_all_pins: spifc_all_pins {
+               mux {
+                       groups =  "nor_d",
+                               "nor_q",
+                               "nor_c",
+                               "nor_hold",
+                               "nor_wp";
+                       function = "nor";
+                       input-enable;
+                       bias-pull-down;
+               };
+       };
+
        pwm_a_pins: pwm_a {
                mux {
                        groups = "pwm_a";
index 0592fd0..11beb62 100644 (file)
        };
 }; /* end of / */
 
+&spifc {
+       status = "disabled";
+       spi-nor@0 {
+               cs_gpios = <&gpio BOOT_13 GPIO_ACTIVE_HIGH>;
+       };
+};
+
 &spicc0 {
        status = "okay";
        pinctrl-names = "default";