Code Monkey home page Code Monkey logo

Comments (2)

robherring avatar robherring commented on August 24, 2024

There's 2 things here I think. Just defining best practice or .dts coding style. That would be good I think, but I don't think that belongs in the spec (though could be an appendix). This is also something tools can check, so I'd rather see tools for this first rather than an appendix for people to ignore.

We went down this path effectively trying to enforce some bracketing practice when dtschema relied on bracketing. There's a bunch of patches changing .dts files for that. That hit a roadblock in dtc when I tried to output brackets using the knowledge the dtc checks already has. That was needed when checking of DTBs was needed where we don't have any DTS and any and all bracketing is lost. Anyway, any checks of bracketing are gone, but I would like to see some separate tool do that and other things. A DTS linter essentially (which has come up before: devicetree-org/dt-schema#18).

The 2nd thing here sounds like generating #foo-cells based on brackets (or from phandles in the phandle+args style bindings). Like dtschema, that's probably a deadend in dtc. I think it falls into a larger topic of defining a higher level syntax than DTS (or DTSv2 maybe). The systemdt folks are doing some of this I think including just what you described. Take a look at lopper or talk to @zeddii perhaps.

from devicetree-specification.

konradybcio avatar konradybcio commented on August 24, 2024

I was doing the dishes and suddenly had this idea... things like this could be required in a theoretical /dts-v2/, which we could perhaps open a meta discussion issue for.. Now that there are more eyes on shipping actual products with what we consider "proper" (a.k.a. in accordance to the upstream linux standards & dt-bindings) DTs that adhere to the backwards compatibility and ACPI (more-or-less-)equivalence, this could be a good forum for discussing possible evolutions.

There are some rough edges (like this one) that could be polished if things got less ambiguous, while retaining compatibility with what's here today. Another thing that immediately comes to mind is going little endian.

from devicetree-specification.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.