Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp1820331pxb; Sun, 10 Jan 2021 12:08:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxnbf7dgcEyk9UUmErdybpsTFhy9Pbga/ETJH1ExDu420xQuN5dbQsPOrNbUy1ncynuoECc X-Received: by 2002:a50:d88c:: with SMTP id p12mr11986240edj.370.1610309324743; Sun, 10 Jan 2021 12:08:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610309324; cv=none; d=google.com; s=arc-20160816; b=Xs/PVy5FidZhoI/JCraqMsAx7R7p4YfOXBP0ee6s55g0FJgT3EbmOiHjgw6sd7F+yz 5mzF4TfTtcZQ9lXouz845A9tUXNCpYrcalgya4ZCx7d06I0OLf062k2uGW43nPKY/W0A Oq4RR8yrwdqBSH442hk0E7f9i2Ehse5ZE8o8mjqskbboulLKOgUva5PCnHkn1ErC3kzL F4uSF92rGGjOm4RjOA9gpjx8sAkfRyrEsa6jOn1VLKmUsgNhJVqAZK7tum2jkOxeFlQL arpRjm53ovNJZ50bDfSpJr3YygPehu1XtpTFVlb0ccU6E8M7nixk+jN1SvN5eGU9VlNG 00Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=5VlmnipFv52whs5CT71lpJfqmJaE6uR1/u/8vX4d1o4=; b=xOrsUI/yL5NwjwF178vYoUYJ8ox7TaP95CDsm2OG7dRVOhyf266Fl8HKukG+MZH6D8 /h5Xbf8VLh6EtIaHwxgJCqukl3SZyhxAXu7jJGVctF6zrf5pqLiPwq/gu8d3fYThqm8R INpXcKU9/ZLmbUJ1tPs8gJgoFN1690diXNq4yrX0gx7PchoT2EnWzmTY4xAM8C7lSsQh Mh2kurLJEh1zfS/bg4JztXl4WgvRk5uFVy38sPnbDjBzNelmYAw5foKEHNRvs5X3blT2 Fe6xLaoLE3vpEgZVHZE2oswV529LMGgl9/Q+rNCmd20bc5ThEdJ5rotfhrEHNSBy3r1R Nw+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y24si5887303ejc.613.2021.01.10.12.08.20; Sun, 10 Jan 2021 12:08:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726495AbhAJUH3 (ORCPT + 99 others); Sun, 10 Jan 2021 15:07:29 -0500 Received: from gloria.sntech.de ([185.11.138.130]:43732 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726263AbhAJUH2 (ORCPT ); Sun, 10 Jan 2021 15:07:28 -0500 Received: from ip5f5aa64a.dynamic.kabel-deutschland.de ([95.90.166.74] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kygz2-0000NH-Du; Sun, 10 Jan 2021 21:06:40 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Johan Jonker , Chen-Yu Tsai Cc: Chen-Yu Tsai , Rob Herring , "open list:ARM/Rockchip SoC..." , linux-kernel , linux-arm-kernel , devicetree Subject: Re: [PATCH 3/3] arm64: dts: rockchip: rk3328: Add Radxa ROCK Pi E Date: Sun, 10 Jan 2021 21:06:39 +0100 Message-ID: <2241380.NG923GbCHz@diego> In-Reply-To: References: <20210110035846.9155-1-wens@kernel.org> <381648f9-d650-dddf-59e6-ef32d1e1bb43@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Am Sonntag, 10. Januar 2021, 16:37:15 CET schrieb Chen-Yu Tsai: > > > + vcc_sd: sdmmc-regulator { > > > + compatible = "regulator-fixed"; > > > + gpio = <&gpio0 RK_PD6 GPIO_ACTIVE_LOW>; > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&sdmmc0m1_pin>; > > > > > + regulator-boot-on; > > > + regulator-name = "vcc_sd"; > > > > regulator-name above other regulator properties > > That is actually what I was used to, but some other rockchip dts files > have all the properties sorted alphabetically. So I stuck with what I > saw. I try to keep it alphabetical except for the exceptions :-D . regulator-name is such an exception. Similar to compatibles, the regulator-name is an entry needed to see if you're at the right node, so I really like it being the topmost regulator-foo property - just makes reading easier. (same for the compatible first, then regs, interrupts parts, as well as "status-last") But oftentimes, I just fix the ordering when applying - but seem to have missed this somewhere in those "other Rockchip dts files" ;-) . > > regulator voltage missing > > make things as complete as possible > > > > from fixed-regulator.yaml: > > > > description: > > Any property defined as part of the core regulator binding, defined in > > regulator.yaml, can also be used. However a fixed voltage regulator is > > expected to have the regulator-min-microvolt and regulator-max-microvolt > > to be the same. > > However this is not a real regulator; it is merely an on/off switch. > I believe in this case it should just pass through the voltage from > its upstream. regulator-voltages are not marked required so can stay away if it's just a dumb switch. I guess it's ok both ways and for individual board- devicetrees the impact either way is minimal. > > > +&i2c1 { > > > + status = "okay"; > > > + > > > + rk805: pmic@18 { > > > + compatible = "rockchip,rk805"; > > > + reg = <0x18>; > > > + interrupt-parent = <&gpio2>; > > > + interrupts = <6 IRQ_TYPE_LEVEL_LOW>; > > > > > + #clock-cells = <1>; > > > > all thing that start with "#" down the list > > Is there a proper "preferred" sorting method defined somewhere? I struggle with that often as well, but normally I'd do #clocks to clocks with out "#", but really don't have a hard preference here. especially as just ignoring the "#" would make #address-cells + #size-cells look strangely sorted ... so more of a common sense thingy. > > > + eth_phy_int_pin: eth-phy-int-pin { > > > + rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_down>; > > > + }; > > > + > > > + eth_phy_reset_pin: eth-phy-reset-pin { > > > + rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>; > > > + }; > > > + }; > > > + > > > + leds { > > > + led_pin: led-pin { > > > + rockchip,pins = <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; > > > + }; > > > + }; > > > + > > > + pmic { > > > + pmic_int_l: pmic-int-l { > > > + rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>; > > > + }; > > > + }; > > > + > > > > > + usb3 { > > > > usb > > > > Last numbers in nodenames are more related to the sort order then to > > capabillity. > > ie: mmc0, mmc1 > > All usb pin related things here. > > I'd say it is more related to functionality in this case, as in "this group > is for USB3 related pins". Makes more sense if the board supported both USB2 > and USB3. I'd agree :-) ... especially as usb controllers on Rockchip boards are not really numbered and I think we already have precedent for usb2 -> usb version 2 pins in some other boards ;-) > > > + cap-sd-highspeed; > > > + disable-wp; > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&sdmmc0_clk>, <&sdmmc0_cmd>, <&sdmmc0_dectn>, <&sdmmc0_bus4>; > > > + vmmc-supply = <&vcc_sd>; > > > + status = "okay"; > > > +}; > > > + > > > > > +&saradc { > > > + vref-supply = <&vcc_18>; > > > + status = "okay"; > > > +}; > > > > What happened to the recovery key from the schematic? > > I believe I originally planned on adding it, but failed to find a proper > key event for it. Any suggestions? Most boards seem to use the KEY_VENDOR keycode. Heiko