Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1cac41cb authored by Michael Benedict's avatar Michael Benedict
Browse files

source: G950F DSE4

parent f8518889
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -578,6 +578,15 @@ is completely unused; @cgrp->parent is still valid. (Note - can also
be called for a newly-created cgroup if an error occurs after this
subsystem's create() method has been called for the new cgroup).

int allow_attach(struct cgroup *cgrp, struct cgroup_taskset *tset)
(cgroup_mutex held by caller)

Called prior to moving a task into a cgroup; if the subsystem
returns an error, this will abort the attach operation.  Used
to extend the permission checks - if all subsystems in a cgroup
return 0, the attach will be allowed to proceed, even if the
default permission check (root or same user) fails.

int can_attach(struct cgroup *cgrp, struct cgroup_taskset *tset)
(cgroup_mutex held by caller)

+19 −0
Original line number Diff line number Diff line
Cirrus Logic Madera class audio codecs gpio driver

See also the core bindings for the parent MFD driver:
See Documentation/devicetree/bindinge/mfd/madera.txt

Required properties:

  - gpio-controller : Indicates this device is a GPIO controller.
  - #gpio-cells : Must be 2. The first cell is the pin number. The second cell
    is reserved for future use and must be zero

Example:

codec: cs47l85@0 {
	compatible = "cirrus,cs47l85";

	gpio-controller;
	#gpio-cells = <2>;
};
+38 −0
Original line number Diff line number Diff line
Cirrus Logic Madera class audio codec IRQ driver

See also the core bindings for the parent MFD driver:
See Documentation/devicetree/bindinge/mfd/madera.txt

Required properties:

  - interrupts : The interrupt line the /IRQ signal for the device is
    connected to.

  - interrupt-controller : Madera class devices contain interrupt controllers
    and may provide interrupt services to other devices.

  - interrupt-parent : The parent interrupt controller.

  - #interrupt-cells: the number of cells to describe an IRQ, this should be 2.
    The first cell is the IRQ number.
    The second cell is the flags, encoded as the trigger masks from
    bindings/interrupt-controller/interrupts.txt

Optional properties:
  - cirrus,irq-gpios : The GPIO the host IRQ is connected to. Used when the
    host IRQ is edge-triggered to emulate a level-triggered IRQ. If specified
    must be exactly one GPIO entry

  - cirrus,irq-flags :  host controller flags as defined in
    bindings/interrupt-controller/interrupts.txt

Example:

codec: cs47l85@0 {
	compatible = "cirrus,cs47l85";

	interrupts = <&host_irq1>;
	interrupt-controller;
	#interrupt-cells = <2>;
        interrupt-parent = <&gic>;
};
+94 −0
Original line number Diff line number Diff line
Cirrus Logic Madera class audio codecs multi-function device

These devices are audio SoCs with extensive digital capabilities and a range
of analogue I/O.

See also the child driver bindings in:
bindings/extcon/extcon-madera.txt
bindings/gpio/gpio-madera.txt
bindings/interrupt-controller/cirrus,madera.txt
bindings/regulator/madera-ldo1.txt
bindings/regulator/madera-micsupp.txt
bindings/sound/madera.txt
bindings/switch/madera.txt

Required properties:

  - compatible : One of the following chip-specific strings:
        "cirrus,cs47l15"
        "cirrus,cs47l35"
        "cirrus,cs47l85"
        "cirrus,cs47l90"
        "cirrus,cs47l91"
        "cirrus,wm1840"
        "cirrus,cs47l92"
        "cirrus,cs47l93"

  - reg : I2C slave address when connected using I2C, chip select number when
    using SPI.

  - DCVDD-supply : Power supply for the device as defined in
    bindings/regulator/regulator.txt
    Mandatory on CS47L15, CS47L35, CS47L90, CS47L91
    Optional on CS47L85, WM1840

  - AVDD-supply, DBVDD1-supply, DBVDD2-supply, CPVDD1-supply, CPVDD2-supply :
    Power supplies for the device

  - DBVDD3-supply, DBVDD4-supply : Power supplies for the device
    (CS47L85, CS47L90, CS47L91, WM1840)

  - SPKVDDL-supply, SPKVDDR-supply : Power supplies for the device
    (CS47L85, WM1840)

  - SPKVDD-supply : Power supply for the device
    (CS47L15, CS47L35)

Optional properties:

  , MICVDD-supply : Power supply, only need to be specified if
    powered externally

  - reset-gpios : One entry specifying the GPIO controlling /RESET.
    As defined in bindings/gpio.txt.

  - cirrus,clk32k-src : set input source for codec 32kHz clock.
      0 = default, 1 = MCLK1, 2 = MCLK2, 3 = None

  - cirrus,gpio-defaults : A list of values for the GPn_CONFIGx registers.
    There are two entries for each GPIO, corresponding to the GPn_CONFIG1 and
    GPn_CONFIG2 registers for that GPIO. Defines for the appropriate values can
    be found in <dt-bindings/mfd/madera.h>. If absent, no configuration of these
    registers is performed. If any entry has a value >0xFFFF the chip default
    will be used.

  - cirrus,micbias1 : Configuration for the micbias regulator, there are 8 cells
    <vout cap disA disB disC disD soft bypass>
    where
      vout is the output voltage in millivolts
      cap is non-zero value if an external capacitor is fitted
      disA,B,C,D non-zero if that output should be actively discharged
      soft non-zero to enable soft-start
      bypass non-zero to enable bypass
  - cirrus,micbias2 : See cirrus,micbias1
  - cirrus,micbias3 : See cirrus,micbias1
  - cirrus,micbias4 : See cirrus,micbias1

Example:

codec: cs47l85@0 {
	compatible = "cirrus,cs47l85";
	reg = <0>;

	reset-gpios = <&gpio 0>;

	cirrus,gpio-defaults = <
		Madera_GP_FN_TXLRCLK
		Madera_GP_DEFAULT
		Madera_GP_DEFAULT
		Madera_GP_DEFAULT
		Madera_GP_DEFAULT
	>;

	cirrus,micbias2 = <2600 0 1 0 0 0 1 0>;
};
+0 −0

File mode changed from 100644 to 100755.

Loading