From mboxrd@z Thu Jan 1 00:00:00 1970 From: oliver@schinagl.nl (Olliver Schinagl) Date: Mon, 5 Jan 2015 07:41:59 +0000 (UTC) Subject: [PATCH 4/6] ARM: sunxi: DT: Convert the DTs to use a header for the pinctrl nodes References: <1418767199-20957-1-git-send-email-maxime.ripard@free-electrons.com> <1418767199-20957-4-git-send-email-maxime.ripard@free-electrons.com> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hey Maxime! Maxime Ripard free-electrons.com> writes: > > The pinctrl nodes require some extra opaque arguments for the pull up and drive > strength values. > > Introduce a new header file and convert the device trees to replace these > opaque numbers by defines. > > diff --git a/arch/arm/boot/dts/sun4i-a10-a1000.dts b/arch/arm/boot/dts/sun4i-a10-a1000.dts > index 532ab3bd9735..b67e5be618cf 100644 > --- a/arch/arm/boot/dts/sun4i-a10-a1000.dts > +++ b/arch/arm/boot/dts/sun4i-a10-a1000.dts > -52,6 +52,7 > #include "sunxi-common-regulators.dtsi" > > #include > +#include > > / { > model = "Mele A1000"; > -114,15 +115,15 > emac_power_pin_a1000: emac_power_pin 0 { > allwinner,pins = "PH15"; > allwinner,function = "gpio_out"; > - allwinner,drive = <0>; > - allwinner,pull = <0>; > + allwinner,drive = ; May I query why you used Mega Ampere's for the drive strength? ;) I know it's quite obvious it means mili-amps, but I recall reading that small letters in defines is 'acceptable' in the case of mA, which is already used in the dts files for the imx. I doubt we will ever see MegaAmp in any dts ;) but technically not impossible. Olliver