GithubHelp home page GithubHelp logo

Comments (5)

htot avatar htot commented on July 22, 2024 1

I see, it appears you are right. The pin mode needs to be set and there is no infrastructure for that yet. For now there is hack floating around that you might try. It sets the pin modes when the pwm driver is probed, maybe it works for you?

from meta-intel-edison.

htot avatar htot commented on July 22, 2024

What do you mean zeus does not use Arduino board?

We have this https://github.com/edison-fw/meta-acpi/blob/a48a1c514978038ba17c115c94845341ffb91d54/recipes-bsp/acpi-tables/samples/edison/arduino.asli#L1131

Scope (\_SB.PCI0.PWM0)
{
    Name (RBUF, ResourceTemplate ()
    {
        PinFunction(Exclusive, PullUp, 0x0001,
            "\\_SB.FLIS", 0, ResourceConsumer, , ) { 144 }
        PinFunction(Exclusive, PullUp, 0x0001,
            "\\_SB.FLIS", 0, ResourceConsumer, , ) { 145 }
        PinFunction(Exclusive, PullUp, 0x0001,
            "\\_SB.FLIS", 0, ResourceConsumer, , ) { 132 }
        PinFunction(Exclusive, PullUp, 0x0001,
            "\\_SB.FLIS", 0, ResourceConsumer, , ) { 133 }
    })
    Method (_CRS, 0, NotSerialized)
    {
        Return (RBUF)
    }
}

from meta-intel-edison.

shawnhsoia97 avatar shawnhsoia97 commented on July 22, 2024

What do you mean zeus does not use Arduino board?

My mean is only use GPIO of Edison , and I did not develop on Arduino board.

We have this https://github.com/edison-fw/meta-acpi/blob/a48a1c514978038ba17c115c94845341ffb91d54/recipes-bsp/acpi-tables/samples/edison/arduino.asli#L1131

Scope (\_SB.PCI0.PWM0)
{
    Name (RBUF, ResourceTemplate ()
    {
        PinFunction(Exclusive, PullUp, 0x0001,
            "\\_SB.FLIS", 0, ResourceConsumer, , ) { 144 }
        PinFunction(Exclusive, PullUp, 0x0001,
            "\\_SB.FLIS", 0, ResourceConsumer, , ) { 145 }
        PinFunction(Exclusive, PullUp, 0x0001,
            "\\_SB.FLIS", 0, ResourceConsumer, , ) { 132 }
        PinFunction(Exclusive, PullUp, 0x0001,
            "\\_SB.FLIS", 0, ResourceConsumer, , ) { 133 }
    })
    Method (_CRS, 0, NotSerialized)
    {
        Return (RBUF)
    }
}

Yes , I did follow this example , but I use control pwm based on pwm class (e.g. /sys/class/pwm/pwmchip0/pwm0) that is no PWM signal created on pwm0(GP12).

from meta-intel-edison.

shawnhsoia97 avatar shawnhsoia97 commented on July 22, 2024

Thank your help ! I appreciate that.
This works for me. The pwm driver has been correctly probed.

from meta-intel-edison.

andy-shev avatar andy-shev commented on July 22, 2024

Also possible to do this via @xlla patches as pointed out here #100.

from meta-intel-edison.

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.