/linux/arch/arm/boot/dts/allwinner/ |
H A D | sun8i-r40.dtsi | 2 * Copyright 2017 Chen-Yu Tsai <wens@csie.org> 5 * This file is dual-licensed: you can use it either under the terms 10 * a) This file is free software; you can redistribute it and/or 44 #include <dt-bindings/interrupt-controller/arm-gic.h> 45 #include <dt-bindings/clock/sun6i-rtc.h> 46 #include <dt-bindings/clock/sun8i-de2.h> 47 #include <dt-bindings/clock/sun8i-r40-ccu.h> 48 #include <dt-bindings/clock/sun8i-tcon-top.h> 49 #include <dt-bindings/reset/sun8i-r40-ccu.h> 50 #include <dt-bindings/reset/sun8i-de2.h> [all …]
|
H A D | sun8i-t3-cqa3t-bv3.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2017 Chen-Yu Tsai <wens@csie.org> 7 * This file is dual-licensed: you can use it either under the terms 12 * a) This file is free software; you can redistribute it and/or 46 /dts-v1/; 47 #include "sun8i-r40.dtsi" 48 #include "sun8i-r40-cpu-opp.dtsi" 50 #include <dt-bindings/gpio/gpio.h> 53 model = "t3-cqa3t-bv3"; 54 compatible = "qihua,t3-cqa3t-bv3", "allwinner,sun8i-t3", [all …]
|
H A D | sun8i-v40-bananapi-m2-berry.dts | 4 * This file is dual-licensed: you can use it either under the terms 9 * a) This file is free software; you can redistribute it and/or 43 /dts-v1/; 44 #include "sun8i-r40.dtsi" 45 #include "sun8i-r40-cpu-opp.dtsi" 47 #include <dt-bindings/gpio/gpio.h> 51 compatible = "sinovoip,bpi-m2-berry", "allwinner,sun8i-r40"; 59 stdout-path = "serial0:115200n8"; 63 compatible = "hdmi-connector"; 68 remote-endpoint = <&hdmi_out_con>; [all …]
|
H A D | sun8i-r40-bananapi-m2-ultra.dts | 2 * Copyright (C) 2017 Chen-Yu Tsai <wens@csie.org> 5 * This file is dual-licensed: you can use it either under the terms 10 * a) This file is free software; you can redistribute it and/or 44 /dts-v1/; 45 #include "sun8i-r40.dtsi" 46 #include "sun8i-r40-cpu-opp.dtsi" 48 #include <dt-bindings/gpio/gpio.h> 51 model = "Banana Pi BPI-M2-Ultra"; 52 compatible = "sinovoip,bpi-m2-ultra", "allwinner,sun8i-r40"; 60 stdout-path = "serial0:115200n8"; [all …]
|
/linux/Documentation/devicetree/bindings/net/can/ |
H A D | allwinner,sun4i-a10-can.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/net/can/allwinner,sun4i-a10-can.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Allwinner A10 CAN Controller 10 - Chen-Yu Tsai <wens@csie.org> 11 - Maxime Ripard <mripard@kernel.org> 14 - $ref: can-controller.yaml# 19 - items: 20 - const: allwinner,sun7i-a20-can [all …]
|
/linux/Documentation/devicetree/bindings/display/ |
H A D | allwinner,sun4i-a10-tcon.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/display/allwinner,sun4i-a10-tcon.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chen-Yu Tsai <wens@csie.org> 11 - Maxime Ripard <mripard@kernel.org> 18 "#clock-cells": 23 - const: allwinner,sun4i-a10-tcon 24 - const: allwinner,sun5i-a13-tcon 25 - const: allwinner,sun6i-a31-tcon [all …]
|
H A D | allwinner,sun8i-r40-tcon-top.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/display/allwinner,sun8i-r40-tcon-top.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Allwinner R40 TCON TOP 10 - Chen-Yu Tsai <wens@csie.org> 11 - Maxime Ripard <mripard@kernel.org> 22 / [0] TCON-LCD0 25 \ / [1] TCON-LCD1 - LCD1/LVDS1 26 TCON-TOP [all …]
|
H A D | allwinner,sun4i-a10-display-engine.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/display/allwinner,sun4i-a10-display-engine.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chen-Yu Tsai <wens@csie.org> 11 - Maxime Ripard <mripard@kernel.org> 14 The display engine pipeline (and its entry point, since it can be 27 Frontend 0 [0] ------- [0] Backend 0 [0] ------- [0] TCON 0 28 [1] -- -- [1] [1] -- -- [1] 32 [0] -- -- [0] [0] -- -- [0] [all …]
|
H A D | allwinner,sun8i-a83t-dw-hdmi.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/display/allwinner,sun8i-a83t-dw-hdmi.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 15 in bridge/synopsys,dw-hdmi.yaml with the following device-specific 19 - Chen-Yu Tsai <wens@csie.org> 20 - Maxime Ripard <mripard@kernel.org> 23 "#phy-cells": 28 - const: allwinner,sun8i-a83t-dw-hdmi 29 - const: allwinner,sun50i-h6-dw-hdmi [all …]
|
/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | allwinner,sun4i-a10-pinctrl.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/allwinner,sun4i-a10-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chen-Yu Tsai <wens@csie.org> 11 - Maxime Ripard <mripard@kernel.org> 14 "#gpio-cells": 21 "#interrupt-cells": 30 - allwinner,sun4i-a10-pinctrl 31 - allwinner,sun5i-a10s-pinctrl [all …]
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | allwinner,sun4i-a10-i2s.yaml | 1 # SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/allwinner,sun4i-a10-i2s.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chen-Yu Tsai <wens@csie.org> 11 - Maxime Ripard <mripard@kernel.org> 14 "#sound-dai-cells": 19 - const: allwinner,sun4i-a10-i2s 20 - const: allwinner,sun6i-a31-i2s 21 - const: allwinner,sun8i-a83t-i2s [all …]
|
/linux/drivers/soc/sunxi/ |
H A D | sunxi_mbus.c | 1 // SPDX-License-Identifier: GPL-2.0 5 #include <linux/dma-map-ops.h> 18 "allwinner,sun4i-a10-display-engine", 19 "allwinner,sun5i-a10s-display-engine", 20 "allwinner,sun5i-a13-display-engine", 21 "allwinner,sun6i-a31-display-engine", 22 "allwinner,sun6i-a31s-display-engine", 23 "allwinner,sun7i-a20-display-engine", 24 "allwinner,sun8i-a23-display-engine", 25 "allwinner,sun8i-a33-display-engine", [all …]
|
/linux/drivers/rtc/ |
H A D | rtc-sun6i.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2014, Chen-Yu Tsai <wens@csie.org> 7 * based on rtc-sunxi.c 15 #include <linux/clk-provider.h> 16 #include <linux/clk/sunxi-ng.h> 73 /* General-purpose data */ 112 * The year range is 1970 - 2033. This range is selected to match Allwinner's 116 #define SUN6I_YEAR_OFF (SUN6I_YEAR_MIN - 1900) 123 * - number of GPIO pins that can be configured to hold a certain level 124 * - crypto-key related registers (H5, H6) [all …]
|
/linux/Documentation/devicetree/bindings/net/ |
H A D | snps,dwmac.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Alexandre Torgue <alexandre.torgue@foss.st.com> 11 - Giuseppe Cavallaro <peppe.cavallaro@st.com> 12 - Jose Abreu <joabreu@synopsys.com> 23 - snps,dwmac 24 - snps,dwmac-3.40a 25 - snps,dwmac-3.50a 26 - snps,dwmac-3.610 [all …]
|
/linux/drivers/gpu/drm/sun4i/ |
H A D | sun4i_drv.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Maxime Ripard <maxime.ripard@free-electrons.com> 11 #include <linux/dma-mapping.h> 39 args->pitch = ALIGN(DIV_ROUND_UP(args->width * args->bpp, 8), 2); in drm_sun4i_gem_dumb_create() 51 .name = "sun4i-drm", 74 ret = -ENOMEM; in sun4i_drv_bind() 78 drm->dev_private = drv; in sun4i_drv_bind() 79 INIT_LIST_HEAD(&drv->frontend_list); in sun4i_drv_bind() 80 INIT_LIST_HEAD(&drv->engine_list); in sun4i_drv_bind() 81 INIT_LIST_HEAD(&drv->tcon_list); in sun4i_drv_bind() [all …]
|
H A D | sun8i_mixer.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 #include <linux/dma-mapping.h> 250 return -EINVAL; in sun8i_mixer_drm_format_to_hw() 255 u32 ch_base = sun8i_channel_base(layer->mixer, layer->channel); in sun8i_layer_enable() 258 if (layer->type == SUN8I_LAYER_TYPE_UI) { in sun8i_layer_enable() 261 reg = SUN8I_MIXER_CHAN_UI_LAYER_ATTR(ch_base, layer->overlay); in sun8i_layer_enable() 265 reg = SUN8I_MIXER_CHAN_VI_LAYER_ATTR(ch_base, layer->overlay); in sun8i_layer_enable() 268 regmap_update_bits(layer->mixer->engine.regs, reg, mask, val); in sun8i_layer_enable() 283 drm_for_each_plane(plane, state->dev) { in sun8i_mixer_commit() 288 if (!(plane->possible_crtcs & drm_crtc_mask(crtc)) || layer->mixer != mixer) in sun8i_mixer_commit() [all …]
|
H A D | sun4i_tcon.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Maxime Ripard <maxime.ripard@free-electrons.com> 11 #include <linux/media-bus-format.h> 48 drm_connector_list_iter_begin(encoder->dev, &iter); in sun4i_tcon_get_connector() 50 if (connector->encoder == encoder) { in sun4i_tcon_get_connector() 66 return -EINVAL; in sun4i_tcon_get_pixel_depth() 68 info = &connector->display_info; in sun4i_tcon_get_pixel_depth() 69 if (info->num_bus_formats != 1) in sun4i_tcon_get_pixel_depth() 70 return -EINVAL; in sun4i_tcon_get_pixel_depth() 72 switch (info->bus_formats[0]) { in sun4i_tcon_get_pixel_depth() [all …]
|
H A D | sun8i_hdmi_phy.c | 1 // SPDX-License-Identifier: GPL-2.0+ 14 * Address can be actually any value. Here is set to same value as 132 if (mode->flags & DRM_MODE_FLAG_NHSYNC) in sun8i_hdmi_phy_set_polarity() 135 if (mode->flags & DRM_MODE_FLAG_NVSYNC) in sun8i_hdmi_phy_set_polarity() 138 regmap_update_bits(phy->regs, SUN8I_HDMI_PHY_DBG_CTRL_REG, in sun8i_hdmi_phy_set_polarity() 146 unsigned int clk_rate = mode->crtc_clock * 1000; in sun8i_a83t_hdmi_phy_config() 151 regmap_update_bits(phy->regs, SUN8I_HDMI_PHY_REXT_CTRL_REG, in sun8i_a83t_hdmi_phy_config() 167 * release any documentation, explanation of this values can in sun8i_a83t_hdmi_phy_config() 216 regmap_update_bits(phy->regs, SUN8I_HDMI_PHY_REXT_CTRL_REG, in sun8i_a83t_hdmi_phy_disable() 232 unsigned int clk_rate = mode->crtc_clock * 1000; in sun8i_h3_hdmi_phy_config() [all …]
|
/linux/drivers/clk/sunxi-ng/ |
H A D | ccu-sun8i-r40.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include <linux/clk-provider.h> 25 #include "ccu-sun8i-r40.h" 37 .hw.init = CLK_HW_INIT("pll-cpu", 49 * With sigma-delta modulation for fractional-N on the audio PLL, 51 * can no longer be used, as the audio codec requests the exact clock 63 static SUNXI_CCU_NM_WITH_SDM_GATE_LOCK(pll_audio_base_clk, "pll-audio-base", 73 static SUNXI_CCU_NM_WITH_FRAC_GATE_LOCK_MIN_MAX(pll_video0_clk, "pll-video0", 88 static SUNXI_CCU_NM_WITH_FRAC_GATE_LOCK(pll_ve_clk, "pll-ve", 101 static SUNXI_CCU_NKM_WITH_GATE_LOCK(pll_ddr0_clk, "pll-ddr0", [all …]
|
/linux/drivers/net/can/ |
H A D | sun4i_can.c | 2 * sun4i_can.c - CAN bus controller driver for Allwinner SUN4I&SUN7I based SoCs 11 * Copyright (C) 2002-2007 Volkswagen Group Electronic Research 51 #include <linux/can.h> 52 #include <linux/can/dev.h> 53 #include <linux/can/error.h> 68 #define SUN4I_REG_MSEL_ADDR 0x0000 /* CAN Mode Select */ 69 #define SUN4I_REG_CMD_ADDR 0x0004 /* CAN Command */ 70 #define SUN4I_REG_STA_ADDR 0x0008 /* CAN Status */ 71 #define SUN4I_REG_INT_ADDR 0x000c /* CAN Interrupt Flag */ 72 #define SUN4I_REG_INTEN_ADDR 0x0010 /* CAN Interrupt Enable */ [all …]
|
/linux/drivers/pinctrl/sunxi/ |
H A D | pinctrl-sun4i-a10.c | 6 * Maxime Ripard <maxime.ripard@free-electrons.com> 18 #include "pinctrl-sunxi.h" 170 SUNXI_FUNCTION(0x3, "can"), /* TX */ 182 SUNXI_FUNCTION(0x3, "can"), /* RX */ 307 /* Undocumented mux function on A10 - See SPDIF MCLK above */ 315 /* Undocumented mux function on A10 - See SPDIF MCLK above */ 1059 SUNXI_FUNCTION(0x4, "can"), /* TX */ 1071 SUNXI_FUNCTION(0x4, "can"), /* RX */ 1296 unsigned long variant = (unsigned long)of_device_get_match_data(&pdev->dev); in sun4i_a10_pinctrl_probe() 1304 .compatible = "allwinner,sun4i-a10-pinctrl", [all …]
|