Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1371637ybl; Fri, 24 Jan 2020 22:34:44 -0800 (PST) X-Google-Smtp-Source: APXvYqzcIAkoU6d4eYjpsgwUeKDGRWi0AslZvORE2rMMh8tze+yH+K0GlhmFVHqJbjVBXw+chqpI X-Received: by 2002:a9d:6e03:: with SMTP id e3mr5532039otr.46.1579934083900; Fri, 24 Jan 2020 22:34:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579934083; cv=none; d=google.com; s=arc-20160816; b=tE0YQtlW403cLrZUHHECZRT0d3joDMyAFKnXyw7H3zi0N7It/e/0hF2SOfzY7x4yK9 9OEJnzdwULkz82lIY06sV1fBNM35I/bz958rdVxKqkcKOKoq7U+pfdbhw9ec+uWV946q ixGb4j++jpVYOcuokySJ1CNmDcdGJOIbDQ06itqF1BkAXpLP6jI+s4Y9YCQk5GhJT35u eMDzXcSOvoZ4LaW33egKdwROSXuUs55zXGVQICrh2gFRRflokL2qdM/Q2pNvC3XQ6lBW NWZfwYDT9dbo748FPZAPHz/kfTNFpRstpSErvLAMuNTRSqECQVKLorEoVV1uBTIqXQQ/ xICA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=m4hBRJBudPwtQLlnBygb8RVdvUlz4RPRNfVCNmtfYd4=; b=ko0+BBSC34JQl9IFIiTZC8g4a67dsRNsI5MRhR4LdvDk8P/zgge+EM8euMbMod76nj c13qena8dZDrBR4I1oDqfzGWB3V0wHgQvL8B+KHa/Bz055QqOjT1b4vcaOU+Ty97ScN+ 1ABSHfs8GPlKpuuS0xu0XgC7pHil4sVItnjkjHMhevPA0NR67NI0JJIEFPvqRzmOhrNW e/WB2RTetKuM60VbRySB43d06XnzcMTUdL2ph6E/5S+//rfkmxeNmTU1bSRwJymGhOnU DIbGCr+Jb96WRUn2VBEVL6Xr6y9t5PN/r+BHId/ni/C4BA/5GPj+RUe918yljH4pIb6w 2BLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@openedev.com header.s=default header.b=ctuaV3w0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k10si4047154otn.323.2020.01.24.22.34.30; Fri, 24 Jan 2020 22:34:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@openedev.com header.s=default header.b=ctuaV3w0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726565AbgAYGdG (ORCPT + 99 others); Sat, 25 Jan 2020 01:33:06 -0500 Received: from se14p.web-hosting.com ([198.54.122.234]:40142 "EHLO se14p.web-hosting.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725781AbgAYGdF (ORCPT ); Sat, 25 Jan 2020 01:33:05 -0500 Received: from [68.65.123.203] (helo=server153.web-hosting.com) by se17.registrar-servers.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1ivEzl-0002fO-Rb; Fri, 24 Jan 2020 22:32:44 -0800 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=openedev.com; s=default; h=Message-Id:Date:Subject:Cc:To:From:Sender: Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=m4hBRJBudPwtQLlnBygb8RVdvUlz4RPRNfVCNmtfYd4=; b=ctuaV3w02Xq4PoCNkPCBKoS4j1 z//N2cdpXE4FkdVWa2l3qX7W6zBaY+BTcyx/8aim6fkDKxevLLAJux6fhgP/vPC65W6fyGwiopBiW 2J1pL7a3q500Mjfjl4Pos9TaayeX/vkAbvMK3PDLNJ0IA9LTN3RmoezmK18Qno+HL7IRLq84A3jPV huOK9o7iR7E9KvvLs+KyL1K0vC33JgDej81NfX//MwMLSqxu7joBuDPP3/gxxey4ET3sKmCFOg5B3 PQnBUFz67Y06epenVqDByRSCv+ZEv+OxBJpgyG57cK0HshsU+eRTACrLk5URi7bvLe1jrA5mGW+mR GRSNwCrg==; Received: from [49.34.138.62] (port=65409 helo=localhost.localdomain) by server153.web-hosting.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1ivEzZ-004KMf-V7; Sat, 25 Jan 2020 01:32:31 -0500 From: Akash Gajjar To: heiko@sntech.de Cc: jagan@openedev.com, Akash Gajjar , Rob Herring , Mark Rutland , Douglas Anderson , Andy Yan , Alexis Ballier , Matthias Kaehlcke , Nick Xie , Kever Yang , Markus Reichl , Vivek Unune , Robin Murphy , Jagan Teki , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4, 1/1] arm64: dts: rockchip: add ROCK Pi S DTS support Date: Sat, 25 Jan 2020 12:01:37 +0530 Message-Id: <20200125063153.2720-1-akash@openedev.com> X-Mailer: git-send-email 2.17.1 X-OutGoing-Spam-Status: No, score=-1.0 X-Originating-IP: 68.65.123.203 X-SpamExperts-Domain: nctest.net X-SpamExperts-Username: whmcalls3 Authentication-Results: registrar-servers.com; auth=pass (login) smtp.auth=whmcalls3@nctest.net X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: SB/global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LILCsz2DepyRB1XVgPjGc4Gnh6M0h6ngeXQqtu uMNvUeASWefCYj15CRjPEXcLXmYZ7QuzboH6vXAU2AfAk+WBOXp8nHKe0R+FkIqN7hk8XRZ7y0V9 LwJw+bHlLNuSebyeL08lw6WZA1eMEgiKKX4FUPoX44fsQJRcOKHVJETY5Qx4fJOk03R5fJtf/Dv/ nAF2abv3vepm/d65eBLtwdcZomg0ssk6HgAaUC7FzBWBRXt6PAIqP7f9HOwt+FMBVwhpeRL/HuZv YRD8meNj8HXbH6vVlIhnlN+CNmT+pd/OWSHX4gx+Mzs/IxXappU/zqYU5fabM9bgZfvvipjZ2YVx Ym4933anC94Go1obr/inIhk7E1vjQQUhKCp+C53f/Vqvb19/SESwMEgkB8IyQ6oCNa/tx3V7RfeP /tx1mR4ICSYFI4wZVe8IbEbJd6j5fsFP4FRSqu0XAX0og6JHjeuO5TcDeKjrEmYPn2IVWRuaFRHM xUTkWeQsC8S+q8drVt3Hdf7nc+WHAXrMN8WuBd40eTXlWiUAYdLmsJdAoPJ3Dyu2cA5H0KYT2gJt x41kJiJKavwFnKMS0HzUhchBkx97yOUHqDB2iM4g4c97t1yFNdbYQ0jN+7xFLkQkCnDo X-Report-Abuse-To: spam@se16.registrar-servers.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ROCK Pi S is RK3308 based SBC from radxa.com. ROCK Pi S has a, - 256MB/512MB DDR3 RAM - SD, NAND flash (optional on board 1/2/4/8Gb) - 100MB ethernet, PoE (optional) - Onboard 802.11 b/g/n wifi + Bluetooth 4.0 Module - USB2.0 Type-A HOST x1 - USB3.0 Type-C OTG x1 - 26-pin expansion header - USB Type-C DC 5V Power Supply This patch enables - Console - NAND Flash - SD Card Signed-off-by: Akash Gajjar --- Changes in v4 - remove supports-sd/sdio, nums-slots property - use vmmc-supply for emmc node Changes in v3 - Use small S on dts file name - Add missing semicolon - Remove USB2.0 node support Changes in v2 - Use pwm-supply for vdd_core node instead of vi-supply - Add USB2.0 node support .../devicetree/bindings/arm/rockchip.yaml | 5 + arch/arm64/boot/dts/rockchip/Makefile | 1 + .../boot/dts/rockchip/rk3308-rock-pi-s.dts | 216 ++++++++++++++++++ 3 files changed, 222 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml index d9847b306b83..48d40c928d45 100644 --- a/Documentation/devicetree/bindings/arm/rockchip.yaml +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml @@ -422,6 +422,11 @@ properties: - const: radxa,rockpi4 - const: rockchip,rk3399 + - description: Radxa ROCK Pi S + items: + - const: radxa,rockpis + - const: rockchip,rk3308 + - description: Radxa Rock2 Square items: - const: radxa,rock2-square diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile index 48fb631d5451..e56a5527bab4 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -2,6 +2,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-evb.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-evb.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-roc-cc.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-rock-pi-s.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-a1.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-evb.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-rock64.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts b/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts new file mode 100644 index 000000000000..7c7b9a2d3701 --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts @@ -0,0 +1,216 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 Akash Gajjar + * Copyright (c) 2019 Jagan Teki + */ + +/dts-v1/; +#include "rk3308.dtsi" + +/ { + model = "Radxa ROCK Pi S"; + compatible = "radxa,rockpis", "rockchip,rk3308"; + + chosen { + stdout-path = "serial0:1500000n8"; + }; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&green_led_gio>, <&heartbeat_led_gpio>; + + green-led { + label = "rockpis:green:power"; + gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "default-on"; + default-state = "on"; + }; + + blue-led { + label = "rockpis:blue:user"; + gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>; + default-state = "on"; + linux,default-trigger = "heartbeat"; + }; + }; + + sdio_pwrseq: sdio-pwrseq { + compatible = "mmc-pwrseq-simple"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_enable_h>; + reset-gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>; + }; + + vcc5v0_sys: vcc5v0-sys { + compatible = "regulator-fixed"; + regulator-name = "vcc5v0_sys"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + }; + + vdd_core: vdd-core { + compatible = "pwm-regulator"; + pwms = <&pwm0 0 5000 1>; + regulator-name = "vdd_core"; + regulator-min-microvolt = <827000>; + regulator-max-microvolt = <1340000>; + regulator-init-microvolt = <1015000>; + regulator-settling-time-up-us = <250>; + regulator-always-on; + regulator-boot-on; + pwm-supply = <&vcc5v0_sys>; + }; + + vdd_log: vdd-log { + compatible = "regulator-fixed"; + regulator-name = "vdd_log"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1050000>; + vin-supply = <&vcc5v0_sys>; + }; + + vcc_ddr: vcc-ddr { + compatible = "regulator-fixed"; + regulator-name = "vcc_ddr"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1500000>; + vin-supply = <&vcc5v0_sys>; + }; + + vcc_1v8: vcc-1v8 { + compatible = "regulator-fixed"; + regulator-name = "vcc_1v8"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vcc_io>; + }; + + vcc_io: vcc-io { + compatible = "regulator-fixed"; + regulator-name = "vcc_io"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vcc5v0_sys>; + }; + + vcc5v0_otg: vcc5v0-otg { + compatible = "regulator-fixed"; + regulator-name = "vcc5v0_otg"; + regulator-always-on; + gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-names = "default"; + pinctrl-0 = <&otg_vbus_drv>; + vin-supply = <&vcc5v0_sys>; + }; +}; + +&cpu0 { + cpu-supply = <&vdd_core>; +}; + +&emmc { + bus-width = <4>; + cap-mmc-highspeed; + mmc-hs200-1_8v; + disable-wp; + non-removable; + vmmc-supply = <&vcc_io>; + status = "okay"; +}; + +&i2c1 { + status = "okay"; +}; + +&sdmmc { + bus-width = <4>; + cap-mmc-highspeed; + cap-sd-highspeed; + max-frequeency = <150000000>; + disable-wp; + pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_det &sdmmc_bus4>; + card-detect-delay = <800>; + status = "okay"; +}; + +&spi2 { + status = "okay"; + max-freq = <10000000>; +}; + +&pinctrl { + pinctrl-names = "default"; + pinctrl-0 = <&rtc_32k>; + + leds { + green_led_gio: green-led-gpio { + rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + heartbeat_led_gpio: heartbeat-led-gpio { + rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + usb { + otg_vbus_drv: otg-vbus-drv { + rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + sdio-pwrseq { + wifi_enable_h: wifi-enable-h { + rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + wifi_host_wake: wifi-host-wake { + rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>; + }; + }; +}; + +&pwm0 { + status = "okay"; + pinctrl-0 = <&pwm0_pin_pull_down>; +}; + +&saradc { + vref-supply = <&vcc_1v8>; + status = "okay"; +}; + +&sdio { + #address-cells = <1>; + #size-cells = <0>; + bus-width = <4>; + max-frequency = <1000000>; + cap-sd-highspeed; + cap-sdio-irq; + keep-power-in-suspend; + mmc-pwrseq = <&sdio_pwrseq>; + non-removable; + sd-uhs-sdr104; + status = "okay"; +}; + +&uart0 { + status = "okay"; +}; + +&uart4 { + pinctrl-names = "default"; + pinctrl-0 = <&uart4_xfer &uart4_rts &uart4_cts>; + status = "okay"; +}; -- 2.17.1