From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04FF6C3F68F for ; Fri, 10 Jan 2020 18:50:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B1DE620838 for ; Fri, 10 Jan 2020 18:50:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HSbDft3w" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728991AbgAJSuu (ORCPT ); Fri, 10 Jan 2020 13:50:50 -0500 Received: from mail-qv1-f48.google.com ([209.85.219.48]:43486 "EHLO mail-qv1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728023AbgAJSuu (ORCPT ); Fri, 10 Jan 2020 13:50:50 -0500 Received: by mail-qv1-f48.google.com with SMTP id p2so1202569qvo.10; Fri, 10 Jan 2020 10:50:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GIgUUcUTkX5pKDhtErdiwjx4iRJphduQq+0GSYBunzI=; b=HSbDft3woAMO0R4/JNEofrl8/x02V3+Y/OCtx37YQNukr90ZiebcvVH+963tN972fX UwZuiMi2R/BwF3FaHHPfU1SdFYyOlwL+EqsgDx3loK8tXwK+2g1nONbReIT8YnRzvpGP ZwPCKcAtYGL/Kw59o5CDb3dq6rOvzYLcmqBX6txlGRP4QBw9Mpiw5l1Pm7syHOLsE8+0 KRlzAmVORfUf0PSMdN5YNV6FVzvqDZdJibFA1DnG56id84WhoeLsqhxsiz5LDRKFazG7 Yk3T22wst8zTO+1amayACyRcMVYmbDatPLkpcZeig1smyED7dxmsGBvJ9KwMj3vbp3V9 AetQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GIgUUcUTkX5pKDhtErdiwjx4iRJphduQq+0GSYBunzI=; b=GoUQ6huR+uSYwAwa7RC8DTx4PsSFIL359XuaTgT+8ASQS1j2bYP8NLmoYR0MZdyKSv 5UoVD+pYaFbd24EOQrjBAmiWwJ16DFkLoNRAMEPxNhJdzc3EqRaLzs/SU5ZFJkoF41Hb Ps9NHAmnahAtmXZavBKwZOUFDUfjUYPu/cdbkF9vi7R1T4kYMnABcSiL0XjN6JdV2hG9 0ar+oocmTQBC/upeUOzdHF1Hnmdp7OKUUIzDqTogoCqmRhluVsHhC4m8WJJin+4Xdctc UMACLw83pw3SpEOnTn3rDsQc4VdXhyG10hNlZPpCX0chxq9d0byx8n3PL+/mTjZBY2w3 rwtQ== X-Gm-Message-State: APjAAAVX3ElTpHG7RLWRaRP1yikZ6qf/GrLBwtjU8UvID+Rqd75etUNv Yau53cezcilBfpkEt2RQ+Nii/EqrdYg6MwAltXg= X-Google-Smtp-Source: APXvYqwgqJC1MG290fK6HKVuzQC+T9mZeY3wq1cWaRS1beuAks6mXXDj/fi415N3uKjfPc8lES2Y9V95CydDwkPbeNE= X-Received: by 2002:a0c:ead1:: with SMTP id y17mr49670qvp.210.1578682249122; Fri, 10 Jan 2020 10:50:49 -0800 (PST) MIME-Version: 1.0 References: <20200110155225.1051749-1-icenowy@aosc.io> <20200110155225.1051749-6-icenowy@aosc.io> In-Reply-To: <20200110155225.1051749-6-icenowy@aosc.io> From: Vasily Khoruzhick Date: Fri, 10 Jan 2020 10:51:23 -0800 Message-ID: Subject: Re: [linux-sunxi] [PATCH 5/5] arm64: dts: allwinner: a64: add support for PineTab To: Icenowy Zheng Cc: Rob Herring , Maxime Ripard , Chen-Yu Tsai , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , devicetree , arm-linux , linux-kernel , dri-devel , linux-sunxi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 10, 2020 at 7:54 AM Icenowy Zheng wrote: > > PineTab is a 10.1" tablet by Pine64 with Allwinner A64 inside. > > It includes the following peripherals: > > USB: > - A microUSB Type-B port connected to the OTG-capable USB PHY of > Allwinner A64. The ID pin is connected to a GPIO of the A64 SoC, and the > Vbus is connected to the Vbus of AXP803 PMIC. These enables OTG > functionality on this port. > - A USB Type-A port is connected to the internal hub attached to the > non-OTG USB PHY of Allwinner A64. > - There are reserved pins for an external keyboard connected to the > internal hub. > > Power: > - The microUSB port has its Vbus connected to AXP803, mentioned above. > - A DC jack (of a strange size, 2.5mm outer diameter) is connected to > the ACIN of AXP803. > - A Li-Polymer battery is connected to the battery pins of AXP803. > > Storage: > - An tradition Pine64 eMMC slot is on the board, mounted with an eMMC > module by factory. > - An external microSD slot is hidden under a protect case. > > Display: > - A MIPI-DSI LCD panel (800x1280) is connected to the DSI port of A64 SoC. > - A mini HDMI port. > > Input: > - A touch panel attached to a Goodix GT9271 touch controller. > - Volume keys connected to the LRADC of the A64 SoC. > > Camera: > - An OV5640 CMOS camera is at rear, connected to the CSI bus of A64 SoC. > - A GC2145 CMOS camera is at front, shares the same CSI bus with OV5640. > > Audio: > - A headphone jack is conencted to the SoC's internal codec. > - A speaker connected is to the Line Out port of SoC's internal codec, via > an amplifier. > > Misc: > - Debug UART is muxed with the headphone jack, with the switch next to > the microSD slot. > - A bosch BMA223 accelerometer is connected to the I2C bus of A64 SoC. > - Wi-Fi and Bluetooth are available via a RTL8723CS chip, similar to the > one in Pinebook. > > This commit adds a basically usable device tree for it, implementing > most of the features mentioned above. HDMI is not supported now because > bad LCD-HDMI coexistence situation of mainline A64 display driver, and > the front camera currently lacks a driver and a facility to share the > bus with the rear one. > > Signed-off-by: Icenowy Zheng > --- > arch/arm64/boot/dts/allwinner/Makefile | 1 + > .../boot/dts/allwinner/sun50i-a64-pinetab.dts | 461 ++++++++++++++++++ > 2 files changed, 462 insertions(+) > create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts > > diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile > index cf4f78617c3f..6dad63881cd3 100644 > --- a/arch/arm64/boot/dts/allwinner/Makefile > +++ b/arch/arm64/boot/dts/allwinner/Makefile > @@ -9,6 +9,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-orangepi-win.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pine64-lts.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pine64-plus.dtb sun50i-a64-pine64.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinebook.dtb > +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinetab.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-sopine-baseboard.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-teres-i.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-bananapi-m2-plus.dtb > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts > new file mode 100644 > index 000000000000..1dfa3668636e > --- /dev/null > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts > @@ -0,0 +1,461 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Copyright (C) 2019 Icenowy Zheng > + * > + */ > + > +/dts-v1/; > + > +#include "sun50i-a64.dtsi" You may want to include dtsi with OPP for A64 here if you want to enable DVFS > + > +#include > +#include > +#include > + > +/ { > + model = "PineTab"; > + compatible = "pine64,pinetab", "allwinner,sun50i-a64"; > + > + aliases { > + serial0 = &uart0; > + ethernet0 = &rtl8723cs; > + }; > + > + backlight: backlight { > + compatible = "pwm-backlight"; > + pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; > + brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; > + default-brightness-level = <8>; > + enable-gpios = <&pio 3 23 GPIO_ACTIVE_HIGH>; /* PD23 */ > + power-supply = <&vdd_bl>; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + i2c-csi { > + compatible = "i2c-gpio"; > + sda-gpios = <&pio 4 13 GPIO_ACTIVE_HIGH>; /* PE13 */ > + scl-gpios = <&pio 4 12 GPIO_ACTIVE_HIGH>; /* PE12 */ > + i2c-gpio,delay-us = <5>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + /* Rear camera */ > + ov5640: camera@3c { > + compatible = "ovti,ov5640"; > + reg = <0x3c>; > + pinctrl-names = "default"; > + pinctrl-0 = <&csi_mclk_pin>; > + clocks = <&ccu CLK_CSI_MCLK>; > + clock-names = "xclk"; > + > + AVDD-supply = <®_dldo3>; > + DOVDD-supply = <®_aldo1>; > + DVDD-supply = <®_eldo3>; > + reset-gpios = <&pio 4 14 GPIO_ACTIVE_LOW>; /* PE14 */ > + powerdown-gpios = <&pio 4 15 GPIO_ACTIVE_HIGH>; /* PE15 */ > + > + port { > + ov5640_ep: endpoint { > + remote-endpoint = <&csi_ep>; > + bus-width = <8>; > + hsync-active = <1>; /* Active high */ > + vsync-active = <0>; /* Active low */ > + data-active = <1>; /* Active high */ > + pclk-sample = <1>; /* Rising */ > + }; > + }; > + }; > + }; > + > + speaker_amp: audio-amplifier { > + compatible = "simple-audio-amplifier"; > + enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */ > + sound-name-prefix = "Speaker Amp"; > + }; > + > + vdd_bl: regulator@0 { > + compatible = "regulator-fixed"; > + regulator-name = "bl-3v3"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + gpio = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */ > + enable-active-high; > + }; > + > + wifi_pwrseq: wifi_pwrseq { > + compatible = "mmc-pwrseq-simple"; > + reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ > + post-power-on-delay-ms = <200>; > + }; > +}; > + > +&codec { > + status = "okay"; > +}; > + > +&codec_analog { > + hpvcc-supply = <®_eldo1>; > + status = "okay"; > +}; > + > +&cpu0 { > + cpu-supply = <®_dcdc2>; > +}; I believe you need CPU regulator for each CPU. I'm aware that we share clock and regulator for all the CPUs but what would happen if you put CPU0 offline? > + > +&csi { > + status = "okay"; > + > + port { > + #address-cells = <1>; > + #size-cells = <0>; > + > + csi_ep: endpoint { > + remote-endpoint = <&ov5640_ep>; > + bus-width = <8>; > + hsync-active = <1>; /* Active high */ > + vsync-active = <0>; /* Active low */ > + data-active = <1>; /* Active high */ > + pclk-sample = <1>; /* Rising */ > + }; > + }; > +}; > + > +&dai { > + status = "okay"; > +}; > + > +&de { > + status = "okay"; > +}; > + > +&dphy { > + status = "okay"; > +}; > + > +&dsi { > + vcc-dsi-supply = <®_dldo1>; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "okay"; > + > + panel@0 { > + compatible = "feixin,k101-im2ba02"; > + reg = <0>; > + avdd-supply = <®_dc1sw>; > + dvdd-supply = <®_dc1sw>; > + cvdd-supply = <®_ldo_io1>; > + reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */ > + backlight = <&backlight>; > + }; > +}; > + > +&ehci0 { > + status = "okay"; > +}; > + > +&ehci1 { > + status = "okay"; > +}; > + > +&i2c0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c0_pins>; > + status = "okay"; > + > + touchscreen@5d { > + compatible = "goodix,gt9271"; > + reg = <0x5d>; > + interrupt-parent = <&pio>; > + interrupts = <7 4 IRQ_TYPE_LEVEL_HIGH>; /* PH4 */ > + irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ > + reset-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* PH8 */ > + AVDD28-supply = <®_ldo_io1>; > + }; > +}; > + > +&i2c0_pins { > + bias-pull-up; > +}; > + > +&i2c1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c1_pins>; > + status = "okay"; > + > + bma223@18 { > + compatible = "bosch,bma223", "bosch,bma222e"; > + reg = <0x18>; > + interrupt-parent = <&pio>; > + interrupts = <7 5 IRQ_TYPE_LEVEL_HIGH>; /* PH5 */ > + mount-matrix = "0", "-1", "0", > + "-1", "0", "0", > + "0", "0", "-1"; > + }; > +}; > + > +&lradc { > + vref-supply = <®_aldo3>; > + status = "okay"; > + > + button-200 { > + label = "Volume Up"; > + linux,code = ; > + channel = <0>; > + voltage = <200000>; > + }; > + > + button-400 { > + label = "Volume Down"; > + linux,code = ; > + channel = <0>; > + voltage = <400000>; > + }; > +}; > + > +&mixer1 { > + status = "okay"; > +}; > + > +&mmc0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&mmc0_pins>; > + vmmc-supply = <®_dcdc1>; > + cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; > + disable-wp; > + bus-width = <4>; > + status = "okay"; > +}; > + > +&mmc1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&mmc1_pins>; > + vmmc-supply = <®_dldo4>; > + vqmmc-supply = <®_eldo1>; > + mmc-pwrseq = <&wifi_pwrseq>; > + bus-width = <4>; > + non-removable; > + status = "okay"; > + > + rtl8723cs: wifi@1 { > + reg = <1>; > + }; > +}; > + > +&mmc2 { > + pinctrl-names = "default"; > + pinctrl-0 = <&mmc2_pins>; > + vmmc-supply = <®_dcdc1>; > + vqmmc-supply = <®_dcdc1>; > + bus-width = <8>; > + non-removable; > + cap-mmc-hw-reset; > + status = "okay"; > +}; > + > +&ohci0 { > + status = "okay"; > +}; > + > +&pwm { > + status = "okay"; > +}; > + > +&r_rsb { > + status = "okay"; > + > + axp803: pmic@3a3 { > + compatible = "x-powers,axp803"; > + reg = <0x3a3>; > + interrupt-parent = <&r_intc>; > + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; > + x-powers,drive-vbus-en; > + }; > +}; > + > +#include "axp803.dtsi" > + > +&ac_power_supply { > + status = "okay"; > +}; > + > +&battery_power_supply { > + status = "okay"; > +}; > + > +®_aldo1 { > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <2800000>; > + regulator-name = "dovdd-csi"; > +}; > + > +®_aldo2 { > + regulator-always-on; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-pl"; > +}; > + > +®_aldo3 { > + regulator-always-on; > + regulator-min-microvolt = <2700000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-pll-avcc"; > +}; > + > +®_dc1sw { > + regulator-name = "vcc-lcd"; > +}; > + > +®_dcdc1 { > + regulator-always-on; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-3v3"; > +}; > + > +®_dcdc2 { > + regulator-always-on; > + regulator-min-microvolt = <1000000>; > + regulator-max-microvolt = <1300000>; > + regulator-name = "vdd-cpux"; > +}; > + > +/* DCDC3 is polyphased with DCDC2 */ > + > +®_dcdc5 { > + regulator-always-on; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + regulator-name = "vcc-dram"; > +}; > + > +®_dcdc6 { > + regulator-always-on; > + regulator-min-microvolt = <1100000>; > + regulator-max-microvolt = <1100000>; > + regulator-name = "vdd-sys"; > +}; > + > +®_dldo1 { > + regulator-always-on; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-hdmi-dsi-sensor"; > +}; > + > +®_dldo3 { > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <2800000>; > + regulator-name = "avdd-csi"; > +}; > + > +®_dldo4 { > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-wifi"; > +}; > + > +®_drivevbus { > + regulator-name = "usb0-vbus"; > + status = "okay"; > +}; > + > +®_eldo1 { > + regulator-always-on; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-name = "cpvdd"; > +}; > + > +®_eldo2 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-name = "vcca-1v8"; > +}; > + > +®_eldo3 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-name = "dvdd-1v8-csi"; > +}; > + > +®_fldo1 { > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + regulator-name = "vcc-1v2-hsic"; > +}; > + > +®_fldo2 { > + regulator-always-on; > + regulator-min-microvolt = <1100000>; > + regulator-max-microvolt = <1100000>; > + regulator-name = "vdd-cpus"; > +}; > + > +®_ldo_io0 { > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-usb"; > + status = "okay"; > +}; > + > +®_ldo_io1 { > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-enable-ramp-delay = <3500000>; > + regulator-name = "vcc-touchscreen"; > + status = "okay"; > +}; > + > +®_rtc_ldo { > + regulator-name = "vcc-rtc"; > +}; > + > +&sound { > + status = "okay"; > + simple-audio-card,aux-devs = <&codec_analog>, <&speaker_amp>; > + simple-audio-card,widgets = "Microphone", "Internal Microphone Left", > + "Microphone", "Internal Microphone Right", > + "Headphone", "Headphone Jack", > + "Speaker", "Internal Speaker"; > + simple-audio-card,routing = > + "Left DAC", "AIF1 Slot 0 Left", > + "Right DAC", "AIF1 Slot 0 Right", > + "Speaker Amp INL", "LINEOUT", > + "Speaker Amp INR", "LINEOUT", > + "Internal Speaker", "Speaker Amp OUTL", > + "Internal Speaker", "Speaker Amp OUTR", > + "Headphone Jack", "HP", > + "AIF1 Slot 0 Left ADC", "Left ADC", > + "AIF1 Slot 0 Right ADC", "Right ADC", > + "Internal Microphone Left", "MBIAS", > + "MIC1", "Internal Microphone Left", > + "Internal Microphone Right", "HBIAS", > + "MIC2", "Internal Microphone Right"; > +}; > + > +&uart0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&uart0_pb_pins>; > + status = "okay"; > +}; > + > +&usb_otg { > + dr_mode = "otg"; > + status = "okay"; > +}; > + > +&usb_power_supply { > + status = "okay"; > +}; > + > +&usbphy { > + usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */ > + usb0_vbus_power-supply = <&usb_power_supply>; > + usb0_vbus-supply = <®_drivevbus>; > + usb1_vbus-supply = <®_ldo_io0>; > + status = "okay"; > +}; > -- > 2.23.0 > > -- > You received this message because you are subscribed to the Google Groups "linux-sunxi" group. > To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe@googlegroups.com. > To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20200110155225.1051749-6-icenowy%40aosc.io. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D3FCC282DD for ; Fri, 10 Jan 2020 18:51:02 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F3F542082E for ; Fri, 10 Jan 2020 18:51:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="RhGc/aq0"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HSbDft3w" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F3F542082E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=O6O7ANEAj9xYMFgASwGG7SnGetX4U8bONjRtR3+o3xM=; b=RhGc/aq09ZsgDt tHZpX10GwYP+u000kesT9rYgak4YG7wrivivVULbIdN2T+z5wk2BhoF5zEdsn0OKGY5F3DQMeOAkS jpHTEba4A0N8fmI0T86LS+ZOjS6UDCGc+W8o+s7TCHVnkw0tWEBzWT68mVOgZfI8A1w272fj6bfup Ojte8C4qaKpXXHBNHR6/8RQi/1kkXwho/KF+NdUulW6Ag4wnST1eBuPBHMIIqTcyozcgbpNQXyzPL mqmeyAAtfYpW6C1FyJvuhcqnOkGVpZ1CvxYsPJyka3RRZrV1aC+VSI/o1TL9OEe8VsTzREa5qwYwI 6U0/nIq1WU2ompmC9TAw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ipzN1-0001Ir-BH; Fri, 10 Jan 2020 18:50:55 +0000 Received: from mail-qv1-xf29.google.com ([2607:f8b0:4864:20::f29]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ipzMy-0001Hp-0G for linux-arm-kernel@lists.infradead.org; Fri, 10 Jan 2020 18:50:54 +0000 Received: by mail-qv1-xf29.google.com with SMTP id dc14so1201718qvb.9 for ; Fri, 10 Jan 2020 10:50:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GIgUUcUTkX5pKDhtErdiwjx4iRJphduQq+0GSYBunzI=; b=HSbDft3woAMO0R4/JNEofrl8/x02V3+Y/OCtx37YQNukr90ZiebcvVH+963tN972fX UwZuiMi2R/BwF3FaHHPfU1SdFYyOlwL+EqsgDx3loK8tXwK+2g1nONbReIT8YnRzvpGP ZwPCKcAtYGL/Kw59o5CDb3dq6rOvzYLcmqBX6txlGRP4QBw9Mpiw5l1Pm7syHOLsE8+0 KRlzAmVORfUf0PSMdN5YNV6FVzvqDZdJibFA1DnG56id84WhoeLsqhxsiz5LDRKFazG7 Yk3T22wst8zTO+1amayACyRcMVYmbDatPLkpcZeig1smyED7dxmsGBvJ9KwMj3vbp3V9 AetQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GIgUUcUTkX5pKDhtErdiwjx4iRJphduQq+0GSYBunzI=; b=rwLw77rCe6gmkOPBmzE0GK6n7Fzrb8cTjAwOkeImm0yKFUGFPN5c1VKCttrCTfS9Lt 7D/RhTv+WyD6HgVMNMaggRfhXwd35Bn9b2knpaFiwI3un/dtFs80OA9NMh6tOpTBoALS 96A8AW4J1bQaZQCc06kBUxuIn+2I67NNIzTYsjvfjnUta9DEYYBtbcqVyVGsxUpF+JRY mreW+XFOB5rhTrnWsshSHVoKJPxcOEwvP6ppmTx+FFUC+ifhx+vYRUmTDCEN2WhBhhiv lfL8gvWTin/vJMSFLu145p5iwNkI4hyFysg+RwoiSADGEZGqUspORIS6yPyJo3Pkys2V hBAQ== X-Gm-Message-State: APjAAAV5E08jbYErYPfHwIz1hjws9BA6mt3lQ8OpMOAAAiWfK2C9bCIe 0jXIq6zpqyxbg1EioRbDAsan7zGPba8WSl9YML0= X-Google-Smtp-Source: APXvYqwgqJC1MG290fK6HKVuzQC+T9mZeY3wq1cWaRS1beuAks6mXXDj/fi415N3uKjfPc8lES2Y9V95CydDwkPbeNE= X-Received: by 2002:a0c:ead1:: with SMTP id y17mr49670qvp.210.1578682249122; Fri, 10 Jan 2020 10:50:49 -0800 (PST) MIME-Version: 1.0 References: <20200110155225.1051749-1-icenowy@aosc.io> <20200110155225.1051749-6-icenowy@aosc.io> In-Reply-To: <20200110155225.1051749-6-icenowy@aosc.io> From: Vasily Khoruzhick Date: Fri, 10 Jan 2020 10:51:23 -0800 Message-ID: Subject: Re: [linux-sunxi] [PATCH 5/5] arm64: dts: allwinner: a64: add support for PineTab To: Icenowy Zheng X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200110_105052_050036_B889A256 X-CRM114-Status: GOOD ( 25.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree , David Airlie , linux-sunxi , linux-kernel , Maxime Ripard , Chen-Yu Tsai , Rob Herring , Thierry Reding , dri-devel , Daniel Vetter , Sam Ravnborg , arm-linux Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jan 10, 2020 at 7:54 AM Icenowy Zheng wrote: > > PineTab is a 10.1" tablet by Pine64 with Allwinner A64 inside. > > It includes the following peripherals: > > USB: > - A microUSB Type-B port connected to the OTG-capable USB PHY of > Allwinner A64. The ID pin is connected to a GPIO of the A64 SoC, and the > Vbus is connected to the Vbus of AXP803 PMIC. These enables OTG > functionality on this port. > - A USB Type-A port is connected to the internal hub attached to the > non-OTG USB PHY of Allwinner A64. > - There are reserved pins for an external keyboard connected to the > internal hub. > > Power: > - The microUSB port has its Vbus connected to AXP803, mentioned above. > - A DC jack (of a strange size, 2.5mm outer diameter) is connected to > the ACIN of AXP803. > - A Li-Polymer battery is connected to the battery pins of AXP803. > > Storage: > - An tradition Pine64 eMMC slot is on the board, mounted with an eMMC > module by factory. > - An external microSD slot is hidden under a protect case. > > Display: > - A MIPI-DSI LCD panel (800x1280) is connected to the DSI port of A64 SoC. > - A mini HDMI port. > > Input: > - A touch panel attached to a Goodix GT9271 touch controller. > - Volume keys connected to the LRADC of the A64 SoC. > > Camera: > - An OV5640 CMOS camera is at rear, connected to the CSI bus of A64 SoC. > - A GC2145 CMOS camera is at front, shares the same CSI bus with OV5640. > > Audio: > - A headphone jack is conencted to the SoC's internal codec. > - A speaker connected is to the Line Out port of SoC's internal codec, via > an amplifier. > > Misc: > - Debug UART is muxed with the headphone jack, with the switch next to > the microSD slot. > - A bosch BMA223 accelerometer is connected to the I2C bus of A64 SoC. > - Wi-Fi and Bluetooth are available via a RTL8723CS chip, similar to the > one in Pinebook. > > This commit adds a basically usable device tree for it, implementing > most of the features mentioned above. HDMI is not supported now because > bad LCD-HDMI coexistence situation of mainline A64 display driver, and > the front camera currently lacks a driver and a facility to share the > bus with the rear one. > > Signed-off-by: Icenowy Zheng > --- > arch/arm64/boot/dts/allwinner/Makefile | 1 + > .../boot/dts/allwinner/sun50i-a64-pinetab.dts | 461 ++++++++++++++++++ > 2 files changed, 462 insertions(+) > create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts > > diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile > index cf4f78617c3f..6dad63881cd3 100644 > --- a/arch/arm64/boot/dts/allwinner/Makefile > +++ b/arch/arm64/boot/dts/allwinner/Makefile > @@ -9,6 +9,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-orangepi-win.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pine64-lts.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pine64-plus.dtb sun50i-a64-pine64.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinebook.dtb > +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinetab.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-sopine-baseboard.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-teres-i.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-bananapi-m2-plus.dtb > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts > new file mode 100644 > index 000000000000..1dfa3668636e > --- /dev/null > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts > @@ -0,0 +1,461 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Copyright (C) 2019 Icenowy Zheng > + * > + */ > + > +/dts-v1/; > + > +#include "sun50i-a64.dtsi" You may want to include dtsi with OPP for A64 here if you want to enable DVFS > + > +#include > +#include > +#include > + > +/ { > + model = "PineTab"; > + compatible = "pine64,pinetab", "allwinner,sun50i-a64"; > + > + aliases { > + serial0 = &uart0; > + ethernet0 = &rtl8723cs; > + }; > + > + backlight: backlight { > + compatible = "pwm-backlight"; > + pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; > + brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; > + default-brightness-level = <8>; > + enable-gpios = <&pio 3 23 GPIO_ACTIVE_HIGH>; /* PD23 */ > + power-supply = <&vdd_bl>; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + i2c-csi { > + compatible = "i2c-gpio"; > + sda-gpios = <&pio 4 13 GPIO_ACTIVE_HIGH>; /* PE13 */ > + scl-gpios = <&pio 4 12 GPIO_ACTIVE_HIGH>; /* PE12 */ > + i2c-gpio,delay-us = <5>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + /* Rear camera */ > + ov5640: camera@3c { > + compatible = "ovti,ov5640"; > + reg = <0x3c>; > + pinctrl-names = "default"; > + pinctrl-0 = <&csi_mclk_pin>; > + clocks = <&ccu CLK_CSI_MCLK>; > + clock-names = "xclk"; > + > + AVDD-supply = <®_dldo3>; > + DOVDD-supply = <®_aldo1>; > + DVDD-supply = <®_eldo3>; > + reset-gpios = <&pio 4 14 GPIO_ACTIVE_LOW>; /* PE14 */ > + powerdown-gpios = <&pio 4 15 GPIO_ACTIVE_HIGH>; /* PE15 */ > + > + port { > + ov5640_ep: endpoint { > + remote-endpoint = <&csi_ep>; > + bus-width = <8>; > + hsync-active = <1>; /* Active high */ > + vsync-active = <0>; /* Active low */ > + data-active = <1>; /* Active high */ > + pclk-sample = <1>; /* Rising */ > + }; > + }; > + }; > + }; > + > + speaker_amp: audio-amplifier { > + compatible = "simple-audio-amplifier"; > + enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */ > + sound-name-prefix = "Speaker Amp"; > + }; > + > + vdd_bl: regulator@0 { > + compatible = "regulator-fixed"; > + regulator-name = "bl-3v3"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + gpio = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */ > + enable-active-high; > + }; > + > + wifi_pwrseq: wifi_pwrseq { > + compatible = "mmc-pwrseq-simple"; > + reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ > + post-power-on-delay-ms = <200>; > + }; > +}; > + > +&codec { > + status = "okay"; > +}; > + > +&codec_analog { > + hpvcc-supply = <®_eldo1>; > + status = "okay"; > +}; > + > +&cpu0 { > + cpu-supply = <®_dcdc2>; > +}; I believe you need CPU regulator for each CPU. I'm aware that we share clock and regulator for all the CPUs but what would happen if you put CPU0 offline? > + > +&csi { > + status = "okay"; > + > + port { > + #address-cells = <1>; > + #size-cells = <0>; > + > + csi_ep: endpoint { > + remote-endpoint = <&ov5640_ep>; > + bus-width = <8>; > + hsync-active = <1>; /* Active high */ > + vsync-active = <0>; /* Active low */ > + data-active = <1>; /* Active high */ > + pclk-sample = <1>; /* Rising */ > + }; > + }; > +}; > + > +&dai { > + status = "okay"; > +}; > + > +&de { > + status = "okay"; > +}; > + > +&dphy { > + status = "okay"; > +}; > + > +&dsi { > + vcc-dsi-supply = <®_dldo1>; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "okay"; > + > + panel@0 { > + compatible = "feixin,k101-im2ba02"; > + reg = <0>; > + avdd-supply = <®_dc1sw>; > + dvdd-supply = <®_dc1sw>; > + cvdd-supply = <®_ldo_io1>; > + reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */ > + backlight = <&backlight>; > + }; > +}; > + > +&ehci0 { > + status = "okay"; > +}; > + > +&ehci1 { > + status = "okay"; > +}; > + > +&i2c0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c0_pins>; > + status = "okay"; > + > + touchscreen@5d { > + compatible = "goodix,gt9271"; > + reg = <0x5d>; > + interrupt-parent = <&pio>; > + interrupts = <7 4 IRQ_TYPE_LEVEL_HIGH>; /* PH4 */ > + irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ > + reset-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* PH8 */ > + AVDD28-supply = <®_ldo_io1>; > + }; > +}; > + > +&i2c0_pins { > + bias-pull-up; > +}; > + > +&i2c1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c1_pins>; > + status = "okay"; > + > + bma223@18 { > + compatible = "bosch,bma223", "bosch,bma222e"; > + reg = <0x18>; > + interrupt-parent = <&pio>; > + interrupts = <7 5 IRQ_TYPE_LEVEL_HIGH>; /* PH5 */ > + mount-matrix = "0", "-1", "0", > + "-1", "0", "0", > + "0", "0", "-1"; > + }; > +}; > + > +&lradc { > + vref-supply = <®_aldo3>; > + status = "okay"; > + > + button-200 { > + label = "Volume Up"; > + linux,code = ; > + channel = <0>; > + voltage = <200000>; > + }; > + > + button-400 { > + label = "Volume Down"; > + linux,code = ; > + channel = <0>; > + voltage = <400000>; > + }; > +}; > + > +&mixer1 { > + status = "okay"; > +}; > + > +&mmc0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&mmc0_pins>; > + vmmc-supply = <®_dcdc1>; > + cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; > + disable-wp; > + bus-width = <4>; > + status = "okay"; > +}; > + > +&mmc1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&mmc1_pins>; > + vmmc-supply = <®_dldo4>; > + vqmmc-supply = <®_eldo1>; > + mmc-pwrseq = <&wifi_pwrseq>; > + bus-width = <4>; > + non-removable; > + status = "okay"; > + > + rtl8723cs: wifi@1 { > + reg = <1>; > + }; > +}; > + > +&mmc2 { > + pinctrl-names = "default"; > + pinctrl-0 = <&mmc2_pins>; > + vmmc-supply = <®_dcdc1>; > + vqmmc-supply = <®_dcdc1>; > + bus-width = <8>; > + non-removable; > + cap-mmc-hw-reset; > + status = "okay"; > +}; > + > +&ohci0 { > + status = "okay"; > +}; > + > +&pwm { > + status = "okay"; > +}; > + > +&r_rsb { > + status = "okay"; > + > + axp803: pmic@3a3 { > + compatible = "x-powers,axp803"; > + reg = <0x3a3>; > + interrupt-parent = <&r_intc>; > + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; > + x-powers,drive-vbus-en; > + }; > +}; > + > +#include "axp803.dtsi" > + > +&ac_power_supply { > + status = "okay"; > +}; > + > +&battery_power_supply { > + status = "okay"; > +}; > + > +®_aldo1 { > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <2800000>; > + regulator-name = "dovdd-csi"; > +}; > + > +®_aldo2 { > + regulator-always-on; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-pl"; > +}; > + > +®_aldo3 { > + regulator-always-on; > + regulator-min-microvolt = <2700000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-pll-avcc"; > +}; > + > +®_dc1sw { > + regulator-name = "vcc-lcd"; > +}; > + > +®_dcdc1 { > + regulator-always-on; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-3v3"; > +}; > + > +®_dcdc2 { > + regulator-always-on; > + regulator-min-microvolt = <1000000>; > + regulator-max-microvolt = <1300000>; > + regulator-name = "vdd-cpux"; > +}; > + > +/* DCDC3 is polyphased with DCDC2 */ > + > +®_dcdc5 { > + regulator-always-on; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + regulator-name = "vcc-dram"; > +}; > + > +®_dcdc6 { > + regulator-always-on; > + regulator-min-microvolt = <1100000>; > + regulator-max-microvolt = <1100000>; > + regulator-name = "vdd-sys"; > +}; > + > +®_dldo1 { > + regulator-always-on; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-hdmi-dsi-sensor"; > +}; > + > +®_dldo3 { > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <2800000>; > + regulator-name = "avdd-csi"; > +}; > + > +®_dldo4 { > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-wifi"; > +}; > + > +®_drivevbus { > + regulator-name = "usb0-vbus"; > + status = "okay"; > +}; > + > +®_eldo1 { > + regulator-always-on; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-name = "cpvdd"; > +}; > + > +®_eldo2 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-name = "vcca-1v8"; > +}; > + > +®_eldo3 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-name = "dvdd-1v8-csi"; > +}; > + > +®_fldo1 { > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + regulator-name = "vcc-1v2-hsic"; > +}; > + > +®_fldo2 { > + regulator-always-on; > + regulator-min-microvolt = <1100000>; > + regulator-max-microvolt = <1100000>; > + regulator-name = "vdd-cpus"; > +}; > + > +®_ldo_io0 { > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-usb"; > + status = "okay"; > +}; > + > +®_ldo_io1 { > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-enable-ramp-delay = <3500000>; > + regulator-name = "vcc-touchscreen"; > + status = "okay"; > +}; > + > +®_rtc_ldo { > + regulator-name = "vcc-rtc"; > +}; > + > +&sound { > + status = "okay"; > + simple-audio-card,aux-devs = <&codec_analog>, <&speaker_amp>; > + simple-audio-card,widgets = "Microphone", "Internal Microphone Left", > + "Microphone", "Internal Microphone Right", > + "Headphone", "Headphone Jack", > + "Speaker", "Internal Speaker"; > + simple-audio-card,routing = > + "Left DAC", "AIF1 Slot 0 Left", > + "Right DAC", "AIF1 Slot 0 Right", > + "Speaker Amp INL", "LINEOUT", > + "Speaker Amp INR", "LINEOUT", > + "Internal Speaker", "Speaker Amp OUTL", > + "Internal Speaker", "Speaker Amp OUTR", > + "Headphone Jack", "HP", > + "AIF1 Slot 0 Left ADC", "Left ADC", > + "AIF1 Slot 0 Right ADC", "Right ADC", > + "Internal Microphone Left", "MBIAS", > + "MIC1", "Internal Microphone Left", > + "Internal Microphone Right", "HBIAS", > + "MIC2", "Internal Microphone Right"; > +}; > + > +&uart0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&uart0_pb_pins>; > + status = "okay"; > +}; > + > +&usb_otg { > + dr_mode = "otg"; > + status = "okay"; > +}; > + > +&usb_power_supply { > + status = "okay"; > +}; > + > +&usbphy { > + usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */ > + usb0_vbus_power-supply = <&usb_power_supply>; > + usb0_vbus-supply = <®_drivevbus>; > + usb1_vbus-supply = <®_ldo_io0>; > + status = "okay"; > +}; > -- > 2.23.0 > > -- > You received this message because you are subscribed to the Google Groups "linux-sunxi" group. > To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe@googlegroups.com. > To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20200110155225.1051749-6-icenowy%40aosc.io. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82B46C33CA4 for ; Fri, 10 Jan 2020 18:50:52 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5641D20848 for ; Fri, 10 Jan 2020 18:50:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HSbDft3w" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5641D20848 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 934A389D87; Fri, 10 Jan 2020 18:50:51 +0000 (UTC) Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1F46489D87 for ; Fri, 10 Jan 2020 18:50:50 +0000 (UTC) Received: by mail-qv1-xf35.google.com with SMTP id u10so1220783qvi.2 for ; Fri, 10 Jan 2020 10:50:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GIgUUcUTkX5pKDhtErdiwjx4iRJphduQq+0GSYBunzI=; b=HSbDft3woAMO0R4/JNEofrl8/x02V3+Y/OCtx37YQNukr90ZiebcvVH+963tN972fX UwZuiMi2R/BwF3FaHHPfU1SdFYyOlwL+EqsgDx3loK8tXwK+2g1nONbReIT8YnRzvpGP ZwPCKcAtYGL/Kw59o5CDb3dq6rOvzYLcmqBX6txlGRP4QBw9Mpiw5l1Pm7syHOLsE8+0 KRlzAmVORfUf0PSMdN5YNV6FVzvqDZdJibFA1DnG56id84WhoeLsqhxsiz5LDRKFazG7 Yk3T22wst8zTO+1amayACyRcMVYmbDatPLkpcZeig1smyED7dxmsGBvJ9KwMj3vbp3V9 AetQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GIgUUcUTkX5pKDhtErdiwjx4iRJphduQq+0GSYBunzI=; b=U5MpYkaWXIMzF0cJ6KHN6q7J+4IgrDMn7FQ/rlGdvQiMzdlp3KLl+gH7SFD55wJ29J HI/wqS1LYJRjuhXN4OErEZC1ncmlk2cc92fuCFxqA2Q73UC76HzfKClNU1u8eJS5yCkU feRceuDP4pW77siygklpVXRvL0GAij+AcBRmQbNsgyOo3QyQ2ICSoiwrMdYc5aHASZpR /CqdjVmLnHzLuN08T2mo7JmxA2J5Q4KK48CXN+K3Nbc191UdXFsaDMoMrWx8gsH6+Y37 +0/f+ej76yKgu08aF5dPEr+B264nWgU/pgm6E57/VdZhmYkI4YsyREsAu19rif35JFG7 x2cQ== X-Gm-Message-State: APjAAAV5f32IspnyuCcbuWU8pgR+ojYHid3Dwj0zkY1DLIqwERFZPJW4 sSzQ33sGwNH649c2jRsTYMXBsf5J7F2BUF6JM4Y= X-Google-Smtp-Source: APXvYqwgqJC1MG290fK6HKVuzQC+T9mZeY3wq1cWaRS1beuAks6mXXDj/fi415N3uKjfPc8lES2Y9V95CydDwkPbeNE= X-Received: by 2002:a0c:ead1:: with SMTP id y17mr49670qvp.210.1578682249122; Fri, 10 Jan 2020 10:50:49 -0800 (PST) MIME-Version: 1.0 References: <20200110155225.1051749-1-icenowy@aosc.io> <20200110155225.1051749-6-icenowy@aosc.io> In-Reply-To: <20200110155225.1051749-6-icenowy@aosc.io> From: Vasily Khoruzhick Date: Fri, 10 Jan 2020 10:51:23 -0800 Message-ID: Subject: Re: [linux-sunxi] [PATCH 5/5] arm64: dts: allwinner: a64: add support for PineTab To: Icenowy Zheng X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree , David Airlie , linux-sunxi , linux-kernel , Chen-Yu Tsai , Rob Herring , Thierry Reding , dri-devel , Sam Ravnborg , arm-linux Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Fri, Jan 10, 2020 at 7:54 AM Icenowy Zheng wrote: > > PineTab is a 10.1" tablet by Pine64 with Allwinner A64 inside. > > It includes the following peripherals: > > USB: > - A microUSB Type-B port connected to the OTG-capable USB PHY of > Allwinner A64. The ID pin is connected to a GPIO of the A64 SoC, and the > Vbus is connected to the Vbus of AXP803 PMIC. These enables OTG > functionality on this port. > - A USB Type-A port is connected to the internal hub attached to the > non-OTG USB PHY of Allwinner A64. > - There are reserved pins for an external keyboard connected to the > internal hub. > > Power: > - The microUSB port has its Vbus connected to AXP803, mentioned above. > - A DC jack (of a strange size, 2.5mm outer diameter) is connected to > the ACIN of AXP803. > - A Li-Polymer battery is connected to the battery pins of AXP803. > > Storage: > - An tradition Pine64 eMMC slot is on the board, mounted with an eMMC > module by factory. > - An external microSD slot is hidden under a protect case. > > Display: > - A MIPI-DSI LCD panel (800x1280) is connected to the DSI port of A64 SoC. > - A mini HDMI port. > > Input: > - A touch panel attached to a Goodix GT9271 touch controller. > - Volume keys connected to the LRADC of the A64 SoC. > > Camera: > - An OV5640 CMOS camera is at rear, connected to the CSI bus of A64 SoC. > - A GC2145 CMOS camera is at front, shares the same CSI bus with OV5640. > > Audio: > - A headphone jack is conencted to the SoC's internal codec. > - A speaker connected is to the Line Out port of SoC's internal codec, via > an amplifier. > > Misc: > - Debug UART is muxed with the headphone jack, with the switch next to > the microSD slot. > - A bosch BMA223 accelerometer is connected to the I2C bus of A64 SoC. > - Wi-Fi and Bluetooth are available via a RTL8723CS chip, similar to the > one in Pinebook. > > This commit adds a basically usable device tree for it, implementing > most of the features mentioned above. HDMI is not supported now because > bad LCD-HDMI coexistence situation of mainline A64 display driver, and > the front camera currently lacks a driver and a facility to share the > bus with the rear one. > > Signed-off-by: Icenowy Zheng > --- > arch/arm64/boot/dts/allwinner/Makefile | 1 + > .../boot/dts/allwinner/sun50i-a64-pinetab.dts | 461 ++++++++++++++++++ > 2 files changed, 462 insertions(+) > create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts > > diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile > index cf4f78617c3f..6dad63881cd3 100644 > --- a/arch/arm64/boot/dts/allwinner/Makefile > +++ b/arch/arm64/boot/dts/allwinner/Makefile > @@ -9,6 +9,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-orangepi-win.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pine64-lts.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pine64-plus.dtb sun50i-a64-pine64.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinebook.dtb > +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinetab.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-sopine-baseboard.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-teres-i.dtb > dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-bananapi-m2-plus.dtb > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts > new file mode 100644 > index 000000000000..1dfa3668636e > --- /dev/null > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts > @@ -0,0 +1,461 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Copyright (C) 2019 Icenowy Zheng > + * > + */ > + > +/dts-v1/; > + > +#include "sun50i-a64.dtsi" You may want to include dtsi with OPP for A64 here if you want to enable DVFS > + > +#include > +#include > +#include > + > +/ { > + model = "PineTab"; > + compatible = "pine64,pinetab", "allwinner,sun50i-a64"; > + > + aliases { > + serial0 = &uart0; > + ethernet0 = &rtl8723cs; > + }; > + > + backlight: backlight { > + compatible = "pwm-backlight"; > + pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; > + brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; > + default-brightness-level = <8>; > + enable-gpios = <&pio 3 23 GPIO_ACTIVE_HIGH>; /* PD23 */ > + power-supply = <&vdd_bl>; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + i2c-csi { > + compatible = "i2c-gpio"; > + sda-gpios = <&pio 4 13 GPIO_ACTIVE_HIGH>; /* PE13 */ > + scl-gpios = <&pio 4 12 GPIO_ACTIVE_HIGH>; /* PE12 */ > + i2c-gpio,delay-us = <5>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + /* Rear camera */ > + ov5640: camera@3c { > + compatible = "ovti,ov5640"; > + reg = <0x3c>; > + pinctrl-names = "default"; > + pinctrl-0 = <&csi_mclk_pin>; > + clocks = <&ccu CLK_CSI_MCLK>; > + clock-names = "xclk"; > + > + AVDD-supply = <®_dldo3>; > + DOVDD-supply = <®_aldo1>; > + DVDD-supply = <®_eldo3>; > + reset-gpios = <&pio 4 14 GPIO_ACTIVE_LOW>; /* PE14 */ > + powerdown-gpios = <&pio 4 15 GPIO_ACTIVE_HIGH>; /* PE15 */ > + > + port { > + ov5640_ep: endpoint { > + remote-endpoint = <&csi_ep>; > + bus-width = <8>; > + hsync-active = <1>; /* Active high */ > + vsync-active = <0>; /* Active low */ > + data-active = <1>; /* Active high */ > + pclk-sample = <1>; /* Rising */ > + }; > + }; > + }; > + }; > + > + speaker_amp: audio-amplifier { > + compatible = "simple-audio-amplifier"; > + enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */ > + sound-name-prefix = "Speaker Amp"; > + }; > + > + vdd_bl: regulator@0 { > + compatible = "regulator-fixed"; > + regulator-name = "bl-3v3"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + gpio = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */ > + enable-active-high; > + }; > + > + wifi_pwrseq: wifi_pwrseq { > + compatible = "mmc-pwrseq-simple"; > + reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ > + post-power-on-delay-ms = <200>; > + }; > +}; > + > +&codec { > + status = "okay"; > +}; > + > +&codec_analog { > + hpvcc-supply = <®_eldo1>; > + status = "okay"; > +}; > + > +&cpu0 { > + cpu-supply = <®_dcdc2>; > +}; I believe you need CPU regulator for each CPU. I'm aware that we share clock and regulator for all the CPUs but what would happen if you put CPU0 offline? > + > +&csi { > + status = "okay"; > + > + port { > + #address-cells = <1>; > + #size-cells = <0>; > + > + csi_ep: endpoint { > + remote-endpoint = <&ov5640_ep>; > + bus-width = <8>; > + hsync-active = <1>; /* Active high */ > + vsync-active = <0>; /* Active low */ > + data-active = <1>; /* Active high */ > + pclk-sample = <1>; /* Rising */ > + }; > + }; > +}; > + > +&dai { > + status = "okay"; > +}; > + > +&de { > + status = "okay"; > +}; > + > +&dphy { > + status = "okay"; > +}; > + > +&dsi { > + vcc-dsi-supply = <®_dldo1>; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "okay"; > + > + panel@0 { > + compatible = "feixin,k101-im2ba02"; > + reg = <0>; > + avdd-supply = <®_dc1sw>; > + dvdd-supply = <®_dc1sw>; > + cvdd-supply = <®_ldo_io1>; > + reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */ > + backlight = <&backlight>; > + }; > +}; > + > +&ehci0 { > + status = "okay"; > +}; > + > +&ehci1 { > + status = "okay"; > +}; > + > +&i2c0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c0_pins>; > + status = "okay"; > + > + touchscreen@5d { > + compatible = "goodix,gt9271"; > + reg = <0x5d>; > + interrupt-parent = <&pio>; > + interrupts = <7 4 IRQ_TYPE_LEVEL_HIGH>; /* PH4 */ > + irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ > + reset-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* PH8 */ > + AVDD28-supply = <®_ldo_io1>; > + }; > +}; > + > +&i2c0_pins { > + bias-pull-up; > +}; > + > +&i2c1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c1_pins>; > + status = "okay"; > + > + bma223@18 { > + compatible = "bosch,bma223", "bosch,bma222e"; > + reg = <0x18>; > + interrupt-parent = <&pio>; > + interrupts = <7 5 IRQ_TYPE_LEVEL_HIGH>; /* PH5 */ > + mount-matrix = "0", "-1", "0", > + "-1", "0", "0", > + "0", "0", "-1"; > + }; > +}; > + > +&lradc { > + vref-supply = <®_aldo3>; > + status = "okay"; > + > + button-200 { > + label = "Volume Up"; > + linux,code = ; > + channel = <0>; > + voltage = <200000>; > + }; > + > + button-400 { > + label = "Volume Down"; > + linux,code = ; > + channel = <0>; > + voltage = <400000>; > + }; > +}; > + > +&mixer1 { > + status = "okay"; > +}; > + > +&mmc0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&mmc0_pins>; > + vmmc-supply = <®_dcdc1>; > + cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; > + disable-wp; > + bus-width = <4>; > + status = "okay"; > +}; > + > +&mmc1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&mmc1_pins>; > + vmmc-supply = <®_dldo4>; > + vqmmc-supply = <®_eldo1>; > + mmc-pwrseq = <&wifi_pwrseq>; > + bus-width = <4>; > + non-removable; > + status = "okay"; > + > + rtl8723cs: wifi@1 { > + reg = <1>; > + }; > +}; > + > +&mmc2 { > + pinctrl-names = "default"; > + pinctrl-0 = <&mmc2_pins>; > + vmmc-supply = <®_dcdc1>; > + vqmmc-supply = <®_dcdc1>; > + bus-width = <8>; > + non-removable; > + cap-mmc-hw-reset; > + status = "okay"; > +}; > + > +&ohci0 { > + status = "okay"; > +}; > + > +&pwm { > + status = "okay"; > +}; > + > +&r_rsb { > + status = "okay"; > + > + axp803: pmic@3a3 { > + compatible = "x-powers,axp803"; > + reg = <0x3a3>; > + interrupt-parent = <&r_intc>; > + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; > + x-powers,drive-vbus-en; > + }; > +}; > + > +#include "axp803.dtsi" > + > +&ac_power_supply { > + status = "okay"; > +}; > + > +&battery_power_supply { > + status = "okay"; > +}; > + > +®_aldo1 { > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <2800000>; > + regulator-name = "dovdd-csi"; > +}; > + > +®_aldo2 { > + regulator-always-on; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-pl"; > +}; > + > +®_aldo3 { > + regulator-always-on; > + regulator-min-microvolt = <2700000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-pll-avcc"; > +}; > + > +®_dc1sw { > + regulator-name = "vcc-lcd"; > +}; > + > +®_dcdc1 { > + regulator-always-on; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-3v3"; > +}; > + > +®_dcdc2 { > + regulator-always-on; > + regulator-min-microvolt = <1000000>; > + regulator-max-microvolt = <1300000>; > + regulator-name = "vdd-cpux"; > +}; > + > +/* DCDC3 is polyphased with DCDC2 */ > + > +®_dcdc5 { > + regulator-always-on; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + regulator-name = "vcc-dram"; > +}; > + > +®_dcdc6 { > + regulator-always-on; > + regulator-min-microvolt = <1100000>; > + regulator-max-microvolt = <1100000>; > + regulator-name = "vdd-sys"; > +}; > + > +®_dldo1 { > + regulator-always-on; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-hdmi-dsi-sensor"; > +}; > + > +®_dldo3 { > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <2800000>; > + regulator-name = "avdd-csi"; > +}; > + > +®_dldo4 { > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-wifi"; > +}; > + > +®_drivevbus { > + regulator-name = "usb0-vbus"; > + status = "okay"; > +}; > + > +®_eldo1 { > + regulator-always-on; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-name = "cpvdd"; > +}; > + > +®_eldo2 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-name = "vcca-1v8"; > +}; > + > +®_eldo3 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-name = "dvdd-1v8-csi"; > +}; > + > +®_fldo1 { > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + regulator-name = "vcc-1v2-hsic"; > +}; > + > +®_fldo2 { > + regulator-always-on; > + regulator-min-microvolt = <1100000>; > + regulator-max-microvolt = <1100000>; > + regulator-name = "vdd-cpus"; > +}; > + > +®_ldo_io0 { > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-usb"; > + status = "okay"; > +}; > + > +®_ldo_io1 { > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-enable-ramp-delay = <3500000>; > + regulator-name = "vcc-touchscreen"; > + status = "okay"; > +}; > + > +®_rtc_ldo { > + regulator-name = "vcc-rtc"; > +}; > + > +&sound { > + status = "okay"; > + simple-audio-card,aux-devs = <&codec_analog>, <&speaker_amp>; > + simple-audio-card,widgets = "Microphone", "Internal Microphone Left", > + "Microphone", "Internal Microphone Right", > + "Headphone", "Headphone Jack", > + "Speaker", "Internal Speaker"; > + simple-audio-card,routing = > + "Left DAC", "AIF1 Slot 0 Left", > + "Right DAC", "AIF1 Slot 0 Right", > + "Speaker Amp INL", "LINEOUT", > + "Speaker Amp INR", "LINEOUT", > + "Internal Speaker", "Speaker Amp OUTL", > + "Internal Speaker", "Speaker Amp OUTR", > + "Headphone Jack", "HP", > + "AIF1 Slot 0 Left ADC", "Left ADC", > + "AIF1 Slot 0 Right ADC", "Right ADC", > + "Internal Microphone Left", "MBIAS", > + "MIC1", "Internal Microphone Left", > + "Internal Microphone Right", "HBIAS", > + "MIC2", "Internal Microphone Right"; > +}; > + > +&uart0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&uart0_pb_pins>; > + status = "okay"; > +}; > + > +&usb_otg { > + dr_mode = "otg"; > + status = "okay"; > +}; > + > +&usb_power_supply { > + status = "okay"; > +}; > + > +&usbphy { > + usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */ > + usb0_vbus_power-supply = <&usb_power_supply>; > + usb0_vbus-supply = <®_drivevbus>; > + usb1_vbus-supply = <®_ldo_io0>; > + status = "okay"; > +}; > -- > 2.23.0 > > -- > You received this message because you are subscribed to the Google Groups "linux-sunxi" group. > To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe@googlegroups.com. > To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20200110155225.1051749-6-icenowy%40aosc.io. _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel