Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1709004

Re: [PATCH v2 1/4] ipmi: bt-i2c: added documentation for bt-i2c drivers

From Rob Herring <robh@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2 1/4] ipmi: bt-i2c: added documentation for bt-i2c drivers
Date 2017-08-10 22:30 +0200
Message-ID <ud2fE-2mC-9@gated-at.bofh.it> (permalink)
References <uaVV0-6m4-7@gated-at.bofh.it> <uaW4F-6pC-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Aug 04, 2017 at 06:18:52PM -0700, Brendan Higgins wrote:
> Added device tree binding documentation for ipmi-bt-i2c (host) and
> ipmi-bmc-bt-i2c (BMC) and documentation for the Block Transfer over I2C
> (bt-i2c) protocol.

Please split the bindings to a separate patch.

> 
> Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
> ---
> Changes for v2:
>   - Fixed a typo
>   - Reworded a sentence to make it clear that I was talking about IBM's BT-BMC
>   - Deleted an unnecessary discussion of the host side interface (unnecessary
>     since the OpenIPMI stuff already has its own documentation).
> ---
>  Documentation/bt-i2c.txt                           | 109 +++++++++++++++++++++
>  .../devicetree/bindings/ipmi/ipmi-bt-i2c.txt       |  21 ++++
>  .../bindings/ipmi_bmc/ipmi-bmc-bt-i2c.txt          |  21 ++++
>  3 files changed, 151 insertions(+)
>  create mode 100644 Documentation/bt-i2c.txt
>  create mode 100644 Documentation/devicetree/bindings/ipmi/ipmi-bt-i2c.txt
>  create mode 100644 Documentation/devicetree/bindings/ipmi_bmc/ipmi-bmc-bt-i2c.txt


> diff --git a/Documentation/devicetree/bindings/ipmi/ipmi-bt-i2c.txt b/Documentation/devicetree/bindings/ipmi/ipmi-bt-i2c.txt
> new file mode 100644
> index 000000000000..bd956f2805e4
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/ipmi/ipmi-bt-i2c.txt
> @@ -0,0 +1,21 @@
> +Device tree configuration for the ipmi-bt-i2c driver.
> +
> +Required Properties:
> +- compatible 	: should be "ipmi-bt-i2c"
> +- reg		: the I2C slave address of the ipmi-bmc-bt-i2c
> +
> +i2c0: i2c-bus@40 {
> +	#address-cells = <1>;
> +	#size-cells = <0>;
> +	reg = <0x40 0x40>;
> +	compatible = "aspeed,ast2400-i2c-bus";

This is the host side, right? So this should be something besides an 
ASpeed I2C controller.

> +	clock-frequency = <100000>;
> +	status = "disabled";

Don't should status in examples.

> +	interrupts = <0>;
> +	interrupt-parent = <&i2c>;
> +
> +	bt-i2c-master@41 {

But it's the slave device you are describing here, right? The host is 
the master. Just "ipmi-bt" is probably enough.

> +		compatible = "ipmi-bt-i2c";
> +		reg = <0x41>;
> +	};
> +};
> diff --git a/Documentation/devicetree/bindings/ipmi_bmc/ipmi-bmc-bt-i2c.txt b/Documentation/devicetree/bindings/ipmi_bmc/ipmi-bmc-bt-i2c.txt
> new file mode 100644
> index 000000000000..6e82693ee50e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/ipmi_bmc/ipmi-bmc-bt-i2c.txt
> @@ -0,0 +1,21 @@
> +Device tree configuration for the ipmi-bmc-bt-i2c driver.
> +
> +Required Properties:
> +- compatible 	: should be "ipmi-bmc-bt-i2c"
> +- reg		: the I2C slave address of this driver.
> +
> +i2c0: i2c-bus@40 {
> +	#address-cells = <1>;
> +	#size-cells = <0>;
> +	reg = <0x40 0x40>;
> +	compatible = "aspeed,ast2400-i2c-bus";
> +	clock-frequency = <100000>;
> +	status = "disabled";
> +	interrupts = <0>;
> +	interrupt-parent = <&i2c>;
> +
> +	bt-i2c-slave@41 {
> +		compatible = "ipmi-bmc-bt-i2c";
> +		reg = <0x41>;

This doesn't follow the slave binding which sets bit 30 for slave 
devices.

> +	};
> +};
> -- 
> 2.14.0.rc1.383.gd1ce394fe2-goog
> 

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/4] ipmi: bt-i2c: added IPMI Block Transfer over I2C Brendan Higgins <brendanhiggins@google.com> - 2017-08-05 03:20 +0200
  [PATCH v2 1/4] ipmi: bt-i2c: added documentation for bt-i2c drivers Brendan Higgins <brendanhiggins@google.com> - 2017-08-05 03:30 +0200
    Re: [PATCH v2 1/4] ipmi: bt-i2c: added documentation for bt-i2c  drivers Rob Herring <robh@kernel.org> - 2017-08-10 22:30 +0200
  Re: [PATCH v2 0/4] ipmi: bt-i2c: added IPMI Block Transfer over I2C Corey Minyard <minyard@acm.org> - 2017-08-06 00:30 +0200
    Re: [PATCH v2 0/4] ipmi: bt-i2c: added IPMI Block Transfer over I2C Brendan Higgins <brendanhiggins@google.com> - 2017-08-08 03:30 +0200
      Re: [PATCH v2 0/4] ipmi: bt-i2c: added IPMI Block Transfer over I2C Corey Minyard <minyard@acm.org> - 2017-08-08 15:30 +0200
        Re: [PATCH v2 0/4] ipmi: bt-i2c: added IPMI Block Transfer over I2C Brendan Higgins <brendanhiggins@google.com> - 2017-08-10 03:10 +0200
          Re: [PATCH v2 0/4] ipmi: bt-i2c: added IPMI Block Transfer over I2C Corey Minyard <tcminyard@gmail.com> - 2017-08-10 04:30 +0200
            Re: [PATCH v2 0/4] ipmi: bt-i2c: added IPMI Block Transfer over I2C Brendan Higgins <brendanhiggins@google.com> - 2017-08-10 07:30 +0200

csiph-web