[PATCH v2 08/12] sandbox: remove w1-eeprom declaration and document

Kory Maincent kory.maincent at bootlin.com
Tue Mar 2 10:58:09 CET 2021


Remove the sandbox example of one-wire node because the detection of w1 is
now automatic and does not depend on the devicetree.
Remove the devicetree binding document.

Signed-off-by: Kory Maincent <kory.maincent at bootlin.com>
---
 arch/sandbox/dts/sandbox.dtsi                 | 18 ----------
 .../w1-eeprom/eep_sandbox.txt                 | 34 -------------------
 2 files changed, 52 deletions(-)
 delete mode 100644 doc/device-tree-bindings/w1-eeprom/eep_sandbox.txt

diff --git a/arch/sandbox/dts/sandbox.dtsi b/arch/sandbox/dts/sandbox.dtsi
index 81cdc55b0d..8ae783a0c6 100644
--- a/arch/sandbox/dts/sandbox.dtsi
+++ b/arch/sandbox/dts/sandbox.dtsi
@@ -185,11 +185,6 @@
 			function = "serial";
 		};
 
-		pinctrl_onewire0: onewire0 {
-			groups = "w1";
-			function = "w1";
-			bias-pull-up;
-		};
 	};
 
 	reset at 1 {
@@ -376,19 +371,6 @@
 		};
 	};
 
-	onewire0: onewire {
-		compatible = "w1-gpio";
-		gpios = <&gpio_a 8>;
-		pinctrl-names = "default";
-		pinctrl-0 = <&pinctrl_onewire0>;
-		status = "okay";
-
-		sandbox_eeprom0: sandbox_eeprom at 0 {
-			compatible = "sandbox,w1-eeprom";
-			status = "okay";
-		};
-	};
-
 	sandbox_tee {
 		compatible = "sandbox,tee";
 	};
diff --git a/doc/device-tree-bindings/w1-eeprom/eep_sandbox.txt b/doc/device-tree-bindings/w1-eeprom/eep_sandbox.txt
deleted file mode 100644
index 82bb5899af..0000000000
--- a/doc/device-tree-bindings/w1-eeprom/eep_sandbox.txt
+++ /dev/null
@@ -1,34 +0,0 @@
-Onewire EEPROM sandbox driver device binding - one wire protocol sandbox EEPROM
-=======================
-
-This memory needs to be connected to a onewire bus, as a child node.
-The bus will read the device serial number and match this node with a found
-device on the bus
-Also check doc/device-tree-bindings/w1 for onewire bus drivers
-
-Driver:
-- drivers/w1-eeprom/eep_sandbox.c
-
-Software ds24xxx device-tree node properties:
-Required:
-* compatible = "sandbox,w1-eeprom"
-
-Optional:
-* none
-
-Example:
-	eeprom1: eeprom at 0 {
-		compatible = "sandbox,w1-eeprom";
-	}
-
-Example with parent bus:
-
-onewire_tm: onewire {
-		compatible = "w1-gpio";
-		gpios = <&gpio_a 8>;
-
-		eeprom1: eeprom at 0 {
-			compatible = "sandbox,w1-eeprom";
-		}
-};
-
-- 
2.17.1



More information about the U-Boot mailing list