/openbmc/u-boot/arch/arm/dts/ |
H A D | meson-gxbb.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include "meson-gx.dtsi" 7 #include <dt-bindings/gpio/meson-gxbb-gpio.h> 8 #include <dt-bindings/reset/amlogic,meson-gxbb-reset.h> 9 #include <dt-bindings/clock/gxbb-clkc.h> 10 #include <dt-bindings/clock/gxbb-aoclkc.h> 11 #include <dt-bindings/reset/gxbb-aoclkc.h> 14 compatible = "amlogic,meson-gxbb"; 18 compatible = "amlogic,meson-gxbb-usb2-phy"; 19 #phy-cells = <0>; [all …]
|
H A D | meson-gxl.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 #include "meson-gx.dtsi" 8 #include <dt-bindings/clock/gxbb-clkc.h> 9 #include <dt-bindings/clock/gxbb-aoclkc.h> 10 #include <dt-bindings/gpio/meson-gxl-gpio.h> 11 #include <dt-bindings/reset/amlogic,meson-gxbb-reset.h> 14 compatible = "amlogic,meson-gxl"; 19 compatible = "amlogic,meson-gxl-dwc3"; 20 #address-cells = <2>; 21 #size-cells = <2>; [all …]
|
H A D | meson-gxl-s905x-khadas-vim.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include <dt-bindings/input/input.h> 10 #include "meson-gxl-s905x-p212.dtsi" 13 compatible = "khadas,vim", "amlogic,s905x", "amlogic,meson-gxl"; 16 adc-keys { 17 compatible = "adc-keys"; 18 io-channels = <&saradc 0>; 19 io-channel-names = "buttons"; 20 keyup-threshold-microvolt = <1710000>; [all …]
|
H A D | meson-axg.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include <dt-bindings/clock/axg-aoclkc.h> 7 #include <dt-bindings/clock/axg-audio-clkc.h> 8 #include <dt-bindings/clock/axg-clkc.h> 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/gpio/meson-axg-gpio.h> 11 #include <dt-bindings/interrupt-controller/irq.h> 12 #include <dt-bindings/interrupt-controller/arm-gic.h> 13 #include <dt-bindings/reset/amlogic,meson-axg-audio-arb.h> 14 #include <dt-bindings/reset/amlogic,meson-axg-reset.h> [all …]
|
H A D | meson-gxm-khadas-vim2.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/thermal/thermal.h> 13 #include "meson-gxm.dtsi" 16 compatible = "khadas,vim2", "amlogic,s912", "amlogic,meson-gxm"; 26 stdout-path = "serial0:115200n8"; 34 adc-keys { 35 compatible = "adc-keys"; 36 io-channels = <&saradc 0>; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | amlogic,meson-pinctrl-a1.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/amlogic,meson-pinctrl-a1.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Amlogic Meson A1 pinmux controller 10 - Neil Armstrong <neil.armstrong@linaro.org> 13 - $ref: amlogic,meson-pinctrl-common.yaml# 18 - amlogic,c3-periphs-pinctrl 19 - amlogic,meson-a1-periphs-pinctrl 20 - amlogic,meson-s4-periphs-pinctrl [all …]
|
H A D | amlogic,meson-pinctrl-g12a-aobus.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/amlogic,meson-pinctrl-g12a-aobus.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Amlogic Meson G12 AOBUS pinmux controller 10 - Neil Armstrong <neil.armstrong@linaro.org> 13 - $ref: amlogic,meson-pinctrl-common.yaml# 18 - amlogic,meson-g12a-aobus-pinctrl 21 - compatible 24 "^bank@[0-9a-z]+$": [all …]
|
H A D | amlogic,meson-pinctrl-g12a-periphs.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/amlogic,meson-pinctrl-g12a-periphs.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Amlogic Meson G12 PERIPHS pinmux controller 10 - Neil Armstrong <neil.armstrong@linaro.org> 13 - $ref: amlogic,meson-pinctrl-common.yaml# 18 - amlogic,meson-g12a-periphs-pinctrl 21 - compatible 24 "^bank@[0-9a-z]+$": [all …]
|
H A D | amlogic,meson8-pinctrl-cbus.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/amlogic,meson8-pinctrl-cbus.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Neil Armstrong <neil.armstrong@linaro.org> 13 - $ref: amlogic,meson-pinctrl-common.yaml# 18 - enum: 19 - amlogic,meson8-cbus-pinctrl 20 - amlogic,meson8b-cbus-pinctrl 21 - amlogic,meson-gxbb-periphs-pinctrl [all …]
|
H A D | amlogic,meson8-pinctrl-aobus.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/amlogic,meson8-pinctrl-aobus.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Neil Armstrong <neil.armstrong@linaro.org> 13 - $ref: amlogic,meson-pinctrl-common.yaml# 18 - enum: 19 - amlogic,meson8-aobus-pinctrl 20 - amlogic,meson8b-aobus-pinctrl 21 - amlogic,meson-gxbb-aobus-pinctrl [all …]
|
H A D | amlogic,meson-pinctrl-common.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/amlogic,meson-pinctrl-common.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Amlogic Meson pinmux controller 10 - Neil Armstrong <neil.armstrong@linaro.org> 13 - $ref: pinctrl.yaml# 18 "#address-cells": 21 "#size-cells": 25 - ranges [all …]
|
/openbmc/linux/drivers/pinctrl/meson/ |
H A D | pinctrl-meson.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Pin controller and GPIO driver for Amlogic Meson SoCs 20 * struct meson_pmx_group - a pinmux group 23 * @pins: pins in the group 24 * @num_pins: number of pins in the group 32 const unsigned int *pins; member 38 * struct meson_pmx_func - a pinmux function 51 * struct meson_reg_desc - a register descriptor 57 * pull-enable, direction, etc. for a single pin 65 * enum meson_reg_type - type of registers encoded in @meson_reg_desc [all …]
|
H A D | pinctrl-meson8-pmx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * First generation of pinmux driver for Amlogic Meson SoCs 18 #include "pinctrl-meson.h" 19 #include "pinctrl-meson8-pmx.h" 22 * meson8_pmx_disable_other_groups() - disable other groups using a given pin 24 * @pc: meson pin controller device 26 * @sel_group: index of the selected group, or -1 if none 29 * selected one. If @sel_group is -1 all groups are disabled, leaving 39 for (i = 0; i < pc->data->num_groups; i++) { in meson8_pmx_disable_other_groups() 40 group = &pc->data->groups[i]; in meson8_pmx_disable_other_groups() [all …]
|
H A D | pinctrl-meson8-pmx.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * First generation of pinmux driver for Amlogic Meson SoCs 25 .pins = grp ## _pins, \ 35 .pins = (const unsigned int[]){ gpio }, \
|
H A D | pinctrl-meson-axg-pmx.c | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Second generation of pinmux driver for Amlogic Meson-AXG SoC. 14 * Meson-AXG SoC and later series, which use 4-width continuous 25 #include "pinctrl-meson.h" 26 #include "pinctrl-meson-axg-pmx.h" 33 struct meson_axg_pmx_data *pmx = pc->data->pmx_data; in meson_axg_pmx_get_bank() 35 for (i = 0; i < pmx->num_pmx_banks; i++) in meson_axg_pmx_get_bank() 36 if (pin >= pmx->pmx_banks[i].first && in meson_axg_pmx_get_bank() 37 pin <= pmx->pmx_banks[i].last) { in meson_axg_pmx_get_bank() 38 *bank = &pmx->pmx_banks[i]; in meson_axg_pmx_get_bank() [all …]
|
H A D | pinctrl-meson.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Pin controller and GPIO driver for Amlogic Meson SoCs 9 * The available pins are organized in banks (A,B,C,D,E,X,Y,Z,AO, 12 * variable number of pins. 14 * The AO bank is special because it belongs to the Always-On power 19 * control the following properties of the pins: 28 * Since Meson G12A SoC, the ao register ranges for gpio, pull enable 46 #include <linux/pinctrl/pinconf-generic.h> 56 #include "../pinctrl-utils.h" 57 #include "pinctrl-meson.h" [all …]
|
/openbmc/u-boot/drivers/pinctrl/meson/ |
H A D | pinctrl-meson-gx-pmx.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * (C) Copyright 2016 - Beniamino Galvani <b.galvani@gmail.com> 11 #include "pinctrl-meson-gx.h" 22 for (i = 0; i < priv->data->num_groups; i++) { in meson_gx_pinmux_disable_other_groups() 23 group = &priv->data->groups[i]; in meson_gx_pinmux_disable_other_groups() 24 pmx_data = (struct meson_gx_pmx_data *)group->data; in meson_gx_pinmux_disable_other_groups() 25 if (pmx_data->is_gpio || i == sel_group) in meson_gx_pinmux_disable_other_groups() 28 for (j = 0; j < group->num_pins; j++) { in meson_gx_pinmux_disable_other_groups() 29 if (group->pins[j] == pin) { in meson_gx_pinmux_disable_other_groups() 31 debug("pinmux: disabling %s\n", group->name); in meson_gx_pinmux_disable_other_groups() [all …]
|
H A D | pinctrl-meson-gx.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 10 #include "pinctrl-meson.h" 28 .pins = grp ## _pins, \ 38 .pins = (const unsigned int[]){ PIN(gpio, b) }, \
|
H A D | pinctrl-meson-axg.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 10 #include "pinctrl-meson.h" 46 .pins = grp ## _pins, \ 56 .pins = (const unsigned int[]){ PIN(gpio, b) }, \
|
H A D | pinctrl-meson-axg-pmx.c | 1 // SPDX-License-Identifier: GPL-2.0+ 12 #include "pinctrl-meson-axg.h" 19 struct meson_axg_pmx_data *pmx = priv->data->pmx_data; in meson_axg_pmx_get_bank() 21 for (i = 0; i < pmx->num_pmx_banks; i++) in meson_axg_pmx_get_bank() 22 if (pin >= pmx->pmx_banks[i].first && in meson_axg_pmx_get_bank() 23 pin <= pmx->pmx_banks[i].last) { in meson_axg_pmx_get_bank() 24 *bank = &pmx->pmx_banks[i]; in meson_axg_pmx_get_bank() 28 return -EINVAL; in meson_axg_pmx_get_bank() 38 shift = pin - bank->first; in meson_axg_pmx_calc_reg_and_offset() 40 *reg = bank->reg + (bank->offset + (shift << 2)) / 32; in meson_axg_pmx_calc_reg_and_offset() [all …]
|
H A D | pinctrl-meson.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * (C) Copyright 2016 - Beniamino Galvani <b.galvani@gmail.com> 13 const unsigned int *pins; member 47 * struct meson_reg_desc - a register descriptor 53 * pull-enable, direction, etc. for a single pin 61 * enum meson_reg_type - type of registers encoded in @meson_reg_desc 73 * struct meson bank 80 * A bank represents a set of pins controlled by a contiguous set of
|
/openbmc/linux/arch/arm64/boot/dts/amlogic/ |
H A D | meson-gxbb.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include "meson-gx.dtsi" 7 #include "meson-gx-mali450.dtsi" 8 #include <dt-bindings/gpio/meson-gxbb-gpio.h> 9 #include <dt-bindings/reset/amlogic,meson-gxbb-reset.h> 10 #include <dt-bindings/clock/gxbb-clkc.h> 11 #include <dt-bindings/clock/gxbb-aoclkc.h> 12 #include <dt-bindings/reset/gxbb-aoclkc.h> 15 compatible = "amlogic,meson-gxbb"; 19 compatible = "amlogic,meson-gxbb-usb2-phy"; [all …]
|
H A D | meson-gxl.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 #include "meson-gx.dtsi" 8 #include <dt-bindings/clock/gxbb-clkc.h> 9 #include <dt-bindings/clock/gxbb-aoclkc.h> 10 #include <dt-bindings/gpio/meson-gxl-gpio.h> 11 #include <dt-bindings/reset/amlogic,meson-gxbb-reset.h> 14 compatible = "amlogic,meson-gxl"; 18 compatible = "amlogic,meson-gxl-usb-ctrl"; 21 #address-cells = <2>; 22 #size-cells = <2>; [all …]
|
H A D | meson-gxl-s905x-khadas-vim.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include "meson-gxl-s905x-p212.dtsi" 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/sound/meson-aiu.h> 13 compatible = "khadas,vim", "amlogic,s905x", "amlogic,meson-gxl"; 16 adc-keys { 17 compatible = "adc-keys"; 18 io-channels = <&saradc 0>; 19 io-channel-names = "buttons"; [all …]
|
H A D | meson-gxm-khadas-vim2.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 10 #include "meson-gxm.dtsi" 11 #include <dt-bindings/input/input.h> 12 #include <dt-bindings/sound/meson-aiu.h> 15 compatible = "khadas,vim2", "amlogic,s912", "amlogic,meson-gxm"; 24 stdout-path = "serial0:115200n8"; 32 adc-keys { 33 compatible = "adc-keys"; 34 io-channels = <&saradc 0>; [all …]
|