]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: px30: sync serial flash controller bindings with mainline
authorChris Morgan <macromorgan@hotmail.com>
Sat, 21 Aug 2021 01:46:58 +0000 (20:46 -0500)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 15 Oct 2021 12:56:55 +0000 (20:56 +0800)
The devicetree submitted and approved for the mainline linux kernel is
slightly different than the one present here. This syncs both
devicetrees (for the Rockchip SFC node at least) present on the PX30
and the Odroid Go Advance. Changes include renaming the flash node,
reordering the values in the SFC node for the rk3326-odroid-go2,
changing the name of the cs pinctrl node to cs0, and updating the
u-boot specific tree to utilize the new flash node value.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/px30.dtsi
arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi
arch/arm/dts/rk3326-odroid-go2.dts

index aaa8ae2235d742fb05e4b22d7d67dcff3549e74e..ef706486dc60217e07cde609a4bbdc91ed5686f3 100644 (file)
                clocks = <&cru SCLK_SFC>, <&cru HCLK_SFC>;
                clock-names = "clk_sfc", "hclk_sfc";
                pinctrl-names = "default";
-               pinctrl-0 = <&sfc_clk &sfc_cs &sfc_bus4>;
+               pinctrl-0 = <&sfc_clk &sfc_cs0 &sfc_bus4>;
                power-domains = <&power PX30_PD_MMC_NAND>;
                status = "disabled";
        };
                                        <1 RK_PA1 3 &pcfg_pull_none>;
                        };
 
-                       sfc_cs: sfc-cs {
+                       sfc_cs0: sfc-cs0 {
                                rockchip,pins =
                                        <1 RK_PA4 3 &pcfg_pull_none>;
                        };
index 72f0ede4cf774e12054baf3ce3c9b56021a358ac..bffaa3edf334f17db5ca60c482ddaa7efe949372 100644 (file)
@@ -80,7 +80,7 @@
        u-boot,dm-pre-reloc;
 };
 
-&spi_flash {
+&{/sfc@ff3a0000/flash@0} {
        u-boot,dm-pre-reloc;
 };
 
index 6f91f5040b064cdd1dabadbbf593c7e4f6ad4b40..4e3dceecbec15f516921e026ba45b437c66cee81 100644 (file)
 };
 
 &sfc {
+       pinctrl-0 = <&sfc_clk &sfc_cs0 &sfc_bus2>;
+       pinctrl-names = "default";
        #address-cells = <1>;
        #size-cells = <0>;
-       pinctrl-names = "default";
-       pinctrl-0 = <&sfc_clk &sfc_cs &sfc_bus2>;
        status = "okay";
 
-       spi_flash: xt25f128b@0 {
+       flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <108000000>;
                spi-rx-bus-width = <2>;
-               spi-tx-bus-width = <2>;
+               spi-tx-bus-width = <1>;
        };
 };