From patchwork Mon Dec 5 17:23:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13064849 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id A1976C4321E for ; Mon, 5 Dec 2022 17:24:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=fH/qKjGvjMLF0UPi1JYhptr2RKhTEFwf0bnxRc7OwRs=; b=ESqx7xS7VwfLCe Mwg7nqcSFP5dEbygaJpafCBu6uGJe0Bcbr0MvqhGY3DJ0e0OSn6fjBqKFp/6dz/8XP0olifkwdKPv Rdhf76h+1QObBAfqESmzOWtKKWrhqep3hxrq362OEFJtyLOmLJQ5QieFeObkgMuuzmXw73XJSu6eF cLvG40j7czm78yzyxzGzMhHE5uu9hVV50fwbZ7KEDqeTcKlMjUn+DFSnmhWE7KFhgKgdoF7ILZNIo b40FDc1m0TKkMK7waE+OoUKmaX2mE+x47RmWoguTOBaICxsg+i16TY/zrL3pGzKGeeLhQzFcF8jOv 3BWvTeYAZNRG7c0eVBoA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p2FCH-007NSL-87; Mon, 05 Dec 2022 17:24:05 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p2FCC-007NLH-Eo for linux-rockchip@lists.infradead.org; Mon, 05 Dec 2022 17:24:03 +0000 Received: from jupiter.universe (dyndsl-091-096-035-193.ewe-ip-backbone.de [91.96.35.193]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id C060B66023A6; Mon, 5 Dec 2022 17:23:54 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1670261034; bh=F2dVvjGksXSde97+TWRi7K/4+wqLOJTcjN9LNsClia4=; h=From:To:Cc:Subject:Date:From; b=UVvDzdP+vv4XdQbr3ahZKviS793I1Xno10l/HdAxVcGYrYzurbb5O1SSioNHN3yiD i442buQY5ulmNegeEG0SQzVYASHoOUNPesXLPkborMrqbMOEhzYSmdIt1vj9c/0Jzh 1Nytyq1G4oot1qoa7cYKMLUlRJZeNh8ETW9QwdbQD+XHVAfSLzH5V5HsubUCcxJ/Ar QI3e/7eLKmCNXlZRcDPRbUknXcQtANCou9cphctPDZq/Y6Z3WY232UxqiXn1YOiYL2 syuanEdHrbXbRRjdK2aZrlHis6UyD2xWpVhDkWRgdcbb2k6ALHJbbffeLZoTzZ4Xvv 8aKQCYQIKfWBg== Received: by jupiter.universe (Postfix, from userid 1000) id 694D8480107; Mon, 5 Dec 2022 18:23:52 +0100 (CET) From: Sebastian Reichel To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Linus Walleij , Christopher Obbard , Benjamin Gaignard , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCHv5 0/7] Initial rk3588 DT Date: Mon, 5 Dec 2022 18:23:43 +0100 Message-Id: <20221205172350.75234-1-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221205_092400_807014_823E5411 X-CRM114-Status: GOOD ( 18.15 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Hi, This adds initial rk3588(s) DT including two different board devicetrees. All required driver changes have been merged into the respective maintainer trees. There is one warning from the DT check: $ make CHECK_DTBS=y rockchip/rk3588-evb1-v10.dtb rockchip/rk3588s-rock-5a.dtb DTC_CHK arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dtb /home/sre/src/collabora/rode/linux-rockchip-upstream/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dtb: ethernet@fe1c0000: Unevaluated properties are not allowed ('interrupt-names', 'interrupts', 'mdio', 'power-domains', 'reg', 'reset-names', 'resets', 'rx-queues-config', 'snps,axi-config', 'snps,mixed-burst', 'snps,mtl-rx-config', 'snps,mtl-tx-config', 'snps,tso', 'stmmac-axi-config', 'tx-queues-config' were unexpected) From schema: /home/sre/src/collabora/rode/linux-rockchip-upstream/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml This is for gmac1. gmac0 has the same properties and there is no warning. Also rk3588s (and thus the Rock 5A) has only gmac1 and there is no warning for the Rock 5A. It looks like for some reason the referenced "snps,dwmac.yaml#" is only checked for the first node. I think it's a bug in dt-validate. Also the same issue can be seen with rk356x. Changes since PATCHv4: * https://lore.kernel.org/all/20221124144928.35381-1-sebastian.reichel@collabora.com/ * update compatible string for the PHY to provide PHY ID. Without the IDs provided in the firmware, the kernel tries to identify the correct driver by reading the ID. This fails, if the bootloader does not setup the reset GPIO, since the kernel only setups the reset GPIO in the PHY driver. Rock 5A with the default bootloader runs into this, but I also changed EVB1 since the kernel should not depend on bootloader configuration for this. * added pinctrl for PHY reset-gpios * drop rgmii-rxid from gmac1 node * added reviewed-by from Michael Risch for board DTs * I kept the order of the trailers (i.e. my SoB being the last), which is the usual order in most subsystems Changes since PATCHv3: * https://lore.kernel.org/all/20221121175814.68927-1-sebastian.reichel@collabora.com/ * update reset gpio + timings in EVB1 and Rock 5A DT to new style * change regulator- prefix to -regulator suffix in EVB1 and Rock 5B DTB * merge dt-binding update patches for EVB1, Rock 5A and Rock 5B and add Krzysztof's Ack * change pinctrl name "active" to "default" for all PWM nodes * remove aliases from rk3588s and rk3588 DTSI * sort includes in rk3588s.dtsi * add dma names for uart * some more property order fixes * remove #power-domain-cells for the power-controller sub-nodes; only the main node should be referenced * add dynamic-power-coefficient and #cooling-cells for all CPU cores Changes since PATCHv2: * https://lore.kernel.org/all/20221115161702.163057-1-sebastian.reichel@collabora.com/ * add minimal Radxa Rock 5B DT * Add aliases for i2c, spi and gpio in rk3588s.dtsi * Fix ethernet-phy node name and remove #phy-cells * Sort nodes / includes in both boards * Sort nodes in rk3588s.dtsi according to register address * add missing spi4 node in rk3588s.dtsi * split board specific dt-bindings into their own patches * add board specific mmc alias following the downstream enumeration Changes since PATCHv1: * https://lore.kernel.org/all/20221108171500.99599-1-sebastian.reichel@collabora.com/ * Drop Acked-by from Krzysztof * Add 'regulator-' prefix to VCC12V VCC5V0 regulators * Change 'Radxa Rock 5A' to 'Radxa ROCK 5 Model A' in DT binding * Update cover-letter (clock driver and some DT binding fixes got merged) -- Sebastian Christopher Obbard (1): arm64: dts: rockchip: Add rock-5b board Jianqun Xu (1): arm64: dts: rockchip: Add rk3588 pinctrl data Kever Yang (2): arm64: dts: rockchip: Add base DT for rk3588 SoC arm64: dts: rockchip: Add rk3588-evb1 board Sebastian Reichel (3): dt-bindings: soc: rockchip: add initial rk3588 syscon compatibles dt-bindings: arm: rockchip: add initial rk3588 boards arm64: dts: rockchip: Add rock-5a board .../devicetree/bindings/arm/rockchip.yaml | 15 + .../devicetree/bindings/soc/rockchip/grf.yaml | 5 + arch/arm64/boot/dts/rockchip/Makefile | 3 + .../boot/dts/rockchip/rk3588-evb1-v10.dts | 165 + .../boot/dts/rockchip/rk3588-pinctrl.dtsi | 516 +++ .../boot/dts/rockchip/rk3588-rock-5b.dts | 44 + arch/arm64/boot/dts/rockchip/rk3588.dtsi | 58 + .../boot/dts/rockchip/rk3588s-pinctrl.dtsi | 3403 +++++++++++++++++ .../boot/dts/rockchip/rk3588s-rock-5a.dts | 73 + arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 1672 ++++++++ 10 files changed, 5954 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts create mode 100644 arch/arm64/boot/dts/rockchip/rk3588-pinctrl.dtsi create mode 100644 arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts create mode 100644 arch/arm64/boot/dts/rockchip/rk3588.dtsi create mode 100644 arch/arm64/boot/dts/rockchip/rk3588s-pinctrl.dtsi create mode 100644 arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts create mode 100644 arch/arm64/boot/dts/rockchip/rk3588s.dtsi