Message ID | 20211024180628.2992108-2-piyush.mehta@xilinx.com |
---|---|
State | Changes Requested, archived |
Headers | show |
Series | usb: misc: add support for microchip,usb2244 USB-SD controller | expand |
Context | Check | Description |
---|---|---|
robh/checkpatch | success | |
robh/dt-meta-schema | success | |
robh/dtbs-check | success |
On Sun, Oct 24, 2021 at 1:06 PM Piyush Mehta <piyush.mehta@xilinx.com> wrote: > Your email is somewhat corrupted. Lore has a warning: [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain; charset="y", Size: 2065 bytes --] Maybe it's the '--to=robh+dt@kernel.org' email... > Microchip's USB224x family of Hi-Speed USB 2.0 flash media card controllers > provides an ultra-fast interface between a USB host controller and flash > media cards. > > Add dt-bindings documentation for Microchip's usb2244 Controller. > USB224x is a USB 2.0 compliant ultra fast USB 2.0 multi-format, > SD/MMC, and MS Flash Media Controllers. > > Signed-off-by: Piyush Mehta <piyush.mehta@xilinx.com> > --- > .../devicetree/bindings/usb/microchip,usb2244.yaml | 43 ++++++++++++++++++++++ > 1 file changed, 43 insertions(+) > create mode 100644 Documentation/devicetree/bindings/usb/microchip,usb2244.yaml > > diff --git a/Documentation/devicetree/bindings/usb/microchip,usb2244.yaml b/Documentation/devicetree/bindings/usb/microchip,usb2244.yaml > new file mode 100644 > index 0000000..ecab0cb > --- /dev/null > +++ b/Documentation/devicetree/bindings/usb/microchip,usb2244.yaml > @@ -0,0 +1,43 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/usb/microchip,usb2244.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > + > +title: Bindings for the Microchip USB2244 Ultra Fast USB-SD Controller > + > +description: > + Microchip’s USB224x is a USB 2.0 compliant, Hi-Speed bulk only mass > + storage class peripheral controller intended for reading and writing > + to popular flash media from the xDPicture Card™, Memory Stick® (MS), > + Secure Digital (SD), and MultiMediaCard™ (MMC) families. > + > + USB224x is a flash media card reader solution fully compliant with the > + USB 2.0 specification > + > +maintainers: > + - Piyush Mehta <piyush.mehta@xilinx.com> > + > +properties: > + compatible: > + const: microchip,usb2244 > + > + reset-gpios: > + maxItems: 1 > + description: > + The phandle and specifier for the GPIO that controls the RESET line of > + flash media controller. > + > +required: > + - compatible > + > +additionalProperties: false > + > +examples: > + - | > + #include <dt-bindings/gpio/gpio.h> > + > + usb { > + compatible = "microchip,usb2244"; This needs to be a USB device under a USB controller node. See usb-device.yaml. > + reset-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>; > + }; > -- > 2.7.4 >
diff --git a/Documentation/devicetree/bindings/usb/microchip,usb2244.yaml b/Documentation/devicetree/bindings/usb/microchip,usb2244.yaml new file mode 100644 index 0000000..ecab0cb --- /dev/null +++ b/Documentation/devicetree/bindings/usb/microchip,usb2244.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/usb/microchip,usb2244.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Bindings for the Microchip USB2244 Ultra Fast USB-SD Controller + +description: + Microchip’s USB224x is a USB 2.0 compliant, Hi-Speed bulk only mass + storage class peripheral controller intended for reading and writing + to popular flash media from the xDPicture Card™, Memory Stick® (MS), + Secure Digital (SD), and MultiMediaCard™ (MMC) families. + + USB224x is a flash media card reader solution fully compliant with the + USB 2.0 specification + +maintainers: + - Piyush Mehta <piyush.mehta@xilinx.com> + +properties: + compatible: + const: microchip,usb2244 + + reset-gpios: + maxItems: 1 + description: + The phandle and specifier for the GPIO that controls the RESET line of + flash media controller. + +required: + - compatible + +additionalProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + + usb { + compatible = "microchip,usb2244"; + reset-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>; + };
Microchip's USB224x family of Hi-Speed USB 2.0 flash media card controllers provides an ultra-fast interface between a USB host controller and flash media cards. Add dt-bindings documentation for Microchip's usb2244 Controller. USB224x is a USB 2.0 compliant ultra fast USB 2.0 multi-format, SD/MMC, and MS Flash Media Controllers. Signed-off-by: Piyush Mehta <piyush.mehta@xilinx.com> --- .../devicetree/bindings/usb/microchip,usb2244.yaml | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/microchip,usb2244.yaml