[RESEND V9,1/7] dt-bindings: mediatek: Add mediatek, mt8195-jpgenc compatible
Rob Herring
robh at kernel.org
Tue Jun 28 14:07:16 PDT 2022
On Mon, Jun 20, 2022 at 02:04:38PM +0800, kyrie.wu wrote:
> On Fri, 2022-06-17 at 17:11 -0600, Rob Herring wrote:
> > On Tue, Jun 14, 2022 at 08:10:18PM +0800, Irui Wang wrote:
> > > From: kyrie wu <kyrie.wu at mediatek.com>
> > >
> > > Add mediatek,mt8195-jpgenc compatible to binding document.
> > >
> > > Signed-off-by: kyrie wu <kyrie.wu at mediatek.com>
> > > ---
> > > .../media/mediatek,mt8195-jpegenc.yaml | 153
> > > ++++++++++++++++++
> > > 1 file changed, 153 insertions(+)
> > > create mode 100644
> > > Documentation/devicetree/bindings/media/mediatek,mt8195-
> > > jpegenc.yaml
> > >
> > > diff --git
> > > a/Documentation/devicetree/bindings/media/mediatek,mt8195-
> > > jpegenc.yaml
> > > b/Documentation/devicetree/bindings/media/mediatek,mt8195-
> > > jpegenc.yaml
> > > new file mode 100644
> > > index 000000000000..a7f9f723d5db
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/media/mediatek,mt8195-
> > > jpegenc.yaml
> > > @@ -0,0 +1,153 @@
> > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> > > +%YAML 1.2
> > > +---
> > > +$id:
> > > http://devicetree.org/schemas/media/mediatek,mt8195-jpegenc.yaml#
> > > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > > +
> > > +title: MediaTek JPEG Encoder Device Tree Bindings
> > > +
> > > +maintainers:
> > > + - kyrie wu <kyrie.wu at mediatek.corp-partner.google.com>
> > > +
> > > +description: |-
> > > + MediaTek JPEG Encoder is the JPEG encode hardware present in
> > > MediaTek SoCs
> > > +
> > > +properties:
> > > + compatible:
> > > + items:
> > > + - const: mediatek,mt8195-jpgenc
> > > +
> > > + mediatek,jpegenc-multi-core:
> > > + type: boolean
> > > + description: |
> > > + Indicates whether the jpeg encoder has multiple cores or
> > > not.
> > > +
> > > + power-domains:
> > > + maxItems: 1
> > > +
> > > + iommus:
> > > + maxItems: 4
> > > + description: |
> > > + Points to the respective IOMMU block with master port as
> > > argument, see
> > > + Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml
> > > for details.
> > > + Ports are according to the HW.
> > > +
> > > + "#address-cells":
> > > + const: 2
> > > +
> > > + "#size-cells":
> > > + const: 2
> > > +
> > > + ranges: true
> > > +
> > > +# Required child node:
> > > +patternProperties:
> > > + "^jpgenc@[0-9a-f]+$":
> > > + type: object
> > > + description: |
> > > + The jpeg encoder hardware device node which should be added
> > > as subnodes to
> > > + the main jpeg node.
> > > +
> > > + properties:
> > > + compatible:
> > > + const: mediatek,mt8195-jpgenc-hw
> > > +
> > > + reg:
> > > + maxItems: 1
> > > +
> > > + hw_id:
> > > + description: |
> > > + Current jpegenc hw id.
> >
> > Same question here. Surely, I asked sometime in the last 8 versions,
> > but
> > no explanation here and I'm not going to go look for it.
> Dear Rob,
> I'm sorry for not giving an accurate explanation in time.
> The MT8195 has own two encoding hardwares, we use hw_id to
> represent them.
> hw_id = 0, for hardware 0, and hw_id = 1, repesents another one.
> I will improve the description in the next version.
Why do you care which one is which?
We generally don't do instance indices in DT, so figure out how not to
need this.
Rob
More information about the linux-arm-kernel
mailing list