Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp441654rdb; Sat, 27 Jan 2024 13:17:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IFreBX6PeE8SbOgGnLpi+6c7sAotiLe52AF7s6IqbGho7OrZijpCblL5V00iMQeSemjXhGM X-Received: by 2002:a17:906:d298:b0:a31:2bba:2d31 with SMTP id ay24-20020a170906d29800b00a312bba2d31mr1501707ejb.30.1706390247344; Sat, 27 Jan 2024 13:17:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706390247; cv=pass; d=google.com; s=arc-20160816; b=WxlgEnK8h1+ZSJLMqqI6UPi4EWjFyqKUVIKfKIhW9IOvvgd3vD5T5JYxvDkfNDGsN/ yJn4ADHGW0Qzo3Jq/7mn2y3r7oJyS8DL2BxGEhNt2XA6eWvVNI+ofSpBZO4Bxz+4py2p zkI8fBPM5uBXQzZap5eE2zizj1ri+utcsXF7XlYJ9A60hm1IZEq9YUOY/jdeYx6ak+7P Sel5hY5v2atxWCGNF9tqDI2awx9rHtm7vQ75ob5EdiAOhZILvnhrG/8id2xohLs3VsdH U2KHbVMDEQ81fVtq31LbGQ7JiiRWJ750o3P07zfJFynvBAqXTvHgnozIVkDxJD81/sr3 5TTg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=xe3ptC08ZmprV8SNHaxDnOaV1DUQX5FglE5ZULpFqt0=; fh=k8lTEIau/Fyjb7q2j+0Iiu71OZToO1Gv6f4oVuYB3hE=; b=A4mjcZkSE0bfE81wLLPOQXnAZuwnDyp0Ksscp6WI+koO0elXdxvy5P1d6FSvciDfAY vwgZdebiRmvY3sRh2KIdH6c2BcdjviFJRl46Mas0h4+xaQe+J9IEfgEqK2QNdKpL+7yw BA0Ipg0DTF3ZAaQgwvaz4mRvI+YmIGAs5vOeRtYmUSeaO3leL97RhdoSe2dnwHcj3Fau ZlaqNxRSCMUt3MF6xEB6l5dBP1wR5H7+aYKqvxirgqQQGWa/E87kKKMe3XJMNGjh8LkH Ti1acP9LA/YrvOkzHTJgquwxlIfx++2Tnt/cbGSYFWUuKiVRjeIe3Zdai3gF3HccPYKJ wSbA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=HIewvimf; arc=pass (i=1 spf=pass spfdomain=xff.cz dkim=pass dkdomain=xff.cz dmarc=pass fromdomain=xff.cz); spf=pass (google.com: domain of linux-kernel+bounces-41400-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41400-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id dk22-20020a170906f0d600b00a35747e610asi225045ejb.732.2024.01.27.13.17.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 13:17:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41400-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=HIewvimf; arc=pass (i=1 spf=pass spfdomain=xff.cz dkim=pass dkdomain=xff.cz dmarc=pass fromdomain=xff.cz); spf=pass (google.com: domain of linux-kernel+bounces-41400-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41400-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B41311F223A7 for ; Sat, 27 Jan 2024 21:17:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8791A1AAA9; Sat, 27 Jan 2024 21:17:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xff.cz header.i=@xff.cz header.b="HIewvimf" Received: from vps.xff.cz (vps.xff.cz [195.181.215.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25A4F1B7E1; Sat, 27 Jan 2024 21:17:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.181.215.36 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706390237; cv=none; b=ZCzxv52s9ZlQd4GsWeyfG18P9o0fYh/ulajOLnzeQMG/DyrO77z4ubi7kZ7BvS3x3xnyMmNxTpH3/q2062h4p09ZRf9fPQmxGsGZUBw9KIvhNDWkXSg5h2FpGoKgtkgrOwOnYNXx+eMZJhEtjXA5wFxZixee0RnV1uWtJsxrB1Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706390237; c=relaxed/simple; bh=CFKyjnR3NU+a11aWG7Z1QywSxVCKJE1F1Qp1O+E+dds=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=s3WJz1p0ItHDoT3B+cwdU6lYEBUZ3bORByzeSiT0wLc1NeqLzRBMepPmaHR/l16zX51UtKed/yl5p2CGtSlzQBDbGKI3LiA4M8xtDvY5mWhw27hziFr1joA/Eb0DeNAx2lKhT2N8axI1OtbxotWP4iOP7sMWHGGcU4t2+ur5e2g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xff.cz; spf=pass smtp.mailfrom=xff.cz; dkim=pass (1024-bit key) header.d=xff.cz header.i=@xff.cz header.b=HIewvimf; arc=none smtp.client-ip=195.181.215.36 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xff.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xff.cz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xff.cz; s=mail; t=1706390223; bh=CFKyjnR3NU+a11aWG7Z1QywSxVCKJE1F1Qp1O+E+dds=; h=Date:From:To:Cc:Subject:X-My-GPG-KeyId:References:From; b=HIewvimfsA7wyvZWOOtZmQwNHziAafz7wvbvj7Y3ILhZ465CEkqpdRVA4ehXnduRQ bUrVJWX7pUkfOjlQK28fUxtpm7blDXthJ2/1hO4Rvn025qMdTLVTkwM+UbFN+CYhG+ jWgiMiuByp2v8XvCO/JnDQD99ztP05GcwEjHslac= Date: Sat, 27 Jan 2024 22:17:03 +0100 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: Manuel Traut Cc: Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Sandy Huang , Mark Yao , Diederik de Haas , Segfault , Arnaud Ferraris , Danct12 , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: Re: [PATCH v4 4/4] arm64: dts: rockchip: Add devicetree for Pine64 PineTab2 Message-ID: Mail-Followup-To: =?utf-8?Q?Ond=C5=99ej?= Jirman , Manuel Traut , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Sandy Huang , Mark Yao , Diederik de Haas , Segfault , Arnaud Ferraris , Danct12 , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org X-My-GPG-KeyId: EBFBDDE11FB918D44D1F56C1F9F0A873BE9777ED References: <20240127-pinetab2-v4-0-37aab1c39194@mecka.net> <20240127-pinetab2-v4-4-37aab1c39194@mecka.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240127-pinetab2-v4-4-37aab1c39194@mecka.net> Hello Manuel, thank you for the changes, and finding time to post this. On Sat, Jan 27, 2024 at 10:48:45AM +0100, Manuel Traut wrote: > This includes support for both the v0.1 units that were sent to developers and > the v2.0 units from production. > > v1.0 is not included as no units are known to exist. > > Working/Tested: > - SDMMC > - UART > - Buttons > - Charging/Battery/PMIC > - Audio > - USB > - Display > - SPI NOR Flash > > Signed-off-by: Alexander Warnecke > Signed-off-by: Manuel Traut Reviewed-by: Ondrej Jirman Tested-by: Ondrej Jirman kind regards, o. > --- > arch/arm64/boot/dts/rockchip/Makefile | 2 + > .../boot/dts/rockchip/rk3566-pinetab2-v0.1.dts | 28 + > .../boot/dts/rockchip/rk3566-pinetab2-v2.0.dts | 48 ++ > arch/arm64/boot/dts/rockchip/rk3566-pinetab2.dtsi | 943 +++++++++++++++++++++ > 4 files changed, 1021 insertions(+) > > diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile > index a7b30e11beaf..ac0c72667bb7 100644 > --- a/arch/arm64/boot/dts/rockchip/Makefile > +++ b/arch/arm64/boot/dts/rockchip/Makefile > @@ -78,6 +78,8 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-anbernic-rg353vs.dtb > dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-anbernic-rg503.dtb > dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-pinenote-v1.1.dtb > dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-pinenote-v1.2.dtb > +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-pinetab2-v0.1.dtb > +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-pinetab2-v2.0.dtb > dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-powkiddy-rgb30.dtb > dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-powkiddy-rk2023.dtb > dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-powkiddy-x55.dtb > diff --git a/arch/arm64/boot/dts/rockchip/rk3566-pinetab2-v0.1.dts b/arch/arm64/boot/dts/rockchip/rk3566-pinetab2-v0.1.dts > new file mode 100644 > index 000000000000..5fe6ca5da9d3 > --- /dev/null > +++ b/arch/arm64/boot/dts/rockchip/rk3566-pinetab2-v0.1.dts > @@ -0,0 +1,28 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > + > +/dts-v1/; > + > +#include "rk3566-pinetab2.dtsi" > + > +/ { > + model = "Pine64 PineTab2 v0.1"; > + compatible = "pine64,pinetab2-v0.1", "pine64,pinetab2", "rockchip,rk3566"; > +}; > + > +&lcd { > + reset-gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>; > + pinctrl-names = "default"; > + pinctrl-0 = <&lcd_pwren_h &lcd0_rst_l>; > +}; > + > +&pinctrl { > + lcd0 { > + lcd0_rst_l: lcd0-rst-l { > + rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; > + }; > + }; > +}; > + > +&sdmmc1 { > + vmmc-supply = <&vcc3v3_sys>; > +}; > diff --git a/arch/arm64/boot/dts/rockchip/rk3566-pinetab2-v2.0.dts b/arch/arm64/boot/dts/rockchip/rk3566-pinetab2-v2.0.dts > new file mode 100644 > index 000000000000..9349541cbbd0 > --- /dev/null > +++ b/arch/arm64/boot/dts/rockchip/rk3566-pinetab2-v2.0.dts > @@ -0,0 +1,48 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > + > +/dts-v1/; > + > +#include "rk3566-pinetab2.dtsi" > + > +/ { > + model = "Pine64 PineTab2 v2.0"; > + compatible = "pine64,pinetab2-v2.0", "pine64,pinetab2", "rockchip,rk3566"; > +}; > + > +&gpio_keys { > + pinctrl-0 = <&kb_id_det>, <&hall_int_l>; > + > + event-hall-sensor { > + debounce-interval = <20>; > + gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>; > + label = "Hall Sensor"; > + linux,code = ; > + linux,input-type = ; > + wakeup-event-action = ; > + wakeup-source; > + }; > +}; > + > +&lcd { > + reset-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_LOW>; > + pinctrl-names = "default"; > + pinctrl-0 = <&lcd_pwren_h &lcd0_rst_l>; > +}; > + > +&pinctrl { > + lcd0 { > + lcd0_rst_l: lcd0-rst-l { > + rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; > + }; > + }; > + > + hall { > + hall_int_l: hall-int-l { > + rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; > + }; > + }; > +}; > + > +&sdmmc1 { > + vmmc-supply = <&vcc_sys>; > +}; > diff --git a/arch/arm64/boot/dts/rockchip/rk3566-pinetab2.dtsi b/arch/arm64/boot/dts/rockchip/rk3566-pinetab2.dtsi > new file mode 100644 > index 000000000000..db40281eafbe > --- /dev/null > +++ b/arch/arm64/boot/dts/rockchip/rk3566-pinetab2.dtsi > @@ -0,0 +1,943 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include "rk3566.dtsi" > + > +/ { > + chassis-type = "tablet"; > + > + aliases { > + mmc0 = &sdhci; > + mmc1 = &sdmmc0; > + }; > + > + chosen { > + stdout-path = "serial2:1500000n8"; > + }; > + > + adc-keys { > + compatible = "adc-keys"; > + io-channels = <&saradc 0>; > + io-channel-names = "buttons"; > + keyup-threshold-microvolt = <1800000>; > + poll-interval = <25>; > + > + button-vol-up { > + label = "Volume Up"; > + linux,code = ; > + press-threshold-microvolt = <297500>; > + }; > + > + button-vol-down { > + label = "Volume Down"; > + linux,code = ; > + press-threshold-microvolt = <1750>; > + }; > + }; > + > + backlight: backlight { > + compatible = "pwm-backlight"; > + pwms = <&pwm4 0 25000 0>; > + brightness-levels = <20 220>; > + num-interpolated-steps = <200>; > + default-brightness-level = <100>; > + power-supply = <&vcc_sys>; > + }; > + > + battery: battery { > + compatible = "simple-battery"; > + charge-full-design-microamp-hours = <6000000>; > + charge-term-current-microamp = <300000>; > + constant-charge-current-max-microamp = <2000000>; > + constant-charge-voltage-max-microvolt = <4300000>; > + voltage-max-design-microvolt = <4350000>; > + voltage-min-design-microvolt = <3400000>; > + > + ocv-capacity-celsius = <20>; > + ocv-capacity-table-0 = <4322000 100>, <4250000 95>, <4192000 90>, <4136000 85>, > + <4080000 80>, <4022000 75>, <3972000 70>, <3928000 65>, > + <3885000 60>, <3833000 55>, <3798000 50>, <3780000 45>, > + <3776000 40>, <3773000 35>, <3755000 30>, <3706000 25>, > + <3640000 20>, <3589000 15>, <3535000 10>, <3492000 5>, > + <3400000 0>; > + }; > + > + gpio_keys: gpio-keys { > + compatible = "gpio-keys"; > + pinctrl-names = "default"; > + pinctrl-0 = <&kb_id_det>; > + > + tablet-mode-switch { > + debounce-interval = <20>; > + gpios = <&gpio4 RK_PA4 GPIO_ACTIVE_HIGH>; > + label = "Tablet Mode"; > + linux,input-type = ; > + linux,code = ; > + }; > + }; > + > + hdmi-connector { > + compatible = "hdmi-connector"; > + type = "d"; > + > + port { > + hdmi_con_in: endpoint { > + remote-endpoint = <&hdmi_out_con>; > + }; > + }; > + }; > + > + led-0 { > + compatible = "regulator-led"; > + vled-supply = <&vcc5v0_flashled>; > + color = ; > + function = LED_FUNCTION_FLASH; > + }; > + > + rk817-sound { > + compatible = "simple-audio-card"; > + pinctrl-names = "default"; > + pinctrl-0 = <&hp_det_l>; > + simple-audio-card,format = "i2s"; > + simple-audio-card,name = "rk817_ext"; > + simple-audio-card,mclk-fs = <256>; > + > + simple-audio-card,widgets = > + "Microphone", "Mic Jack", > + "Headphone", "Headphones", > + "Speaker", "Internal Speakers"; > + > + simple-audio-card,routing = > + "MICR", "Mic Jack", > + "Headphones", "HPOL", > + "Headphones", "HPOR", > + "Internal Speakers", "Speaker Amplifier OUTL", > + "Internal Speakers", "Speaker Amplifier OUTR", > + "Speaker Amplifier INL", "HPOL", > + "Speaker Amplifier INR", "HPOR"; > + simple-audio-card,hp-det-gpio = <&gpio4 RK_PC6 GPIO_ACTIVE_LOW>; > + simple-audio-card,aux-devs = <&speaker_amp>; > + simple-audio-card,pin-switches = "Internal Speakers"; > + > + simple-audio-card,cpu { > + sound-dai = <&i2s1_8ch>; > + }; > + > + simple-audio-card,codec { > + sound-dai = <&rk817>; > + }; > + }; > + > + speaker_amp: speaker-amplifier { > + compatible = "simple-audio-amplifier"; > + pinctrl-names = "default"; > + pinctrl-0 = <&spk_ctl>; > + enable-gpios = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>; > + sound-name-prefix = "Speaker Amplifier"; > + VCC-supply = <&vcc_bat>; > + }; > + > + vcc_3v3: vcc-3v3-regulator { > + compatible = "regulator-fixed"; > + regulator-name = "vcc_3v3"; > + regulator-always-on; > + regulator-boot-on; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + vin-supply = <&vcc3v3_sys>; > + }; > + > + vcc3v3_minipcie: vcc3v3-minipcie-regulator { > + compatible = "regulator-fixed"; > + enable-active-high; > + gpio = <&gpio4 RK_PC3 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pcie_pwren_h>; > + regulator-name = "vcc3v3_minipcie"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + vin-supply = <&vcc_sys>; > + }; > + > + vcc3v3_sd: vcc3v3-sd-regulator { > + compatible = "regulator-fixed"; > + gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default"; > + pinctrl-0 = <&sdmmc_pwren_l>; > + regulator-name = "vcc3v3_sd"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + vin-supply = <&vcc3v3_sys>; > + }; > + > + vcc5v0_flashled: vcc5v0-flashled-regulator { > + compatible = "regulator-fixed"; > + enable-active-high; > + gpio = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default"; > + pinctrl-0 = <&flash_led_en_h>; > + regulator-name = "vcc5v0_flashled"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + vin-supply = <&vcc5v_midu>; > + }; > + > + vcc5v0_usb_host0: vcc5v0-usb-host0-regulator { > + compatible = "regulator-fixed"; > + enable-active-high; > + gpio = <&gpio4 RK_PC4 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default"; > + pinctrl-0 = <&usb_host_pwren1_h>; > + regulator-name = "vcc5v0_usb_host0"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + vin-supply = <&vcc5v_midu>; > + }; > + > + vcc5v0_usb_host2: vcc5v0-usb-host2-regulator { > + compatible = "regulator-fixed"; > + enable-active-high; > + gpio = <&gpio4 RK_PC5 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default"; > + pinctrl-0 = <&usb_host_pwren2_h>; > + regulator-name = "vcc5v0_usb_host2"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + vin-supply = <&vcc5v_midu>; > + }; > + > + vcc_bat: vcc-bat-regulator { > + compatible = "regulator-fixed"; > + regulator-name = "vcc_bat"; > + regulator-always-on; > + regulator-boot-on; > + }; > + > + vcc_sys: vcc-sys-regulator { > + compatible = "regulator-fixed"; > + regulator-name = "vcc_sys"; > + regulator-always-on; > + regulator-boot-on; > + vin-supply = <&vcc_bat>; > + }; > + > + vdd1v2_dvp: vdd1v2-dvp-regulator { > + compatible = "regulator-fixed"; > + regulator-name = "vdd1v2_dvp"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + vin-supply = <&vcc_3v3>; > + }; > +}; > + > +&combphy1 { > + status = "okay"; > +}; > + > +&combphy2 { > + status = "okay"; > +}; > + > +&cpu0 { > + cpu-supply = <&vdd_cpu>; > +}; > + > +&cpu1 { > + cpu-supply = <&vdd_cpu>; > +}; > + > +&cpu2 { > + cpu-supply = <&vdd_cpu>; > +}; > + > +&cpu3 { > + cpu-supply = <&vdd_cpu>; > +}; > + > +&cru { > + assigned-clocks = <&pmucru CLK_RTC_32K>, <&cru PLL_GPLL>, > + <&pmucru PLL_PPLL>, <&cru PLL_VPLL>; > + assigned-clock-rates = <32768>, <1200000000>, <200000000>, <500000000>; > + assigned-clock-parents = <&pmucru CLK_RTC32K_FRAC>; > +}; > + > +&csi_dphy { > + status = "okay"; > +}; > + > +&dsi0 { > + status = "okay"; > + clock-master; > + #address-cells = <1>; > + #size-cells = <0>; > + > + lcd: panel@0 { > + compatible = "boe,th101mb31ig002-28a"; > + reg = <0>; > + backlight = <&backlight>; > + enable-gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; > + rotation = <90>; > + power-supply = <&vcc_3v3>; > + > + port@0 { > + panel_in_dsi: endpoint@0 { > + remote-endpoint = <&dsi0_out_con>; > + }; > + }; > + }; > +}; > + > +&dsi0_in { > + dsi0_in_vp1: endpoint { > + remote-endpoint = <&vp1_out_dsi0>; > + }; > +}; > + > +&dsi0_out { > + dsi0_out_con: endpoint { > + remote-endpoint = <&panel_in_dsi>; > + }; > +}; > + > +&dsi_dphy0 { > + status = "okay"; > +}; > + > +&gpu { > + mali-supply = <&vdd_gpu_npu>; > + status = "okay"; > +}; > + > +&hdmi { > + avdd-0v9-supply = <&vdda_0v9_p>; > + avdd-1v8-supply = <&vcc_1v8>; > + status = "okay"; > +}; > + > +&hdmi_in { > + hdmi_in_vp0: endpoint { > + remote-endpoint = <&vp0_out_hdmi>; > + }; > +}; > + > +&hdmi_out { > + hdmi_out_con: endpoint { > + remote-endpoint = <&hdmi_con_in>; > + }; > +}; > + > +&hdmi_sound { > + status = "okay"; > +}; > + > +&i2c0 { > + clock-frequency = <400000>; > + status = "okay"; > + > + vdd_cpu: regulator@1c { > + compatible = "tcs,tcs4525"; > + reg = <0x1c>; > + fcs,suspend-voltage-selector = <1>; > + regulator-name = "vdd_cpu"; > + regulator-min-microvolt = <800000>; > + regulator-max-microvolt = <1150000>; > + regulator-ramp-delay = <2300>; > + regulator-always-on; > + regulator-boot-on; > + vin-supply = <&vcc_sys>; > + > + regulator-state-mem { > + regulator-off-in-suspend; > + }; > + }; > + > + rk817: pmic@20 { > + compatible = "rockchip,rk817"; > + reg = <0x20>; > + interrupt-parent = <&gpio0>; > + interrupts = ; > + assigned-clocks = <&cru I2S1_MCLKOUT_TX>; > + assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>; > + clock-names = "mclk"; > + clocks = <&cru I2S1_MCLKOUT_TX>; > + clock-output-names = "rk808-clkout1", "rk808-clkout2"; > + #clock-cells = <1>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pmic_int_l>, <&i2s1m0_mclk>; > + rockchip,system-power-controller; > + #sound-dai-cells = <0>; > + wakeup-source; > + > + vcc1-supply = <&vcc_sys>; > + vcc2-supply = <&vcc_sys>; > + vcc3-supply = <&vcc_sys>; > + vcc4-supply = <&vcc_sys>; > + vcc5-supply = <&vcc_sys>; > + vcc6-supply = <&vcc_sys>; > + vcc7-supply = <&vcc_sys>; > + vcc8-supply = <&vcc_sys>; > + vcc9-supply = <&vcc5v_midu>; > + > + regulators { > + vdd_logic: DCDC_REG1 { > + regulator-always-on; > + regulator-boot-on; > + regulator-min-microvolt = <500000>; > + regulator-max-microvolt = <1350000>; > + regulator-ramp-delay = <6001>; > + regulator-initial-mode = <0x2>; > + regulator-name = "vdd_logic"; > + regulator-state-mem { > + regulator-off-in-suspend; > + }; > + }; > + > + vdd_gpu_npu: DCDC_REG2 { > + regulator-min-microvolt = <500000>; > + regulator-max-microvolt = <1350000>; > + regulator-ramp-delay = <6001>; > + regulator-initial-mode = <0x2>; > + regulator-name = "vdd_gpu_npu"; > + regulator-state-mem { > + regulator-off-in-suspend; > + }; > + }; > + > + vcc_ddr: DCDC_REG3 { > + regulator-always-on; > + regulator-boot-on; > + regulator-initial-mode = <0x2>; > + regulator-name = "vcc_ddr"; > + regulator-state-mem { > + regulator-on-in-suspend; > + }; > + }; > + > + vcc3v3_sys: DCDC_REG4 { > + regulator-always-on; > + regulator-boot-on; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-initial-mode = <0x2>; > + regulator-name = "vcc3v3_sys"; > + regulator-state-mem { > + regulator-off-in-suspend; > + }; > + }; > + > + vcca1v8_pmu: LDO_REG1 { > + regulator-always-on; > + regulator-boot-on; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-name = "vcca1v8_pmu"; > + regulator-state-mem { > + regulator-on-in-suspend; > + }; > + }; > + > + vdda_0v9_p: LDO_REG2 { > + regulator-always-on; > + regulator-boot-on; > + regulator-min-microvolt = <900000>; > + regulator-max-microvolt = <900000>; > + regulator-name = "vdda_0v9_p"; > + regulator-state-mem { > + regulator-off-in-suspend; > + }; > + }; > + > + vdda0v9_pmu: LDO_REG3 { > + regulator-always-on; > + regulator-boot-on; > + regulator-min-microvolt = <900000>; > + regulator-max-microvolt = <900000>; > + regulator-name = "vdda0v9_pmu"; > + regulator-state-mem { > + regulator-on-in-suspend; > + }; > + }; > + > + vccio_acodec: LDO_REG4 { > + regulator-always-on; > + regulator-boot-on; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vccio_acodec"; > + regulator-state-mem { > + regulator-off-in-suspend; > + }; > + }; > + > + vccio_sd: LDO_REG5 { > + regulator-always-on; > + regulator-boot-on; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vccio_sd"; > + regulator-state-mem { > + regulator-off-in-suspend; > + }; > + }; > + > + vcc3v3_pmu: LDO_REG6 { > + regulator-always-on; > + regulator-boot-on; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc3v3_pmu"; > + regulator-state-mem { > + regulator-on-in-suspend; > + }; > + }; > + > + vcc_1v8: LDO_REG7 { > + regulator-always-on; > + regulator-boot-on; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-name = "vcc_1v8"; > + regulator-state-mem { > + regulator-off-in-suspend; > + }; > + }; > + > + vcc1v8_dvp: LDO_REG8 { > + regulator-always-on; > + regulator-boot-on; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-name = "vcc1v8_dvp"; > + regulator-state-mem { > + regulator-off-in-suspend; > + }; > + }; > + > + vcc2v8_dvp: LDO_REG9 { > + regulator-always-on; > + regulator-boot-on; > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <2800000>; > + regulator-name = "vcc2v8_dvp"; > + regulator-state-mem { > + regulator-off-in-suspend; > + }; > + }; > + > + vcc5v_midu: BOOST { > + regulator-always-on; > + regulator-boot-on; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + regulator-name = "boost"; > + regulator-state-mem { > + regulator-off-in-suspend; > + }; > + }; > + > + vbus: OTG_SWITCH { > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + regulator-name = "otg_switch"; > + regulator-state-mem { > + regulator-off-in-suspend; > + }; > + }; > + }; > + > + charger { > + monitored-battery = <&battery>; > + rockchip,resistor-sense-micro-ohms = <10000>; > + rockchip,sleep-enter-current-microamp = <300000>; > + rockchip,sleep-filter-current-microamp = <100000>; > + }; > + }; > +}; > + > +&i2c1 { > + clock-frequency = <400000>; > + status = "okay"; > + > + touchscreen@5d { > + compatible = "goodix,gt911"; > + reg = <0x5d>; > + interrupt-parent = <&gpio0>; > + interrupts = ; > + pinctrl-names = "default"; > + pinctrl-0 = <&tp_int_l_pmuio2>, <&tp_rst_l_pmuio2>; > + AVDD28-supply = <&vcc3v3_pmu>; > + VDDIO-supply = <&vcca1v8_pmu>; > + irq-gpios = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>; > + reset-gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>; > + }; > +}; > + > +&i2c2 { > + clock-frequency = <400000>; > + pinctrl-0 = <&i2c2m1_xfer>; > + status = "okay"; > + > + vcm@c { > + compatible = "dongwoon,dw9714"; > + reg = <0x0c>; > + vcc-supply = <&vcc1v8_dvp>; > + }; > + > + camera@36 { > + compatible = "ovti,ov5648"; > + reg = <0x36>; > + pinctrl-names = "default"; > + pinctrl-0 = <&camerab_pdn_l &camerab_rst_l>; > + > + clocks = <&cru CLK_CIF_OUT>; > + assigned-clocks = <&cru CLK_CIF_OUT>; > + assigned-clock-rates = <24000000>; > + > + avdd-supply = <&vcc2v8_dvp>; > + dvdd-supply = <&vdd1v2_dvp>; > + dovdd-supply = <&vcc1v8_dvp>; > + powerdown-gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_LOW>; > + reset-gpios = <&gpio4 RK_PB1 GPIO_ACTIVE_LOW>; > + > + port { > + endpoint { > + data-lanes = <1 2>; > + remote-endpoint = <0>; > + link-frequencies = /bits/ 64 <210000000 168000000>; > + }; > + }; > + }; > +}; > + > +&i2c5 { > + clock-frequency = <400000>; > + status = "okay"; > + > + accelerometer@18 { > + compatible = "silan,sc7a20"; > + reg = <0x18>; > + interrupt-parent = <&gpio3>; > + interrupts = ; > + pinctrl-names = "default"; > + pinctrl-0 = <&gsensor_int_l>; > + st,drdy-int-pin = <1>; > + vdd-supply = <&vcc_1v8>; > + vddio-supply = <&vcc_1v8>; > + mount-matrix = "1", "0", "0", > + "0", "0", "1", > + "0", "1", "0"; > + }; > +}; > + > +&i2s0_8ch { > + status = "okay"; > +}; > + > +&i2s1_8ch { > + pinctrl-names = "default"; > + pinctrl-0 = <&i2s1m0_sclktx > + &i2s1m0_lrcktx > + &i2s1m0_sdi0 > + &i2s1m0_sdo0>; > + rockchip,trcm-sync-tx-only; > + status = "okay"; > +}; > + > +&pcie2x1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pcie_reset_h>; > + reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; > + vpcie3v3-supply = <&vcc3v3_minipcie>; > + status = "okay"; > +}; > + > +&pinctrl { > + camerab { > + camerab_pdn_l: camerab-pdn-l { > + rockchip,pins = <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>; > + }; > + > + camerab_rst_l: camerab-rst-l { > + rockchip,pins = <4 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; > + }; > + }; > + > + cameraf { > + cameraf_pdn_l: cameraf-pdn-l { > + rockchip,pins = <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; > + }; > + > + cameraf_rst_l: cameraf-rst-l { > + rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; > + }; > + }; > + > + flash { > + flash_led_en_h: flash-led-en-h { > + rockchip,pins = <4 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; > + }; > + }; > + > + fspi { > + fspi_dual_io_pins: fspi-dual-io-pins { > + rockchip,pins = > + /* fspi_clk */ > + <1 RK_PD0 1 &pcfg_pull_none>, > + /* fspi_cs0n */ > + <1 RK_PD3 1 &pcfg_pull_none>, > + /* fspi_d0 */ > + <1 RK_PD1 1 &pcfg_pull_none>, > + /* fspi_d1 */ > + <1 RK_PD2 1 &pcfg_pull_none>; > + }; > + }; > + > + gsensor { > + gsensor_int_l: gsensor-int-l { > + rockchip,pins = <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; > + }; > + }; > + > + kb { > + kb_id_det: kb-id-det { > + rockchip,pins = <4 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; > + }; > + }; > + > + lcd { > + lcd_pwren_h: lcd-pwren-h { > + rockchip,pins = <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>; > + }; > + }; > + > + pcie { > + pcie_pwren_h: pcie-pwren-h { > + rockchip,pins = <4 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>; > + }; > + > + pcie_reset_h: pcie-reset-h { > + rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; > + }; > + }; > + > + pmic { > + pmic_int_l: pmic-int-l { > + rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; > + }; > + }; > + > + sdmmc { > + sdmmc_pwren_l: sdmmc-pwren-l { > + rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; > + }; > + }; > + > + sound { > + hp_det_l: hp-det-l { > + rockchip,pins = <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; > + }; > + > + spk_ctl: spk-ctl { > + rockchip,pins = <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; > + }; > + }; > + > + tp { > + tp_int_l_pmuio2: tp-int-l-pmuio2 { > + rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>; > + }; > + > + tp_rst_l_pmuio2: tp-rst-l-pmuio2 { > + rockchip,pins = <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; > + }; > + }; > + > + usb { > + usbcc_int_l: usbcc-int-l { > + rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>; > + }; > + > + usb_host_pwren1_h: usb-host-pwren1-h { > + rockchip,pins = <4 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>; > + }; > + > + usb_host_pwren2_h: usb-host-pwren2-h { > + rockchip,pins = <4 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>; > + }; > + }; > + > + wifi { > + host_wake_wl: host-wake-wl { > + rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; > + }; > + > + wifi_wake_host_h: wifi-wake-host-h { > + rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_down>; > + }; > + }; > +}; > + > +&pmu_io_domains { > + pmuio1-supply = <&vcc3v3_pmu>; > + pmuio2-supply = <&vcca1v8_pmu>; > + vccio1-supply = <&vccio_acodec>; > + vccio2-supply = <&vcc_1v8>; > + vccio3-supply = <&vccio_sd>; > + vccio4-supply = <&vcc_1v8>; > + vccio5-supply = <&vcc_1v8>; > + vccio6-supply = <&vcc1v8_dvp>; > + vccio7-supply = <&vcc_3v3>; > + status = "okay"; > +}; > + > +&pwm4 { > + status = "okay"; > +}; > + > +&saradc { > + vref-supply = <&vcc_1v8>; > + status = "okay"; > +}; > + > +&sdhci { > + bus-width = <8>; > + no-sdio; > + no-sd; > + non-removable; > + max-frequency = <200000000>; > + mmc-hs200-1_8v; > + pinctrl-names = "default"; > + pinctrl-0 = <&emmc_bus8 > + &emmc_clk > + &emmc_cmd > + &emmc_datastrobe > + &emmc_rstnout>; > + vmmc-supply = <&vcc_3v3>; > + vqmmc-supply = <&vcc_1v8>; > + status = "okay"; > +}; > + > +&sdmmc0 { > + bus-width = <4>; > + cap-sd-highspeed; > + cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>; > + disable-wp; > + pinctrl-names = "default"; > + pinctrl-0 = <&sdmmc0_bus4 > + &sdmmc0_clk > + &sdmmc0_cmd > + &sdmmc0_det>; > + sd-uhs-sdr104; > + vmmc-supply = <&vcc3v3_sd>; > + vqmmc-supply = <&vccio_sd>; > + status = "okay"; > +}; > + > +&sdmmc1 { > + bus-width = <4>; > + cap-sd-highspeed; > + cap-sdio-irq; > + keep-power-in-suspend; > + non-removable; > + pinctrl-names = "default"; > + pinctrl-0 = <&sdmmc1_bus4 > + &sdmmc1_cmd > + &sdmmc1_clk>; > + sd-uhs-sdr104; > + vqmmc-supply = <&vcca1v8_pmu>; > + status = "okay"; > +}; > + > +&sfc { > + pinctrl-names = "default"; > + pinctrl-0 = <&fspi_dual_io_pins>; > + status = "okay"; > + #address-cells = <1>; > + #size-cells = <0>; > + > + flash@0 { > + compatible = "jedec,spi-nor"; > + reg = <0>; > + spi-max-frequency = <100000000>; > + spi-rx-bus-width = <2>; > + spi-tx-bus-width = <1>; > + }; > +}; > + > +&tsadc { > + rockchip,hw-tshut-mode = <1>; > + rockchip,hw-tshut-polarity = <0>; > + status = "okay"; > +}; > + > +&uart2 { > + status = "okay"; > +}; > + > +&usb_host0_ehci { > + status = "okay"; > +}; > + > +&usb_host0_ohci { > + status = "okay"; > +}; > + > +&usb_host0_xhci { > + status = "okay"; > +}; > + > +&usb_host1_xhci { > + status = "okay"; > +}; > + > +&usb2phy0 { > + status = "okay"; > +}; > + > +&usb2phy0_host { > + phy-supply = <&vcc5v0_usb_host0>; > + status = "okay"; > +}; > + > +&usb2phy0_otg { > + status = "okay"; > +}; > + > +&usb2phy1 { > + status = "okay"; > +}; > + > +&usb2phy1_otg { > + phy-supply = <&vcc5v0_usb_host2>; > + status = "okay"; > +}; > + > +&vop { > + assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>; > + assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>; > + status = "okay"; > +}; > + > +&vop_mmu { > + status = "okay"; > +}; > + > +&vp0 { > + vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { > + reg = ; > + remote-endpoint = <&hdmi_in_vp0>; > + }; > +}; > + > +&vp1 { > + vp1_out_dsi0: endpoint@ROCKCHIP_VOP2_EP_MIPI0 { > + reg = ; > + remote-endpoint = <&dsi0_in_vp1>; > + }; > +}; > > -- > 2.43.0 >