Update Nanobone
Subsystems (2)
PATCH 1/1 Update Nanobone
Update Nanobone DTS file as follows:-
- Add USB hooks
- Fix GPIO settings for RTS/CTS pins
- Add LM75 hooks
- Fix GPIO settings for MMC pins
Add nanobone_defconfig file.
--- arch/arm/boot/dts/am335x-nano.dts | 58 ++++++-- arch/arm/configs/nanobone_defconfig | 222 ++++++++++++++++++++++++++++ 2 files changed, 268 insertions(+), 12 deletions(-) create mode 100644 arch/arm/configs/nanobone_defconfig
arch/arm/boot/dts/am335x-nano.dts +46 -12
@@ -102,8 +102,8 @@ AM33XX_PADCONF(AM335X_PIN_UART0_TXD, PIN_OUTPUT, MUX_MODE0) uart1_pins: uart1_pins { pinctrl-single,pins = < - AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_OUTPUT, MUX_MODE7) - AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_OUTPUT, MUX_MODE7) + AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_OUTPUT, MUX_MODE7) /* uart1_ctsn.gpio0[12] */ + AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_OUTPUT, MUX_MODE7) /* uart1_rtsn.gpio0[13] */ AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_INPUT_PULLUP, MUX_MODE0) AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_OUTPUT, MUX_MODE0) >;
@@ -120,17 +120,17 @@ AM33XX_PADCONF(AM335X_PIN_SPI0_D0, PIN_OUTPUT, MUX_MODE1) /* spi0_d0.uart2_txd uart3_pins: uart3_pins { pinctrl-single,pins = < - AM33XX_PADCONF(AM335X_PIN_LCD_DATA10, PIN_INPUT_PULLUP, MUX_MODE6) /* lcd_data10.uart3_ctsn */ - AM33XX_PADCONF(AM335X_PIN_LCD_DATA11, PIN_OUTPUT, MUX_MODE6) /* lcd_data11.uart3_rtsn */ + AM33XX_PADCONF(AM335X_PIN_LCD_DATA10, PIN_INPUT_PULLUP, MUX_MODE7) /* lcd_data10.gpio2[16] */ + AM33XX_PADCONF(AM335X_PIN_LCD_DATA11, PIN_OUTPUT, MUX_MODE7) /* lcd_data11.gpio2[17] */ AM33XX_PADCONF(AM335X_PIN_SPI0_CS1, PIN_INPUT, MUX_MODE1) /* spi0_cs1.uart3_rxd */ - AM33XX_PADCONF(AM335X_PIN_ECAP0_IN_PWM0_OUT, PIN_OUTPUT, MUX_MODE1) /* ecap0_in_pwm0_out.uart3_txd */ + AM33XX_PADCONF(AM335X_PIN_ECAP0_IN_PWM0_OUT, PIN_OUTPUT, MUX_MODE1) /* ecap0_in_pwm0_out.uart3_txd */ >; }; uart4_pins: uart4_pins { pinctrl-single,pins = < - AM33XX_PADCONF(AM335X_PIN_LCD_DATA12, PIN_INPUT_PULLUP, MUX_MODE6) /* lcd_data12.uart4_ctsn */ - AM33XX_PADCONF(AM335X_PIN_LCD_DATA13, PIN_OUTPUT, MUX_MODE6) /* lcd_data13.uart4_rtsn */ + AM33XX_PADCONF(AM335X_PIN_LCD_DATA12, PIN_INPUT_PULLUP, MUX_MODE7) /* lcd_data12.gpio0[8] */ + AM33XX_PADCONF(AM335X_PIN_LCD_DATA13, PIN_OUTPUT, MUX_MODE7) /* lcd_data13.gpio0[9] */ AM33XX_PADCONF(AM335X_PIN_UART0_CTSN, PIN_INPUT, MUX_MODE1) /* uart0_ctsn.uart4_rxd */ AM33XX_PADCONF(AM335X_PIN_UART0_RTSN, PIN_OUTPUT, MUX_MODE1) /* uart0_rtsn.uart4_txd */ >;
@@ -149,9 +149,9 @@ AM33XX_PADCONF(AM335X_PIN_MMC0_DAT3, PIN_INPUT_PULLUP, MUX_MODE0) AM33XX_PADCONF(AM335X_PIN_MMC0_DAT2, PIN_INPUT_PULLUP, MUX_MODE0) AM33XX_PADCONF(AM335X_PIN_MMC0_DAT1, PIN_INPUT_PULLUP, MUX_MODE0) AM33XX_PADCONF(AM335X_PIN_MMC0_DAT0, PIN_INPUT_PULLUP, MUX_MODE0) - AM33XX_PADCONF(AM335X_PIN_MMC0_CLK, PIN_INPUT_PULLUP, MUX_MODE0) /* mmc0_clk.mmc0_clk */ - AM33XX_PADCONF(AM335X_PIN_MMC0_CMD, PIN_INPUT_PULLUP, MUX_MODE0) /* mmc0_cmd.mmc0_cmd */ - AM33XX_PADCONF(AM335X_PIN_EMU1, PIN_INPUT_PULLUP, MUX_MODE7) /* emu1.gpio3[8] */ + AM33XX_PADCONF(AM335X_PIN_MMC0_CLK, PIN_INPUT_PULLUP, MUX_MODE0) + AM33XX_PADCONF(AM335X_PIN_MMC0_CMD, PIN_INPUT_PULLUP, MUX_MODE0) + AM33XX_PADCONF(AM335X_PIN_EMU1, PIN_INPUT_PULLUP, MUX_MODE7) /* emu1.gpio3[8] */ AM33XX_PADCONF(AM335X_PIN_MCASP0_ACLKR, PIN_INPUT_PULLUP, MUX_MODE7) /* mcasp0_aclkr.gpio3[18] */ >; };
@@ -188,12 +188,22 @@ &uart3 { pinctrl-names = "default"; pinctrl-0 = <&uart3_pins>; status = "okay"; + rts-gpio = <&gpio2 17 GPIO_ACTIVE_HIGH>; + rs485-rts-active-high; + rs485-rx-during-tx; + rs485-rts-delay = <1 1>; + linux,rs485-enabled-at-boot-time; }; &uart4 { pinctrl-names = "default"; pinctrl-0 = <&uart4_pins>; status = "okay"; + rts-gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>; + rs485-rts-active-high; + rs485-rx-during-tx; + rs485-rts-delay = <1 1>; + linux,rs485-enabled-at-boot-time; }; &uart5 {
@@ -220,6 +230,12 @@ tps: tps@24 { reg = <0x24>; }; + lm75@48 { + compatible = "lm75"; + reg = <0x48>; + status = "okay"; + }; + eeprom@53 { compatible = "microchip,24c02", "atmel,24c02"; reg = <0x53>;
@@ -403,8 +419,26 @@ &mmc1 { pinctrl-names = "default"; pinctrl-0 = <&mmc1_pins>; bus-width = <4>; - cd-gpios = <&gpio3 8 0>; - wp-gpios = <&gpio3 18 0>; + cd-debounce-delay-ms = <5>; + cd-gpios = <&gpio3 8 GPIO_ACTIVE_LOW>; + wp-gpios = <&gpio3 18 GPIO_ACTIVE_HIGH>; +}; + +&usb { + status = "okay"; +}; + +&usb_ctrl_mod { + status = "okay"; +}; + +&usb0_phy { + status = "okay"; +}; + +&usb0 { + status = "okay"; + dr_mode = "host"; }; #include "tps65217.dtsi"
arch/arm/configs/nanobone_defconfig new file +222 -0
222 lines not on this page · raw message
Signature · 1 line
2.34.1
Any update on this patch ?
Did it ever get through ?
Do I need to re-submit for some reason ?
Regards
Mark J.
Hi,
Quoted 2 lines · On Tue, 8 Nov 2022 17:18:54 +0000 Mark Jackson <[email protected]> wrote:
Any update on this patch ?
Did it ever get through ?
it got probably caught in peoples "internal spam filter" reasons:
- bad subject line
look at git log arch/arm/boot/dts/am335x-nano.dts for sane values
- bad recipient list
get_maintainer.pl is your friend
Hmm, you already have contributed long time ago, it looks better:
Author: Mark Jackson <[email protected]> Date: Thu Dec 15 10:52:13 2016 +0000
ARM: dts: Update Nanobone dts file to add external FRAM chip
That looks ok. But maybe reread the documentation/SubmittingPatches again
Regards,
Andreas
Hi,
Quoted 15 lines · Andreas Kemnade
Hi,
Quoted 2 lines · On Tue, 8 Nov 2022 17:18:54 +0000 Mark Jackson <[email protected]> wrote:
Any update on this patch ?
Did it ever get through ?it got probably caught in peoples "internal spam filter" reasons:
- bad subject line
look at git logarch/arm/boot/dts/am335x-nano.dtsfor sane values
- bad recipient list
get_maintainer.pl is your friend
Quoted 7 lines
Hmm, you already have contributed long time ago, it looks better:
Author: Mark Jackson <[email protected]> Date: Thu Dec 15 10:52:13 2016 +0000ARM: dts: Update Nanobone dts file to add external FRAM chip
That looks ok. But maybe reread the documentation/SubmittingPatches again
Hmm yeah please use similar subject line with the prefix for the dts changes.
Looking at the dts changes only, the changes for status = "okay" changes should not be needed for devices enabled by default. Seems like the other changes are for rs485, please describe why the changes are made in the patch description.
The separate defconfig should not be needed. Please send any defconfig changes to multi_v7_defconfig or omap2plu_defconfig as separate patches.
Note that you can run make savedefconfig first to produce a minimal diff. Then if adding device drivers, please add them as loadable modules where possible.
Regards,
Tony
Quoted 7 lines · Tony Lindgren
The separate defconfig should not be needed. Please send any defconfig changes to
multi_v7_defconfigoromap2plu_defconfigas separate patches.Note that you can run make savedefconfig first to produce a minimal diff. Then if adding device drivers, please add them as loadable modules where possible.
But using the omap2plus_defconfig increases my kernel to 4.7MB
My "custom" one has been specifically designed for the NANO platform and currently sits at about 3.7MB (which nicely fits into the ~4MB memory bank allocated to the kernel)
Hence the use of my custom defconfig.
I don't have modules enabled as the platform functionality is pretty fixed.
The defconfig I posted was created using savedefconfig. Is it still wrong ?
Cheers
Mark J.
Hi,
Quoted 9 lines · Mark Jackson
Quoted 7 lines · Tony Lindgren
The separate defconfig should not be needed. Please send any defconfig changes to
multi_v7_defconfigoromap2plu_defconfigas separate patches.Note that you can run make savedefconfig first to produce a minimal diff. Then if adding device drivers, please add them as loadable modules where possible.
Quoted 7 lines
But using the
omap2plus_defconfigincreases my kernel to 4.7MBMy "custom" one has been specifically designed for the NANO platform and currently sits at about 3.7MB (which nicely fits into the ~4MB memory bank allocated to the kernel)
Hence the use of my custom defconfig.
Maybe host your defconfig somewhere on a device related wiki page?
We got rid of the board specific config files in the kernel years ago in favor of just a few generic ones.
Quoted 1 line
I don't have modules enabled as the platform functionality is pretty fixed.
OK nothing wrong with that, multi_v7_defconfig and omap2plus_defconfig are trying to be more generic and distro friendly.
Quoted 2 lines
The defconfig I posted was created using savedefconfig. Is it still wrong ?
Nothing wrong with that, except it should be hosted with the device related documentation and not in the kernel :)
Regards,
Tony