From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Kocialkowski Date: Mon, 26 Mar 2018 14:39:23 +0200 Subject: [U-Boot] [PATCH 1/3] arm: dts: sun7i: Update Ainol AW1 dts In-Reply-To: <20180326110909.u7ixpdx2nbm6vb3y@flea> References: <20180325123601.12125-1-contact@paulk.fr> <20180326110909.u7ixpdx2nbm6vb3y@flea> Message-ID: <1522067963.5781.5.camel@bootlin.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, On Mon, 2018-03-26 at 13:09 +0200, Maxime Ripard wrote: > Hi, > > On Sun, Mar 25, 2018 at 02:35:59PM +0200, Paul Kocialkowski wrote: > > This introduces a newer dts for the Ainol AW1, that will be the base > > for > > introducing upstream Linux support for the device. > > > > This update in U-Boot allows fixing USB OTG detection, that was > > missing > > from the previous dts. > > > > Signed-off-by: Paul Kocialkowski > > We usually will use the Linux DTS once it's been merged, so please > send it there first. Sure thing! [...] > Your nodes should be ordered by alphabetical order (at least as much > as possible, this isn't really doable for all the AXP stuff). I tried to preserve the order from the sun7i-a20.dtsi file, which felt like the most straightforward thing to do. Is there any particlar reason why things should be sorted alphabetically? It feels like it has the potential to explode related blocs in different areas of the file, thus reducing readability (like you've mentioned for the AXP). > > +&pio { > > + backlight_enable_pin: backlight_enable_pin at 0 { > > + pins = "PH7"; > > + function = "gpio_out"; > > + }; > > + > > + usb0_id_detect_pin: usb0_id_detect_pin at 0 { > > + pins = "PH4"; > > + function = "gpio_in"; > > + bias-pull-up; > > + }; > > + > > + usb0_vbus_pin: usb0_vbus_pin at 0 { > > + pins = "PB9"; > > + function = "gpio_out"; > > + }; > > +}; > > We're trying to remove these nodes from our DTs, it's redundant since > the GPIOs will request the pin in pinctrl when being taken. > > > + > > +&pwm { > > + pinctrl-names = "default"; > > + pinctrl-0 = <&pwm0_pins_a>; > > + status = "okay"; > > +}; > > + > > +&lradc { > > + vref-supply = <®_vcc3v0>; > > + status = "okay"; > > + > > + button at 571 { > > + label = "Volume Up"; > > + linux,code = ; > > + channel = <0>; > > + voltage = <571428>; > > + }; > > + > > + button at 761 { > > + label = "Volume Down"; > > + linux,code = ; > > + channel = <0>; > > + voltage = <761904>; > > + }; > > + > > + button at 952 { > > + label = "Home"; > > + linux,code = ; > > + channel = <0>; > > + voltage = <952380>; > > + }; > > }; > > > > &uart0 { > > @@ -27,3 +177,60 @@ > > pinctrl-0 = <&uart0_pins_a>; > > status = "okay"; > > }; > > + > > +&i2c0 { > > + pinctrl-names = "default"; > > + pinctrl-0 = <&i2c0_pins_a>; > > + status = "okay"; > > + > > + axp209: pmic at 34 { > > + reg = <0x34>; > > + interrupt-parent = <&nmi_intc>; > > + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; > > + }; > > +}; > > + > > +#include "axp209.dtsi" > > + > > +®_dcdc2 { > > + regulator-always-on; > > + regulator-min-microvolt = <1000000>; > > + regulator-max-microvolt = <1450000>; > > + regulator-name = "vdd-cpu"; > > +}; > > + > > +®_dcdc3 { > > + regulator-always-on; > > + regulator-min-microvolt = <1000000>; > > + regulator-max-microvolt = <1400000>; > > + regulator-name = "vdd-int-dll"; > > +}; > > + > > +®_ldo1 { > > + regulator-name = "vdd-rtc"; > > +}; > > + > > +®_ldo2 { > > + regulator-always-on; > > + regulator-min-microvolt = <3000000>; > > + regulator-max-microvolt = <3000000>; > > + regulator-name = "avcc"; > > +}; > > + > > +®_usb0_vbus { > > + pinctrl-0 = <&usb0_vbus_pin>; > > + gpio = <&pio 1 9 GPIO_ACTIVE_HIGH>; /*PB9 */ > > + status = "okay"; > > +}; > > + > > +®_usb1_vbus { > > + status = "okay"; > > +}; > > + > > +®_usb2_vbus { > > + status = "okay"; > > +}; > > + > > +&usb_power_supply { > > + status = "okay"; > > +}; > > -- > > 2.16.2 > > > > -- Paul Kocialkowski, Bootlin (formerly Free Electrons) Embedded Linux and kernel engineering https://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 488 bytes Desc: This is a digitally signed message part URL: