From nobody Sat Nov 30 03:34:40 2024 Received: from omta36.uswest2.a.cloudfilter.net (omta36.uswest2.a.cloudfilter.net [35.89.44.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 884FD1BC090 for ; Thu, 12 Sep 2024 14:26:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=35.89.44.35 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726151188; cv=none; b=trZL8eUXNmzsP39x50kzp6nI1u9oTqD3i0QCvB+RVM+3t8zhieqwzaWS0ucbODWS+E2j6Mp2o1+wAEpdSdJ2JeR0kwh6DZ3wIGVLYKvXlWVD/G8xv76EIud93khz6RbW/rZCUmox6VrxHLVurUFo7rJuhYT/WmGfIraVLl9fyj4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726151188; c=relaxed/simple; bh=LfrAnhXADC0062RNdKl8qS+6gyErYopT8jQyNclhwEo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=jMe6CA1u4YIxvQnTa+uesN/qIxrmB611zqAVBuzQLpt3BVS19XhY+sUQmajcqeuV4HQ/2eEYNmnjdKVADCMJ0d2+UO8kIPm+4vlcgyQbiyhT0kc3tAx2hpx/E8sPdkHt/U8CY/GwTReA94vCErdYbv2KtDa5TA0iHw6iiBHPa+4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linumiz.com; spf=pass smtp.mailfrom=linumiz.com; dkim=pass (2048-bit key) header.d=linumiz.com header.i=@linumiz.com header.b=VXuxiNxK; arc=none smtp.client-ip=35.89.44.35 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linumiz.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linumiz.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linumiz.com header.i=@linumiz.com header.b="VXuxiNxK" Received: from eig-obgw-5004a.ext.cloudfilter.net ([10.0.29.221]) by cmsmtp with ESMTPS id oZDqsW6pxqvuookmAsRbhv; Thu, 12 Sep 2024 14:26:26 +0000 Received: from md-in-79.webhostbox.net ([43.225.55.182]) by cmsmtp with ESMTPS id okm7sWqtm0vWTokm8sZW3c; Thu, 12 Sep 2024 14:26:25 +0000 X-Authority-Analysis: v=2.4 cv=ffZmyFQF c=1 sm=1 tr=0 ts=66e2fa11 a=LfuyaZh/8e9VOkaVZk0aRw==:117 a=kofhyyBXuK/oEhdxNjf66Q==:17 a=EaEq8P2WXUwA:10 a=-pn6D5nKLtMA:10 a=vU9dKmh3AAAA:8 a=xgDJ2ItN4DbTUy_rRyQA:9 a=rsP06fVo5MYu2ilr0aT5:22 a=ZCPYImcxYIQFgLOT52_G:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linumiz.com ; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=I88Cfjzdme7FAFSLbyWAXyA3YYoq4ffeVCbtr93i2EM=; b=VXuxiNxKt02vunwxmfAhkXP9Jm agl8tnz26KJljeLKVS853x04eJHd8Hq28xkOpTFyIeB5asg3ZYBJjA102VAmj9Q+It7BwnnHMJiqK pcSX1WsyFE8ab4QSqRKQG93HIzDApEheoeKXP/x/yqSGz3Png5zKldN+AXrzL+yky1N26IQSRKWjX ty3DdCt8Q47d+EqjLATvpIXLfzhVmWFyROGJPlnskTn5h/o+3fpH++QSumnNdA+HY4mOwsECc0wvw GKZfcBzn8Zma/VicTq2ljaYwpIYlLssDkYKGdniF174UygRVf07fKyVva4lLGiTu1PhWdvEf3J82T we6D31Uw==; Received: from [122.165.245.213] (port=41006 helo=localhost.localdomain) by md-in-79.webhostbox.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1sokm5-003n4z-14; Thu, 12 Sep 2024 19:56:21 +0530 From: Karthikeyan Krishnasamy To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de, alexandre.belloni@bootlin.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, Karthikeyan Krishnasamy Subject: [PATCH v3 6/6] ARM: dts: rockchip: Add Relfor Saib board Date: Thu, 12 Sep 2024 19:54:51 +0530 Message-Id: <20240912142451.2952633-7-karthikeyan@linumiz.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240912142451.2952633-1-karthikeyan@linumiz.com> References: <20240912142451.2952633-1-karthikeyan@linumiz.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - md-in-79.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - linumiz.com X-BWhitelist: no X-Source-IP: 122.165.245.213 X-Source-L: No X-Exim-ID: 1sokm5-003n4z-14 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (localhost.localdomain) [122.165.245.213]:41006 X-Source-Auth: karthikeyan@linumiz.com X-Email-Count: 67 X-Org: HG=dishared_whb_net_legacy;ORG=directi; X-Source-Cap: bGludW1jbWM7aG9zdGdhdG9yO21kLWluLTc5LndlYmhvc3Rib3gubmV0 X-Local-Domain: yes X-CMAE-Envelope: MS4xfCMZ1MwHUNnNo1R5oR36oqDud6n4B+4sJtcu6eXhZlileqPDfUkWaSKLHFzsNY7Bkbp8GDbO6DeCs02qPH3/cso70aMzO/r74V9Kv8oRUJp3Qeg27V9u X9sI/5rNW7FaViVP2afVsHiYt5KUMgTuDuH72NO7MYHOirlpX/Blw7j7h3hJIY4mupk9dWhBF7gCF9cj2lAFEucNSsOfsQIl/In2afKa/Wnf6xYg2pv58BYw Content-Type: text/plain; charset="utf-8" Saib is an consumer electronics board from Relfor labs Features: - Rockchip RV1109 - 1GB DDR4 - 4GB eMMC - Realtek RTL8821CS Wi-Fi/BT - IR transmitter/receiver - RV3028 RTC - Switch - User leds Add support for it. Signed-off-by: Karthikeyan Krishnasamy --- Notes: v3: - sort nodes in aplhabetical order =20 v2: - Drop status=3Dokay in new nodes arch/arm/boot/dts/rockchip/Makefile | 1 + .../boot/dts/rockchip/rv1109-relfor-saib.dts | 422 ++++++++++++++++++ 2 files changed, 423 insertions(+) create mode 100644 arch/arm/boot/dts/rockchip/rv1109-relfor-saib.dts diff --git a/arch/arm/boot/dts/rockchip/Makefile b/arch/arm/boot/dts/rockch= ip/Makefile index ab4cd9aab722..716f5540e438 100644 --- a/arch/arm/boot/dts/rockchip/Makefile +++ b/arch/arm/boot/dts/rockchip/Makefile @@ -2,6 +2,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D \ rv1108-elgin-r1.dtb \ rv1108-evb.dtb \ + rv1109-relfor-saib.dtb \ rv1109-sonoff-ihost.dtb \ rv1126-edgeble-neu2-io.dtb \ rv1126-sonoff-ihost.dtb \ diff --git a/arch/arm/boot/dts/rockchip/rv1109-relfor-saib.dts b/arch/arm/b= oot/dts/rockchip/rv1109-relfor-saib.dts new file mode 100644 index 000000000000..a63356ade3b7 --- /dev/null +++ b/arch/arm/boot/dts/rockchip/rv1109-relfor-saib.dts @@ -0,0 +1,422 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2024 Relfor Labs Pvt. Ltd. + */ + + +/dts-v1/; +#include "rv1109.dtsi" +#include +#include + +/ { + model =3D "Rockchip RV1109 Relfor Saib Board"; + compatible =3D "relfor,saib", "rockchip,rv1109"; + + gpio-keys { + compatible =3D "gpio-keys"; + + button { + gpios =3D <&gpio2 RK_PA7 GPIO_ACTIVE_HIGH>; + linux,code =3D ; + label =3D "GPIO User Switch"; + linux,input-type =3D <1>; + }; + }; + + ir_receiver: ir-receiver { + compatible =3D "gpio-ir-receiver"; + gpios =3D <&gpio3 RK_PB4 GPIO_ACTIVE_LOW>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&ir_rx>; + }; + + ir_transmitter: ir-transmitter { + compatible =3D "pwm-ir-tx"; + pwms =3D <&pwm11 0 10000000 1>; + }; + + led-controller { + compatible =3D "pwm-leds-multicolor"; + + multi-led { + color =3D ; + function =3D LED_FUNCTION_INDICATOR; + max-brightness =3D <65535>; + + led-0 { + active-low; + color =3D ; + pwms =3D <&pwm9 0 50000 0>; + }; + + led-1 { + active-low; + color =3D ; + pwms =3D <&pwm6 0 50000 0>; + }; + + led-2 { + active-low; + color =3D ; + pwms =3D <&pwm10 0 50000 0>; + }; + }; + }; + + pwm-leds { + compatible =3D "pwm-leds"; + + led-0 { + pwms =3D <&pwm2 0 50000 0>; + max-brightness =3D <255>; + linux,default-trigger =3D "none"; + }; + + led-1 { + pwms =3D <&pwm8 0 50000 0>; + max-brightness =3D <0>; + linux,default-trigger =3D "none"; + }; + + led-2 { + pwms =3D <&pwm5 0 50000 0>; + max-brightness =3D <255>; + linux,default-trigger =3D "none"; + }; + }; + + sdio_pwrseq: pwrseq-sdio { + compatible =3D "mmc-pwrseq-simple"; + clocks =3D <&rtc0>; + clock-names =3D "ext_clock"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&wifi_enable_h>; + reset-gpios =3D <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>; + }; + + thermal_sensor1: thermal-sensor1 { + compatible =3D "generic-adc-thermal"; + #thermal-sensor-cells =3D <0>; + io-channels =3D <&saradc 1>; + io-channel-names =3D "sensor-channel"; + temperature-lookup-table =3D <(-40000) 826 + 85000 609>; + }; + + thermal_sensor2: thermal-sensor2 { + compatible =3D "generic-adc-thermal"; + #thermal-sensor-cells =3D <0>; + io-channels =3D <&saradc 2>; + io-channel-names =3D "sensor-channel"; + temperature-lookup-table =3D <(-40000) 826 + 85000 609>; + }; + + vcc_0v8: vcc-0v8 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc_0v8"; + regulator-min-microvolt =3D <800000>; + regulator-max-microvolt =3D <800000>; + regulator-always-on; + regulator-boot-on; + startup-delay-us =3D <150>; + vin-supply =3D <&vcc5v0_sys>; + }; + + vcc_1v2_ddr: vcc-1v2-ddr { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc_1v2_ddr"; + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <1200000>; + regulator-always-on; + regulator-boot-on; + startup-delay-us =3D <75000>; + vin-supply =3D <&vcc5v0_sys>; + }; + + vcc_1v8: vcc-1v8 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc_1v8"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-always-on; + regulator-boot-on; + startup-delay-us =3D <51000>; + vin-supply =3D <&vcc5v0_sys>; + }; + + vcc1v8_ir: vcc1v8-ir { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc1v8_ir"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-always-on; + regulator-boot-on; + vin-supply =3D <&vcc5v0_sys>; + }; + + vcc_2v5_ddr: vcc-2v5-ddr { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc_2v5_ddr"; + regulator-min-microvolt =3D <2500000>; + regulator-max-microvolt =3D <2500000>; + regulator-always-on; + regulator-boot-on; + vin-supply =3D <&vcc3v3_sys>; + }; + + vcc3v3_sys: vcc3v3-sys { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc3v3_sys"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + regulator-always-on; + regulator-boot-on; + startup-delay-us =3D <75000>; + vin-supply =3D <&vcc5v0_sys>; + }; + + vcc5v0_sys: vcc5v0-sys { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc5v0_sys"; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + regulator-always-on; + regulator-boot-on; + }; + + vdd_arm: vdd-arm { + compatible =3D "pwm-regulator"; + pwms =3D <&pwm0 0 5000 1>; + regulator-name =3D "vdd_arm"; + regulator-min-microvolt =3D <720000>; + regulator-max-microvolt =3D <1000000>; + regulator-settling-time-up-us =3D <18000>; + regulator-always-on; + regulator-boot-on; + pwm-supply =3D <&vcc3v3_sys>; + vin-supply =3D <&vcc5v0_sys>; + }; + + vdd_npu_vepu: vdd-npu-vepu { + compatible =3D "pwm-regulator"; + pwms =3D <&pwm1 0 5000 1>; + regulator-name =3D "vdd_npu_vepu"; + regulator-min-microvolt =3D <650000>; + regulator-max-microvolt =3D <950000>; + regulator-settling-time-up-us =3D <18000>; + regulator-always-on; + regulator-boot-on; + pwm-supply =3D <&vcc3v3_sys>; + vin-supply =3D <&vcc5v0_sys>; + }; +}; + +&cpu0 { + cpu-supply =3D <&vdd_arm>; +}; + +&cpu1 { + cpu-supply =3D <&vdd_arm>; +}; + +&emmc { + bus-width =3D <8>; + non-removable; + pinctrl-0 =3D <&emmc_bus8 &emmc_cmd &emmc_clk>; + pinctrl-names =3D "default"; + rockchip,default-sample-phase =3D <90>; + vmmc-supply =3D <&vcc3v3_sys>; + status =3D "okay"; +}; + +&i2c3 { + pinctrl-0 =3D <&i2c3m2_xfer>; + pinctrl-names =3D "default"; + status =3D "okay"; + + rtc0: rtc@52 { + compatible =3D "microcrystal,rv3028"; + reg =3D <0x52>; + #clock-cells =3D <0>; + interrupt-parent =3D <&gpio2>; + interrupts =3D <0 IRQ_TYPE_LEVEL_LOW>; + pinctrl-0 =3D <&rtc_int>; + pinctrl-names =3D "default"; + }; +}; + +&i2s0 { + /delete-property/ pinctrl-0; + rockchip,trcm-sync-rx-only; + pinctrl-0 =3D <&i2s0m0_sclk_rx>, + <&i2s0m0_lrck_rx>, + <&i2s0m0_sdi0>; + pinctrl-names =3D "default"; + status =3D "okay"; +}; + +&pinctrl { + bluetooth-pins { + bt_reset: bt-reset { + rockchip,pins =3D + <1 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>; + }; + bt_wake_dev: bt-wake-dev { + rockchip,pins =3D + <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>; + }; + bt_wake_host: bt-wake-host { + rockchip,pins =3D + <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_down>; + }; + }; + + buttons { + switch: switch { + rockchip,pins =3D <2 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; + + ir { + ir_rx: ir-rx { + rockchip,pins =3D <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + pwm { + pwm0m0_pins_pull_up: pwm0m0-pins-pull-up { + rockchip,pins =3D + /* pwm0_pin_m0 */ + <0 RK_PB6 3 &pcfg_pull_up>; + }; + pwm1m0_pins_pull_up: pwm1m0-pins-pull-up { + rockchip,pins =3D + /* pwm1_pin_m0 */ + <0 RK_PB7 3 &pcfg_pull_up>; + }; + }; + + rtc { + rtc_int: rtc-int { + rockchip,pins =3D <2 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; + + sdio-pwrseq { + wifi_enable_h: wifi-enable-h { + rockchip,pins =3D <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +}; + +&pmu_io_domains { + pmuio0-supply =3D <&vcc3v3_sys>; + pmuio1-supply =3D <&vcc3v3_sys>; + vccio4-supply =3D <&vcc3v3_sys>; + vccio5-supply =3D <&vcc3v3_sys>; + vccio6-supply =3D <&vcc3v3_sys>; + vccio7-supply =3D <&vcc3v3_sys>; + status =3D "okay"; +}; + +&pwm0 { + /delete-property/ pinctrl-0; + pinctrl-0 =3D <&pwm0m0_pins_pull_up>; + pinctrl-names =3D "default"; + status =3D "okay"; +}; + +&pwm1 { + /delete-property/ pinctrl-0; + pinctrl-0 =3D <&pwm1m0_pins_pull_up>; + pinctrl-names =3D "default"; + status =3D "okay"; +}; + +&pwm2 { + /delete-property/ pinctrl-0; + pinctrl-0 =3D <&pwm2m1_pins>; + pinctrl-names =3D "default"; + status =3D "okay"; +}; + +&pwm5 { + pinctrl-0 =3D <&pwm5m0_pins>; + pinctrl-names =3D "default"; + status =3D "okay"; +}; + +&pwm6 { + pinctrl-0 =3D <&pwm6m0_pins>; + pinctrl-names =3D "default"; + status =3D "okay"; +}; + +&pwm8 { + pinctrl-0 =3D <&pwm8m1_pins>; + pinctrl-names =3D "default"; + status =3D "okay"; +}; + +&pwm9 { + pinctrl-0 =3D <&pwm9m1_pins>; + pinctrl-names =3D "default"; + status =3D "okay"; +}; + +&pwm10 { + pinctrl-0 =3D <&pwm10m1_pins>; + pinctrl-names =3D "default"; + status =3D "okay"; +}; + +&pwm11 { + /delete-property/ pinctrl-0; + pinctrl-0 =3D <&pwm11m1_pins>; + pinctrl-names =3D "default"; + status =3D "okay"; +}; + +&saradc { + vref-supply =3D <&vcc_1v8>; + status =3D "okay"; +}; + +&sdio { + bus-width =3D <4>; + cap-sd-highspeed; + cap-sdio-irq; + max-frequency =3D <100000000>; + mmc-pwrseq =3D <&sdio_pwrseq>; + no-mmc; + no-sd; + non-removable; + pinctrl-0 =3D <&sdmmc1_clk &sdmmc1_cmd &sdmmc1_bus4>; + pinctrl-names =3D "default"; + sd-uhs-sdr104; + vmmc-supply =3D <&vcc3v3_sys>; + status =3D "okay"; +}; + +&uart0 { + pinctrl-0 =3D <&uart0_xfer &uart0_ctsn &uart0_rtsn>; + pinctrl-names =3D "default"; + status =3D "okay"; + + bluetooth { + compatible =3D "realtek,rtl8822cs-bt"; + device-wake-gpios =3D <&gpio1 RK_PC5 GPIO_ACTIVE_HIGH>; + enable-gpios =3D <&gpio1 RK_PC4 GPIO_ACTIVE_HIGH>; + host-wake-gpios =3D <&gpio1 RK_PC6 GPIO_ACTIVE_HIGH>; + pinctrl-0 =3D <&bt_reset>, <&bt_wake_dev>, <&bt_wake_host>; + pinctrl-names =3D "default"; + }; +}; + +&uart2 { + pinctrl-0 =3D <&uart2m1_xfer>; + pinctrl-names =3D "default"; + status =3D "okay"; +}; --=20 2.39.2