Commit Graph
10 Commits
Author SHA1 Message Date
Rob Herring 71a9aa162d dt-bindings: w1-gpio: Drop redundant 'maxItems'
Drop another redundant maxItems that snuck into w1-gpio binding.

If a property has an 'items' list, then a 'minItems' or 'maxItems' with the
same size as the list is redundant and can be dropped. Note that is DT
schema specific behavior and not standard json-schema behavior. The tooling
will fixup the final schema adding any unspecified minItems/maxItems.

Fixes: dd2c898bc2 ("dt-bindings: w1: Convert 1-Wire GPIO binding to a schema")
Cc: Daniel Mack <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
2021-10-04 13:11:22 -05:00
Maxime Ripard dd2c898bc2 dt-bindings: w1: Convert 1-Wire GPIO binding to a schema
Bitbanged 1-Wire buses are supported by Linux thanks to their device
tree binding.

Now that we have the DT validation in place, let's convert the device
tree bindings for that driver over to a YAML schema.

Cc: Daniel Mack <[email protected]>
Cc: Evgeniy Polyakov <[email protected]>
Signed-off-by: Maxime Ripard <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Herring <[email protected]>
2021-09-13 08:20:19 -05:00
Rob Herring 6ad8838de4 dt-bindings: More whitespace clean-ups in schema files
Clean-up incorrect indentation, extra spaces, and missing EOF newline in
schema files. Most of the clean-ups are for list indentation which
should always be 2 spaces more than the preceding keyword.

Found with yamllint (now integrated into the checks).

Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Acked-by: Wolfram Sang <[email protected]> # for I2C
Acked-by: Sam Ravnborg <[email protected]> # for display
Acked-by:  Jonathan Cameron <[email protected]> #for-iio
Signed-off-by: Rob Herring <[email protected]>
2020-10-26 16:13:56 -05:00
Anson Huang 92adc6bcfa dt-bindings: w1: Convert i.MX to json-schema
Convert the i.MX one wire binding to DT schema format using json-schema.

Signed-off-by: Anson Huang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Herring <[email protected]>
2020-08-17 15:31:54 -06:00
Daniel Mack dfa32e119d dt-bindings: w1: document generic onewire bindings
This patch adds a generic w1 bindings document that describes how w1
slave deviceses are grouped under master nodes. It also augments the
existing w1-gpio.txt document a bit.

Signed-off-by: Daniel Mack <[email protected]>
Reviewed-by: Rob Herring <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
2018-07-11 18:08:32 +02:00
Rob Herring 4da722ca19 dt-bindings: Remove "status" from examples
Pretty much any node can have a status property, so it doesn't need to
be in examples.

Converted with the following command and removed examples with SoC and
board specific splits:

git grep -l -E 'status.*=.*' Documentation/devicetree/ | xargs sed -i -E '/\sstatus.*=.*"(disabled|ok|okay)/d'

Acked-by: Mark Rutland <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
2017-09-05 10:03:06 -05:00
Vignesh R e93762bbf6 w1: masters: omap_hdq: add support for 1-wire mode
This patches makes following changes to omap_hdq driver
 - Enable 1-wire mode.
 - Implement w1_triplet callback to facilitate search rom
   procedure and auto detection of 1-wire slaves.
 - Proper enabling and disabling of interrupt.
 - Cleanups (formatting and return value checks).

HDQ mode remains unchanged.

Signed-off-by: Vignesh R <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Pawel Moll <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Ian Campbell <[email protected]>
Cc: Kumar Gala <[email protected]>
Acked-by: Evgeniy Polyakov <[email protected]>
Cc: Jonathan Corbet <[email protected]>
CC: Tony Lindgren <[email protected]>
Cc: Vignesh R <[email protected]>
Cc: NeilBrown <[email protected]>
Cc: Fabian Frederick <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-10-05 04:47:09 +01:00
NeilBrown 126e31faa1 w1: omap-hdq: support device probing with device-tree
This driver has no 'compatible' string and so is not found when
using device-tree.

Add one with value to match
		hdqw1w: 1w@480b2000 {
device in omap3.dtsi.

Signed-off-by: NeilBrown <[email protected]>
Acked-by: Evgeniy Polyakov <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
2014-11-10 15:58:47 -08:00
Martin Fuzzey 28c55dc1ac W1: Add device tree support to MXC onewire master.
Signed-off-by: Martin Fuzzey <[email protected]>
Acked-by: Sascha Hauer <[email protected]>
Acked-by: Evgeniy Polyakov <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
2013-02-10 23:25:46 +08:00
Daniel Mack 5f3d1382e3 onewire: w1-gpio: add DT bindings
This patch add DT bindings to the w1-gpio driver, along with some
documentation on how to use them.

Signed-off-by: Daniel Mack <[email protected]>
Acked-by: Evgeniy Polyakov <[email protected]>
Acked-by: Ville Syrjälä <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-08-16 10:00:23 -07:00