]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: doc: Move to new driver model schema
authorSimon Glass <sjg@chromium.org>
Mon, 13 Feb 2023 15:56:37 +0000 (08:56 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 14 Feb 2023 16:43:27 +0000 (09:43 -0700)
Now that Linux has accepted these tags, update the dtoc tool to use them.

Signed-off-by: Simon Glass <sjg@chromium.org>
23 files changed:
tools/dtoc/dtb_platdata.py
tools/dtoc/test/dtoc_test_add_prop.dts
tools/dtoc/test/dtoc_test_addr32.dts
tools/dtoc/test/dtoc_test_addr32_64.dts
tools/dtoc/test/dtoc_test_addr64.dts
tools/dtoc/test/dtoc_test_addr64_32.dts
tools/dtoc/test/dtoc_test_alias_bad.dts
tools/dtoc/test/dtoc_test_alias_bad_path.dts
tools/dtoc/test/dtoc_test_alias_bad_uc.dts
tools/dtoc/test/dtoc_test_aliases.dts
tools/dtoc/test/dtoc_test_driver_alias.dts
tools/dtoc/test/dtoc_test_inst.dts
tools/dtoc/test/dtoc_test_invalid_driver.dts
tools/dtoc/test/dtoc_test_noparent.dts
tools/dtoc/test/dtoc_test_noprops.dts
tools/dtoc/test/dtoc_test_phandle.dts
tools/dtoc/test/dtoc_test_phandle_bad.dts
tools/dtoc/test/dtoc_test_phandle_bad2.dts
tools/dtoc/test/dtoc_test_phandle_cd_gpios.dts
tools/dtoc/test/dtoc_test_phandle_reorder.dts
tools/dtoc/test/dtoc_test_phandle_single.dts
tools/dtoc/test/dtoc_test_simple.dts
tools/dtoc/test/dtoc_test_single_reg.dts

index a69a7889ce170030e0b3dd7d621bbc2ff1a63def..39f416cfd806abaf3f6a74d2c9fa044d8d832b64 100644 (file)
@@ -35,9 +35,9 @@ PROP_IGNORE_LIST = [
     'linux,phandle',
     "status",
     'phandle',
-    'u-boot,dm-pre-reloc',
-    'u-boot,dm-tpl',
-    'u-boot,dm-spl',
+    'bootph-all',
+    'bootph-pre-sram',
+    'bootph-pre-ram',
 ]
 
 # C type declarations for the types we support
@@ -442,7 +442,7 @@ class DtbPlatdata():
         """
         parent = node.parent
         if parent and not parent.props:
-            raise ValueError("Parent node '%s' has no properties - do you need u-boot,dm-spl or similar?" %
+            raise ValueError("Parent node '%s' has no properties - do you need bootph-pre-ram or similar?" %
                              parent.path)
         num_addr, num_size = 2, 2
         if parent:
@@ -754,7 +754,7 @@ class DtbPlatdata():
                 # This might indicate that the parent node is not in the
                 # SPL/TPL devicetree but the child is. For example if we are
                 # dealing with of-platdata in TPL, the parent has a
-                # u-boot,dm-tpl tag but the child has u-boot,dm-pre-reloc. In
+                # bootph-pre-sram tag but the child has bootph-all. In
                 # this case the child node exists in TPL but the parent does
                 # not.
                 raise ValueError("Node '%s' requires parent node '%s' but it is not in the valid list" %
index fa296e555278f5cafa4f84e59c56c9c16df13d79..8225de36d27c108494d32d8443fce67525f3e228 100644 (file)
        #address-cells = <1>;
        #size-cells = <1>;
        spl-test {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "sandbox,spl-test";
                intval = <1>;
        };
 
        spl-test2 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "sandbox,spl-test";
                intarray = <5>;
        };
index 239045497c6e343f2a9a36f55cd3206738c6f401..3e7dc5672926ab10706a78e6bb74faad15d5cd97 100644 (file)
        #size-cells = <1>;
 
        test1 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "test1";
                reg = <0x1234 0x5678>;
        };
 
        test2 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "test2";
                reg = <0x12345678 0x98765432 2 3>;
        };
index 7599d5b0a593a403f817d6879979d75fda65d060..7ce16feef1a176aef131d3dfaa48b266ba5ebb2e 100644 (file)
        #size-cells = <2>;
 
        test1 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "test1";
                reg = <0x1234 0x5678 0x0>;
        };
 
        test2 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "test2";
                reg = <0x12345678 0x98765432 0x10987654>;
        };
 
        test3 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "test3";
                reg = <0x12345678 0x98765432 0x10987654 2 0 3>;
        };
index 263d2513869b06d3cef50e7b06fab53dacddb08b..5f8c23f04b8caccebf60d6588c6ba21b5048c8e9 100644 (file)
        #size-cells = <2>;
 
        test1 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "test1";
                reg = /bits/ 64 <0x1234 0x5678>;
        };
 
        test2 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "test2";
                reg = /bits/ 64 <0x1234567890123456 0x9876543210987654>;
        };
 
        test3 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "test3";
                reg = /bits/ 64 <0x1234567890123456 0x9876543210987654 2 3>;
        };
index 85e4f5fdaeb40a854196b8e1d22e6ee648035d2a..bfbfd87b8de241b9244d1cc59902d65b377ecc66 100644 (file)
        #size-cells = <1>;
 
        test1 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "test1";
                reg = <0x1234 0x0 0x5678>;
        };
 
        test2 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "test2";
                reg = <0x12345678 0x90123456 0x98765432>;
        };
 
        test3 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "test3";
                reg = <0x12345678 0x90123456 0x98765432 0 2 3>;
        };
index d4f502ad0aa503db76e882a8df851525ac276aab..69761f911460aadbee4570e4a4185ea40b49c0f4 100644 (file)
        };
 
        spl-test {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "sandbox,spl-test";
                boolval;
                intval = <1>;
        };
 
        i2c: i2c {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "sandbox,i2c";
                intval = <3>;
        };
 
        spl-test3 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "sandbox,spl-test";
                stringarray = "one";
                longbytearray = [09 0a 0b 0c 0d 0e 0f 10];
index 0beca4f0d03489be7707da25f6b7bb4aff994193..6f566fe4abf1de13cf12388f68c55554d4810904 100644 (file)
        };
 
        spl-test {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "sandbox,spl-test";
                boolval;
                intval = <1>;
        };
 
        i2c: i2c {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "sandbox,i2c";
                intval = <3>;
        };
 
        spl-test3 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "sandbox,spl-test";
                stringarray = "one";
                longbytearray = [09 0a 0b 0c 0d 0e 0f 10];
index ae64f5b3b290b844f5eecc87f8f6f1d54627c4e0..5d23c63a63043ff980e7d00265808c7cb84edb12 100644 (file)
        };
 
        spl-test {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "sandbox,spl-test";
                boolval;
                intval = <1>;
        };
 
        i2c: i2c {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "sandbox,i2c";
                intval = <3>;
        };
 
        spl-test3 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "sandbox,spl-test";
                stringarray = "one";
                longbytearray = [09 0a 0b 0c 0d 0e 0f 10];
index ae337168632ab3ae9eb0f6f76682f5434cab0eff..018b834046e293f7df82eb5aa5d4e2a382c418a5 100644 (file)
@@ -9,13 +9,13 @@
 
 / {
        spl-test {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "compat1", "compat2.1-fred", "compat3";
                intval = <1>;
        };
 
        spl-test2 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "compat1", "simple_bus";
                intval = <1>;
        };
index da7973b2e50acc35a2260ec6e29dd82dc4197046..22369a4406922c04ef759167acecd0add0a51419 100644 (file)
@@ -9,7 +9,7 @@
 
 / {
        gpio_a: gpios@0 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                gpio-controller;
                compatible = "sandbox_gpio_alias";
                #gpio-cells = <1>;
index b8177fcef5f47525d97d9967f8b2893d66242083..9689be391bd024dc3c9167e27c738ce78ed4f884 100644 (file)
        };
 
        spl-test {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "sandbox,spl-test";
                boolval;
                intval = <1>;
        };
 
        i2c: i2c {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "sandbox,i2c";
                intval = <3>;
        };
 
        spl-test3 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "sandbox,spl-test";
                stringarray = "one";
                longbytearray = [09 0a 0b 0c 0d 0e 0f 10];
index 914ac3e899fd8b4f5365bc7ee5575b2bc79870ea..042a325913eb682ac0db49c7020d869888e8a34d 100644 (file)
@@ -9,7 +9,7 @@
 
 / {
        spl-test {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "invalid";
        };
 };
index e976dd2b8af4d5bbbf61afc8d854e77fc982669b..0efb17e0cbcb5516a5d5e40009b95e6e59b60119 100644 (file)
        #size-cells = <1>;
        i2c@0 {
                compatible = "sandbox,i2c";
-               u-boot,dm-tpl;
+               bootph-pre-sram;
                #address-cells = <1>;
                #size-cells = <0>;
                spl-test {
-                       u-boot,dm-pre-reloc;
+                       bootph-all;
                        compatible = "sandbox,spl-test";
                        #address-cells = <1>;
                        #size-cells = <0>;
                        status = "disabled";
                        pmic@9 {
                                compatible = "sandbox,pmic";
-                               u-boot,dm-pre-reloc;
+                               bootph-all;
                                reg = <9>;
                                low-power;
                        };
index e6fdd11b83d8e8942d6d1492c3c07a697fe4524b..75296beb3192cfca83bea5e0c0199cdfb5f842c9 100644 (file)
@@ -13,7 +13,7 @@
        i2c@0 {
                pmic@9 {
                        compatible = "sandbox,pmic";
-                       u-boot,dm-pre-reloc;
+                       bootph-all;
                        reg = <9>;
                        low-power;
                };
index d9aa433503d7317c94d461ad1a465e604fa2481f..74a146b9a3e5adcc90d04d4afa12f67d1291f72e 100644 (file)
@@ -9,34 +9,34 @@
 
 / {
        phandle: phandle-target {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "target";
                intval = <0>;
                 #clock-cells = <0>;
        };
 
        phandle_1: phandle2-target {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "target";
                intval = <1>;
                #clock-cells = <1>;
        };
        phandle_2: phandle3-target {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "target";
                intval = <2>;
                #clock-cells = <2>;
        };
 
        phandle-source {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "source";
                clocks = <&phandle &phandle_1 11 &phandle_2 12 13 &phandle>;
                phandle-name-offset = <&phandle_2>, "fred", <123>;
        };
 
        phandle-source2 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "source";
                clocks = <&phandle>;
        };
index a3ddc59585183fab4706aba40c45015209e3158f..94cfada95bbc7d9a566538341dbc7af5f8c6dff2 100644 (file)
@@ -9,7 +9,7 @@
 
 / {
        phandle-source {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "source";
                clocks = <20>;    /* Invalid phandle */
        };
index fe25f565fbbd88d3e94ac45b5b00da6659691edb..4d24b96ce68f35fad7c2fe101328add545fd8556 100644 (file)
@@ -9,13 +9,13 @@
 
 / {
        phandle: phandle-target {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "target";
                intval = <0>;
        };
 
        phandle-source2 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "source";
                clocks = <&phandle>;
        };
index 241743e73eca8637720053b861693c8b1775931f..6ad800626666f150901ed940ef11cfd98d2f4a95 100644 (file)
@@ -9,33 +9,33 @@
 
 / {
        phandle: phandle-target {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "target";
                intval = <0>;
                #gpio-cells = <0>;
        };
 
        phandle_1: phandle2-target {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "target";
                intval = <1>;
                #gpio-cells = <1>;
        };
        phandle_2: phandle3-target {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "target";
                intval = <2>;
                #gpio-cells = <2>;
        };
 
        phandle-source {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "source";
                cd-gpios = <&phandle &phandle_1 11 &phandle_2 12 13 &phandle>;
        };
 
        phandle-source2 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "source";
                cd-gpios = <&phandle>;
        };
index aa71d56f27cce7ebb4bde1ef1003a7545e1a5d51..573a4f639654359682813eb715b3d6c392b76ec9 100644 (file)
 / {
 
        phandle-source2 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "source";
                clocks = <&phandle>;
        };
 
        phandle: phandle-target {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "target";
                #clock-cells = <0>;
        };
index aacd0b15fa1f003b0bf2a15848c3c005cd63f53d..1b1763932c79b1a39b305f45e9b74196ef9636e5 100644 (file)
@@ -9,14 +9,14 @@
 
 / {
        phandle: phandle-target {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "target";
                intval = <0>;
                #clock-cells = <0>;
        };
 
        phandle-source2 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "source";
                clocks = <&phandle>;
        };
index aef07efeaeb771c4bf5290f951835dae19b1c691..08f667ee5a100a2ddbf4ab8deb8086e5c10dda69 100644 (file)
@@ -11,7 +11,7 @@
        #address-cells = <1>;
        #size-cells = <1>;
        spl-test {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "sandbox,spl-test";
                boolval;
                maybe-empty-int = <>;
@@ -27,7 +27,7 @@
        };
 
        spl-test2 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "sandbox,spl-test";
                intval = <3>;
                intarray = <5>;
@@ -40,7 +40,7 @@
        };
 
        spl-test3 {
-               u-boot,dm-pre-reloc;
+               bootph-all;
                compatible = "sandbox,spl-test";
                stringarray = "one";
                longbytearray = [09 0a 0b 0c 0d 0e 0f 10];
 
        i2c@0 {
                compatible = "sandbox,i2c";
-               u-boot,dm-pre-reloc;
+               bootph-all;
                #address-cells = <1>;
                #size-cells = <0>;
                pmic@9 {
                        compatible = "sandbox,pmic";
-                       u-boot,dm-pre-reloc;
+                       bootph-all;
                        reg = <9>;
                        low-power;
                };
index 804b67855beb44fb9d45343f457f14c377dc5b59..035937cfbfaef4fcc9116b82976c199af4a73a3a 100644 (file)
 
        i2c@0 {
                compatible = "sandbox,i2c";
-               u-boot,dm-pre-reloc;
+               bootph-all;
                #address-cells = <1>;
                #size-cells = <0>;
                pmic@9 {
                        compatible = "sandbox,pmic";
-                       u-boot,dm-pre-reloc;
+                       bootph-all;
                        reg = <9>;
                        low-power;